diff options
author | Ian Roxborough <irox@redhat.com> | 2001-09-09 19:49:03 +0000 |
---|---|---|
committer | Ian Roxborough <irox@redhat.com> | 2001-09-09 19:49:03 +0000 |
commit | 57e8350a3895a1579b77cc134d6d7d49b056678e (patch) | |
tree | 7584c16f5407dd1371b8290109b3b822067afd5a /itcl/configure | |
parent | 7467241ff2a5cd6da7bbecb7111fc0dc3211c7de (diff) | |
download | gdb-57e8350a3895a1579b77cc134d6d7d49b056678e.tar.gz |
Itcl import for Tcl/Tk8.3 upgradeITCL_TCL_8_3
Diffstat (limited to 'itcl/configure')
-rwxr-xr-x | itcl/configure | 135 |
1 files changed, 98 insertions, 37 deletions
diff --git a/itcl/configure b/itcl/configure index 4e46ba23472..669b6450666 100755 --- a/itcl/configure +++ b/itcl/configure @@ -1,7 +1,7 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.12.2 +# Generated automatically using autoconf version 2.13 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. # # This configure script is free software; the Free Software Foundation @@ -11,6 +11,7 @@ ac_help= ac_default_prefix=/usr/local # Any additions from configure.in: +ac_default_prefix=/usr/local # Initialize some variables set by options. # The variables have the same names as the options, with @@ -28,6 +29,7 @@ program_suffix=NONE program_transform_name=s,x,x, silent= site= +sitefile= srcdir= target=NONE verbose= @@ -142,6 +144,7 @@ Configuration: --help print this message --no-create do not create output files --quiet, --silent do not print \`checking...' messages + --site-file=FILE use FILE as the site file --version print the version of autoconf that created configure Directory and file names: --prefix=PREFIX install architecture-independent files in PREFIX @@ -312,6 +315,11 @@ EOF -site=* | --site=* | --sit=*) site="$ac_optarg" ;; + -site-file | --site-file | --site-fil | --site-fi | --site-f) + ac_prev=sitefile ;; + -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) + sitefile="$ac_optarg" ;; + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) @@ -333,7 +341,7 @@ EOF verbose=yes ;; -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.12.2" + echo "configure generated by autoconf version 2.13" exit 0 ;; -with-* | --with-*) @@ -477,12 +485,16 @@ fi srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` # Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" +if test -z "$sitefile"; then + if test -z "$CONFIG_SITE"; then + if test "x$prefix" != xNONE; then + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" + else + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" + fi fi +else + CONFIG_SITE="$sitefile" fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then @@ -547,7 +559,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } fi echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:551: checking host system type" >&5 +echo "configure:563: checking host system type" >&5 host_alias=$host case "$host_alias" in @@ -568,32 +580,28 @@ host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$host" 1>&6 -if test -d itcl; then - true -else - mkdir itcl -fi -if test -d itk; then - true -else - mkdir itk -fi -if test -d iwidgets3.0.0; then - true -else - mkdir iwidgets3.0.0 +# Note, we don't use the files in the config subdirectory! +ac_aux_dir= +for ac_dir in .. $srcdir/..; do + if test -f $ac_dir/install-sh; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f $ac_dir/install.sh; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + fi +done +if test -z "$ac_aux_dir"; then + { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; } fi - -case "${host}" in -*-*-cygwin*) - CONFIGDIR="itcl/win itk/win iwidgets3.0.0/unix" ;; -*) - CONFIGDIR="itcl/unix itk/unix iwidgets3.0.0/unix" ;; -esac - +ac_config_guess=$ac_aux_dir/config.guess +ac_config_sub=$ac_aux_dir/config.sub +ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 -echo "configure:597: checking whether ${MAKE-make} sets \${MAKE}" >&5 +echo "configure:605: checking whether ${MAKE-make} sets \${MAKE}" >&5 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -619,8 +627,60 @@ else SET_MAKE="MAKE=${MAKE-make}" fi +# END CYGNUS LOCAL + +# ----------------------------------------------------------------------- +# +# Set up a new default --prefix. If a previous installation of +# [incr Tcl] can be found searching $PATH use that directory. +# +# ----------------------------------------------------------------------- + + +if test "x$prefix" = xNONE; then +echo $ac_n "checking for prefix by $ac_c" 1>&6 +# Extract the first word of "itclsh", so it can be a program name with args. +set dummy itclsh; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:646: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_ITCLSH'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + case "$ITCLSH" in + /*) + ac_cv_path_ITCLSH="$ITCLSH" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_ITCLSH="$ITCLSH" # Let the user override the test with a dos path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_path_ITCLSH="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + ;; +esac +fi +ITCLSH="$ac_cv_path_ITCLSH" +if test -n "$ITCLSH"; then + echo "$ac_t""$ITCLSH" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + if test -n "$ac_cv_path_ITCLSH"; then + prefix=`echo $ac_cv_path_ITCLSH|sed 's%/[^/][^/]*//*[^/][^/]*$%%'` + fi +fi + -subdirs="$CONFIGDIR" +subdirs="itcl itk iwidgets3.0.0" trap '' 1 2 15 @@ -646,7 +706,7 @@ EOF # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. (set) 2>&1 | - case `(ac_space=' '; set) 2>&1 | grep ac_space` in + case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote substitution # turns \\\\ into \\, and sed turns \\ into \). @@ -725,7 +785,7 @@ do echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.12.2" + echo "$CONFIG_STATUS generated by autoconf version 2.13" exit 0 ;; -help | --help | --hel | --he | --h) echo "\$ac_cs_usage"; exit 0 ;; @@ -748,6 +808,7 @@ s%@SHELL@%$SHELL%g s%@CFLAGS@%$CFLAGS%g s%@CPPFLAGS@%$CPPFLAGS%g s%@CXXFLAGS@%$CXXFLAGS%g +s%@FFLAGS@%$FFLAGS%g s%@DEFS@%$DEFS%g s%@LDFLAGS@%$LDFLAGS%g s%@LIBS@%$LIBS%g @@ -771,8 +832,8 @@ s%@host_alias@%$host_alias%g s%@host_cpu@%$host_cpu%g s%@host_vendor@%$host_vendor%g s%@host_os@%$host_os%g -s%@CONFIGDIR@%$CONFIGDIR%g s%@SET_MAKE@%$SET_MAKE%g +s%@ITCLSH@%$ITCLSH%g s%@subdirs@%$subdirs%g CEOF @@ -874,7 +935,7 @@ cat >> $CONFIG_STATUS <<EOF EOF cat >> $CONFIG_STATUS <<\EOF - +chmod +x ${srcdir}/config/install-sh ${srcdir}/config/mkinstalldirs exit 0 EOF chmod +x $CONFIG_STATUS @@ -906,7 +967,7 @@ if test "$no_recursion" != yes; then esac done - for ac_config_dir in $CONFIGDIR; do + for ac_config_dir in itcl itk iwidgets3.0.0; do # Do not complain, so a configure script can configure whichever # parts of a large source tree are present. |