< prev index next >

make/autoconf/configure

Print this page


   1 #!/bin/bash
   2 #
   3 # Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
   4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5 #
   6 # This code is free software; you can redistribute it and/or modify it
   7 # under the terms of the GNU General Public License version 2 only, as
   8 # published by the Free Software Foundation.
   9 #
  10 # This code is distributed in the hope that it will be useful, but WITHOUT
  11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13 # version 2 for more details (a copy is included in the LICENSE file that
  14 # accompanied this code).
  15 #
  16 # You should have received a copy of the GNU General Public License version
  17 # 2 along with this work; if not, write to the Free Software Foundation,
  18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19 #
  20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21 # or visit www.oracle.com if you need additional information or have any
  22 # questions.
  23 #


  61   # We are running configure from the custom root.
  62   # Create '.configure-support' under $CUSTOM_ROOT/build
  63   build_support_dir="$CUSTOM_ROOT/build/.configure-support"
  64 else
  65   # We are running configure from outside of the src dir.
  66   # Create 'build_support_dir' in the current directory.
  67   build_support_dir="$CURRENT_DIR/configure-support"
  68 fi
  69 
  70 conf_script_dir="$TOPDIR/make/autoconf"
  71 generated_script="$build_support_dir/generated-configure.sh"
  72 
  73 ###
  74 ### Use autoconf to create a runnable configure script, if needed
  75 ###
  76 
  77 autoconf_missing_help() {
  78   APT_GET="`which apt-get 2> /dev/null | grep -v '^no apt-get in'`"
  79   YUM="`which yum 2> /dev/null | grep -v '^no yum in'`"
  80   BREW="`which brew 2> /dev/null | grep -v '^no brew in'`"
  81   ZYPPER="`which zypper 2> /dev/null | grep -v '^no zypper in'`"
  82   CYGWIN="`which cygpath 2> /dev/null | grep -v '^no cygpath in'`"
  83 
  84   if test "x$ZYPPER" != x; then
  85     PKGHANDLER_COMMAND="sudo zypper install autoconf"
  86   elif test "x$APT_GET" != x; then
  87     PKGHANDLER_COMMAND="sudo apt-get install autoconf"
  88   elif test "x$YUM" != x; then
  89     PKGHANDLER_COMMAND="sudo yum install autoconf"
  90   elif test "x$BREW" != x; then
  91     PKGHANDLER_COMMAND="brew install autoconf"
  92   elif test "x$CYGWIN" != x; then
  93     PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P autoconf )"
  94   fi
  95 
  96   if test "x$PKGHANDLER_COMMAND" != x; then
  97     echo "You might be able to fix this by running '$PKGHANDLER_COMMAND'."
  98   fi
  99 }
 100 
 101 generate_configure_script() {
 102   if test "x$AUTOCONF" != x; then
 103     if test ! -x "$AUTOCONF"; then
 104       echo
 105       echo "The specified AUTOCONF variable does not point to a valid autoconf executable:"
 106       echo "AUTOCONF=$AUTOCONF"


   1 #!/bin/bash
   2 #
   3 # Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
   4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5 #
   6 # This code is free software; you can redistribute it and/or modify it
   7 # under the terms of the GNU General Public License version 2 only, as
   8 # published by the Free Software Foundation.
   9 #
  10 # This code is distributed in the hope that it will be useful, but WITHOUT
  11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13 # version 2 for more details (a copy is included in the LICENSE file that
  14 # accompanied this code).
  15 #
  16 # You should have received a copy of the GNU General Public License version
  17 # 2 along with this work; if not, write to the Free Software Foundation,
  18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19 #
  20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21 # or visit www.oracle.com if you need additional information or have any
  22 # questions.
  23 #


  61   # We are running configure from the custom root.
  62   # Create '.configure-support' under $CUSTOM_ROOT/build
  63   build_support_dir="$CUSTOM_ROOT/build/.configure-support"
  64 else
  65   # We are running configure from outside of the src dir.
  66   # Create 'build_support_dir' in the current directory.
  67   build_support_dir="$CURRENT_DIR/configure-support"
  68 fi
  69 
  70 conf_script_dir="$TOPDIR/make/autoconf"
  71 generated_script="$build_support_dir/generated-configure.sh"
  72 
  73 ###
  74 ### Use autoconf to create a runnable configure script, if needed
  75 ###
  76 
  77 autoconf_missing_help() {
  78   APT_GET="`which apt-get 2> /dev/null | grep -v '^no apt-get in'`"
  79   YUM="`which yum 2> /dev/null | grep -v '^no yum in'`"
  80   BREW="`which brew 2> /dev/null | grep -v '^no brew in'`"

  81   CYGWIN="`which cygpath 2> /dev/null | grep -v '^no cygpath in'`"
  82 
  83   if test "x$APT_GET" != x; then


  84     PKGHANDLER_COMMAND="sudo apt-get install autoconf"
  85   elif test "x$YUM" != x; then
  86     PKGHANDLER_COMMAND="sudo yum install autoconf"
  87   elif test "x$BREW" != x; then
  88     PKGHANDLER_COMMAND="brew install autoconf"
  89   elif test "x$CYGWIN" != x; then
  90     PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P autoconf )"
  91   fi
  92 
  93   if test "x$PKGHANDLER_COMMAND" != x; then
  94     echo "You might be able to fix this by running '$PKGHANDLER_COMMAND'."
  95   fi
  96 }
  97 
  98 generate_configure_script() {
  99   if test "x$AUTOCONF" != x; then
 100     if test ! -x "$AUTOCONF"; then
 101       echo
 102       echo "The specified AUTOCONF variable does not point to a valid autoconf executable:"
 103       echo "AUTOCONF=$AUTOCONF"


< prev index next >