#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # 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 # gives unlimited permission to copy, distribute and modify it. # Defaults: ac_help= ac_default_prefix=/usr/local # Any additions from configure.in: ac_default_prefix=`pwd` ac_help="$ac_help Obsolete check: --with-babel=babel_installation (OBSOLETE. Use --with-csb-config=prefix_spec/bin/cca-spec-babel-config[-version] or --with-cca-babel=prefix_spec or --with-cca-babel=no) " ac_help="$ac_help Obsolete check: --with-cca=SPEC_TREE (OBSOLETE. Use --with-csb-config and/or --with-cca-classic) " ac_help="$ac_help Location of cca-spec-babel-config program: --with-csb-config=/usr/local/bin/cca-spec-babel-config[-version_numbers] Specify the particular babel CCA specification config info script. This is not normally needed unless multiple versions of cca-spec-babel are installed in the same location. This option overrides environment variable CCA_PATH_TO_CONFIG. " ac_help="$ac_help Location of cca-spec-babel: --with-cca-babel=SPEC_INSTALL_TREE The location of babel CCA specification. Give the full path: --with-cca-babel='/where/is/cca-spec-babel/installed' The install location of cca-spec-babel will be the same as the build location unless it was configured with --prefix. Remember that for cca-spec-babel you must do make;make install. or give --with-cca-babel=no " ac_help="$ac_help --with-babel-python Generate Babel Python code for Ccaffeine. " ac_help="$ac_help Location of cca-spec-classic-config program: --with-classic-config=/usr/local/bin/cca-spec-classic-config[-version_numbers] Specify the particular classic CCA specification config info script. This is not normally needed unless multiple versions of cca-spec-classic are installed in the same location. This option overrides environment variable CLASSIC_PATH_TO_CONFIG. " ac_help="$ac_help Location of cca-spec-classic: --with-cca-classic=SPECINSTALLED_PREFIX The location of classic CCA specification. Give the full path: --with-cca-classic='/where/is/cca-spec-classic/installed' The install prefix of cca-spec-classic will be the same as the build location unless it was configured with --prefix. Remember that for cca-spec-classic you must do make;make install. or give --with-cca-classic=no " ac_help="$ac_help Location of cca-spec-neo-config program: --with-neo-config=/usr/local/bin/cca-spec-neo-config[-version_numbers] Specify the particular neoclassic CCA specification config info script. This is not normally needed unless multiple versions of cca-spec-neo are installed in the same location. This option overrides environment variable NEOCCA_PATH_TO_CONFIG. " ac_help="$ac_help Location of cca-spec-neo: --with-cca-neo=SPEC_TREE The location of neoclassic CCA specification. Give the full path: --with-cca-neo='/where/is/cca-spec-neo/installed' The install prefix of cca-spec-neo will be the same as the build location unless it was configured with --prefix. Remember that for cca-spec-neo you must do make;make install. or give --with-cca-neo=no " ac_help="$ac_help Location of babel-libtool program. --with-babel-libtool=/usr/local/babel/bin/babel-libtool (where is babel-libtool?) On some platforms, a regular GNU libtool may also work if specifed, but this is not generally supported by ccaffeine. In particular, on many 64 bit platforms libtool before version 1.5.10+patches does not work well for shared libraries. " ac_help="$ac_help --enable-gcc allow use of gcc if available and -pipe" ac_help="$ac_help Location of c++ compiler: --with-cPP=EXECUTABLE The location of C++. Omit if using BABEL. Give the full path: --with-cPP='/usr/gnu/bin/c++' " ac_help="$ac_help Override environment CXXFLAGS for compiling C++. --with-cxxflags=CXXFLAGS " ac_help="$ac_help Prefix directory of the real install destination. --with-rpm-prefix=/final/root/install-dir Used to set a value for embedding in scripts that will be installed in a final location, not the 'build+install' prefix used in the rpm generation process." ac_help="$ac_help libdir of the real install destination. --with-rpm-libdir=/final/root/lib-dir Used to set a value for embedding in scripts that will be installed in a final location, not the 'build+install' prefix used in the rpm generation process." ac_help="$ac_help pkgdatadir of the real install destination. --with-rpm-pkgdatadir=/final/root/pkgdata-dir Used to set a value for embedding in scripts that will be installed in a final location, not the 'build+install' pkgdatadir used in the rpm generation process." ac_help="$ac_help --with-python-includes=PYTHON_INCLUDE path to Python include files" ac_help="$ac_help --with-python-library=PYTHON_LIBRARY path to Python library" ac_help="$ac_help Location of gmake: --with-gmake=EXECUTABLE The location of gmake. Give the full path: --with-gmake='/share/bizarre/bin/gmake' " ac_help="$ac_help Location of tclsh: --with-tclsh=EXECUTABLE The location of the Tcl8.x or later tclsh. Give the full path: --with-tclsh='/share/bizarre/bin/tclsh' " ac_help="$ac_help Location of ruby: --with-ruby=EXECUTABLE The location of the ruby-lang binary Give the full path: --with-ruby='/home/rob/bin/ruby' " ac_help="$ac_help Location of swig: --with-swig=EXECUTABLE The location of the swig executable Give the full path: --with-ruby='/home/rob/bin/swig' " ac_help="$ac_help Location of mpi: --with-mpi=MPI_HOME The location of mpi 1.2 compatible mpi. Give the full path: --with-mpi='/share/bizarre/mpich-1.2.2,3' " ac_help="$ac_help Machine is mpich mpd: --with-mpi-mpd " ac_help="$ac_help === The following options override those guessed based on --with-mpi, if given. === Try specifying them if the defaults don't work for your mpi. Likely needed === if you are not using mpich. Machine architecture of mpi: --with-mpi-arch=MPI_ARCH The \$ARCH value for mpi. --with-mpi-arch='LINUX' " ac_help="$ac_help Special -I flags to get mpi headers when not using mpicc/mpiCC/mpicxx: --with-mpi-inc="MPI_INCLUDES" The flags for mpi includes in c/c++. e,g, --with-mpi-inc='-I/usr/local/include/mpich-ver' Others, like avoiding a broken c++ binding header: '-I\$MPI/include -I\$MPI/build/\$ARCH/\$DEVICE/include' " ac_help="$ac_help Location of mpi bin directory: --with-mpi-bin=/path/to/bin/mpi* The full path to the bin/ for mpi-related programs. --with-mpi-bin='/usr/local/mpich-ver/bin' " ac_help="$ac_help == The following mpi switches override defaults computed from --with-mpi == or --with-mpi-bin. Location of special mpif77 to use --with-mpi-f77=MPIF77 The full path to mpif77, if not in normal mpi bin/ dir. --with-mpi-f77=/usr/local/bin/odd/mpif77 " ac_help="$ac_help Location of special mpif90 to use --with-mpi-f90=MPIF90 The full path to mpif90, if not in normal mpi bin/ dir. --with-mpi-f90=/usr/local/bin/odd/mpif90 " ac_help="$ac_help Location of special mpiCC to use --with-mpi-cxx=MPICXX The full path to mpiCC/mpicxx, if not in normal mpi bin/ dir. --with-mpi-cxx=/usr/local/bin/odd/mpiCC " ac_help="$ac_help Location of special mpild to use --with-mpi-ld=MPI_LD The full path to linker for mpi executables, defaulting to mpicxx value. --with-mpi-ld=/usr/local/bin/odd/mpiCC " ac_help="$ac_help Location of special mpicc to use --with-mpi-cc=MPICC The full path to mpicc, if not in normal mpi bin/ dir. --with-mpi-cc=/usr/local/bin/odd/mpicc " ac_help="$ac_help Location of special mpirun to use --with-mpi-run=MPIRUN The full path to mpirun if not in normal mpi bin/ dir. --with-mpi-run=/usr/local/bin/odd-mpirun Also used to specify mpiexec or other batch launches" ac_help="$ac_help Location of special mpirun to use --with-mpi-prerun=MPIPRERUN The full path to prep script to launch before mpirun. --with-mpi-prerun=/usr/local/bin/start-parallel Used to specify mpd or other user-daemon launches" ac_help="$ac_help == The following mpi switches override miscellaneous folklore used == when trying to build an mpi program without using the compiler == wrappers mpicc/mpiCC. Sometimes wrapper-avoidance is necessary == for complicated, multi-language driver linkage or for working == around broken compiler wrappers. Libraries for linking mpi statically --with-mpi-lib-static=MPI_STATIC_LIBS The full paths of libraries needed, e.g. --with-mpi-lib-static='/lib/libmpi.a /lib/libpmpi.a' " ac_help="$ac_help Libraries for linking mpi dynamically --with-mpi-lib-dynamic=MPI_SO_LIBS The full paths of libraries needed, e.g. --with-mpi-lib-dynamic='/lib/libmpi.so /lib/libpmpi.so' or something like '-L/usr/local/mpi/lib/solaris/ch_p4 -lmpi -L/opt/SUNWspro/SC4.2/lib /usr/local/lib/liblapack.a /usr/local/lib/libblas.a -lnsl -lsocket -lM77 -lF77 -lsunmath' " ac_help="$ac_help LD_FLAGS for linking mpi dynamically, other than the libraries --with-mpi-ldflags-dynamic=MPI_SO_LDFLAGS The flags to appear in the link line well before libraries. " ac_help="$ac_help LD_FLAGS for linking mpi statically, other than the libraries --with-mpi-ldflags-static=MPI_STATIC_LDFLAGS The flags to appear in the link line well before libraries. " ac_help="$ac_help Additional CFLAGS for compiling C with mpi.h but no mpicc wrapper. --with-mpi-cflags=MPI_CFLAGS " ac_help="$ac_help Additional FFLAGS for compiling FORTRAN without mpif* --with-mpi-fflags=MPI_FFLAGS " ac_help="$ac_help Additional CXXFLAGS for compiling C++ with mpi but no mpiCC wrapper. --with-mpi-cxxflags=MPI_CXXFLAGS === end of mpi-related switches. ===" ac_help="$ac_help --with-blas=BLASLIB The full path to the blas library." ac_help="$ac_help --with-xml2-config=XML2-CONFIG The full path to the xml2-config script that come with libxml2, or no." ac_help="$ac_help --with-xml2-includes='-I/path/to/libxml2/headers' that come with libxml2." ac_help="$ac_help --with-xml2-libs='-L/path/to/libxml2/lib -lxml2 -lz' or --with-xml2-libs='/path/to/lib/libxml2.la' " ac_help="$ac_help Location of doxygen: --with-doxygen=EXECUTABLE The location of the doxygen binary. Give the full path: --with-doxygen='/share/bizarre/bin/doxygen' " ac_help="$ac_help Location of dot: --with-dot=path to executable The directory location of the dot binary. Give the full path: --with-dot='/share/bizarre/bin' " ac_help="$ac_help --with-lapack=LAPACKLIB The full path to the lapack library." ac_help="$ac_help --with-boost=BOOST_ROOT The full path to the BOOST install dir." ac_help="$ac_help Probing for GNU readline: --without-readline will disable probing for GNU readline." ac_help="$ac_help --enable-shared build and link with shared libraries [--enable-shared]" ac_help="$ac_help --enable-64bit enable 64bit support (where applicable)" ac_help="$ac_help --enable-64bit-vis enable 64bit Sparc VIS support" ac_help="$ac_help --disable-load disallow dynamic loading and "load" command" ac_help="$ac_help --enable-symbols build with debugging symbols [--disable-symbols]" ac_help="$ac_help --enable-single Should ccafe-single be mpi-free in an mpi environment?" ac_help="$ac_help --enable-makedebug Should make-related debugging info be printed/filed?" ac_help="$ac_help --enable-showlibtool Should libtool invocations be printed?" ac_help="$ac_help --enable-showcompile Should compiler invocations be printed?" ac_help="$ac_help --enable-spew Should framework-spew for debugging be enabled? (Probably not, there's a lot of it.)" ac_help="$ac_help --enable-developer Should make depend and other developer builds be done?" # Initialize some variables set by options. # The variables have the same names as the options, with # dashes changed to underlines. build=NONE cache_file=./config.cache exec_prefix=NONE host=NONE no_create= nonopt=NONE no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= target=NONE verbose= x_includes=NONE x_libraries=NONE bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datadir='${prefix}/share' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' libdir='${exec_prefix}/lib' includedir='${prefix}/include' oldincludedir='/usr/include' infodir='${prefix}/info' mandir='${prefix}/man' # Initialize some other variables. subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Maximum number of lines to put in a shell here document. ac_max_here_lines=12 ac_prev= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval "$ac_prev=\$ac_option" ac_prev= continue fi case "$ac_option" in -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) ac_optarg= ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case "$ac_option" in -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir="$ac_optarg" ;; -build | --build | --buil | --bui | --bu) ac_prev=build ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build="$ac_optarg" ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file="$ac_optarg" ;; -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | --da=*) datadir="$ac_optarg" ;; -disable-* | --disable-*) ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } fi ac_feature=`echo $ac_feature| sed 's/-/_/g'` eval "enable_${ac_feature}=no" ;; -enable-* | --enable-*) ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } fi ac_feature=`echo $ac_feature| sed 's/-/_/g'` case "$ac_option" in *=*) ;; *) ac_optarg=yes ;; esac eval "enable_${ac_feature}='$ac_optarg'" ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix="$ac_optarg" ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he) # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat << EOF Usage: configure [options] [host] Options: [defaults in brackets after descriptions] Configuration: --cache-file=FILE cache test results in FILE --help print this message --no-create do not create output files --quiet, --silent do not print \`checking...' messages --version print the version of autoconf that created configure Directory and file names: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [same as prefix] --bindir=DIR user executables in DIR [EPREFIX/bin] --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] --libexecdir=DIR program executables in DIR [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data in DIR [PREFIX/share] --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data in DIR [PREFIX/com] --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] --libdir=DIR object code libraries in DIR [EPREFIX/lib] --includedir=DIR C header files in DIR [PREFIX/include] --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] --infodir=DIR info documentation in DIR [PREFIX/info] --mandir=DIR man documentation in DIR [PREFIX/man] --srcdir=DIR find the sources in DIR [configure dir or ..] --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names EOF cat << EOF Host type: --build=BUILD configure for building on BUILD [BUILD=HOST] --host=HOST configure for HOST [guessed] --target=TARGET configure for TARGET [TARGET=HOST] Features and packages: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR EOF if test -n "$ac_help"; then echo "--enable and --with options recognized:$ac_help" fi exit 0 ;; -host | --host | --hos | --ho) ac_prev=host ;; -host=* | --host=* | --hos=* | --ho=*) host="$ac_optarg" ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir="$ac_optarg" ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir="$ac_optarg" ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir="$ac_optarg" ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir="$ac_optarg" ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst \ | --locals | --local | --loca | --loc | --lo) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) localstatedir="$ac_optarg" ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir="$ac_optarg" ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir="$ac_optarg" ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix="$ac_optarg" ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix="$ac_optarg" ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix="$ac_optarg" ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name="$ac_optarg" ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir="$ac_optarg" ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir="$ac_optarg" ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site="$ac_optarg" ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir="$ac_optarg" ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir="$ac_optarg" ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target="$ac_optarg" ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers) echo "configure generated by autoconf version 2.13" exit 0 ;; -with-* | --with-*) ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } fi ac_package=`echo $ac_package| sed 's/-/_/g'` case "$ac_option" in *=*) ;; *) ac_optarg=yes ;; esac eval "with_${ac_package}='$ac_optarg'" ;; -without-* | --without-*) ac_package=`echo $ac_option|sed -e 's/-*without-//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } fi ac_package=`echo $ac_package| sed 's/-/_/g'` eval "with_${ac_package}=no" ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes="$ac_optarg" ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries="$ac_optarg" ;; -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } ;; *) if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then echo "configure: warning: $ac_option: invalid host type" 1>&2 fi if test "x$nonopt" != xNONE; then { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } fi nonopt="$ac_option" ;; esac done if test -n "$ac_prev"; then { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } fi trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 # File descriptor usage: # 0 standard input # 1 file creation # 2 errors and warnings # 3 some systems may open it to /dev/tty # 4 used on the Kubota Titan # 6 checking for... messages and results # 5 compiler messages saved in config.log if test "$silent" = yes; then exec 6>/dev/null else exec 6>&1 fi exec 5>./config.log echo "\ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. " 1>&5 # Strip out --no-create and --no-recursion so they do not pile up. # Also quote any args containing shell metacharacters. ac_configure_args= for ac_arg do case "$ac_arg" in -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c) ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; *) ac_configure_args="$ac_configure_args $ac_arg" ;; esac done # NLS nuisances. # Only set these to C if already set. These must not be set unconditionally # because not all systems understand e.g. LANG=C (notably SCO). # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! # Non-C LC_CTYPE values break the ctype check. if test "${LANG+set}" = set; then LANG=C; export LANG; fi if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -rf conftest* confdefs.h # AIX cpp loses on an empty file, so make sure it contains at least a newline. echo > confdefs.h # A filename unique to this package, relative to the directory that # configure is in, which we can look for to find out if srcdir is correct. ac_unique_file=cxx/dc/user_iface/CmdLineCommonInternal.h # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then its parent. ac_prog=$0 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. srcdir=$ac_confdir if test ! -r $srcdir/$ac_unique_file; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r $srcdir/$ac_unique_file; then if test "$ac_srcdir_defaulted" = yes; then { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } else { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } fi 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" fi fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then echo "loading site script $ac_site_file" . "$ac_site_file" fi done ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross ac_exeext= ac_objext=o if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ac_n= ac_c=' ' ac_t=' ' else ac_n=-n ac_c= ac_t= fi else ac_n= ac_c='\c' ac_t= fi # record the args to configure in a var if test -z "CONFIG_ARGS" ; then { echo "configure: error: Ccafe_config_args macro requires a variable name." 1>&2; exit 1; } fi CONFIG_ARGS=$* # load a portable pushd # this is a bit of ugly bourne shell code to emulate pushd/popd up to # depth 20. # if 1, print debugging info CCAFE_DIRSTACK_DEBUG=0 # make noise like bash CCAFE_DIRSTACK_VERBOSE=0 # where in the stack we presently are CCAFE_DIRSTACK_DEPTH=0 # the old directory pushed on the stack CCAFE_DIRSTACK_1= CCAFE_DIRSTACK_2= CCAFE_DIRSTACK_3= CCAFE_DIRSTACK_4= CCAFE_DIRSTACK_5= CCAFE_DIRSTACK_6= CCAFE_DIRSTACK_7= CCAFE_DIRSTACK_8= CCAFE_DIRSTACK_9= CCAFE_DIRSTACK_10= CCAFE_DIRSTACK_11= CCAFE_DIRSTACK_12= CCAFE_DIRSTACK_13= CCAFE_DIRSTACK_14= CCAFE_DIRSTACK_15= CCAFE_DIRSTACK_16= CCAFE_DIRSTACK_17= CCAFE_DIRSTACK_18= CCAFE_DIRSTACK_19= CCAFE_DIRSTACK_20= export CCAFE_DIRSTACK_DEBUG export CCAFE_DIRSTACK_DEPTH export CCAFE_DIRSTACK_VERBOSE export CCAFE_DIRSTACK_1 export CCAFE_DIRSTACK_2 export CCAFE_DIRSTACK_3 export CCAFE_DIRSTACK_4 export CCAFE_DIRSTACK_5 export CCAFE_DIRSTACK_6 export CCAFE_DIRSTACK_7 export CCAFE_DIRSTACK_8 export CCAFE_DIRSTACK_9 export CCAFE_DIRSTACK_10 export CCAFE_DIRSTACK_11 export CCAFE_DIRSTACK_12 export CCAFE_DIRSTACK_13 export CCAFE_DIRSTACK_14 export CCAFE_DIRSTACK_15 export CCAFE_DIRSTACK_16 export CCAFE_DIRSTACK_17 export CCAFE_DIRSTACK_18 export CCAFE_DIRSTACK_19 export CCAFE_DIRSTACK_20 function printdirstack() { if test $CCAFE_DIRSTACK_DEPTH -ge 20 ; then echo -n "$CCAFE_DIRSTACK_20 " fi if test $CCAFE_DIRSTACK_DEPTH -ge 19 ; then echo -n "$CCAFE_DIRSTACK_19 " fi if test $CCAFE_DIRSTACK_DEPTH -ge 18 ; then echo -n "$CCAFE_DIRSTACK_18 " fi if test $CCAFE_DIRSTACK_DEPTH -ge 17 ; then echo -n "$CCAFE_DIRSTACK_17 " fi if test $CCAFE_DIRSTACK_DEPTH -ge 16 ; then echo -n "$CCAFE_DIRSTACK_16 " fi if test $CCAFE_DIRSTACK_DEPTH -ge 15 ; then echo -n "$CCAFE_DIRSTACK_15 " fi if test $CCAFE_DIRSTACK_DEPTH -ge 14 ; then echo -n "$CCAFE_DIRSTACK_14 " fi if test $CCAFE_DIRSTACK_DEPTH -ge 13 ; then echo -n "$CCAFE_DIRSTACK_13 " fi if test $CCAFE_DIRSTACK_DEPTH -ge 12 ; then echo -n "$CCAFE_DIRSTACK_12 " fi if test $CCAFE_DIRSTACK_DEPTH -ge 11 ; then echo -n "$CCAFE_DIRSTACK_11 " fi if test $CCAFE_DIRSTACK_DEPTH -ge 10 ; then echo -n "$CCAFE_DIRSTACK_10 " fi if test $CCAFE_DIRSTACK_DEPTH -ge 9 ; then echo -n "$CCAFE_DIRSTACK_9 " fi if test $CCAFE_DIRSTACK_DEPTH -ge 8 ; then echo -n "$CCAFE_DIRSTACK_8 " fi if test $CCAFE_DIRSTACK_DEPTH -ge 7 ; then echo -n "$CCAFE_DIRSTACK_7 " fi if test $CCAFE_DIRSTACK_DEPTH -ge 6 ; then echo -n "$CCAFE_DIRSTACK_6 " fi if test $CCAFE_DIRSTACK_DEPTH -ge 5 ; then echo -n "$CCAFE_DIRSTACK_5 " fi if test $CCAFE_DIRSTACK_DEPTH -ge 4 ; then echo -n "$CCAFE_DIRSTACK_4 " fi if test $CCAFE_DIRSTACK_DEPTH -ge 3 ; then echo -n "$CCAFE_DIRSTACK_3 " fi if test $CCAFE_DIRSTACK_DEPTH -ge 2 ; then echo -n "$CCAFE_DIRSTACK_2 " fi if test $CCAFE_DIRSTACK_DEPTH -ge 1 ; then echo -n "$CCAFE_DIRSTACK_1 " fi if ! test "x$CCAFE_DIRSTACK_DEPTH" = "x0"; then echo "" fi return 0 } function pushd() { if test $# -ne 1 ; then echo "pushd: only one directory argument allowed." 1>&2 return 1; fi if ! test -d ; then echo "pushd: argument given is not a directory." 1>&2 return 2; fi CCAFE_DIRSTACK_DEPTH=`expr $CCAFE_DIRSTACK_DEPTH + 1` ccafe_olddir=`pwd` cd case $CCAFE_DIRSTACK_DEPTH in 1) CCAFE_DIRSTACK_1=$ccafe_olddir ;; 2) CCAFE_DIRSTACK_2=$ccafe_olddir ;; 3) CCAFE_DIRSTACK_3=$ccafe_olddir ;; 4) CCAFE_DIRSTACK_4=$ccafe_olddir ;; 5) CCAFE_DIRSTACK_5=$ccafe_olddir ;; 6) CCAFE_DIRSTACK_6=$ccafe_olddir ;; 7) CCAFE_DIRSTACK_7=$ccafe_olddir ;; 8) CCAFE_DIRSTACK_8=$ccafe_olddir ;; 9) CCAFE_DIRSTACK_9=$ccafe_olddir ;; 10) CCAFE_DIRSTACK_10=$ccafe_olddir ;; 11) CCAFE_DIRSTACK_11=$ccafe_olddir ;; 12) CCAFE_DIRSTACK_12=$ccafe_olddir ;; 13) CCAFE_DIRSTACK_13=$ccafe_olddir ;; 14) CCAFE_DIRSTACK_14=$ccafe_olddir ;; 15) CCAFE_DIRSTACK_15=$ccafe_olddir ;; 16) CCAFE_DIRSTACK_16=$ccafe_olddir ;; 17) CCAFE_DIRSTACK_17=$ccafe_olddir ;; 18) CCAFE_DIRSTACK_18=$ccafe_olddir ;; 19) CCAFE_DIRSTACK_19=$ccafe_olddir ;; 20) CCAFE_DIRSTACK_20=$ccafe_olddir ;; *) echo "pushd: max stackdepth exceeded." 1>&2 CCAFE_DIRSTACK_DEPTH=20 cd $ccafe_olddir return ;; esac if test "x$CCAFE_DIRSTACK_DEBUG" = "x1" ; then echo "$CCAFE_DIRSTACK_DEPTH" 1>&2 fi if test "x$CCAFE_DIRSTACK_VERBOSE" = "x1" ; then printdirstack fi } function popd() { if test "x$CCAFE_DIRSTACK_DEPTH" = "x0"; then echo "popd: directory stack is empty." 1>&2 return 0; fi case $CCAFE_DIRSTACK_DEPTH in 1) cd $CCAFE_DIRSTACK_1 CCAFE_DIRSTACK_1="" ;; 2) cd $CCAFE_DIRSTACK_2 CCAFE_DIRSTACK_2="" ;; 3) cd $CCAFE_DIRSTACK_3 CCAFE_DIRSTACK_3="" ;; 4) cd $CCAFE_DIRSTACK_4 CCAFE_DIRSTACK_4="" ;; 5) cd $CCAFE_DIRSTACK_5 CCAFE_DIRSTACK_5="" ;; 6) cd $CCAFE_DIRSTACK_6 CCAFE_DIRSTACK_6="" ;; 7) cd $CCAFE_DIRSTACK_7 CCAFE_DIRSTACK_7="" ;; 8) cd $CCAFE_DIRSTACK_8 CCAFE_DIRSTACK_8="" ;; 9) cd $CCAFE_DIRSTACK_9 CCAFE_DIRSTACK_9="" ;; 10) cd $CCAFE_DIRSTACK_10 CCAFE_DIRSTACK_10="" ;; 11) cd $CCAFE_DIRSTACK_11 CCAFE_DIRSTACK_11="" ;; 12) cd $CCAFE_DIRSTACK_12 CCAFE_DIRSTACK_12="" ;; 13) cd $CCAFE_DIRSTACK_13 CCAFE_DIRSTACK_13="" ;; 14) cd $CCAFE_DIRSTACK_14 CCAFE_DIRSTACK_14="" ;; 15) cd $CCAFE_DIRSTACK_15 CCAFE_DIRSTACK_15="" ;; 16) cd $CCAFE_DIRSTACK_16 CCAFE_DIRSTACK_16="" ;; 17) cd $CCAFE_DIRSTACK_17 CCAFE_DIRSTACK_17="" ;; 18) cd $CCAFE_DIRSTACK_18 CCAFE_DIRSTACK_=18"" ;; 19) cd $CCAFE_DIRSTACK_19 CCAFE_DIRSTACK_19="" ;; 20) cd $CCAFE_DIRSTACK_20 CCAFE_DIRSTACK_20="" ;; *) echo "popd: max stackdepth exceeded at $CCAFE_DIRSTACK_DEPTH." 1>&2 return 1 ;; esac CCAFE_DIRSTACK_DEPTH=`expr $CCAFE_DIRSTACK_DEPTH - 1` return 0; } #------------------------------------------------------------------------------ # whine about deprecated switches early #------------------------------------------------------------------------------ # trap old --with-babel configurations # Check whether --with-babel or --without-babel was given. if test "${with_babel+set}" = set; then withval="$with_babel" : else with_babel=no fi case "$with_babel" in no) ;; *) { echo "configure: error: --with-babel is OBSOLETE. You must specify --with-csb-config=prefix_spec/bin/cca-spec-babel-config-version or --with-cca-babel=prefix_spec or --with-cca-babel=no " 1>&2; exit 1; } ;; esac # trap old --with-cca configurations #------------------------------------------------------------------------------ # CCA_ROOT: deprecated, the value now reverts to CLASSIC_CCA_ROOT #------------------------------------------------------------------------------ # Check whether --with-cca or --without-cca was given. if test "${with_cca+set}" = set; then withval="$with_cca" : else with_cca=no fi case "$with_cca" in no) ;; *) { echo "configure: error: --with-cca is OBSOLETE. You must specify --with-cca-classic and/or --with-cca-babel. " 1>&2; exit 1; } ;; esac # --------- # issue reminders about env vars which make make our life bad # if abused. # --------- echo "Checking for environment variables that may affect the configure/make:" dccafe_var_checks=`cat varlist.in | grep '=' | sed 's/=.*//' | grep -v ^#` for dccafe_var_line in $dccafe_var_checks ; do dccafe_var_name=`echo $dccafe_var_line | sed 's/ , //'` if test "$dccafe_var_name" = "SHELL" ; then continue; # ignore SHELL. fi if test -z "$dccafe_var_name"; then echo "$ac_t""CCAFE env_check called with empty VAR argument" 1>&6 else # build a line which echos the name in $dccafe_var_name # get the value of that var cec_var_eval="echo $"`echo $dccafe_var_name` cec_var_val=`eval $cec_var_eval` if test -z "$cec_var_val" ; then # either its there, not there or 0 len # 0 len may be meaningful so we need to distinguish. # at this point we don't need to worry about overwriting its value # temporarily since it's at most empty. cec_empty_eval="echo \${"`echo $dccafe_var_name`"-cec_not_there}" cec_empty_test=`eval $cec_empty_eval` if test "X$cec_empty_test" = "Xcec_not_there" ; then cec_there=0 else cec_there=1 fi else cec_there=1 fi cec_yes=yes cec_no=no cec_yes="predefined. Hope it is correct. " cec_no="no. OK." if test $cec_there -eq 1 ; then echo $ac_n "checking environment for $dccafe_var_name""... $ac_c" 1>&6 echo "configure:1211: checking environment for $dccafe_var_name" >&5 echo "$ac_t""$cec_yes" 1>&6 fi fi done echo "Done checking for environment variables." # Source: /cvs/ccaffeine/repository/dccafe/configure.in,v 1.130 2005/05/10 22:24:09 baallan Exp $ # created: Ben Allan 5/2000, Sandia national laboratories/California. # # We have a lot to configure for if we were doing a purely static build, namely: # - where we are. # - AWK, LN, MAKE, RANLIB (required) # - CC, CPP, CXX, CXXCPP (required) # - F77, F90, LEX, YACC (optional) # - CCA spec babel (required) # - MPI (optional) # - BLAS/LAPACK # - GMAKE (still required for older OS not having 'include' statements) # - TCLSH (optional) # - Dynamic Loading (not optional) # - non-blocking io # - purify (optional) # - parasoft (optional) # - siloon (optional python scripting) #------------------------------------------------------------------------------ # Directory where we keep the autoconf stuff and some HPC environment folklore. # # Some folklore is keyed to hostname, which is probably a very bad # idea in the long run, but provides examples for frustrated alpha users. # Most of it is keyed to the answers supplied by AC_CANONICAL_SYSTEM. # # We wish MPICH was adapted to use autoconf 2.x so we could steal # conveniently everything they deduce about fortran, mpi, threads, # etc in their configure scripts and extend it to our compilers. #------------------------------------------------------------------------------ ac_aux_dir= for ac_dir in config $srcdir/config; 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 config $srcdir/config" 1>&2; exit 1; } fi 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 CCA_BUNDLE_RELEASE""... $ac_c" 1>&6 echo "configure:1271: checking CCA_BUNDLE_RELEASE" >&5 CCA_BUNDLE_VERSION=developer cbr_searchpath=":$ac_aux_dir:$srcdir:." cbr_paths=`echo $cbr_searchpath|tr ":" " "` for rdir in $cbr_paths ; do if test -d $rdir; then f=$rdir/CCA_BUNDLE_RELEASE if test -f $f ; then CCA_BUNDLE_VERSION=`cat $f | sed q` for rword in $CCA_BUNDLE_VERSION ; do CCA_BUNDLE_VERSION=$rword break done break fi f=$rdir/RELEASE if test -f $f ; then CCA_BUNDLE_VERSION=`cat $f | sed q` for rword in $CCA_BUNDLE_VERSION ; do CCA_BUNDLE_VERSION=$rword break done break fi fi done echo "$ac_t"" $CCA_BUNDLE_VERSION" 1>&6 #------------------------------------------------------------------------------ # Check for host type early so that host specific things can be done. #------------------------------------------------------------------------------ # Make sure we can run config.sub. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 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:1312: checking host system type" >&5 host_alias=$host case "$host_alias" in NONE) case $nonopt in NONE) if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } fi ;; *) host_alias=$nonopt ;; esac ;; esac host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$host" 1>&6 target_os=unknown OS_ARCH=OS_UNKNOWN case "$host" in *powerpc-apple-darwin*) OS_ARCH=MACOSX ;; *powerpc-apple-Darwin*) OS_ARCH=MACOSX ;; esac # the next macro recomputes target_os anyway. # Do some error checking and defaulting for the host and target type. # The inputs are: # configure --host=HOST --target=TARGET --build=BUILD NONOPT # # The rules are: # 1. You are not allowed to specify --host, --target, and nonopt at the # same time. # 2. Host defaults to nonopt. # 3. If nonopt is not specified, then host defaults to the current host, # as determined by config.guess. # 4. Target and build default to nonopt. # 5. If nonopt is not specified, then target and build default to host. # The aliases save the names the user supplied, while $host etc. # will get canonicalized. case $host---$target---$nonopt in NONE---*---* | *---NONE---* | *---*---NONE) ;; *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; esac # Make sure we can run config.sub. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 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:1374: checking host system type" >&5 host_alias=$host case "$host_alias" in NONE) case $nonopt in NONE) if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } fi ;; *) host_alias=$nonopt ;; esac ;; esac host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$host" 1>&6 echo $ac_n "checking target system type""... $ac_c" 1>&6 echo "configure:1395: checking target system type" >&5 target_alias=$target case "$target_alias" in NONE) case $nonopt in NONE) target_alias=$host_alias ;; *) target_alias=$nonopt ;; esac ;; esac target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$target" 1>&6 echo $ac_n "checking build system type""... $ac_c" 1>&6 echo "configure:1413: checking build system type" >&5 build_alias=$build case "$build_alias" in NONE) case $nonopt in NONE) build_alias=$host_alias ;; *) build_alias=$nonopt ;; esac ;; esac build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$build" 1>&6 test "$host_alias" != "$target_alias" && test "$program_prefix$program_suffix$program_transform_name" = \ NONENONEs,x,x, && program_prefix=${target_alias}- case "$target_os" in *arwin*) OS_ARCH=OS_MACOSX ;; *linux*) OS_ARCH=OS_LINUX ;; *Linux*) OS_ARCH=OS_LINUX ;; *LINUX*) OS_ARCH=OS_LINUX ;; *aix*) OS_ARCH=OS_AIX ;; *irix*) OS_ARCH=OS_IRIX ;; *olaris*) OS_ARCH=OS_SUNOS5 ;; esac if test "$program_transform_name" = s,x,x,; then program_transform_name= else # Double any \ or $. echo might interpret backslashes. cat <<\EOF_SED > conftestsed s,\\,\\\\,g; s,\$,$$,g EOF_SED program_transform_name="`echo $program_transform_name|sed -f conftestsed`" rm -f conftestsed fi test "$program_prefix" != NONE && program_transform_name="s,^,${program_prefix},; $program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" # sed with no file args requires a program. test "$program_transform_name" = "" && program_transform_name="s,x,x," #------------------------------------------------------------------------------ # End host type configuration. #------------------------------------------------------------------------------ CCAFE_MAJOR_VERSION=0 CCAFE_MINOR_VERSION=5 CCAFE_PATCH_LEVEL=7 CCAFE_VERSION=$CCAFE_MAJOR_VERSION.$CCAFE_MINOR_VERSION.$CCAFE_PATCH_LEVEL CCAFE_VERSION_UNDERBAR=${CCAFE_MAJOR_VERSION}_${CCAFE_MINOR_VERSION}_${CCAFE_PATCH_LEVEL} VERSION=${CCAFE_VERSION} PKG_NAME=ccafe-$VERSION VER_SUFFIX=_$CCAFE_VERSION_UNDERBAR if test "x$program_suffix" != "xNONE" ; then PROGRAM_SUFFIX=$program_suffix fi if test "${exec_prefix}" = "NONE" -a "${prefix}" != "NONE"; then exec_prefix=$prefix fi if test "${prefix}" = "NONE"; then prefix=`pwd` fi if test "${exec_prefix}" = "NONE"; then exec_prefix=`pwd` fi if test -z "$prefix" ; then { echo "configure: error: Ccafe_ac_prefix macro requires a default path." 1>&2; exit 1; } fi if test -z "$prefix" -o "$prefix" = "NONE"; then prefix=$prefix; fi if test -z "$datadir" -o "$datadir" = "NONE/share" -o "$datadir" = '${prefix}/share' ; then datadir="$prefix/share"; fi if test -z "$sysconfdir" -o "$sysconfdir" = "NONE/etc" -o "$sysconfdir" = '${prefix}/etc' ; then sysconfdir="$prefix/etc"; fi if test -z "$sharedstatedir" -o "$sharedstatedir" = "NONE/com" -o "$sharedstatedir" = '${prefix}/com' ; then sharedstatedir="$prefix/com"; fi if test -z "$localstatedir" -o "$localstatedir" = "NONE/var" -o "$localstatedir" = '${prefix}/var' ; then localstatedir="$prefix/var"; fi if test -z "$includedir" -o "$includedir" = "NONE/include" -o "$includedir" = '${prefix}/include' ; then includedir="$prefix/include"; fi if test -z "$infodir" -o "$infodir" = "NONE/info" -o "$infodir" = '${prefix}/info' ; then infodir="$prefix/info"; fi if test -z "$mandir" -o "$mandir" = "NONE/man" -o "$mandir" = '${prefix}/man' ; then mandir="$prefix/man"; fi if test -z "$exec_prefix" ; then { echo "configure: error: Ccafe_ac_exec_prefix macro requires a default path." 1>&2; exit 1; } fi if test -z "$exec_prefix" -o "$exec_prefix" = "NONE"; then exec_prefix=$exec_prefix; fi if test -z "$bindir" -o "$bindir" = "NONE/bin" -o "$bindir" = '${exec_prefix}/bin' ; then bindir="$exec_prefix/bin"; fi if test -z "$sbindir" -o "$sbindir" = "NONE/sbin" -o "$sbindir" = '${exec_prefix}/sbin'; then sbindir="$exec_prefix/sbin"; fi if test -z "$libexecdir" -o "$libexecdir" = "NONE/libexec" -o "$libexecdir" = '${exec_prefix}/libexec' ; then libexecdir="$exec_prefix/libexec"; fi if test -z "$libdir" -o "$libdir" = "NONE/lib" -o "$libdir" = '${exec_prefix}/lib' ; then libdir="$exec_prefix/lib"; fi pkgdatadir=$datadir/$PKG_NAME pkgdocdir=$datadir/doc/$PKG_NAME pkglibdir=$libdir/$PKG_NAME pkgincludedir=$includedir/$PKG_NAME HAVE_BABEL=0 HAVE_CLASSIC=0 HAVE_NEO=0 # source tree vars CCAFE_ROOT=`pwd` CCAFE_CXX_ROOT="$CCAFE_ROOT/cxx" # The next two lines entirely quoted to keep autoconf/m4 # from messing with the [] in the regex. CCAFE_PARENT=`echo $CCAFE_ROOT | sed 's%[^/][^/]*$%%' | sed 's%\/$%%'` CCAFE_ANCESTOR=`echo $CCAFE_PARENT | sed 's%[^/][^/]*$%%' | sed 's%\/$%%'` CCAFE_GRANDPARENT=$CCAFE_ANCESTOR CCAFE_GREATGRANDPARENT=`echo $CCAFE_GRANDPARENT | sed 's%[^/][^/]*$%%' | sed 's%\/$%%'` # install tree vars CCAFE_INSTALL_ROOT=$prefix CSB=cca-spec-babel CCASPEC_BABEL_VERSION=NONE cca_babel_dirs="$prefix/$CSB:$CCATUT_HOME/$CSB:$TOP/$CSB:$CCAFE_PARENT/$CSB:$CCAFE_GRANDPARENT/$CSB:$CCAFE_GREATGRANDPARENT/$CSB:$CCAFE_ANCESTOR/$CSB:$HOME/$CSB:$HOME/cca/$CSB:/home/alice/CCA/$CSB:/usr/local/$CSB" cca_babel_install_dirs="$prefix:$CCATUT_HOME:$TOP:$CCAFE_PARENT:$CCAFE_GRANDPARENT:$CCAFE_GREATGRANDPARENT:$CCAFE_ANCESTOR:$HOME:$HOME/cca:/home/alice/CCA:/usr/local" #------------------------------------------------------------------------------ # BABEL_ROOT/BABEL_CCA_ROOT: See if the user gave us the location of cca-spec-babel # We have to do this one first, because it tells us where babel itself # is (that the spec was built with) and because babel limits which compilers # we can use. If we don't have cca-spec-babel, we don't have babel period. # If we let the user specify babel separately, we will get impenetrable bug # reports when they have an old cca-spec-babel (w/old babel) and a new # dccafe built with a new babel. # CCAFE_CHECK_CCA_SPEC_BABEL must default to yes if unspecified # in order for this logic below to be correct. #------------------------------------------------------------------------------ ccaspec_lastwarn="Babel CCA spec location indeterminate. Use --with-csb-config=/where/is/cca-spec-babel-config if wanted, or use --with-cca-babel=no if not wanted." # Check whether --with-csb-config or --without-csb-config was given. if test "${with_csb_config+set}" = set; then withval="$with_csb_config" : else with_csb_config=no fi case "$with_csb_config" in no) ;; yes) with_csb_config="no" { echo "configure: error: --with-csb-config must be given the path of the script." 1>&2; exit 1; } ;; *) if test -d $with_csb_config ; then { echo "configure: error: --with-csb-config must be given the path of the script, not a directory." 1>&2; exit 1; } fi if ! test -x $with_csb_config ; then { echo "configure: error: --with-csb-config=$with_csb_config: $with_csb_config not executable" 1>&2; exit 1; } fi CCA_PATH_TO_CONFIG=$with_csb_config ;; esac if test "x$cca_spec_babel_macro_seen" != "x" ; then { echo "configure: error: Cannot use macros Cca_spec_babel_config, Ccafe_check_cca_spec_babel in the same configure script." 1>&2; exit 1; } fi cca_spec_babel_macro_seen=cca_spec_babel_macro_seen CCAFE_CSB_TEST="" CCAFE_CSB="" # Check whether --with-cca-babel or --without-cca-babel was given. if test "${with_cca_babel+set}" = set; then withval="$with_cca_babel" : else with_cca_babel=yes fi case "$with_cca_babel" in no) CCAFE_CSB="no" echo "configure: warning: Babel CCA spec option disabled. Use --with-cca-babel=/where/is/cca-spec-babel/installed if wanted." 1>&2 ;; yes) # User didn't give the option or didn't give useful # information, search for it ourselves with_cca_babel="yes" CCAFE_CSB="yes" echo $ac_n "checking cca-spec-babel""... $ac_c" 1>&6 echo "configure:1660: checking cca-spec-babel" >&5 ;; *) CCAFE_CSB="$with_cca_babel" echo $ac_n "checking cca-spec-babel""... $ac_c" 1>&6 echo "configure:1665: checking cca-spec-babel" >&5 ;; esac CCAFE_CSB_TEST="$CCAFE_CSB" CCAFE_CSB_CONFIG_TEST="no" if test "$CCAFE_CSB" != "no"; then CCAFE_CSB_TEST="" p2cv_var="CCAFE_CSB_TEST" p2cv_binvar="CCAFE_CSB_CONFIG_TEST" p2cv_path="$with_cca_babel:$cca_babel_install_dirs:$cca_babel_dirs" p2cv_testFile="bin/cca-spec-babel-config" p2cv_config="no" p2cv_ok=no if test "x$CCA_PATH_TO_CONFIG" != "x" ; then if test -x $CCA_PATH_TO_CONFIG ; then p2cv_config=$CCA_PATH_TO_CONFIG p2cv_path=`$CCA_PATH_TO_CONFIG --var CCASPEC_INSTALL_DIR` p2cv_result=$p2cv_path CCAFE_CSB_TEST=$p2cv_result CCAFE_CSB_CONFIG_TEST=$p2cv_config p2cv_ok=yes if test -n 'CCAFE_CSB="$CCAFE_CSB_TEST" CCAFE_CSB_CONFIG="$CCAFE_CSB_CONFIG_TEST" ' ; then # if found CCAFE_CSB="$CCAFE_CSB_TEST" CCAFE_CSB_CONFIG="$CCAFE_CSB_CONFIG_TEST" fi else echo "configure: warning: Ignoring env CCA_PATH_TO_CONFIG pointing to non-executable $CCA_PATH_TO_CONFIG." 1>&2 fi fi if test "$p2cv_ok" = "no" ; then p2cv_tmpfile=`pwd`/.p2cv_tmpfile # for path elements # if ! element/testfile exists, res=search # for file-* w/ver number, try highest number # and work down. ver must end in a digit p2cv_result=_searching p2cv_paths=`echo $p2cv_path|tr ":" " "` for chome in $p2cv_paths ; do if test -x $chome/$p2cv_testFile ; then p2cv_result=$chome p2cv_config=$chome/$p2cv_testFile CCAFE_CSB_TEST=$p2cv_result CCAFE_CSB_CONFIG_TEST=$p2cv_config if test -n 'CCAFE_CSB="$CCAFE_CSB_TEST" CCAFE_CSB_CONFIG="$CCAFE_CSB_CONFIG_TEST" ' ; then # if found CCAFE_CSB="$CCAFE_CSB_TEST" CCAFE_CSB_CONFIG="$CCAFE_CSB_CONFIG_TEST" fi break fi if test -d $chome ; then pushd $chome > /dev/null flist="${p2cv_testFile}-*0-9" popd > /dev/null /bin/rm -f $p2cv_tmpfile for fname in $flist ; do echo $fname >> $p2cv_tmpfile done flist=`cat $p2cv_tmpfile | sort -n -r` /bin/rm -f $p2cv_tmpfile for fname in $flist ; do if test -x $chome/$fname ; then p2cv_result=$chome p2cv_config=$chome/$fname CCAFE_CSB_TEST=$p2cv_result CCAFE_CSB_CONFIG_TEST=$p2cv_config if test -n 'CCAFE_CSB="$CCAFE_CSB_TEST" CCAFE_CSB_CONFIG="$CCAFE_CSB_CONFIG_TEST" ' ; then # if found CCAFE_CSB="$CCAFE_CSB_TEST" CCAFE_CSB_CONFIG="$CCAFE_CSB_CONFIG_TEST" fi break; fi done fi done # not found anywhere if test "$p2cv_result" = _searching ; then p2cv_result=no if test -n 'CCAFE_CSB_TEST="no" CCAFE_CSB="no" CCAFE_CSB_CONFIG_TEST=no CCAFE_CSB_CONFIG=no echo "configure: warning: $ccaspec_lastwarn" 1>&2 ' ; then #if not found CCAFE_CSB_TEST="no" CCAFE_CSB="no" CCAFE_CSB_CONFIG_TEST=no CCAFE_CSB_CONFIG=no echo "configure: warning: $ccaspec_lastwarn" 1>&2 fi fi # end of search for config with ver. fi fi BABEL_CCA_ROOT_INSTALLED="$CCAFE_CSB" BABEL_CCA_INSTALLED_CONFIG="$CCAFE_CSB_CONFIG" if test "x$BABEL_CCA_INSTALLED_CONFIG" = "xno" -o "x$BABEL_CCA_ROOT_INSTALLED" = "xno" ; then echo "$ac_t"" no. Babel/SIDL unavailable or user requested to omit babel." 1>&6 # AC_MSG_RESULT([BABEL_CCA_INSTALLED_CONFIG: $BABEL_CCA_INSTALLED_CONFIG]) # AC_MSG_RESULT([BABEL_CCA_ROOT_INSTALLED: $BABEL_CCA_ROOT_INSTALLED]) echo "$ac_t"" Did not find cca-spec-babel. If it is wanted Please specify it with --with-csb-config. e.g: --with-csb-config=/path/to/bin/cca-spec-babel-config-\$version " 1>&6 HAVE_BABEL=0 BABEL_CCA_INSTALLED=0 else echo "$ac_t""$BABEL_CCA_ROOT_INSTALLED" 1>&6 . `$BABEL_CCA_INSTALLED_CONFIG --var CCASPEC_VARS_SH` HAVE_BABEL=1 BABEL_CCA_INSTALLED=1 BABEL_CCA_CONFIG=`$BABEL_CCA_INSTALLED_CONFIG --var CCASPEC_MAKEINCL` CCAFE_BABEL_JAVA_HOME1=`echo $CCASPEC_BABEL_JAVA | sed 's%/[^/]*$%%'` CCAFE_BABEL_JAVA_HOME=`echo $CCAFE_BABEL_JAVA_HOME1 | sed 's%/bin$%%'` CC=$CCASPEC_BABEL_CC CXX=$CCASPEC_BABEL_CXX F77=$CCASPEC_BABEL_F77 JAR=$CCASPEC_BABEL_JAR JAVA=$CCASPEC_BABEL_JAVA JAVAC=$CCASPEC_BABEL_JAVAC JAVAH=$CCASPEC_BABEL_JAVAH BABEL_PROGRAM=CCASPEC_BABEL_BABEL fi case "$with_cca_babel" in no) ;; yes) ;; *) if test "x$with_cca_babel" != "x$BABEL_CCA_ROOT_INSTALLED" ; then { echo "configure: error: value specified to --with-cca-babel ($with_cca_babel) was insufficient. Found another possibility: ($BABEL_CCA_ROOT_INSTALLED). Rerun configure with a corrected argument." 1>&2; exit 1; } fi ;; esac if test "x$HAVE_BABEL" = "x1" ; then case "$CCASPEC_BABEL_VERSION" in 0.7.*) CCAFFEINE_SIDL_START_0="version gov 0.1; version cca 0.6 ;" CCAFFEINE_SIDL_START_1="version ccaffeine 0.3 ;" CCAFFEINE_SIDL_START_2="package ccaffeine {" CCAFEEG_SIDL_START_0="version ccafe_eg 0.1 ;" CCAFEEG_SIDL_START_1="package ccafe_eg {" CCAFE0_SIDL_START_0="version ccafe0 0.0;" CCAFE0_SIDL_START_1="package ccafe0 {" CCAFE1_SIDL_START_0="version ccafe1 0.1 ;" CCAFE1_SIDL_START_1="package ccafe1 {" CCAFE2_SIDL_START_0="version ccafe2 0.1 ;" CCAFE2_SIDL_START_1="package ccafe2 {" CCAFE3_SIDL_START_0="version ccafe3 0.0;" CCAFE3_SIDL_START_1="package ccafe3 {" CCAFE4_SIDL_START_0="version ccafe4 0.0;" CCAFE4_SIDL_START_1="package ccafe4 {" CCAFE5_SIDL_START_0="version ccafe5 0.0;" CCAFE5_SIDL_START_1="package ccafe5 {" CCAFE6_SIDL_START_0="version ccafe6 0.0;" CCAFE6_SIDL_START_1="package ccafe6 {" ;; *) CCAFFEINE_SIDL_START_0="" CCAFFEINE_SIDL_START_1="" CCAFFEINE_SIDL_START_2="package ccaffeine version 0.3 {" CCAFEEG_SIDL_START_0="" CCAFEEG_SIDL_START_1="package ccafe_eg version 0.1 {" CCAFE0_SIDL_START_0="" CCAFE0_SIDL_START_1="package ccafe0 version 0.0 {" CCAFE1_SIDL_START_0="" CCAFE1_SIDL_START_1="package ccafe1 version 0.1 {" CCAFE2_SIDL_START_0="" CCAFE2_SIDL_START_1="package ccafe2 version 0.1 {" CCAFE3_SIDL_START_0="" CCAFE3_SIDL_START_1="package ccafe3 version 0.0 {" CCAFE4_SIDL_START_0="" CCAFE4_SIDL_START_1="package ccafe4 version 0.0 {" CCAFE5_SIDL_START_0="" CCAFE5_SIDL_START_1="package ccafe5 version 0.0 {" CCAFE6_SIDL_START_0="" CCAFE6_SIDL_START_1="package ccafe6 version 0.0 {" ;; esac fi BABEL_CCA_ROOT=$BABEL_CCA_ROOT_INSTALLED BABEL_ROOT=$CCASPEC_BABEL_ROOT BABEL_FLAGS='--suppress-timestamp -E' CCAFE_CCA_SPEC_BABEL_CONFIG=$BABEL_CCA_INSTALLED_CONFIG # Check whether --with-babel-python or --without-babel-python was given. if test "${with_babel_python+set}" = set; then withval="$with_babel_python" : else with_babel_python=no fi case "$with_babel_python" in yes) CCAFE_BUILD_PY=1 INSTALL_PYTHON=install-python ;; *) CCAFE_BUILD_PY= INSTALL_PYTHON=install-dummy ;; esac # cca spec (must contain installed spec) # classic spec ccafe_cca_spec_dirs=" $CCAFE_PARENT/cca-spec-classic $CCATUT_HOME/cca-spec-classic $prefix/cca-spec-classic /usr/local/cca-spec-classic " ccafe_cca_spec_install_dirs=" $prefix $CCAFE_PARENT $CCATUT_HOME /usr/local " #------------------------------------------------------------------------------ # CLASSIC_CCA_ROOT: See if the user gave us the location of cca-spec # then search $ccafe_cca_spec_dirs. # One of these directories must be # present and contain the correct files, or else the user # must give the directory that contains the correct files. #------------------------------------------------------------------------------ #BAA cca_classic_dirs=$ccafe_cca_spec_dirs cca_classic_install_dirs=$ccafe_cca_spec_install_dirs classic_warn="Classic CCA spec not found." # check for the --with giving full path of config script. # Check whether --with-classic-config or --without-classic-config was given. if test "${with_classic_config+set}" = set; then withval="$with_classic_config" : else with_classic_config=no fi case "$with_classic_config" in no) ;; yes) with_classic_config="no" { echo "configure: error: --with-classic-config must be given the path of the script." 1>&2; exit 1; } ;; *) if test -d $with_classic_config ; then { echo "configure: error: --with-classic-config must be given the path of the script, not a directory." 1>&2; exit 1; } fi if ! test -x $with_classic_config ; then { echo "configure: error: --with-classic-config=$with_classic_config: $with_classic_config not executable" 1>&2; exit 1; } fi CLASSIC_PATH_TO_CONFIG=$with_classic_config ;; esac # get the --with-cca-classic input and make sure it's good. CCA_CLASSIC_TEST="" CCA_CLASSIC="" # Check whether --with-cca-classic or --without-cca-classic was given. if test "${with_cca_classic+set}" = set; then withval="$with_cca_classic" : else with_cca_classic=yes fi case "$with_cca_classic" in no) CCA_CLASSIC="no" echo "configure: warning: Classic CCA spec option disabled. Use --with-cca-classic=/where/is/cca-spec-classic/installed if wanted." 1>&2 ;; yes) # User didn't give the option or didn't give useful # information, search for it ourselves with_cca_classic="yes" CCA_CLASSIC="yes" echo $ac_n "checking cca-spec-classic""... $ac_c" 1>&6 echo "configure:2020: checking cca-spec-classic" >&5 ;; *) CCA_CLASSIC="$with_cca_classic" echo $ac_n "checking cca-spec-classic""... $ac_c" 1>&6 echo "configure:2025: checking cca-spec-classic" >&5 ;; esac CCA_CLASSIC_TEST="$CCA_CLASSIC" CCA_CLASSIC_CONFIG_TEST="no" if test "$CCA_CLASSIC" != "no"; then CCA_CLASSIC_TEST="" p2cv_var="CCA_CLASSIC_TEST" p2cv_binvar="CCA_CLASSIC_CONFIG_TEST" p2cv_path="$with_cca_classic:$cca_classic_install_dirs:$cca_classic_dirs" p2cv_testFile="bin/cca-spec-classic-config" p2cv_config="no" #p2cv_testFile=bin/cca-spec-classic-config #p2cv_path="." p2cv_ok=no if test "x$CLASSIC_PATH_TO_CONFIG" != "x" ; then if test -x $CLASSIC_PATH_TO_CONFIG ; then p2cv_config=$CLASSIC_PATH_TO_CONFIG p2cv_path=`$CLASSIC_PATH_TO_CONFIG --var CLASSIC_INSTALL_ROOT` p2cv_result=$p2cv_path CCA_CLASSIC_TEST=$p2cv_result CCA_CLASSIC_CONFIG_TEST=$p2cv_config p2cv_ok=yes if test -n 'CCA_CLASSIC="$CCA_CLASSIC_TEST" CCA_CLASSIC_CONFIG="$CCA_CLASSIC_CONFIG_TEST" ' ; then # if found CCA_CLASSIC="$CCA_CLASSIC_TEST" CCA_CLASSIC_CONFIG="$CCA_CLASSIC_CONFIG_TEST" fi else echo "configure: warning: Ignoring env CLASSIC_PATH_TO_CONFIG pointing to non-executable $CLASSIC_PATH_TO_CONFIG." 1>&2 fi fi if test "$p2cv_ok" = "no" ; then p2cv_tmpfile=`pwd`/.p2cv_tmpfile # for path elements # if ! element/testfile exists, res=search # for file-* w/ver number, try highest number # and work down. ver must end in a digit p2cv_result=_searching p2cv_paths=`echo $p2cv_path|tr ":" " "` for chome in $p2cv_paths ; do if test -x $chome/$p2cv_testFile ; then p2cv_result=$chome p2cv_config=$chome/$p2cv_testFile CCA_CLASSIC_TEST=$p2cv_result CCA_CLASSIC_CONFIG_TEST=$p2cv_config if test -n 'CCA_CLASSIC="$CCA_CLASSIC_TEST" CCA_CLASSIC_CONFIG="$CCA_CLASSIC_CONFIG_TEST" ' ; then # if found CCA_CLASSIC="$CCA_CLASSIC_TEST" CCA_CLASSIC_CONFIG="$CCA_CLASSIC_CONFIG_TEST" fi break fi if test -d $chome ; then pushd $chome > /dev/null flist="${p2cv_testFile}-*0-9" popd > /dev/null /bin/rm -f $p2cv_tmpfile for fname in $flist ; do echo $fname >> $p2cv_tmpfile done flist=`cat $p2cv_tmpfile | sort -n -r` /bin/rm -f $p2cv_tmpfile for fname in $flist ; do if test -x $chome/$fname ; then p2cv_result=$chome p2cv_config=$chome/$fname CCA_CLASSIC_TEST=$p2cv_result CCA_CLASSIC_CONFIG_TEST=$p2cv_config if test -n 'CCA_CLASSIC="$CCA_CLASSIC_TEST" CCA_CLASSIC_CONFIG="$CCA_CLASSIC_CONFIG_TEST" ' ; then # if found CCA_CLASSIC="$CCA_CLASSIC_TEST" CCA_CLASSIC_CONFIG="$CCA_CLASSIC_CONFIG_TEST" fi break; fi done fi done # not found anywhere if test "$p2cv_result" = _searching ; then p2cv_result=no if test -n 'CCA_CLASSIC_TEST="no" CCA_CLASSIC="no" CCA_CLASSIC_CONFIG_TEST=no CCA_CLASSIC_CONFIG=no echo "configure: warning: $classic_warn" 1>&2 ' ; then #if not found CCA_CLASSIC_TEST="no" CCA_CLASSIC="no" CCA_CLASSIC_CONFIG_TEST=no CCA_CLASSIC_CONFIG=no echo "configure: warning: $classic_warn" 1>&2 fi fi # end of search for config with ver. fi fi CLASSIC_CCA_ROOT_INSTALLED="$CCA_CLASSIC" CLASSIC_CCA_INSTALLED_CONFIG="$CCA_CLASSIC_CONFIG" if test "x$CLASSIC_CCA_INSTALLED_CONFIG" = "xno" -o "x$CLASSIC_CCA_ROOT_INSTALLED" = "xno" ; then HAVE_CLASSIC=0 CLASSIC_CCA_INSTALLED=0 echo "configure: warning: Building ccaffeine without the classic spec. If you think it really is there, try specifying: --with-classic-config=/path/to/bin/cca-spec-classic-config-\$version and maybe also --with-cca-classic=INSTALL_PREFIX_of_cca-spec-classic. " 1>&2 else echo "$ac_t""$CLASSIC_CCA_ROOT_INSTALLED" 1>&6 . `$CLASSIC_CCA_INSTALLED_CONFIG --var CLASSIC_VARS_SH` HAVE_CLASSIC=1 CLASSIC_CCA_INSTALLED=1 CLASSIC_CCA_CONFIG=`$CLASSIC_CCA_INSTALLED_CONFIG --var CLASSIC_MAKEINCL` CCA_ROOT=$CLASSIC_CCA_ROOT_INSTALLED CLASSIC_CCA_ROOT=$CLASSIC_CCA_ROOT_INSTALLED CCAFE_CLASSIC_JAVA_HOME1=`echo $CCASPEC_CLASSIC_JAVA | sed 's%/[^/]*$%%'` CCAFE_CLASSIC_JAVA_HOME=`echo $CCAFE_CLASSIC_JAVA_HOME1 | sed 's%/bin$%%'` # need to assign the following before substs. CCA_JAVA_HM=$CCA_JAR CXX=$CCA_CXX fi case "$with_cca_classic" in no) ;; yes) ;; *) if test "x$with_cca_classic" != "x$CLASSIC_CCA_ROOT_INSTALLED" ; then echo "configure: warning: value specified to --with-cca-classic was insufficient. Found another ($CLASSIC_CCA_ROOT_INSTALLED). hope it's ok. " 1>&2 fi ;; esac #------------------------------------------------------ # neo spec (must contain installed spec) ccafe_neo_spec_dirs=" $CCAFE_PARENT/cca-spec-neo $CCATUT_HOME/cca-spec-neo $prefix/cca-spec-neo /usr/local/cca-spec-neo " ccafe_neo_spec_install_dirs=" $prefix $CCAFE_PARENT $CCATUT_HOME /usr/local " #------------------------------------------------------------------------------ # NEO_CCA_ROOT: See if the user gave us the location of cca-spec-neo # then search $ccafe_neo_spec_dirs. # One of these directories must be # present and contain the correct files, or else the user # must give the directory that contains the correct files. #------------------------------------------------------------------------------ #BAA cca_neo_dirs=$ccafe_neo_spec_dirs cca_neo_install_dirs=$ccafe_neo_spec_install_dirs neo_warn="Neo CCA spec not found." HAVE_NEO=0 NEO_CCA_INSTALLED=0 # check for the --with giving full path of config script. # Check whether --with-neo-config or --without-neo-config was given. if test "${with_neo_config+set}" = set; then withval="$with_neo_config" : else with_neo_config=no fi case "$with_neo_config" in no) ;; yes) with_neo_config="no" { echo "configure: error: --with-neo-config must be given the path of the script." 1>&2; exit 1; } ;; *) if test -d $with_neo_config ; then { echo "configure: error: --with-neo-config must be given the path of the script, not a directory." 1>&2; exit 1; } fi if ! test -x $with_neo_config ; then { echo "configure: error: --with-neo-config=$with_neo_config: $with_neo_config not executable" 1>&2; exit 1; } fi NEOCCA_PATH_TO_CONFIG=$with_neo_config ;; esac # get the --with-cca-neo input and make sure it's good. CCA_NEO_TEST="" CCA_NEO="" # Check whether --with-cca-neo or --without-cca-neo was given. if test "${with_cca_neo+set}" = set; then withval="$with_cca_neo" : else with_cca_neo=yes fi case "$with_cca_neo" in no) CCA_NEO="no" echo "configure: warning: Neoclassic CCA spec option disabled. Use --with-cca-neo=/where/is/cca-spec-neo/installed if wanted." 1>&2 ;; yes) # User didn't give the option or didn't give useful # information, search for it ourselves with_cca_neo="yes" CCA_NEO="yes" echo $ac_n "checking cca-spec-neo""... $ac_c" 1>&6 echo "configure:2273: checking cca-spec-neo" >&5 ;; *) CCA_NEO="$with_cca_neo" echo $ac_n "checking cca-spec-neo""... $ac_c" 1>&6 echo "configure:2278: checking cca-spec-neo" >&5 ;; esac CCA_NEO_TEST="$CCA_NEO" CCA_NEO_CONFIG_TEST="no" if test "$CCA_NEO" != "no"; then CCA_NEO_TEST="" p2cv_var="CCA_NEO_TEST" p2cv_binvar="CCA_NEO_CONFIG_TEST" p2cv_path="$with_cca_neo:$cca_neo_install_dirs:$cca_neo_dirs" p2cv_testFile="bin/cca-spec-neo-config" p2cv_config="no" #p2cv_testFile=bin/cca-spec-neo-config #p2cv_path="." p2cv_ok=no if test "x$NEOCCA_PATH_TO_CONFIG" != "x" ; then if test -x $NEOCCA_PATH_TO_CONFIG ; then p2cv_config=$NEOCCA_PATH_TO_CONFIG p2cv_path=`$NEOCCA_PATH_TO_CONFIG --var NEOCCA_INSTALL_ROOT` p2cv_result=$p2cv_path CCA_NEO_TEST=$p2cv_result CCA_NEO_CONFIG_TEST=$p2cv_config p2cv_ok=yes if test -n 'CCA_NEO="$CCA_NEO_TEST" CCA_NEO_CONFIG="$CCA_NEO_CONFIG_TEST" ' ; then # if found CCA_NEO="$CCA_NEO_TEST" CCA_NEO_CONFIG="$CCA_NEO_CONFIG_TEST" fi else echo "configure: warning: Ignoring env NEOCCA_PATH_TO_CONFIG pointing to non-executable $NEOCCA_PATH_TO_CONFIG." 1>&2 fi fi if test "$p2cv_ok" = "no" ; then p2cv_tmpfile=`pwd`/.p2cv_tmpfile # for path elements # if ! element/testfile exists, res=search # for file-* w/ver number, try highest number # and work down. ver must end in a digit p2cv_result=_searching p2cv_paths=`echo $p2cv_path|tr ":" " "` for chome in $p2cv_paths ; do if test -x $chome/$p2cv_testFile ; then p2cv_result=$chome p2cv_config=$chome/$p2cv_testFile CCA_NEO_TEST=$p2cv_result CCA_NEO_CONFIG_TEST=$p2cv_config if test -n 'CCA_NEO="$CCA_NEO_TEST" CCA_NEO_CONFIG="$CCA_NEO_CONFIG_TEST" ' ; then # if found CCA_NEO="$CCA_NEO_TEST" CCA_NEO_CONFIG="$CCA_NEO_CONFIG_TEST" fi break fi if test -d $chome ; then pushd $chome > /dev/null flist="${p2cv_testFile}-*0-9" popd > /dev/null /bin/rm -f $p2cv_tmpfile for fname in $flist ; do echo $fname >> $p2cv_tmpfile done flist=`cat $p2cv_tmpfile | sort -n -r` /bin/rm -f $p2cv_tmpfile for fname in $flist ; do if test -x $chome/$fname ; then p2cv_result=$chome p2cv_config=$chome/$fname CCA_NEO_TEST=$p2cv_result CCA_NEO_CONFIG_TEST=$p2cv_config if test -n 'CCA_NEO="$CCA_NEO_TEST" CCA_NEO_CONFIG="$CCA_NEO_CONFIG_TEST" ' ; then # if found CCA_NEO="$CCA_NEO_TEST" CCA_NEO_CONFIG="$CCA_NEO_CONFIG_TEST" fi break; fi done fi done # not found anywhere if test "$p2cv_result" = _searching ; then p2cv_result=no if test -n 'CCA_NEO_TEST="no" CCA_NEO="no" CCA_NEO_CONFIG_TEST=no CCA_NEO_CONFIG=no echo "configure: warning: $neo_warn" 1>&2 ' ; then #if not found CCA_NEO_TEST="no" CCA_NEO="no" CCA_NEO_CONFIG_TEST=no CCA_NEO_CONFIG=no echo "configure: warning: $neo_warn" 1>&2 fi fi # end of search for config with ver. fi fi NEO_CCA_ROOT_INSTALLED="$CCA_NEO" NEO_CCA_INSTALLED_CONFIG="$CCA_NEO_CONFIG" if test "x$NEO_CCA_INSTALLED_CONFIG" = "xno" -o "x$NEO_CCA_ROOT_INSTALLED" = "xno" ; then echo "configure: warning: Building ccaffeine without the neo spec. If you think it really is there, try specifying: --with-neo-config=/path/to/bin/cca-spec-neo-config-\$version and maybe also --with-cca-neo=INSTALL_PREFIX_of_cca-spec-neo. " 1>&2 else echo "$ac_t""$NEO_CCA_ROOT_INSTALLED" 1>&6 . `$NEO_CCA_INSTALLED_CONFIG --var NEOCCA_VARS_SH` HAVE_NEO=1 NEO_CCA_INSTALLED=1 NEO_CCA_CONFIG=`$NEO_CCA_INSTALLED_CONFIG --var NEOCCA_MAKEINCL` # CXX=$NEO_CXX NEO_CCA_ROOT=$NEO_CCA_ROOT_INSTALLED # deal with subpackages next . `$NEOCCA_INSTALL_ROOT/bin/eg-neo-config --var EGNEO_VARS_SH` EGNEO_CONFIG=$EGNEO_MAKEINCL . `$NEOCCA_INSTALL_ROOT/bin/neotest-parameter-config --var NEOTESTPARAMETER_VARS_SH` NEOTESTPARAMETER_CONFIG=$NEOTESTPARAMETER_MAKEINCL . `$NEOCCA_INSTALL_ROOT/bin/neotest-go-config --var NEOTESTGO_VARS_SH` NEOTESTGO_CONFIG=$NEOTESTGO_MAKEINCL case $NEOCCA_VERSION in 0.1.0) { echo "configure: error: Value specified or found for --with-cca-neo is a version ($NEOCCA_VERSION) too old to work with Ccaffeine. Please get an updated version of cca-spec-neo." 1>&2; exit 1; } ;; *) ;; esac fi case "$with_cca_neo" in no) ;; yes) ;; *) if test "x$with_cca_neo" != "x$NEO_CCA_ROOT_INSTALLED" ; then echo "configure: warning: value specified to --with-cca-neo was insufficient. Found another ($NEO_CCA_ROOT_INSTALLED). hope it's ok. " 1>&2 fi ;; esac # FIXME. need boost and c++ fron neo if neo found, else need # boost directly. #------------------------------------------------------ # stupidity check for env/user: if test "X$HAVE_BABEL.$HAVE_CLASSIC.$HAVE_NEO" = "X0.0.0" ; then echo "configure: warning: ############################################# At least one cca specification is required. Not sure what you'll do with an unbound framework. ############################################# " 1>&2 fi # take babel-libtool from neo spec if present. if ! test "x$NEOCCA_BABEL_LIBTOOL" = "x"; then if test -x $NEOCCA_BABEL_LIBTOOL; then with_babel_libtool=$NEOCCA_BABEL_LIBTOOL fi fi # take babel-libtool from cca-spec if present. if ! test "x$CCASPEC_BABEL_BABEL_LIBTOOL" = "x"; then if test -x $CCASPEC_BABEL_BABEL_LIBTOOL; then with_babel_libtool=$CCASPEC_BABEL_BABEL_LIBTOOL fi fi # Check whether --with-babel-libtool or --without-babel-libtool was given. if test "${with_babel_libtool+set}" = set; then withval="$with_babel_libtool" : else with_babel_libtool=no fi ccafe_babel_libtool_locs=/usr/local/babel/bin:$HOME/babel/bin:/$HOME/cca/babel/bin:$HOME/cca/install/babel/bin # case "$with_babel_libtool" in no) # Extract the first word of "babel-libtool", so it can be a program name with args. set dummy babel-libtool; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:2494: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_ccafe_test_babel_libtool'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$ccafe_test_babel_libtool" in /*) ac_cv_path_ccafe_test_babel_libtool="$ccafe_test_babel_libtool" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_ccafe_test_babel_libtool="$ccafe_test_babel_libtool" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH:$ccafe_babel_libtool_locs" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_ccafe_test_babel_libtool="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_ccafe_test_babel_libtool" && ac_cv_path_ccafe_test_babel_libtool="no" ;; esac fi ccafe_test_babel_libtool="$ac_cv_path_ccafe_test_babel_libtool" if test -n "$ccafe_test_babel_libtool"; then echo "$ac_t""$ccafe_test_babel_libtool" 1>&6 else echo "$ac_t""no" 1>&6 fi ;; # *) ccafe_test_babel_libtool=$with_babel_libtool echo $ac_n "checking babel-libtool""... $ac_c" 1>&6 echo "configure:2532: checking babel-libtool" >&5 echo "$ac_t""$ccafe_test_babel_libtool" 1>&6 ;; esac # if test -x $ccafe_test_babel_libtool; then BABEL_LIBTOOL=$ccafe_test_babel_libtool else { echo "configure: error: Please specify --with-babel-libtool=/path/to/babel-libtool. If you do not have babel installed and cannot install it, you may attempt compiling Ccaffeine by specifying any other libtool that happens to exist. This is not guaranteed to work, especially if you mix Fortran in your code." 1>&2; exit 1; } fi bltversion=`$BABEL_LIBTOOL --version | grep libtool | sed -e 's%^[^0-9]*%%g' |sed -e 's% .*%%g'` bltbad=no case "$bltversion" in 0.*) bltbad=yes ;; 1.[0-4].*) bltbad=yes ;; esac if test "$bltbad" = "yes" ; then { echo "configure: error: The babel-libtool or libtool found is based on a too old version of libtool ($bltversion). We prefer 1.5.10 or later, and need at least 1.5." 1>&2; exit 1; } fi #------------------------------------------------------ for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:2570: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else 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_prog_AWK="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi AWK="$ac_cv_prog_AWK" if test -n "$AWK"; then echo "$ac_t""$AWK" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$AWK" && break done echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 echo "configure:2600: checking whether ln -s works" >&5 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else rm -f conftestdata if ln -s X conftestdata 2>/dev/null then rm -f conftestdata ac_cv_prog_LN_S="ln -s" else ac_cv_prog_LN_S=ln fi fi LN_S="$ac_cv_prog_LN_S" if test "$ac_cv_prog_LN_S" = "ln -s"; then echo "$ac_t""yes" 1>&6 else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 echo "configure:2621: 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 else cat > conftestmake <<\EOF all: @echo 'ac_maketemp="${MAKE}"' EOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` if test -n "$ac_maketemp"; then eval ac_cv_prog_make_${ac_make}_set=yes else eval ac_cv_prog_make_${ac_make}_set=no fi rm -f conftestmake fi if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then echo "$ac_t""yes" 1>&6 SET_MAKE= else echo "$ac_t""no" 1>&6 SET_MAKE="MAKE=${MAKE-make}" fi # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:2650: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else 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_prog_RANLIB="ranlib" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" fi fi RANLIB="$ac_cv_prog_RANLIB" if test -n "$RANLIB"; then echo "$ac_t""$RANLIB" 1>&6 else echo "$ac_t""no" 1>&6 fi # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 echo "configure:2689: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" for ac_dir in $PATH; do # Account for people who put trailing slashes in PATH elements. case "$ac_dir/" in /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do if test -f $ac_dir/$ac_prog; then if test $ac_prog = install && grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : else ac_cv_path_install="$ac_dir/$ac_prog -c" break 2 fi fi done ;; esac done IFS="$ac_save_IFS" fi if test "${ac_cv_path_install+set}" = set; then INSTALL="$ac_cv_path_install" else # As a last resort, use the slow shell script. We don't cache a # path for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the path is relative. INSTALL="$ac_install_sh" fi fi echo "$ac_t""$INSTALL" 1>&6 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' # FIND which cc # Check whether --enable-gcc or --disable-gcc was given. if test "${enable_gcc+set}" = set; then enableval="$enable_gcc" tcl_ok=$enableval else tcl_ok=no fi if test "$tcl_ok" = "yes"; then # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:2755: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else 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_prog_CC="gcc" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:2785: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_prog_rejected=no ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" break fi done IFS="$ac_save_ifs" if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# -gt 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift set dummy "$ac_dir/$ac_word" "$@" shift ac_cv_prog_CC="$@" fi fi fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi if test -z "$CC"; then case "`uname -s`" in *win32* | *WIN32*) # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:2836: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else 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_prog_CC="cl" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi ;; esac fi test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 echo "configure:2868: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext << EOF #line 2879 "configure" #include "confdefs.h" main(){return(0);} EOF if { (eval echo configure:2884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then ac_cv_prog_cc_cross=no else ac_cv_prog_cc_cross=yes fi else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 ac_cv_prog_cc_works=no fi rm -fr conftest* ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 if test $ac_cv_prog_cc_works = no; then { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 echo "configure:2910: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 echo "configure:2915: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no fi fi echo "$ac_t""$ac_cv_prog_gcc" 1>&6 if test $ac_cv_prog_gcc = yes; then GCC=yes else GCC= fi ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 echo "configure:2943: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then ac_cv_prog_cc_g=yes else ac_cv_prog_cc_g=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 if test "$ac_test_CFLAGS" = set; then CFLAGS="$ac_save_CFLAGS" elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi else CC=${CC-cc} fi # # Not using f77 right now. We may still want to # get fortran libs for HPC components, though, sigh. # This check (for f77 compiler) wants to be run before AC_PROG_CPP # for ac_prog in g77 f77 f2c do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:2989: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_F77'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else 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_prog_F77="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi F77="$ac_cv_prog_F77" if test -n "$F77"; then echo "$ac_t""$F77" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$F77" && break done test -n "$F77" || F77="NONE" F77=NONE if test "${F77}" = "NONE" ; then F77="" else # FIND crap for linking f77 into c++ main if test -z "$F77"; then for ac_prog in g77 f77 f2c do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:3030: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_F77'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else 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_prog_F77="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi F77="$ac_cv_prog_F77" if test -n "$F77"; then echo "$ac_t""$F77" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$F77" && break done test -z "$F77" && { echo "configure: error: no acceptable Fortran 77 compiler found in \$PATH" 1>&2; exit 1; } fi echo $ac_n "checking whether the Fortran 77 compiler ($F77 $FFLAGS $LDFLAGS) works""... $ac_c" 1>&6 echo "configure:3063: checking whether the Fortran 77 compiler ($F77 $FFLAGS $LDFLAGS) works" >&5 ac_ext=f ac_compile='${F77-f77} -c $FFLAGS conftest.$ac_ext 1>&5' ac_link='${F77-f77} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_f77_cross cat > conftest.$ac_ext << EOF program conftest end EOF if { (eval echo configure:3076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_f77_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then ac_cv_prog_f77_cross=no else ac_cv_prog_f77_cross=yes fi else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 ac_cv_prog_f77_works=no fi rm -fr conftest* ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross echo "$ac_t""$ac_cv_prog_f77_works" 1>&6 if test $ac_cv_prog_f77_works = no; then { echo "configure: error: installation or configuration problem: Fortran 77 compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the Fortran 77 compiler ($F77 $FFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 echo "configure:3102: checking whether the Fortran 77 compiler ($F77 $FFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_f77_cross" 1>&6 cross_compiling=$ac_cv_prog_f77_cross echo $ac_n "checking whether we are using GNU Fortran 77""... $ac_c" 1>&6 echo "configure:3107: checking whether we are using GNU Fortran 77" >&5 if eval "test \"`echo '$''{'ac_cv_prog_g77'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.fpp <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_g77=yes else ac_cv_prog_g77=no fi fi echo "$ac_t""$ac_cv_prog_g77" 1>&6 if test $ac_cv_prog_g77 = yes; then G77=yes ac_test_FFLAGS="${FFLAGS+set}" ac_save_FFLAGS="$FFLAGS" FFLAGS= echo $ac_n "checking whether $F77 accepts -g""... $ac_c" 1>&6 echo "configure:3131: checking whether $F77 accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_f77_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.f << EOF program conftest end EOF if test -z "`$F77 -g -c conftest.f 2>&1`"; then ac_cv_prog_f77_g=yes else ac_cv_prog_f77_g=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_prog_f77_g" 1>&6 if test "$ac_test_FFLAGS" = set; then FFLAGS="$ac_save_FFLAGS" elif test $ac_cv_prog_f77_g = yes; then FFLAGS="-g -O2" else FFLAGS="-O2" fi else G77= test "${FFLAGS+set}" = set || FFLAGS="-g" fi echo $ac_n "checking for Fortran 77 libraries""... $ac_c" 1>&6 echo "configure:3162: checking for Fortran 77 libraries" >&5 if eval "test \"`echo '$''{'ac_cv_flibs'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else echo " END" > conftest.f foutput=`${F77} -v -o conftest conftest.f 2>&1` xlf_p=`echo $foutput | grep xlfentry` if test -n "$xlf_p"; then foutput=`echo $foutput | sed 's/,/ /g'` fi ld_run_path=`echo $foutput | \ sed -n -e 's/^.*LD_RUN_PATH *= *\([^ ]*\).*/\1/p'` case "$ld_run_path" in /*) if test "$ac_cv_prog_gcc" = yes; then ld_run_path="-Xlinker -R -Xlinker $ld_run_path" else ld_run_path="-R $ld_run_path" fi ;; *) ld_run_path= ;; esac flibs= lflags= want_arg= for arg in $foutput; do old_want_arg=$want_arg want_arg= if test -n "$old_want_arg"; then case "$arg" in -*) old_want_arg= ;; esac fi case "$old_want_arg" in '') case $arg in /*.a) exists=false for f in $lflags; do if test x$arg = x$f; then exists=true fi done if $exists; then arg= else lflags="$lflags $arg" fi ;; -bI:*) exists=false for f in $lflags; do if test x$arg = x$f; then exists=true fi done if $exists; then arg= else if test "$ac_cv_prog_gcc" = yes; then lflags="$lflags -Xlinker $arg" else lflags="$lflags $arg" fi fi ;; -lang* | -lcrt0.o | -lc | -lgcc) arg= ;; -[lLR]) want_arg=$arg arg= ;; -[lLR]*) exists=false for f in $lflags; do if test x$arg = x$f; then exists=true fi done if $exists; then arg= else case "$arg" in -lkernel32) case "$canonical_host_type" in *-*-cygwin*) arg= ;; *) lflags="$lflags $arg" ;; esac ;; -lm) ;; *) lflags="$lflags $arg" ;; esac fi ;; -u) want_arg=$arg arg= ;; -Y) want_arg=$arg arg= ;; *) arg= ;; esac ;; -[lLR]) arg="$old_want_arg $arg" ;; -u) arg="-u $arg" ;; -Y) arg=`echo $arg | sed -e 's%^P,%%'` SAVE_IFS=$IFS IFS=: list= for elt in $arg; do list="$list -L$elt" done IFS=$SAVE_IFS arg="$list" ;; esac if test -n "$arg"; then flibs="$flibs $arg" fi done if test -n "$ld_run_path"; then flibs_result="$ld_run_path $flibs" else flibs_result="$flibs" fi ac_cv_flibs="$flibs_result" fi FLIBS="$ac_cv_flibs" echo "$ac_t""$FLIBS" 1>&6 fi # FIND if cc has a stupid limitation if test "x$CC" != xcc; then echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6 echo "configure:3321: checking whether $CC and cc understand -c and -o together" >&5 else echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6 echo "configure:3324: checking whether cc understands -c and -o together" >&5 fi set dummy $CC; ac_cc="`echo $2 | sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`" if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else echo 'foo(){}' > conftest.c # Make sure it works both with $CC and with simple cc. # We do the test twice because some compilers refuse to overwrite an # existing .o file with -o, though they will create one. ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5' if { (eval echo configure:3336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && test -f conftest.o && { (eval echo configure:3337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; then eval ac_cv_prog_cc_${ac_cc}_c_o=yes if test "x$CC" != xcc; then # Test first that cc exists at all. if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:3342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then ac_try='cc -c conftest.c -o conftest.o 1>&5' if { (eval echo configure:3344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && test -f conftest.o && { (eval echo configure:3345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; then # cc works too. : else # cc exists but doesn't like -o. eval ac_cv_prog_cc_${ac_cc}_c_o=no fi fi fi else eval ac_cv_prog_cc_${ac_cc}_c_o=no fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then echo "$ac_t""yes" 1>&6 else echo "$ac_t""no" 1>&6 cat >> confdefs.h <<\EOF #define NO_MINUS_C_MINUS_O 1 EOF fi # FIND c++ compiler #------------------------------------------------------------------------------ # see if the user gave us the location of the c++ compiler #------------------------------------------------------------------------------ # Check whether --with-cPP or --without-cPP was given. if test "${with_cPP+set}" = set; then withval="$with_cPP" : else with_cPP=yes fi case "$with_cPP" in no) # User specified --without-c++ # print a warning. echo "configure: warning: Option '--without-c++' Causes c++ spec to be suppressed." 1>&2 cca_have_cpp=no ;; yes) # User didn't give the option or didn't give useful # information, search for it ourselves with_cPP=_searching ;; *) CXX="$with_cPP" cca_have_cpp=yes ;; esac if test "$with_cPP" = _searching ; then for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:3410: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else 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_prog_CXX="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CXX="$ac_cv_prog_CXX" if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CXX" && break done test -n "$CXX" || CXX="gcc" echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 echo "configure:3442: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext << EOF #line 3453 "configure" #include "confdefs.h" int main(){return(0);} EOF if { (eval echo configure:3458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cxx_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then ac_cv_prog_cxx_cross=no else ac_cv_prog_cxx_cross=yes fi else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 ac_cv_prog_cxx_works=no fi rm -fr conftest* ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 if test $ac_cv_prog_cxx_works = no; then { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 echo "configure:3484: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 cross_compiling=$ac_cv_prog_cxx_cross echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 echo "configure:3489: checking whether we are using GNU C++" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.C <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gxx=yes else ac_cv_prog_gxx=no fi fi echo "$ac_t""$ac_cv_prog_gxx" 1>&6 if test $ac_cv_prog_gxx = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS="${CXXFLAGS+set}" ac_save_CXXFLAGS="$CXXFLAGS" CXXFLAGS= echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 echo "configure:3517: checking whether ${CXX-g++} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else echo 'void f(){}' > conftest.cc if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then ac_cv_prog_cxx_g=yes else ac_cv_prog_cxx_g=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS="$ac_save_CXXFLAGS" elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi for ac_declaration in \ ''\ '#include ' \ 'extern "C" void std::exit (int) throw (); using std::exit;' \ 'extern "C" void std::exit (int); using std::exit;' \ 'extern "C" void exit (int) throw ();' \ 'extern "C" void exit (int);' \ 'void exit (int);' do cat > conftest.$ac_ext < $ac_declaration int main() { exit (42); ; return 0; } EOF if { (eval echo configure:3566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* continue fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done if test -n "$ac_declaration"; then echo '#ifdef __cplusplus' >>confdefs.h echo $ac_declaration >>confdefs.h echo '#endif' >>confdefs.h fi fi #-------------------------------------------------------------------- # cxxflags, which will override CXXFLAGS in the env if specified. #-------------------------------------------------------------------- # Check whether --with-cxxflags or --without-cxxflags was given. if test "${with_cxxflags+set}" = set; then withval="$with_cxxflags" : else with_cxxflags=no fi case "$with_cxxflags" in no) # so nothing ;; yes) echo "configure: warning: Option '--with-cxxflags=yes': yes not a valid flag." 1>&2 ;; *) CXXFLAGS="$with_cxxflags" ;; esac NOT_HAVE_CXX_LIMITS="" echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 echo "configure:3627: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # This must be in double quotes, not single quotes, because CPP may get # substituted into the Makefile and "${CC-cc}" will confuse make. CPP="${CC-cc} -E" # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:3648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:3665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:3682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP=/lib/cpp fi rm -f conftest* fi rm -f conftest* fi rm -f conftest* ac_cv_prog_CPP="$CPP" fi CPP="$ac_cv_prog_CPP" else ac_cv_prog_CPP="$CPP" fi echo "$ac_t""$CPP" 1>&6 ac_safe=`echo "limits" | sed 'y%./+-%__p_%'` echo $ac_n "checking for limits""... $ac_c" 1>&6 echo "configure:3708: checking for limits" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:3718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 : else echo "$ac_t""no" 1>&6 NOT_HAVE_CXX_LIMITS=-DNO_NUMERIC_LIMITS fi # Check whether --with-rpm-prefix or --without-rpm-prefix was given. if test "${with_rpm_prefix+set}" = set; then withval="$with_rpm_prefix" : else with_rpm_prefix=no fi case "$with_rpm_prefix" in no) with_rpm_prefix=$prefix ;; yes) echo "configure: warning: Option '--with-rpm-prefix=yes' invalid. Defaulting prefix." 1>&2 with_rpm_prefix=$prefix ;; *) CCAFE_RPM_ROOT=$with_rpm_prefix ;; esac CCAFE_RPM_ROOT=$with_rpm_prefix CCAFE_RPM_prefix=$with_rpm_prefix # Check whether --with-rpm-libdir or --without-rpm-libdir was given. if test "${with_rpm_libdir+set}" = set; then withval="$with_rpm_libdir" : else with_rpm_libdir=no fi case "$with_rpm_libdir" in no) with_rpm_libdir="$libdir" ;; yes) echo "configure: warning: Option '--with-rpm-libdir=yes' invalid. Defaulting libdir." 1>&2 with_rpm_libdir="$libdir" ;; *) CCAFE_RPM_libdir=$with_rpm_libdir ;; esac CCAFE_RPM_libdir="$with_rpm_libdir" # Check whether --with-rpm-pkgdatadir or --without-rpm-pkgdatadir was given. if test "${with_rpm_pkgdatadir+set}" = set; then withval="$with_rpm_pkgdatadir" : else with_rpm_pkgdatadir=no fi case "$with_rpm_pkgdatadir" in no) with_rpm_pkgdatadir="$pkgdatadir" ;; yes) echo "configure: warning: Option '--with-rpm-pkgdatadir=yes' invalid. Defaulting." 1>&2 with_rpm_pkgdatadir="$pkgdatadir" ;; *) CCAFE_RPM_pkgdatadir=$with_rpm_pkgdatadir ;; esac CCAFE_RPM_pkgdatadir="$with_rpm_pkgdatadir" # FIND c preprocessor echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 echo "configure:3813: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # This must be in double quotes, not single quotes, because CPP may get # substituted into the Makefile and "${CC-cc}" will confuse make. CPP="${CC-cc} -E" # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:3834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:3851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:3868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP=/lib/cpp fi rm -f conftest* fi rm -f conftest* fi rm -f conftest* ac_cv_prog_CPP="$CPP" fi CPP="$ac_cv_prog_CPP" else ac_cv_prog_CPP="$CPP" fi echo "$ac_t""$CPP" 1>&6 # FIND c++ preprocessor echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 echo "configure:3895: checking how to run the C++ preprocessor" >&5 if test -z "$CXXCPP"; then if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross CXXCPP="${CXX-g++} -E" cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:3913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CXXCPP=/lib/cpp fi rm -f conftest* ac_cv_prog_CXXCPP="$CXXCPP" ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross fi fi CXXCPP="$ac_cv_prog_CXXCPP" echo "$ac_t""$CXXCPP" 1>&6 # FIND lex # FIND yacc # set the warning flags depending on whether or not we are using gcc if test "${GCC}" = "yes" ; then CFLAGS_WARNING="-Wall -Wconversion" else CFLAGS_WARNING="" fi #------------------------------------------------------------------------------ # If we're using GCC, see if the compiler understands -pipe. If so, use it. # It makes compiling go faster. (This is only a performance feature.) #------------------------------------------------------------------------------ if test -z "$no_pipe"; then if test -n "$GCC"; then echo $ac_n "checking if the C compiler understands -pipe""... $ac_c" 1>&6 echo "configure:3957: checking if the C compiler understands -pipe" >&5 OLDCC="$CC" CC="$CC -pipe" cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CC="$OLDCC" echo "$ac_t""no" 1>&6 fi rm -f conftest* echo $ac_n "checking if c++ compiler understands -pipe""... $ac_c" 1>&6 echo "configure:3980: checking if c++ compiler understands -pipe" >&5 OLDCXX="$CXX" CXX="$CXX -pipe" cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CXX="$OLDCXX" echo "$ac_t""no" 1>&6 fi rm -f conftest* fi fi echo $ac_n "checking size of short""... $ac_c" 1>&6 echo "configure:4006: checking size of short" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < int main() { FILE *f=fopen("conftestval", "w"); if (!f) return(1); fprintf(f, "%d\n", sizeof(short)); return(0); } EOF if { (eval echo configure:4025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_short=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_short=0 fi rm -fr conftest* fi fi echo "$ac_t""$ac_cv_sizeof_short" 1>&6 cat >> confdefs.h <&6 echo "configure:4045: checking size of short *" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_short_p'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < int main() { FILE *f=fopen("conftestval", "w"); if (!f) return(1); fprintf(f, "%d\n", sizeof(short *)); return(0); } EOF if { (eval echo configure:4064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_short_p=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_short_p=0 fi rm -fr conftest* fi fi echo "$ac_t""$ac_cv_sizeof_short_p" 1>&6 cat >> confdefs.h <&6 echo "configure:4084: checking size of long int" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_long_int'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < int main() { FILE *f=fopen("conftestval", "w"); if (!f) return(1); fprintf(f, "%d\n", sizeof(long int)); return(0); } EOF if { (eval echo configure:4103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_long_int=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_long_int=0 fi rm -fr conftest* fi fi echo "$ac_t""$ac_cv_sizeof_long_int" 1>&6 cat >> confdefs.h <&6 echo "configure:4123: checking size of long long int" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long_int'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < int main() { FILE *f=fopen("conftestval", "w"); if (!f) return(1); fprintf(f, "%d\n", sizeof(long long int)); return(0); } EOF if { (eval echo configure:4142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_long_long_int=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_long_long_int=0 fi rm -fr conftest* fi fi echo "$ac_t""$ac_cv_sizeof_long_long_int" 1>&6 cat >> confdefs.h <&6 echo "configure:4162: checking size of int64_t" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_int64_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < int main() { FILE *f=fopen("conftestval", "w"); if (!f) return(1); fprintf(f, "%d\n", sizeof(int64_t)); return(0); } EOF if { (eval echo configure:4181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_int64_t=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_int64_t=0 fi rm -fr conftest* fi fi echo "$ac_t""$ac_cv_sizeof_int64_t" 1>&6 cat >> confdefs.h <&6 echo "configure:4274: checking for Python directories" >&5 for version in $siloon_python_vers ; do for path in $siloon_python_paths ; do pinc="$path/include/python""$version" if test -d $pinc ; then pdir="$path/lib/python""$version" if test -d $pdir ; then python_include_path=$pinc python_library_path=$pdir echo "$ac_t""found $pinc and $pdir." 1>&6 break fi fi done if test "$python_include_path" != _searching ; then break fi done fi if test "$python_include_path" = _searching ; then echo "$ac_t""Cannot find python include directory." 1>&6 echo "$ac_t""Please install it and/or use --with-python-includes=PATH." 1>&6 fi if test "$python_library_path" = _searching ; then echo "$ac_t""Cannot find python libraries." 1>&6 echo "$ac_t""Please install it and/or use --with-python-library=PATH." 1>&6 fi if test "$python_include_path" != _searching ; then if test "$python_library_path" != _searching ; then PYTHON_SCRIPTING=1 PYTHON_INCLUDE="$python_include_path" PYTHON_CPPFLAGS="-I$python_include_path" PYTHON_LDFLAGS="-L$python_library_path" fi fi fi #------------------------------------------------------------------------------ # see if the user gave us the location of clueful make #------------------------------------------------------------------------------ # Check whether --with-gmake or --without-gmake was given. if test "${with_gmake+set}" = set; then withval="$with_gmake" : else with_gmake=yes fi case "$with_gmake" in no) ccafe_have_gmake=no ;; yes) # User didn't give the option or didn't give useful # information, search for it ourselves with_gmake=_searching ;; *) # Only the library was specified GMAKE="$with_gmake" ;; esac if test "$with_gmake" = _searching ; then # Extract the first word of "gmake", so it can be a program name with args. set dummy gmake; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:4344: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gmake_1'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$gmake_1"; then ac_cv_prog_gmake_1="$gmake_1" # Let the user override the test. else 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_prog_gmake_1="gmake" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_prog_gmake_1" && ac_cv_prog_gmake_1="NONE" fi fi gmake_1="$ac_cv_prog_gmake_1" if test -n "$gmake_1"; then echo "$ac_t""$gmake_1" 1>&6 else echo "$ac_t""no" 1>&6 fi if test ! "$gmake_1" = NONE ; then GMAKE="$gmake_1" fi fi #------------------------------------------------------------------------------ # see if the user gave us the location of the tclsh #------------------------------------------------------------------------------ TCLSH=/usr/local/bin/tclsh # Check whether --with-tclsh or --without-tclsh was given. if test "${with_tclsh+set}" = set; then withval="$with_tclsh" : else with_tclsh=yes fi case "$with_tclsh" in no) # User specified --without-tclsh; this makes no sense, # print a warning and search for it ourselves echo "configure: warning: Option '--without-tclsh' Causes some convenience scripts to be unusable." 1>&2 ccafe_have_tclsh=no ;; yes) # User didn't give the option or didn't give useful # information, search for it ourselves with_tclsh=_searching ;; *) TCLSH="$with_tclsh" ccafe_have_tclsh=yes ;; esac if test "$with_tclsh" = _searching ; then # Extract the first word of "tclsh", so it can be a program name with args. set dummy tclsh; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:4413: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_tclsh_1'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$tclsh_1"; then ac_cv_prog_tclsh_1="$tclsh_1" # Let the user override the test. else 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_prog_tclsh_1="tclsh" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_prog_tclsh_1" && ac_cv_prog_tclsh_1="NONE" fi fi tclsh_1="$ac_cv_prog_tclsh_1" if test -n "$tclsh_1"; then echo "$ac_t""$tclsh_1" 1>&6 else echo "$ac_t""no" 1>&6 fi if test ! "$tclsh_1" = NONE ; then TCLSH=`which $tclsh_1` ccafe_have_tclsh=yes fi fi #------------------------------------------------------------------------------ # see if the user gave us the location of the ruby #------------------------------------------------------------------------------ RUBY=/usr/bin/ruby # Check whether --with-ruby or --without-ruby was given. if test "${with_ruby+set}" = set; then withval="$with_ruby" : else with_ruby=yes fi case "$with_ruby" in no) # User specified --without-ruby. # print a warning and search for it ourselves if test 0 = 0 ; then RUBY=: echo "configure: warning: Option '--without-ruby' Causes some convenience scripts to be unusable." 1>&2 ccafe_have_ruby=no fi ;; yes) # User didn't give the option or didn't give useful # information, search for it ourselves with_ruby=_searching ;; *) RUBY="$with_ruby" ccafe_have_ruby=yes ;; esac if test "$with_ruby" = _searching ; then # Extract the first word of "ruby", so it can be a program name with args. set dummy ruby; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:4485: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_ruby_1'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$ruby_1"; then ac_cv_prog_ruby_1="$ruby_1" # Let the user override the test. else 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_prog_ruby_1="ruby" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_prog_ruby_1" && ac_cv_prog_ruby_1="NONE" fi fi ruby_1="$ac_cv_prog_ruby_1" if test -n "$ruby_1"; then echo "$ac_t""$ruby_1" 1>&6 else echo "$ac_t""no" 1>&6 fi if test ! "$ruby_1" = NONE ; then RUBY=`which $ruby_1` ccafe_have_ruby=yes else if test 0 = 0 ; then echo "configure: warning: Unable to locate ruby. Some convenience scripts may be unavailable." 1>&2 fi fi fi #------------------------------------------------------------------------------ # see if the user gave us the location of the swig #------------------------------------------------------------------------------ SWIG=/usr/bin/swig # Check whether --with-swig or --without-swig was given. if test "${with_swig+set}" = set; then withval="$with_swig" : else with_swig=yes fi case "$with_swig" in no) # User specified --without-swig # print a warning and search for it ourselves echo "configure: warning: Option '--without-swig' Causes some convenience scripts and python interfaces to be unusable." 1>&2 ccafe_have_swig=no SWIG="" ;; yes) # User didn't give the option or didn't give useful # information, search for it ourselves with_swig=_searching ;; *) SWIG="$with_swig" ccafe_have_swig=yes ;; esac if test "$with_swig" = _searching ; then # Extract the first word of "swig", so it can be a program name with args. set dummy swig; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:4559: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_swig_1'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$swig_1"; then ac_cv_prog_swig_1="$swig_1" # Let the user override the test. else 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_prog_swig_1="swig" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_prog_swig_1" && ac_cv_prog_swig_1="NONE" fi fi swig_1="$ac_cv_prog_swig_1" if test -n "$swig_1"; then echo "$ac_t""$swig_1" 1>&6 else echo "$ac_t""no" 1>&6 fi if test ! "$swig_1" = NONE ; then SWIG=`which $swig_1` ccafe_have_swig=yes fi fi SWIG_HOME="$SWIG" #-------------------------------------------------------------------- # Suck in the folklore for mpi, if needed. # Always: # MPI, MPI_ARCH, MPICC, MPICXX, MPIRUN # When mpicc and mpiCC are broken, as is frequently the case # MPI_LDFLAGS, MPILIB # Note that we need to finish the failure cases and expand folklore # to cope with broken mpiCC. Or we need mpich to just work in every # single release. Or we need MPI forum to standardize on a # "configuration variables" sh includable file to live in # $MPI_HOME/lib/config.vars so we don't need mpiCC, or ... #-------------------------------------------------------------------- # Check whether --with-mpi or --without-mpi was given. if test "${with_mpi+set}" = set; then withval="$with_mpi" : else with_mpi=yes fi case "$with_mpi" in no) ccafe_have_mpi=no ;; yes) with_mpi=_searching ;; *) MPI="$with_mpi" ;; esac if test "$with_mpi" = _searching ; then ccafe_have_mpi=no echo $ac_n "checking for mpi""... $ac_c" 1>&6 echo "configure:4631: checking for mpi" >&5 for mhome in $ccafe_mpich_dirs ; do echo checking for mpi in $mhome ... if test -x $mhome/bin/mpirun; then MPI=$mhome MPIRUN=$MPI/bin/mpirun MPI_ARCH=`$mhome/bin/tarch` echo "$ac_t""$mhome ($MPI_ARCH) found." 1>&6 ccafe_have_mpi=yes break fi done if test -z "$MPI" ; then ccafe_have_mpi=no echo "$ac_t""mpi not found. mpi-based components and tests disabled. --with-mpi=/path/of/mpi to enable them. See configure --help for additional mpi options management." 1>&6 fi fi # we think we have something. check that it runs # and if not, sigh and go to folklore. ccafe_try_mpi_folklore=no if test ! "X$ccafe_have_mpi" = Xno ; then if test -x $MPI/bin/mpirun -a "X$ccafe_try_mpi_folklore" = Xno ; then MPIRUN=$MPI/bin/mpirun else MPIRUN=broken echo "configure: warning: mpirun executable not found. Specify using --with-mpi-run." 1>&2 ccafe_try_mpi_folklore=yes fi if test -x $MPI/bin/tarch -a "X$ccafe_try_mpi_folklore" = Xno ; then MPI_ARCH=`$MPI/bin/tarch` else MPI_ARCH="Set_MPI_ARCH_in_Makefile.Vars_manually" echo "configure: warning: tarch executable not found. Specify using --with-mpi-arch." 1>&2 ccafe_try_mpi_folklore=yes fi if test -x $MPI/bin/mpicc -a "X$ccafe_try_mpi_folklore" = Xno ; then echo $ac_n "checking mpicc""... $ac_c" 1>&6 echo "configure:4671: checking mpicc" >&5 $MPI/bin/mpicc -o config.cpi.exe config/cpi.c if test -x config.cpi.exe ; then echo "$ac_t""yes" 1>&6 MPICC=$MPI/bin/mpicc else MPICC=broken BROKEN_MPICC=$MPI/bin/mpicc echo "$ac_t""broken." 1>&6 echo "configure: warning: mpicc found appears broken. Override using --with-mpi-cc=path." 1>&2 fi rm -f config.cpi.exe cpi.o fi mpiCCfound=no if test -x $MPI/bin/mpiCC -a "X$ccafe_try_mpi_folklore" = Xno ; then echo $ac_n "checking mpiCC""... $ac_c" 1>&6 echo "configure:4687: checking mpiCC" >&5 $MPI/bin/mpiCC -o config.cppi.exe config/cpi.cpp if test -x config.cppi.exe ; then echo "$ac_t""yes" 1>&6 MPICXX=$MPI/bin/mpiCC mpiCCfound=yes fi fi if test -x $MPI/bin/mpicxx -a "X$ccafe_try_mpi_folklore" = Xno ; then echo $ac_n "checking mpicxx""... $ac_c" 1>&6 echo "configure:4697: checking mpicxx" >&5 $MPI/bin/mpicxx -o config.cppi.exe config/cpi.cpp if test -x config.cppi.exe ; then echo "$ac_t""yes" 1>&6 MPICXX=$MPI/bin/mpicxx mpiCCfound=yes fi fi if test "x$mpiCCfound" = "xno"; then MPICXX=broken BROKEN_MPICXX=$MPI/bin/mpiCC echo "$ac_t""broken." 1>&6 echo "configure: warning: mpiCC found appears broken. Override using --with-mpi-cxx=path." 1>&2 fi rm -f config.cppi.exe cpi.o if test "X$ccafe_try_mpi_folklore" = Xno ; then MPI_HOME=$MPI fi if test -d $MPI/include -a "X$ccafe_try_mpi_folklore" = Xno ; then MPI_INC=-I$MPI/include fi if test -d $MPI/bin -a "X$ccafe_try_mpi_folklore" = Xno ; then MPI_BIN=$MPI/bin if test -x $MPI/bin/mpif77 ; then MPIF77=$MPI/bin/mpif77 fi if test -x $MPI/bin/mpif90 ; then MPIF90=$MPI/bin/mpif90 fi fi fi if test "X$ccafe_try_mpi_folklore" = Xyes ; then echo "configure: warning: SIGH! rummaging about in history for mpi. Consider using the --with-mpi-OPTION switches found in configure --help if our rummaging guesses wrong." 1>&2 CCAFE_MPI_HUNT=yes . config/mpi.folklore fi if test -d "$MPI/build/$MPI_ARCH/ch_p4/include" ; then MPI_INC_ODD="-I$MPI/build/$MPI_ARCH/ch_p4/include" fi if test -s "$MPI/build/$MPI_ARCH/ch_p4/lib/libmpich.a" ; then MPILIB="$MPI/build/$MPI_ARCH/ch_p4/lib/libmpich.a" MPI_LIBDIR="$MPI/build/$MPI_ARCH/ch_p4/lib" fi if test -d "$MPI/include/mpi2c++" ; then MPI_INC_ODD="-I$MPI/include/mpi2c++ $MPI_INC_ODD" fi # hack around mpich 1.2.4 pmpich library bug if test -s "$MPI/lib/libmpich.a" ; then MPI_LIBDIR="$MPI/lib" MPILIB="$MPI/lib/libmpich.a" if test -s "$MPI_LIBDIR/libpmpich.a" ; then MPILIB="$MPILIB $MPI_LIBDIR/libpmpich.a" MPILIB="$MPILIB $MPILIB" fi fi # guess out the darned .so for rob if test -s "$MPI_LIBDIR/libmpi.so"; then MPI_SO_LIBDIR="$MPI_SO_LIBDIR" MPILD_SO_FLAGS="$MPI_LIBDIR/libmpi.so"; fi if test -s "$MPI_LIBDIR/libmpich.so"; then MPI_SO_LIBDIR="$MPI_SO_LIBDIR" MPILD_SO_FLAGS="$MPI_LIBDIR/libmpich.so"; fi if test -s "$MPI_LIBDIR/shared/libmpi.so"; then MPI_SO_LIBDIR="$MPI_SO_LIBDIR/shared" MPILD_SO_FLAGS="$MPI_LIBDIR/shared/libmpi.so"; fi if test -s "$MPI_LIBDIR/shared/libmpich.so"; then MPI_SO_LIBDIR="$MPI_SO_LIBDIR/shared" MPILD_SO_FLAGS="$MPI_LIBDIR/shared/libmpich.so"; fi if test -s "$MPI_LIBDIR/shared/libmpich.so"; then MPI_SO_LIBDIR="$MPI_SO_LIBDIR/shared" MPILD_SO_FLAGS="$MPI_LIBDIR/shared/libmpich.so"; fi MPI_STATIC_LIBS=$MPILIB MPI_SO_LIBS=$MPILD_SO_FLAGS # overrides after all our guessing junk # aux mpi switches # --with-mpi-mpd # --with-mpi-arch= # --with-mpi-bin= # --with-mpi-inc= # # --with-mpi-cc= # --with-mpi-cxx= # --with-mpi-f77= # --with-mpi-f90= # --with-mpi-ld= # --with-mpi-run= # --with-mpi-prerun= #-------------------------------------------------------------------- # mpi mpd flag for launchscripts. #-------------------------------------------------------------------- # Check whether --with-mpi-mpd or --without-mpi-mpd was given. if test "${with_mpi_mpd+set}" = set; then withval="$with_mpi_mpd" : else with_mpi_mpd=no fi case "$with_mpi_mpd" in no) MPI_IS_MPD=0 echo "$ac_t""checking mpi is mpd ... nope." 1>&6 ;; yes) MPI_IS_MPD=1 echo "$ac_t""checking mpi is mpd ... mpi mpd specified." 1>&6 ;; *) MPI_IS_MPD=0 { echo "configure: error: Option --with-mpi-mpd=$with_mpi_arch: value is yes/no only." 1>&2; exit 1; } ;; esac #-------------------------------------------------------------------- # mpi arch override #-------------------------------------------------------------------- # Check whether --with-mpi-arch or --without-mpi-arch was given. if test "${with_mpi_arch+set}" = set; then withval="$with_mpi_arch" : else with_mpi_arch=no fi case "$with_mpi_arch" in no) # so nothing ;; yes) echo "configure: warning: Option '--with-mpi-arch=yes': yes not a valid arch value." 1>&2 ;; *) MPI_ARCH="$with_mpi_arch" ;; esac #-------------------------------------------------------------------- # mpi includes override #-------------------------------------------------------------------- # Check whether --with-mpi-inc or --without-mpi-inc was given. if test "${with_mpi_inc+set}" = set; then withval="$with_mpi_inc" : else with_mpi_inc=no fi case "$with_mpi_inc" in no) # so nothing ;; yes) echo "configure: warning: Option '--with-mpi-inc=yes': yes not a valid value." 1>&2 ;; *) MPI_INC="$with_mpi_inc" ;; esac #-------------------------------------------------------------------- # mpi bin override #-------------------------------------------------------------------- # Check whether --with-mpi-bin or --without-mpi-bin was given. if test "${with_mpi_bin+set}" = set; then withval="$with_mpi_bin" : else with_mpi_bin=no fi case "$with_mpi_bin" in no) # so nothing ;; yes) echo "configure: warning: Option '--with-mpi-bin=yes': yes not a valid path value." 1>&2 ;; *) if test -x "$with_mpi_bin"/mpicc ; then MPICC="$with_mpi_bin"/mpicc else echo "configure: warning: Option '--with-mpi-bin: given bin contains no mpicc." 1>&2 fi mpicxxfound=no if test -x "$with_mpi_bin"/mpiCC ; then MPICXX="$with_mpi_bin"/mpiCC mpicxxfound=yes else if test -x "$with_mpi_bin"/mpicxx ; then MPICXX="$with_mpi_bin"/mpicxx mpicxxfound=yes fi fi if test "x$mpicxxfound" = "xno"; then echo "configure: warning: Option '--with-mpi-bin: given bin contains no mpiCC/mpicxx." 1>&2 fi if test -x "$with_mpi_bin"/mpirun ; then MPIRUN="$with_mpi_bin"/mpirun else echo "configure: warning: Option '--with-mpi-bin: given bin contains no mpirun." 1>&2 fi if test -x "$with_mpi_bin"/mpif77 ; then MPIF77="$with_mpi_bin"/mpif77 else echo "configure: warning: Option '--with-mpi-bin: given bin contains no mpif77." 1>&2 fi if test -x "$with_mpi_bin"/mpif90 ; then MPIF90="$with_mpi_bin"/mpif90 else echo "configure: warning: Option '--with-mpi-bin: given bin contains no mpif90." 1>&2 fi ;; esac #-------------------------------------------------------------------- # mpif77 override #-------------------------------------------------------------------- # Check whether --with-mpi-f77 or --without-mpi-f77 was given. if test "${with_mpi_f77+set}" = set; then withval="$with_mpi_f77" : else with_mpi_f77=no fi case "$with_mpi_f77" in no) # so nothing ;; yes) echo "configure: warning: Option '--with-mpi-f77=yes': yes not a valid compiler." 1>&2 ;; *) MPIF77="$with_mpi_f77" ;; esac #-------------------------------------------------------------------- # mpif90 override #-------------------------------------------------------------------- # Check whether --with-mpi-f90 or --without-mpi-f90 was given. if test "${with_mpi_f90+set}" = set; then withval="$with_mpi_f90" : else with_mpi_f90=no fi case "$with_mpi_f90" in no) # so nothing ;; yes) echo "configure: warning: Option '--with-mpi-f90=yes': yes not a valid compiler." 1>&2 ;; *) MPIF90="$with_mpi_f90" ;; esac MPI_LD="$MPICXX" #-------------------------------------------------------------------- # mpicxx override #-------------------------------------------------------------------- # Check whether --with-mpi-cxx or --without-mpi-cxx was given. if test "${with_mpi_cxx+set}" = set; then withval="$with_mpi_cxx" : else with_mpi_cxx=no fi case "$with_mpi_cxx" in no) # so nothing ;; yes) echo "configure: warning: Option '--with-mpi-cxx=yes': yes not a valid compiler." 1>&2 ;; *) MPICXX="$with_mpi_cxx" MPI_LD="$with_mpi_cxx" ;; esac #-------------------------------------------------------------------- # mpi_ld override #-------------------------------------------------------------------- # Check whether --with-mpi-ld or --without-mpi-ld was given. if test "${with_mpi_ld+set}" = set; then withval="$with_mpi_ld" : else with_mpi_ld=no fi case "$with_mpi_ld" in no) # so nothing ;; yes) echo "configure: warning: Option '--with-mpi-ld=yes': yes not a valid compiler." 1>&2 ;; *) MPI_LD="$with_mpi_ld" ;; esac #-------------------------------------------------------------------- # mpicc override #-------------------------------------------------------------------- # Check whether --with-mpi-cc or --without-mpi-cc was given. if test "${with_mpi_cc+set}" = set; then withval="$with_mpi_cc" : else with_mpi_cc=no fi case "$with_mpi_cc" in no) # so nothing ;; yes) echo "configure: warning: Option '--with-mpi-cc=yes': yes not a valid compiler." 1>&2 ;; *) MPICC="$with_mpi_cc" ;; esac #-------------------------------------------------------------------- # mpirun override #-------------------------------------------------------------------- # Check whether --with-mpi-run or --without-mpi-run was given. if test "${with_mpi_run+set}" = set; then withval="$with_mpi_run" : else with_mpi_run=no fi case "$with_mpi_run" in no) # so nothing ;; yes) echo "configure: warning: Option '--with-mpi-run=yes': yes not a valid launcher." 1>&2 ;; *) MPIRUN="$with_mpi_run" ;; esac #-------------------------------------------------------------------- # mpiprerun override #-------------------------------------------------------------------- # Check whether --with-mpi-prerun or --without-mpi-prerun was given. if test "${with_mpi_prerun+set}" = set; then withval="$with_mpi_prerun" : else with_mpi_prerun=no fi case "$with_mpi_prerun" in no) # so nothing ;; yes) echo "configure: warning: Option '--with-mpi-prerun=yes': yes not a valid launcher." 1>&2 ;; *) MPIPRERUN="$with_mpi_prerun" ;; esac # no-wrapper flags # --with-mpi-lib-static= # --with-mpi-lib-dynamic= # --with-mpi-ldflags-static= # --with-mpi-ldflags-dynamic= # --with-mpi-cflags= # --with-mpi-fflags= # --with-mpi-cxxflags= #-------------------------------------------------------------------- # mpi-lib-static #-------------------------------------------------------------------- # Check whether --with-mpi-lib-static or --without-mpi-lib-static was given. if test "${with_mpi_lib_static+set}" = set; then withval="$with_mpi_lib_static" : else with_mpi_lib_static=no fi case "$with_mpi_lib_static" in no) # so nothing ;; yes) echo "configure: warning: Option '--with-mpi-lib-static=yes': yes not a valid link item." 1>&2 ;; *) MPI_STATIC_LIBS="$with_mpi_lib_static" MPILIB="$with_mpi_lib_static" ;; esac #-------------------------------------------------------------------- # mpi-lib-dynamic #-------------------------------------------------------------------- # Check whether --with-mpi-lib-dynamic or --without-mpi-lib-dynamic was given. if test "${with_mpi_lib_dynamic+set}" = set; then withval="$with_mpi_lib_dynamic" : else with_mpi_lib_dynamic=no fi case "$with_mpi_lib_dynamic" in no) # so nothing ;; yes) echo "configure: warning: Option '--with-mpi-lib-dynamic=yes': yes not a valid link item." 1>&2 ;; *) MPI_SO_LIBS="$with_mpi_lib_dynamic" ;; esac #-------------------------------------------------------------------- # mpi-ldflags-dynamic #-------------------------------------------------------------------- # Check whether --with-mpi-ldflags-dynamic or --without-mpi-ldflags-dynamic was given. if test "${with_mpi_ldflags_dynamic+set}" = set; then withval="$with_mpi_ldflags_dynamic" : else with_mpi_ldflags_dynamic=no fi case "$with_mpi_ldflags_dynamic" in no) # so nothing ;; yes) echo "configure: warning: Option '--with-mpi-ldflags-dynamic=yes': yes not a valid flag." 1>&2 ;; *) MPI_SO_LDFLAGS="$with_mpi_ldflags_dynamic" ;; esac #-------------------------------------------------------------------- # mpi-ldflags-static #-------------------------------------------------------------------- # Check whether --with-mpi-ldflags-static or --without-mpi-ldflags-static was given. if test "${with_mpi_ldflags_static+set}" = set; then withval="$with_mpi_ldflags_static" : else with_mpi_ldflags_static=no fi case "$with_mpi_ldflags_static" in no) # so nothing ;; yes) echo "configure: warning: Option '--with-mpi-ldflags-static=yes': yes not a valid flag." 1>&2 ;; *) MPI_STATIC_LDFLAGS="$with_mpi_ldflags_static" ;; esac #-------------------------------------------------------------------- # mpi-cflags #-------------------------------------------------------------------- # Check whether --with-mpi-cflags or --without-mpi-cflags was given. if test "${with_mpi_cflags+set}" = set; then withval="$with_mpi_cflags" : else with_mpi_cflags=no fi case "$with_mpi_cflags" in no) # so nothing ;; yes) echo "configure: warning: Option '--with-mpi-cflags=yes': yes not a valid flag." 1>&2 ;; *) MPI_CFLAGS="$with_mpi_cflags" ;; esac #-------------------------------------------------------------------- # mpi-fflags #-------------------------------------------------------------------- # Check whether --with-mpi-fflags or --without-mpi-fflags was given. if test "${with_mpi_fflags+set}" = set; then withval="$with_mpi_fflags" : else with_mpi_fflags=no fi case "$with_mpi_fflags" in no) # so nothing ;; yes) echo "configure: warning: Option '--with-mpi-fflags=yes': yes not a valid flag." 1>&2 ;; *) MPI_FFLAGS="$with_mpi_fflags" ;; esac #-------------------------------------------------------------------- # mpi-cxxflags -- this needs to be the last mpi thing so that # the comment appearing in configure --help is correct. #-------------------------------------------------------------------- # Check whether --with-mpi-cxxflags or --without-mpi-cxxflags was given. if test "${with_mpi_cxxflags+set}" = set; then withval="$with_mpi_cxxflags" : else with_mpi_cxxflags=no fi case "$with_mpi_cxxflags" in no) # so nothing ;; yes) echo "configure: warning: Option '--with-mpi-cxxflags=yes': yes not a valid flag." 1>&2 ;; *) MPI_CXXFLAGS="$with_mpi_cxxflags" ;; esac # # END of MPI CRUFT ####################################################### # END of MPI CRUFT ####################################################### # # determine if namespaces close with }; or } ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross NAMESPACE_NEEDS_ENDSEMI="broken" NAMESPACE_TEST_DONE="no" echo $ac_n "checking C++ for namespaces closed with ;""... $ac_c" 1>&6 echo "configure:5293: checking C++ for namespaces closed with ;" >&5 # create test code cat > conftest.$ac_ext <&6 NAMESPACE_NEEDS_ENDSEMI="" NAMESPACE_TEST_DONE="yes" fi # if test "$NAMESPACE_NEEDS_ENDSEMI" = broken -a -x config.nsWithSemi.exe ; then # if compiler allows it, use it. if test "$NAMESPACE_TEST_DONE" = "no" ; then if test -x config.nsWithSemi.exe ; then echo "$ac_t""yes" 1>&6 NAMESPACE_NEEDS_ENDSEMI=";" fi fi if test "NAMESPACE_NEEDS_ENDSEMI" = broken ; then echo "$ac_t""no" 1>&6 { echo "configure: error: C++ compiler {$CXX}cannot compile namespaces. Bye!." 1>&2; exit 1; } fi rm -f config.nsWithoutSemi.exe config.nsWithSemi.exe conftest.$ac_ext ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross CCA_NAMESPACE_ENDSEMICOLON=NAMESPACE_NEEDS_ENDSEMI CCAFE_FORCE="" #-------------------------------------------------------------------- # See if we can find BLAS and link it static. #-------------------------------------------------------------------- # Check whether --with-blas or --without-blas was given. if test "${with_blas+set}" = set; then withval="$with_blas" : else with_blas=no fi case $with_blas in no) BLASLIB= ;; yes) # The user didn't give the --with-blas # option or didn't give the library's location. # Search for a compiled libblas.a. # If that fails, disable and print a warning. # Extract the first word of "libblas.a", so it can be a program name with args. set dummy libblas.a; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:5387: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_BLASLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$BLASLIB" in /*) ac_cv_path_BLASLIB="$BLASLIB" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_BLASLIB="$BLASLIB" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$ccafe_math_support_dirs" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_BLASLIB="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi BLASLIB="$ac_cv_path_BLASLIB" if test -n "$BLASLIB"; then echo "$ac_t""$BLASLIB" 1>&6 else echo "$ac_t""no" 1>&6 fi ;; *) # The user gave us --with-blas=BLASLIB, use that as the # location of the BLAS library. BLASLIB="$with_blas" ;; esac if test -z "$BLASLIB" ; then if test ! "X$with_blas" = Xno ; then echo "configure: warning: Cannot find libblas.a. Building CCAFFEINE without BLAS linked. Expect HPC numeric components to bomb. To specify a location for the blas library, run configure again with the argument: --with-blas=BLASLIB where BLASLIB is the full path to the blas library file." 1>&2 else echo "configure: warning: Built without BLAS library." 1>&2 fi else CCAFE_FORCE="$CCAFE_FORCE -D_HAVE_BLAS" fi #------------------- # find xml2 lib, include, etc. see config/ directory. #------------------- HAVE_XML=1 # Check whether --with-xml2-config or --without-xml2-config was given. if test "${with_xml2_config+set}" = set; then withval="$with_xml2_config" : else with_xml2_config=yes fi if test "X$with_xml2_config" = Xyes; then # Extract the first word of "xml2-config", so it can be a program name with args. set dummy xml2-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:5459: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_bogoXML2config'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$bogoXML2config" in /*) ac_cv_path_bogoXML2config="$bogoXML2config" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_bogoXML2config="$bogoXML2config" # 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_bogoXML2config="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_bogoXML2config" && ac_cv_path_bogoXML2config="NO_XML" ;; esac fi bogoXML2config="$ac_cv_path_bogoXML2config" if test -n "$bogoXML2config"; then echo "$ac_t""$bogoXML2config" 1>&6 else echo "$ac_t""no" 1>&6 fi if test "X$bogoXML2config" = XNO_XML; then echo "configure: warning: Cannot find xml2-config. xml-dependent functions will be disabled. If libxml2 is installed, try adding --with-xml2-config=XML2-CONFIG to your configure options." 1>&2 XML2CONFIG=: HAVE_XML=0 else XML2CONFIG=$bogoXML2config fi else XML2CONFIG=$with_xml2_config if test "X$with_xml2_config" = Xno; then XML2CONFIG=: HAVE_XML=0 fi fi XMLLIB= XMLINC="-DHAVE_XML=0" if test "x$HAVE_XML" = "x1"; then XMLLIB=`$XML2CONFIG --libs` XMLINC="`$XML2CONFIG --cflags` -DHAVE_XML=1" fi # Check whether --with-xml2-includes or --without-xml2-includes was given. if test "${with_xml2_includes+set}" = set; then withval="$with_xml2_includes" : else with_xml2_includes="no" fi if test "x$with_xml2_includes" = "xno"; then : else XMLINC=$with_xml2_includes fi # Check whether --with-xml2-libs or --without-xml2-libs was given. if test "${with_xml2_libs+set}" = set; then withval="$with_xml2_libs" : else with_xml2_libs="no" fi if test "x$with_xml2_libs" = "xno"; then : else XMLLIB=$with_xml2_libs fi # find doxygen, dot. see config/ directory. # Check whether --with-doxygen or --without-doxygen was given. if test "${with_doxygen+set}" = set; then withval="$with_doxygen" : else with_doxygen=yes fi case "$with_doxygen" in no) # User specified --without-doxygen; echo "configure: warning: Option '--without-doxygen' Causes some c++ documentation generation to be skipped." 1>&2 cca_have_doxygen=no ;; yes) # User didn't give the option or didn't give useful # information, search for it ourselves with_doxygen=_searching ;; *) DOXYGEN="$with_doxygen" cca_have_doxygen=yes ;; esac if test "$with_doxygen" = _searching ; then # Extract the first word of "doxygen", so it can be a program name with args. set dummy doxygen; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:5577: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_doxygen_1'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$doxygen_1"; then ac_cv_prog_doxygen_1="$doxygen_1" # Let the user override the test. else 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_prog_doxygen_1="doxygen" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_prog_doxygen_1" && ac_cv_prog_doxygen_1="NONE" fi fi doxygen_1="$ac_cv_prog_doxygen_1" if test -n "$doxygen_1"; then echo "$ac_t""$doxygen_1" 1>&6 else echo "$ac_t""no" 1>&6 fi if test ! "$doxygen_1" = NONE ; then DOXYGEN=`which $doxygen_1` cca_have_doxygen=yes fi fi DOXYGENTARG="dox" if test -z "$DOXYGEN" ; then echo "$ac_t""Building without doxygen. Use --with-doygen=/doxygen/location/executableName." 1>&6 DOXYGENTARG="" DOXYGEN="@echo no-doxygen" fi DOT="" # Check whether --with-dot or --without-dot was given. if test "${with_dot+set}" = set; then withval="$with_dot" : else with_dot=yes fi case "$with_dot" in no) # User specified --without-dot; echo "configure: warning: Option '--without-dot' Causes c++ documentation graph generation to be skipped." 1>&2 cca_have_dot=no ;; yes) # User didn't give the option or didn't give useful # information, search for it ourselves with_dot=_searching ;; *) DOT="$with_dot" cca_have_dot=yes if test ! -d $DOT; then { echo "configure: error: --with-dot requires no, yes, or the name of a directory containing the program dot. " 1>&2; exit 1; } fi if test ! -x $DOT/dot; then echo "configure: warning: --with-dot=$DOT: directory given does not contain dot program. Checking the path. " 1>&2 with_dot=_searching DOT="" fi ;; esac if test "$with_dot" = _searching ; then # Extract the first word of "dot", so it can be a program name with args. set dummy dot; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:5662: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_dot_1'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$dot_1"; then ac_cv_prog_dot_1="$dot_1" # Let the user override the test. else 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_prog_dot_1="dot" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_prog_dot_1" && ac_cv_prog_dot_1="NONE" fi fi dot_1="$ac_cv_prog_dot_1" if test -n "$dot_1"; then echo "$ac_t""$dot_1" 1>&6 else echo "$ac_t""no" 1>&6 fi if test ! "$dot_1" = NONE ; then DOT=`which $dot_1` cca_have_dot=yes fi fi DOTTARG="YES" if test -z "$DOT" ; then echo "$ac_t""Building without dot for doxygen documentation. Use --with-dot=/dot/location/bin." 1>&6 DOTTARG="NO" DOT="@echo no-dot" fi #-------------------------------------------------------------------- # See if we can find lapack and link it static. #-------------------------------------------------------------------- # Check whether --with-lapack or --without-lapack was given. if test "${with_lapack+set}" = set; then withval="$with_lapack" : else with_lapack=no fi if test "X$with_blas" = Xno ; then with_lapack=no fi case $with_lapack in no) LAPACKLIB= ;; yes) # The user didn't give the --with-lapack # option or didn't give the library's location. # Search for a compiled liblapack.a. # If that fails, disable and print a warning. for ac_prog in liblapack.a do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:5736: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_LAPACKLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$LAPACKLIB" in /*) ac_cv_path_LAPACKLIB="$LAPACKLIB" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_LAPACKLIB="$LAPACKLIB" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$ccafe_math_support_dirs" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_LAPACKLIB="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi LAPACKLIB="$ac_cv_path_LAPACKLIB" if test -n "$LAPACKLIB"; then echo "$ac_t""$LAPACKLIB" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$LAPACKLIB" && break done ;; *) # The user gave us --with-lapack=LAPACKLIB, use that as the # location of the LAPACK library. LAPACKLIB="$with_lapack" ;; esac if test -z "$LAPACKLIB" ; then if test ! "X$with_lapack" = Xno ; then echo "configure: warning: Cannot find liblapack.a. Building CCAFFEINE without LAPACK linked. Expect HPC numeric components to bomb. To specify a location for the lapack library, run configure again with the argument: --with-lapack=LAPACKLIB where LAPACKLIB is the full path to the lapack library file, e.g. --with-lapack=/usr/lib/libcomplib.sgimath.a or --with-lapack=/usr/local/lib/libessl.a." 1>&2 else echo "configure: warning: Built without LAPACK library." 1>&2 fi else CCAFE_FORCE="$CCAFE_FORCE -D_HAVE_LAPACK" fi if test -n "$LAPACKLIB" -o -n "$BLASLIB" then for ac_prog in libatlas.a do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:5804: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_BLASX1'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$BLASX1" in /*) ac_cv_path_BLASX1="$BLASX1" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_BLASX1="$BLASX1" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$ccafe_math_support_dirs" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_BLASX1="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi BLASX1="$ac_cv_path_BLASX1" if test -n "$BLASX1"; then echo "$ac_t""$BLASX1" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$BLASX1" && break done for ac_prog in libcblas.a do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:5844: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_BLASX2'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$BLASX2" in /*) ac_cv_path_BLASX2="$BLASX2" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_BLASX2="$BLASX2" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$ccafe_math_support_dirs" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_BLASX2="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi BLASX2="$ac_cv_path_BLASX2" if test -n "$BLASX2"; then echo "$ac_t""$BLASX2" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$BLASX2" && break done BLASEXTRALIBS="$BLASX1 $BLASX2" echo "configure: warning: Found these "extra" BLAS libs: $BLASEXTRALIBS; These will be included in the link" 1>&2 fi #-------------------------------------------------------------------- # See if we can find Boost # side effects: # BOOST_ROOT becomes defined if boost found or "" if not. # AC_SUBST for BOOST_ROOT is not a side effect, per autoconf macro # guidelines. #-------------------------------------------------------------------- # Check whether --with-boost or --without-boost was given. if test "${with_boost+set}" = set; then withval="$with_boost" : else with_boost=yes fi case $with_boost in no) # can't live without BOOST BOOST_ROOT=no echo "$ac_t""BOOST disabled." 1>&6 ;; yes) # The user didn't give the --with-boost # option or didn't give the library's location. # If that fails, disable and print a warning. BOOST_ROOT="yes" ;; *) # The user gave us --with-boost=BOOST_ROOT, use that as the # location of the BOOST library. BOOST_ROOT="$with_boost" echo "$ac_t""BOOST root given." 1>&6 ;; esac # test for success ccafe_boost_dirs="/usr/include:/usr/local:/usr/local/include:$HOME:$HOME/include" if test "$BOOST_ROOT" = "yes" ; then BOOST_ROOT="" var="BOOST_ROOT" testFiles="boost/shared_ptr.hpp" path=""$ccafe_boost_dirs"" result=_searching paths=`echo $path|tr ":" " "` for chome in $paths ; do for testFile in $testFiles ; do if ! test -f $chome/$testFile ; then result=_searching break fi result=$chome done if test "$result" = "$chome" ; then BOOST_ROOT=$result if test -n ': ' ; then # if found : fi # echo " found: $result" break; fi done if test "$result" = _searching ; then if test -n 'BOOST_ROOT=no' ; then #if not found BOOST_ROOT=no fi fi fi if ! test "$BOOST_ROOT" = "yes" ; then echo $ac_n "checking BOOST smart pointers""... $ac_c" 1>&6 echo "configure:5962: checking BOOST smart pointers" >&5 if test -f $BOOST_ROOT/boost/shared_ptr.hpp ; then echo "$ac_t""yes" 1>&6 else echo "$ac_t""nope. Path given or found, $BOOST_ROOT, contains no boost/shared_ptr.hpp header." 1>&6 { echo "configure: error: Sorry, cannot build without boost. Try configuring --with-boost=/full/path/to/include, eg. --with-boost=/usr/local/include" 1>&2; exit 1; } fi fi if test "$BOOST_ROOT" = "no" ; then { echo "configure: error: Cannot find BOOST headers. Make sure that the specified path has the directory boost/ in it and does not have it *included* in the path. Ccaffeine cannot be built without BOOST smart pointers To specify a location for the BOOST smart pointer library run configure again with the argument: --with-boost=BOOST_ROOT where BOOST_ROOT is the full path to the boost headers. See http://www.boost.org for more details. " 1>&2; exit 1; } fi BOOST_INC="-I$BOOST_ROOT" BOOST_FLAGS=-DBOOST_DISABLE_THREADS if test "$BOOST_ROOT" = "/usr/include" ; then BOOST_INC="" fi if test "$BOOST_ROOT" = "/usr/local/include" ; then BOOST_INC="" fi #-------------------------------------------------------------------- # On a few very rare systems, all of the libm.a stuff is # already in libc.a. Set compiler flags accordingly. # Also, Linux requires the "ieee" library for math to work # right (and it must appear before "-lm"). #-------------------------------------------------------------------- echo $ac_n "checking for sin""... $ac_c" 1>&6 echo "configure:6009: checking for sin" >&5 if eval "test \"`echo '$''{'ac_cv_func_sin'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char sin(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_sin) || defined (__stub___sin) choke me #else sin(); #endif ; return 0; } EOF if { (eval echo configure:6037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_sin=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_sin=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then echo "$ac_t""yes" 1>&6 MATH_LIBS="$LAPACKLIB $BLASLIB $BLASEXTRALIBS" else echo "$ac_t""no" 1>&6 MATH_LIBS="$LAPACKLIB $BLASLIB $BLASEXTRALIBS -lm" fi echo $ac_n "checking for main in -lieee""... $ac_c" 1>&6 echo "configure:6058: checking for main in -lieee" >&5 ac_lib_var=`echo ieee'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lieee $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 MATH_LIBS="-lieee $MATH_LIBS" else echo "$ac_t""no" 1>&6 fi #----------------------------------------------------------------------- # On Linux, you need to add in the g2c library needed to supply # fortran run-time functions when linking fortran BLAS and LAPACK # via gcc or g++ #--------------------------------------------------------------------- echo $ac_n "checking for z_div in -lg2c""... $ac_c" 1>&6 echo "configure:6101: checking for z_div in -lg2c" >&5 ac_lib_var=`echo g2c'_'z_div | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lg2c $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 FLIBS="-lg2c $FLIBS" else echo "$ac_t""no" 1>&6 fi #-------------------------------------------------------------------- # On AIX systems, libbsd.a has to be linked in to support # non-blocking file IO. This library has to be linked in after # the MATH_LIBS or it breaks the pow() function. The way to # insure proper sequencing, is to add it to the tail of MATH_LIBS. # This library also supplies gettimeofday. #-------------------------------------------------------------------- libbsd=no if test "`uname -s`" = "AIX" ; then echo $ac_n "checking for gettimeofday in -lbsd""... $ac_c" 1>&6 echo "configure:6151: checking for gettimeofday in -lbsd" >&5 ac_lib_var=`echo bsd'_'gettimeofday | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lbsd $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 libbsd=yes else echo "$ac_t""no" 1>&6 fi if test $libbsd = yes; then MATH_LIBS="$MATH_LIBS -lbsd" fi fi echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 echo "configure:6197: checking for ANSI C header files" >&5 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include #include #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:6210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* ac_cv_header_stdc=yes else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_stdc=no fi rm -f conftest* if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "memchr" >/dev/null 2>&1; then : else rm -rf conftest* ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "free" >/dev/null 2>&1; then : else rm -rf conftest* ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat > conftest.$ac_ext < #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } EOF if { (eval echo configure:6277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_header_stdc=no fi rm -fr conftest* fi fi fi echo "$ac_t""$ac_cv_header_stdc" 1>&6 if test $ac_cv_header_stdc = yes; then cat >> confdefs.h <<\EOF #define STDC_HEADERS 1 EOF fi for ac_hdr in fcntl.h strings.h sys/file.h sys/time.h unistd.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:6304: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:6314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done LIBREADLINE_LIBS="" NO_HAVE_LIBREADLINE="//" NO_HAVE_READLINE_READLINE_H="//" NO_HAVE_READLINE_H="//" NO_HAVE_READLINE_HISTORY="//" NO_HAVE_HISTORY_H="//" NO_HAVE_READLINE_HISTORY_H="//" HAVE_LIBREADLINE=0 HAVE_READLINE_READLINE_H=0 HAVE_READLINE_H=0 HAVE_READLINE_HISTORY=0 HAVE_HISTORY_H=0 HAVE_READLINE_HISTORY_H=0 # Check whether --with-readline or --without-readline was given. if test "${with_readline+set}" = set; then withval="$with_readline" : else with_readline=yes fi if test "$with_readline" != "no"; then echo $ac_n "checking for a readline compatible library""... $ac_c" 1>&6 echo "configure:6368: checking for a readline compatible library" >&5 if eval "test \"`echo '$''{'ccafe_cv_lib_readline'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ORIG_LIBS="$LIBS" for readline_lib in readline edit editline; do for termcap_lib in "" termcap curses ncurses; do if test -z "$termcap_lib"; then TRY_LIB="-l$readline_lib" else TRY_LIB="-l$readline_lib -l$termcap_lib" fi LIBS="$ORIG_LIBS $TRY_LIB" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ccafe_cv_lib_readline="$TRY_LIB" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* if test -n "$ccafe_cv_lib_readline"; then break fi done if test -n "$ccafe_cv_lib_readline"; then break fi done if test -z "$ccafe_cv_lib_readline"; then ccafe_cv_lib_readline="no" fi LIBS="$ORIG_LIBS" fi echo "$ac_t""$ccafe_cv_lib_readline" 1>&6 if test "$ccafe_cv_lib_readline" != "no"; then HAVE_LIBREADLINE=1 LIBREADLINE_LIBS="$ccafe_cv_lib_readline" ORIG_LIBS="$LIBS" LIBS="$LIBS $ccafe_cv_lib_readline" ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext < #include int main() { char *c = readline("prompt:"); ; return 0; } EOF if { (eval echo configure:6440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* HAVE_READLINE_H=1 else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* cat > conftest.$ac_ext < #include int main() { char *c = readline("prompt:"); ; return 0; } EOF if { (eval echo configure:6456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* HAVE_READLINE_READLINE_H=1 else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* fi rm -f conftest* echo $ac_n "checking whether readline supports history""... $ac_c" 1>&6 echo "configure:6467: checking whether readline supports history" >&5 if eval "test \"`echo '$''{'ccafe_cv_lib_readline_history'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ccafe_cv_lib_readline_history="no" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ccafe_cv_lib_readline_history="yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* fi echo "$ac_t""$ccafe_cv_lib_readline_history" 1>&6 if test "$ccafe_cv_lib_readline_history" = "yes"; then HAVE_READLINE_HISTORY=1 cat > conftest.$ac_ext < #include int main() { add_history("prompt:"); ; return 0; } EOF if { (eval echo configure:6508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* HAVE_HISTORY_H=1 else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* cat > conftest.$ac_ext < #include int main() { add_history("prompt:"); ; return 0; } EOF if { (eval echo configure:6524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* HAVE_READLINE_HISTORY_H=1 else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* fi rm -f conftest* fi LIBS="$ORIG_LIBS" fi ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross fi # turn on the #defines we need for config.hh if test "x$HAVE_LIBREADLINE" = "x1" ; then NO_HAVE_LIBREADLINE="" if test "x$HAVE_READLINE_READLINE_H" = "x1" ; then NO_HAVE_READLINE_READLINE_H="" else if test "x$HAVE_READLINE_H" = "x1"; then NO_HAVE_READLINE_H="" fi fi if test "x$HAVE_READLINE_HISTORY" = "x1" ; then NO_HAVE_READLINE_HISTORY="" if test "x$HAVE_READLINE_HISTORY_H" = "x1" ; then NO_HAVE_READLINE_HISTORY_H="" else if test "x$HAVE_HISTORY_H" = "x1" ; then NO_HAVE_HISTORY_H="" fi fi fi fi echo $ac_n "checking for working const""... $ac_c" 1>&6 echo "configure:6584: checking for working const" >&5 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; } ; return 0; } EOF if { (eval echo configure:6638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_c_const=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_c_const" 1>&6 if test $ac_cv_c_const = no; then cat >> confdefs.h <<\EOF #define const EOF fi echo $ac_n "checking for size_t""... $ac_c" 1>&6 echo "configure:6659: checking for size_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS #include #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then rm -rf conftest* ac_cv_type_size_t=yes else rm -rf conftest* ac_cv_type_size_t=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_type_size_t" 1>&6 if test $ac_cv_type_size_t = no; then cat >> confdefs.h <<\EOF #define size_t unsigned EOF fi echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 echo "configure:6692: checking whether time.h and sys/time.h may both be included" >&5 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include #include int main() { struct tm *tp; ; return 0; } EOF if { (eval echo configure:6706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_time=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_time=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_header_time" 1>&6 if test $ac_cv_header_time = yes; then cat >> confdefs.h <<\EOF #define TIME_WITH_SYS_TIME 1 EOF fi #-------------------------------------------------------------------- # Check for the existence of the -lsocket and -lnsl libraries. # The order here is important, so that they end up in the right # order in the command line generated by make. Here are some # special considerations: # 1. Use "connect" and "accept" to check for -lsocket, and # "gethostbyname" to check for -lnsl. # 2. Use each function name only once: can't redo a check because # autoconf caches the results of the last check and won't redo it. # 3. Use -lnsl and -lsocket only if they supply procedures that # aren't already present in the normal libraries. This is because # IRIX 5.2 has libraries, but they aren't needed and they're # bogus: they goof up name resolution if used. # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. # To get around this problem, check for both libraries together # if -lsocket doesn't work by itself. #-------------------------------------------------------------------- tcl_checkBoth=0 echo $ac_n "checking for connect""... $ac_c" 1>&6 echo "configure:6748: checking for connect" >&5 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char connect(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_connect) || defined (__stub___connect) choke me #else connect(); #endif ; return 0; } EOF if { (eval echo configure:6776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_connect=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_connect=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then echo "$ac_t""yes" 1>&6 tcl_checkSocket=0 else echo "$ac_t""no" 1>&6 tcl_checkSocket=1 fi if test "$tcl_checkSocket" = 1; then echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6 echo "configure:6798: checking for main in -lsocket" >&5 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lsocket $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 LIBS="$LIBS -lsocket" else echo "$ac_t""no" 1>&6 tcl_checkBoth=1 fi fi if test "$tcl_checkBoth" = 1; then tk_oldLibs=$LIBS LIBS="$LIBS -lsocket -lnsl" echo $ac_n "checking for accept""... $ac_c" 1>&6 echo "configure:6839: checking for accept" >&5 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char accept(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_accept) || defined (__stub___accept) choke me #else accept(); #endif ; return 0; } EOF if { (eval echo configure:6867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_accept=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_accept=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then echo "$ac_t""yes" 1>&6 tcl_checkNsl=0 else echo "$ac_t""no" 1>&6 LIBS=$tk_oldLibs fi fi echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 echo "configure:6889: checking for gethostbyname" >&5 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char gethostbyname(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) choke me #else gethostbyname(); #endif ; return 0; } EOF if { (eval echo configure:6917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_gethostbyname=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_gethostbyname=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then echo "$ac_t""yes" 1>&6 : else echo "$ac_t""no" 1>&6 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6 echo "configure:6935: checking for main in -lnsl" >&5 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lnsl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 LIBS="$LIBS -lnsl" else echo "$ac_t""no" 1>&6 fi fi echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6 echo "configure:6974: checking whether setvbuf arguments are reversed" >&5 if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < /* If setvbuf has the reversed format, exit 0. */ main () { /* This call has the arguments reversed. A reversed system may check and see that the address of main is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */ if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0) exit(1); putc('\r', stdout); exit(0); /* Non-reversed systems segv here. */ } EOF if { (eval echo configure:6996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_func_setvbuf_reversed=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_func_setvbuf_reversed=no fi rm -fr conftest* fi rm -f core core.* *.core fi echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6 if test $ac_cv_func_setvbuf_reversed = yes; then cat >> confdefs.h <<\EOF #define SETVBUF_REVERSED 1 EOF fi echo $ac_n "checking for vprintf""... $ac_c" 1>&6 echo "configure:7020: checking for vprintf" >&5 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char vprintf(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_vprintf) || defined (__stub___vprintf) choke me #else vprintf(); #endif ; return 0; } EOF if { (eval echo configure:7048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_vprintf=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_vprintf=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF #define HAVE_VPRINTF 1 EOF else echo "$ac_t""no" 1>&6 fi if test "$ac_cv_func_vprintf" != yes; then echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 echo "configure:7072: checking for _doprnt" >&5 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char _doprnt(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub__doprnt) || defined (__stub____doprnt) choke me #else _doprnt(); #endif ; return 0; } EOF if { (eval echo configure:7100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func__doprnt=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func__doprnt=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF #define HAVE_DOPRNT 1 EOF else echo "$ac_t""no" 1>&6 fi fi for ac_func in select socket strdup strerror strstr strtol do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:7127: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif ; return 0; } EOF if { (eval echo configure:7155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 fi done echo $ac_n "checking how to build libraries""... $ac_c" 1>&6 echo "configure:7182: checking how to build libraries" >&5 # Check whether --enable-shared or --disable-shared was given. if test "${enable_shared+set}" = set; then enableval="$enable_shared" tcl_ok=$enableval else tcl_ok=yes fi if test "${enable_shared+set}" = set; then enableval="$enable_shared" tcl_ok=$enableval else tcl_ok=yes fi if test "$tcl_ok" = "yes" ; then echo "$ac_t""shared" 1>&6 SHARED_BUILD=1 else echo "$ac_t""static" 1>&6 SHARED_BUILD=0 cat >> confdefs.h <<\EOF #define STATIC_BUILD 1 EOF fi # after SC_ENABLE_SHARED checks the configure switches. # Step 0.a: Enable 64 bit support? echo $ac_n "checking if 64bit support is requested""... $ac_c" 1>&6 echo "configure:7217: checking if 64bit support is requested" >&5 # Check whether --enable-64bit or --disable-64bit was given. if test "${enable_64bit+set}" = set; then enableval="$enable_64bit" : else enableval="no" fi if test "$enableval" = "yes"; then do64bit=yes else do64bit=no fi echo "$ac_t""$do64bit" 1>&6 # Step 0.b: Enable Solaris 64 bit VIS support? echo $ac_n "checking if 64bit Sparc VIS support is requested""... $ac_c" 1>&6 echo "configure:7237: checking if 64bit Sparc VIS support is requested" >&5 # Check whether --enable-64bit-vis or --disable-64bit-vis was given. if test "${enable_64bit_vis+set}" = set; then enableval="$enable_64bit_vis" : else enableval="no" fi if test "$enableval" = "yes"; then # Force 64bit on with VIS do64bit=yes do64bitVIS=yes else do64bitVIS=no fi echo "$ac_t""$do64bitVIS" 1>&6 # Step 1: set the variable "system" to hold the name and version number # for the system. This can usually be done via the "uname" command, but # there are a few systems, like Next, where this doesn't work. echo $ac_n "checking system version (for dynamic loading)""... $ac_c" 1>&6 echo "configure:7261: checking system version (for dynamic loading)" >&5 if test -f /usr/lib/NextStep/software_version; then system=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version` else system=`uname -s`-`uname -r` if test "$?" -ne 0 ; then echo "$ac_t""unknown (can't find uname command)" 1>&6 system=unknown else # Special check for weird MP-RAS system (uname returns weird # results, and the version is kept in special file). if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then system=MP-RAS-`awk '{print }' /etc/.relid'` fi if test "`uname -s`" = "AIX" ; then system=AIX-`uname -v`.`uname -r` fi echo "$ac_t""$system" 1>&6 fi fi # Step 2: check for existence of -ldl library. This is needed because # Linux can use either -ldl or -ldld for dynamic loading. echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 echo "configure:7287: checking for dlopen in -ldl" >&5 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-ldl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 have_dl=yes else echo "$ac_t""no" 1>&6 have_dl=no fi # Require ranlib early so we can override it in special cases below. # Step 3: set configuration options based on system name and version. do64bit_ok=no EXTRA_CFLAGS="" TCL_EXPORT_FILE_SUFFIX="" UNSHARED_LIB_SUFFIX="" TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`' ECHO_VERSION='`echo ${VERSION}`' TCL_LIB_VERSIONS_OK=ok CFLAGS_DEBUG=-g CFLAGS_OPTIMIZE=-O if test "$GCC" = "yes" ; then CFLAGS_WARNING="-Wall -Wconversion -Wno-implicit-int" else CFLAGS_WARNING="" fi TCL_NEEDS_EXP_FILE=0 TCL_BUILD_EXP_FILE="" TCL_EXP_FILE="" # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:7354: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else 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_prog_AR="ar" break fi done IFS="$ac_save_ifs" fi fi AR="$ac_cv_prog_AR" if test -n "$AR"; then echo "$ac_t""$AR" 1>&6 else echo "$ac_t""no" 1>&6 fi if test "${AR}" = "" ; then { echo "configure: error: Required archive tool 'ar' not found on PATH." 1>&2; exit 1; } fi STLIB_LD='${AR} cr' LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" PLAT_OBJS="" case $system in AIX-5.*) if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then # AIX requires the _r compiler when gcc isn't being used if test "${CC}" != "cc_r" ; then CC=${CC}_r fi echo "$ac_t""Using $CC for compiling with threads" 1>&6 fi LIBS="$LIBS -lc" # AIX-5 uses ELF style dynamic libraries SHLIB_CFLAGS="" SHLIB_LD_LIBS='${LIBS}' SHLIB_SUFFIX=".so" if test "`uname -m`" = "ia64" ; then # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC SHLIB_LD="/usr/ccs/bin/ld -G -z text" CXX_SHLIB_LD="/usr/ccs/bin/ld -G -z text" # AIX-5 has dl* in libc.so DL_LIBS="" if test "$GCC" = "yes" ; then CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' else CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' fi LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' else SHLIB_LD="`pwd`/config/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry" CXX_SHLIB_LD="`pwd`/config/ldAixCPP /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry" DL_LIBS="-ldl" CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} TCL_NEEDS_EXP_FILE=1 TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.exp' fi # Note: need the LIBS below, otherwise Tk won't find Tcl's # symbols when dynamically loaded into tclsh. DL_OBJS="tclLoadDl.o" LDFLAGS="" LD_LIBRARY_PATH_VAR="LIBPATH" # Check to enable 64-bit flags for compiler/linker if test "$do64bit" = "yes" ; then if test "$GCC" = "yes" ; then echo "configure: warning: "64bit mode not supported with GCC on $system"" 1>&2 else do64bit_ok=yes EXTRA_CFLAGS="-q64" LDFLAGS="-q64" RANLIB="${RANLIB} -X64" AR="${AR} -X64" SHLIB_LD_FLAGS="-b64" fi fi ;; AIX-*) if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then # AIX requires the _r compiler when gcc isn't being used if test "${CC}" != "cc_r" ; then CC=${CC}_r fi echo "$ac_t""Using $CC for compiling with threads" 1>&6 fi LIBS="$LIBS -lc" SHLIB_CFLAGS="" SHLIB_LD="`pwd`/config/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry" CXX_SHLIB_LD="`pwd`/config/ldAixCPP /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry" SHLIB_LD_LIBS='${LIBS}' SHLIB_SUFFIX=".so" DL_OBJS="tclLoadDl.o" DL_LIBS="-ldl" LDFLAGS="" CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} LD_LIBRARY_PATH_VAR="LIBPATH" TCL_NEEDS_EXP_FILE=1 TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.exp' # AIX v<=4.1 has some different flags than 4.2+ if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then LIBOBJS="$LIBOBJS tclLoadAix.o" DL_LIBS="-lld" fi # On AIX <=v4 systems, libbsd.a has to be linked in to support # non-blocking file IO. This library has to be linked in after # the MATH_LIBS or it breaks the pow() function. The way to # insure proper sequencing, is to add it to the tail of MATH_LIBS. # This library also supplies gettimeofday. # # AIX does not have a timezone field in struct tm. When the AIX # bsd library is used, the timezone global and the gettimeofday # methods are to be avoided for timezone deduction instead, we # deduce the timezone by comparing the localtime result on a # known GMT value. echo $ac_n "checking for gettimeofday in -lbsd""... $ac_c" 1>&6 echo "configure:7486: checking for gettimeofday in -lbsd" >&5 ac_lib_var=`echo bsd'_'gettimeofday | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lbsd $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 libbsd=yes else echo "$ac_t""no" 1>&6 libbsd=no fi if test $libbsd = yes; then MATH_LIBS="$MATH_LIBS -lbsd" cat >> confdefs.h <<\EOF #define USE_DELTA_FOR_TZ 1 EOF fi # Check to enable 64-bit flags for compiler/linker if test "$do64bit" = "yes" ; then if test "$GCC" = "yes" ; then echo "configure: warning: "64bit mode not supported with GCC on $system"" 1>&2 else do64bit_ok=yes EXTRA_CFLAGS="-q64" LDFLAGS="-q64" RANLIB="${RANLIB} -X64" AR="${AR} -X64" SHLIB_LD_FLAGS="-b64" fi fi ;; BSD/OS-2.1*|BSD/OS-3*) SHLIB_CFLAGS="" SHLIB_LD="shlicc -r" CXX_SHLIB_LD="shliCC -r" SHLIB_LD_LIBS='${LIBS}' SHLIB_SUFFIX=".so" DL_OBJS="tclLoadDl.o" DL_LIBS="-ldl" LDFLAGS="" CC_SEARCH_FLAGS="" LD_SEARCH_FLAGS="" ;; BSD/OS-4.*) SHLIB_CFLAGS="-export-dynamic -fPIC" SHLIB_LD="cc -shared" CXX_SHLIB_LD="CC -shared" SHLIB_LD_LIBS='${LIBS}' SHLIB_SUFFIX=".so" DL_OBJS="tclLoadDl.o" DL_LIBS="-ldl" LDFLAGS="-export-dynamic" CC_SEARCH_FLAGS="" LD_SEARCH_FLAGS="" ;; dgux*) SHLIB_CFLAGS="-K PIC" SHLIB_LD="cc -G" CXX_SHLIB_LD="CC -G" SHLIB_LD_LIBS="" SHLIB_SUFFIX=".so" DL_OBJS="tclLoadDl.o" DL_LIBS="-ldl" LDFLAGS="" CC_SEARCH_FLAGS="" LD_SEARCH_FLAGS="" ;; HP-UX-*.11.*) # Use updated header definitions where possible cat >> confdefs.h <<\EOF #define _XOPEN_SOURCE 1 EOF # Use the XOPEN network library cat >> confdefs.h <<\EOF #define _XOPEN_SOURCE_EXTENDED 1 EOF # Use the XOPEN network library LIBS="$LIBS -lxnet" # Use the XOPEN network library SHLIB_SUFFIX=".sl" echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 echo "configure:7598: checking for shl_load in -ldld" >&5 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-ldld $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 tcl_ok=yes else echo "$ac_t""no" 1>&6 tcl_ok=no fi if test "$tcl_ok" = yes; then SHLIB_CFLAGS="+z" SHLIB_LD="ld -b" CXX_SHLIB_LD="ld -b" SHLIB_LD_LIBS='${LIBS}' DL_OBJS="tclLoadShl.o" DL_LIBS="-ldld" LDFLAGS="-Wl,-E" CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' LD_LIBRARY_PATH_VAR="SHLIB_PATH" fi # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc #EXTRA_CFLAGS="+DAportable" # Check to enable 64-bit flags for compiler/linker if test "$do64bit" = "yes" ; then if test "$GCC" = "yes" ; then hpux_arch=`gcc -dumpmachine` case $hpux_arch in hppa64*) # 64-bit gcc in use. Fix flags for GNU ld. do64bit_ok=yes SHLIB_LD="gcc -shared" CXX_SHLIB_LD="g++ -shared" SHLIB_LD_LIBS="" LD_SEARCH_FLAGS='' CC_SEARCH_FLAGS='' ;; *) echo "configure: warning: "64bit mode not supported with GCC on $system"" 1>&2 ;; esac else do64bit_ok=yes if test "`uname -m`" = "ia64" ; then EXTRA_CFLAGS="+DD64" LDFLAGS="+DD64 $LDFLAGS" else EXTRA_CFLAGS="+DA2.0W" LDFLAGS="+DA2.0W $LDFLAGS" fi fi fi ;; HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) SHLIB_SUFFIX=".sl" echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 echo "configure:7687: checking for shl_load in -ldld" >&5 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-ldld $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 tcl_ok=yes else echo "$ac_t""no" 1>&6 tcl_ok=no fi if test "$tcl_ok" = yes; then SHLIB_CFLAGS="+z" SHLIB_LD="ld -b" CXX_SHLIB_LD="ld -b" SHLIB_LD_LIBS="" DL_OBJS="tclLoadShl.o" DL_LIBS="-ldld" LDFLAGS="-Wl,-E" CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' LD_LIBRARY_PATH_VAR="SHLIB_PATH" fi ;; IRIX-4.*) SHLIB_CFLAGS="-G 0" SHLIB_SUFFIX=".a" SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" CXX_SHLIB_LD="echo tclLdAout $CXX \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" SHLIB_LD_LIBS='${LIBS}' DL_OBJS="tclLoadAout.o" DL_LIBS="" LDFLAGS="-Wl,-D,08000000" CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a' ;; IRIX-5.*) SHLIB_CFLAGS="" SHLIB_LD="ld -shared -rdata_shared" CXX_SHLIB_LD="ld -shared -rdata_shared" SHLIB_LD_LIBS='${LIBS}' SHLIB_SUFFIX=".so" DL_OBJS="tclLoadDl.o" DL_LIBS="" CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' EXTRA_CFLAGS="" LDFLAGS="" ;; IRIX-6.*|IRIX64-6.5*) SHLIB_CFLAGS="" SHLIB_LD="ld -n32 -shared -rdata_shared" CXX_SHLIB_LD="ld -n32 -shared -rdata_shared" SHLIB_LD_LIBS='${LIBS}' SHLIB_SUFFIX=".so" DL_OBJS="tclLoadDl.o" DL_LIBS="" CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' if test "$GCC" = "yes" ; then EXTRA_CFLAGS="-mabi=n32" LDFLAGS="-mabi=n32" else case $system in IRIX-6.3) # Use to build 6.2 compatible binaries on 6.3. EXTRA_CFLAGS="-n32 -D_OLD_TERMIOS" ;; *) EXTRA_CFLAGS="-n32" ;; esac LDFLAGS="-n32" fi ;; IRIX64-6.*) SHLIB_CFLAGS="" SHLIB_LD="ld -n32 -shared -rdata_shared" CXX_SHLIB_LD="ld -n32 -shared -rdata_shared" SHLIB_LD_LIBS='${LIBS}' SHLIB_SUFFIX=".so" DL_OBJS="tclLoadDl.o" DL_LIBS="" LDFLAGS="" CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' # Check to enable 64-bit flags for compiler/linker if test "$do64bit" = "yes" ; then if test "$GCC" = "yes" ; then echo "configure: warning: 64bit mode not supported by gcc" 1>&2 else do64bit_ok=yes SHLIB_LD="ld -64 -shared -rdata_shared" EXTRA_CFLAGS="-64" LDFLAGS="-64" fi fi ;; Linux*) SHLIB_CFLAGS="-fPIC" SHLIB_LD_LIBS='${LIBS}' SHLIB_SUFFIX=".so" # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings # when you inline the string and math operations. Turn this off to # get rid of the warnings. if test "x`$CC --version`" = "xegcs-2.91.66"; then CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" fi if test "$have_dl" = yes; then SHLIB_LD="${CC} -shared" CXX_SHLIB_LD="${CXX} -shared" DL_OBJS="tclLoadDl.o" DL_LIBS="-ldl" LDFLAGS="-rdynamic" CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} else ac_safe=`echo "dld.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for dld.h""... $ac_c" 1>&6 echo "configure:7841: checking for dld.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:7851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 SHLIB_LD="ld -shared" CXX_SHLIB_LD="ld -shared" DL_OBJS="tclLoadDld.o" DL_LIBS="-ldld" LDFLAGS="" CC_SEARCH_FLAGS="" LD_SEARCH_FLAGS="" else echo "$ac_t""no" 1>&6 fi fi if test "`uname -m`" = "alpha" ; then EXTRA_CFLAGS="-mieee" fi # The combo of gcc + glibc has a bug related # to inlining of functions like strtod(). The # -fno-builtin flag should address this problem # but it does not work. The -fno-inline flag # is kind of overkill but it works. # Disable inlining only when one of the # files in compat/*.c is being linked in. if test x"${LIBOBJS}" != x ; then EXTRA_CFLAGS="${EXTRA_CFLAGS} -fno-inline" fi # XIM peeking works under XFree86. cat >> confdefs.h <<\EOF #define PEEK_XCLOSEIM 1 EOF ;; GNU*) SHLIB_CFLAGS="-fPIC" SHLIB_LD_LIBS='${LIBS}' SHLIB_SUFFIX=".so" if test "$have_dl" = yes; then SHLIB_LD="${CC} -shared" CXX_SHLIB_LD="${CXX} -shared" DL_OBJS="" DL_LIBS="-ldl" LDFLAGS="-rdynamic" CC_SEARCH_FLAGS="" LD_SEARCH_FLAGS="" else ac_safe=`echo "dld.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for dld.h""... $ac_c" 1>&6 echo "configure:7918: checking for dld.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:7928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 SHLIB_LD="ld -shared" CXX_SHLIB_LD="ld -shared" DL_OBJS="" DL_LIBS="-ldld" LDFLAGS="" CC_SEARCH_FLAGS="" LD_SEARCH_FLAGS="" else echo "$ac_t""no" 1>&6 fi fi if test "`uname -m`" = "alpha" ; then EXTRA_CFLAGS="-mieee" fi ;; MP-RAS-02*) SHLIB_CFLAGS="-K PIC" SHLIB_LD="cc -G" CXX_SHLIB_LD="CC -G" SHLIB_LD_LIBS="" SHLIB_SUFFIX=".so" DL_OBJS="tclLoadDl.o" DL_LIBS="-ldl" LDFLAGS="" CC_SEARCH_FLAGS="" LD_SEARCH_FLAGS="" ;; MP-RAS-*) SHLIB_CFLAGS="-K PIC" SHLIB_LD="cc -G" CXX_SHLIB_LD="CC -G" SHLIB_LD_LIBS="" SHLIB_SUFFIX=".so" DL_OBJS="tclLoadDl.o" DL_LIBS="-ldl" LDFLAGS="-Wl,-Bexport" CC_SEARCH_FLAGS="" LD_SEARCH_FLAGS="" ;; NetBSD-*|FreeBSD-[1-2].*|OpenBSD-*) # Not available on all versions: check for include file. ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 echo "configure:7989: checking for dlfcn.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:7999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 # NetBSD/SPARC needs -fPIC, -fpic will not do. SHLIB_CFLAGS="-fPIC" SHLIB_LD="ld -Bshareable -x" CXX_SHLIB_LD="ld -Bshareable -x" SHLIB_LD_LIBS="" SHLIB_SUFFIX=".so" DL_OBJS="tclLoadDl.o" DL_LIBS="" LDFLAGS="" CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' echo $ac_n "checking for ELF""... $ac_c" 1>&6 echo "configure:8028: checking for ELF" >&5 cat > conftest.$ac_ext <&5 | egrep "yes" >/dev/null 2>&1; then rm -rf conftest* echo "$ac_t""yes" 1>&6 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so' else rm -rf conftest* echo "$ac_t""no" 1>&6 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' fi rm -f conftest* else echo "$ac_t""no" 1>&6 SHLIB_CFLAGS="" SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" CXX_SHLIB_LD="echo tclLdAout $CXX \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" SHLIB_LD_LIBS='${LIBS}' SHLIB_SUFFIX=".a" DL_OBJS="tclLoadAout.o" DL_LIBS="" LDFLAGS="" CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' fi # FreeBSD doesn't handle version numbers with dots. UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' TCL_LIB_VERSIONS_OK=nodots ;; FreeBSD-*) # FreeBSD 3.* and greater have ELF. SHLIB_CFLAGS="-fPIC" SHLIB_LD="ld -Bshareable -x" CXX_SHLIB_LD="ld -Bshareable -x" SHLIB_LD_LIBS='${LIBS}' SHLIB_SUFFIX=".so" DL_OBJS="tclLoadDl.o" DL_LIBS="" LDFLAGS="-export-dynamic" CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' if test "${TCL_THREADS}" = "1" ; then # The -pthread needs to go in the CFLAGS, not LIBS LIBS=`echo $LIBS | sed s/-pthread//` EXTRA_CFLAGS="-pthread" LDFLAGS="$LDFLAGS -pthread" fi case $system in FreeBSD-3.*) # FreeBSD-3 doesn't handle version numbers with dots. UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so' TCL_LIB_VERSIONS_OK=nodots ;; esac ;; Rhapsody-*|Darwin-*) SHLIB_CFLAGS="-fno-common" SHLIB_LD="cc -dynamiclib \${LDFLAGS}" CXX_SHLIB_LD="c++ -dynamiclib \${LDFLAGS}" TCL_SHLIB_LD_EXTRAS="-compatibility_version ${TCL_VERSION} -current_version \${VERSION} -install_name \${DYLIB_INSTALL_DIR}/\${TCL_LIB_FILE} -prebind -seg1addr 0xa000000" TK_SHLIB_LD_EXTRAS="-compatibility_version ${TK_VERSION} -current_version \${VERSION} -install_name \${DYLIB_INSTALL_DIR}/\${TK_LIB_FILE} -prebind -seg1addr 0xb000000" SHLIB_LD_LIBS='${LIBS}' SHLIB_SUFFIX=".dylib" DL_OBJS="tclLoadDyld.o" PLAT_OBJS="tclMacOSXBundle.o" DL_LIBS="" LDFLAGS="-prebind" CC_SEARCH_FLAGS="" LD_SEARCH_FLAGS="" CFLAGS_OPTIMIZE="-Os" LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" # for compatibility with autoconf vers 2.13 : HACK="" EXTRA_CFLAGS="-DMA${HACK}C_OSX_TCL -DHAVE_CFBUNDLE -DUSE_VFORK -DTCL_DEFAULT_ENCODING=\\\"utf-8\\\"" LIBS="$LIBS -framework CoreFoundation" ;; NEXTSTEP-*) SHLIB_CFLAGS="" SHLIB_LD="cc -nostdlib -r" CXX_SHLIB_LD="CC -nostdlib -r" SHLIB_LD_LIBS="" SHLIB_SUFFIX=".so" DL_OBJS="tclLoadNext.o" DL_LIBS="" LDFLAGS="" CC_SEARCH_FLAGS="" LD_SEARCH_FLAGS="" ;; OS/390-*) CFLAGS_OPTIMIZE="" # Optimizer is buggy cat >> confdefs.h <<\EOF #define _OE_SOCKETS 1 EOF # needed in sys/socket.h ;; OSF1-1.0|OSF1-1.1|OSF1-1.2) # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1 SHLIB_CFLAGS="" # Hack: make package name same as library name SHLIB_LD='ld -R -export :' CXX_SHLIB_LD='ld -R -export :' SHLIB_LD_LIBS="" SHLIB_SUFFIX=".so" DL_OBJS="tclLoadOSF.o" DL_LIBS="" LDFLAGS="" CC_SEARCH_FLAGS="" LD_SEARCH_FLAGS="" ;; OSF1-1.*) # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2 SHLIB_CFLAGS="-fPIC" if test "$SHARED_BUILD" = "1" ; then SHLIB_LD="ld -shared" CXX_SHLIB_LD="ld -shared" else SHLIB_LD="ld -non_shared" fi SHLIB_LD_LIBS="" SHLIB_SUFFIX=".so" DL_OBJS="tclLoadDl.o" DL_LIBS="" LDFLAGS="" CC_SEARCH_FLAGS="" LD_SEARCH_FLAGS="" ;; OSF1-V*) # Digital OSF/1 SHLIB_CFLAGS="" if test "$SHARED_BUILD" = "1" ; then SHLIB_LD='ld -shared -expect_unresolved "*"' CXX_SHLIB_LD='ld -shared -expect_unresolved "*"' else SHLIB_LD='ld -non_shared -expect_unresolved "*"' CXX_SHLIB_LD='ld -non_shared -expect_unresolved "*"' fi SHLIB_LD_LIBS="" SHLIB_SUFFIX=".so" DL_OBJS="tclLoadDl.o" DL_LIBS="" LDFLAGS="" CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' if test "$GCC" != "yes" ; then EXTRA_CFLAGS="-DHAVE_TZSET -std1" fi # see pthread_intro(3) for pthread support on osf1, k.furukawa if test "${TCL_THREADS}" = "1" ; then EXTRA_CFLAGS="${EXTRA_CFLAGS} -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" EXTRA_CFLAGS="${EXTRA_CFLAGS} -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" LIBS=`echo $LIBS | sed s/-lpthreads//` if test "$GCC" = "yes" ; then LIBS="$LIBS -lpthread -lmach -lexc" else EXTRA_CFLAGS="${EXTRA_CFLAGS} -pthread" LDFLAGS="-pthread" fi fi ;; QNX-6*) # QNX RTP # This may work for all QNX, but it was only reported for v6. SHLIB_CFLAGS="-fPIC" SHLIB_LD="ld -Bshareable -x" CXX_SHLIB_LD="ld -Bshareable -x" SHLIB_LD_LIBS="" SHLIB_SUFFIX=".so" DL_OBJS="tclLoadDl.o" # dlopen is in -lc on QNX DL_LIBS="" LDFLAGS="" CC_SEARCH_FLAGS="" LD_SEARCH_FLAGS="" ;; RISCos-*) SHLIB_CFLAGS="-G 0" SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" CXX_SHLIB_LD="echo tclLdAout $CXX \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" SHLIB_LD_LIBS='${LIBS}' SHLIB_SUFFIX=".a" DL_OBJS="tclLoadAout.o" DL_LIBS="" LDFLAGS="-Wl,-D,08000000" CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} ;; SCO_SV-3.2*) # Note, dlopen is available only on SCO 3.2.5 and greater. However, # this test works, since "uname -s" was non-standard in 3.2.4 and # below. if test "$GCC" = "yes" ; then SHLIB_CFLAGS="-fPIC -melf" LDFLAGS="-melf -Wl,-Bexport" else SHLIB_CFLAGS="-Kpic -belf" LDFLAGS="-belf -Wl,-Bexport" fi SHLIB_LD="ld -G" CXX_SHLIB_LD="ld -G" SHLIB_LD_LIBS="" SHLIB_SUFFIX=".so" DL_OBJS="tclLoadDl.o" DL_LIBS="" CC_SEARCH_FLAGS="" LD_SEARCH_FLAGS="" ;; SINIX*5.4*) SHLIB_CFLAGS="-K PIC" SHLIB_LD="cc -G" CXX_SHLIB_LD="cc -G" SHLIB_LD_LIBS="" SHLIB_SUFFIX=".so" DL_OBJS="tclLoadDl.o" DL_LIBS="-ldl" LDFLAGS="" CC_SEARCH_FLAGS="" LD_SEARCH_FLAGS="" ;; SunOS-4*) SHLIB_CFLAGS="-PIC" SHLIB_LD="ld" CXX_SHLIB_LD="ld" SHLIB_LD_LIBS="" SHLIB_SUFFIX=".so" DL_OBJS="tclLoadDl.o" DL_LIBS="-ldl" LDFLAGS="" CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} # SunOS can't handle version numbers with dots in them in library # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it # requires an extra version number at the end of .so file names. # So, the library has to have a name like libtcl75.so.1.0 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' TCL_LIB_VERSIONS_OK=nodots ;; SunOS-5.[0-6]*) # Note: If _REENTRANT isn't defined, then Solaris # won't define thread-safe library routines. cat >> confdefs.h <<\EOF #define _REENTRANT 1 EOF cat >> confdefs.h <<\EOF #define _POSIX_PTHREAD_SEMANTICS 1 EOF SHLIB_CFLAGS="-KPIC" # Note: need the LIBS below, otherwise Tk won't find Tcl's # symbols when dynamically loaded into tclsh. SHLIB_LD_LIBS='${LIBS}' SHLIB_SUFFIX=".so" DL_OBJS="tclLoadDl.o" DL_LIBS="-ldl" LDFLAGS="" if test "$GCC" = "yes" ; then SHLIB_LD="$CC -shared" CXX_SHLIB_LD="$CXX -shared" CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} else SHLIB_LD="/usr/ccs/bin/ld -G -z text" CXX_SHLIB_LD="/usr/ccs/bin/ld -G -z text" CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} fi ;; SunOS-5*) # Note: If _REENTRANT isn't defined, then Solaris # won't define thread-safe library routines. cat >> confdefs.h <<\EOF #define _REENTRANT 1 EOF cat >> confdefs.h <<\EOF #define _POSIX_PTHREAD_SEMANTICS 1 EOF SHLIB_CFLAGS="-KPIC" LDFLAGS="" # Check to enable 64-bit flags for compiler/linker if test "$do64bit" = "yes" ; then arch=`isainfo` if test "$arch" = "sparcv9 sparc" ; then if test "$GCC" = "yes" ; then echo "configure: warning: "64bit mode not supported with GCC on $system"" 1>&2 else do64bit_ok=yes if test "$do64bitVIS" = "yes" ; then EXTRA_CFLAGS="-xarch=v9a" LDFLAGS="-xarch=v9a" else EXTRA_CFLAGS="-xarch=v9" LDFLAGS="-xarch=v9" fi fi else echo "configure: warning: "64bit mode only supported sparcv9 system"" 1>&2 fi fi # Note: need the LIBS below, otherwise Tk won't find Tcl's # symbols when dynamically loaded into tclsh. SHLIB_LD_LIBS='${LIBS}' SHLIB_SUFFIX=".so" DL_OBJS="tclLoadDl.o" DL_LIBS="-ldl" if test "$GCC" = "yes" ; then SHLIB_LD="$CC -shared" CXX_SHLIB_LD="$CXX -shared" CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} else SHLIB_LD="/usr/ccs/bin/ld -G -z text" CXX_SHLIB_LD="/usr/ccs/bin/ld -G -z text" CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' fi ;; ULTRIX-4.*) SHLIB_CFLAGS="-G 0" SHLIB_SUFFIX=".a" SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" CXX_SHLIB_LD="echo tclLdAout $CXX \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" SHLIB_LD_LIBS='${LIBS}' DL_OBJS="tclLoadAout.o" DL_LIBS="" LDFLAGS="-Wl,-D,08000000" CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} if test "$GCC" != "yes" ; then EXTRA_CFLAGS="-DHAVE_TZSET -std1" fi ;; UNIX_SV* | UnixWare-5*) SHLIB_CFLAGS="-KPIC" SHLIB_LD="cc -G" CXX_SHLIB_LD="CC -G" SHLIB_LD_LIBS="" SHLIB_SUFFIX=".so" DL_OBJS="tclLoadDl.o" DL_LIBS="-ldl" # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers # that don't grok the -Bexport option. Test that it does. hold_ldflags=$LDFLAGS echo $ac_n "checking for ld accepts -Bexport flag""... $ac_c" 1>&6 echo "configure:8407: checking for ld accepts -Bexport flag" >&5 LDFLAGS="${LDFLAGS} -Wl,-Bexport" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* found=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* found=no fi rm -f conftest* LDFLAGS=$hold_ldflags echo "$ac_t""$found" 1>&6 if test $found = yes; then LDFLAGS="-Wl,-Bexport" else LDFLAGS="" fi CC_SEARCH_FLAGS="" LD_SEARCH_FLAGS="" ;; esac if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then echo "configure: warning: "64bit support being disabled -- don\'t know magic for this platform"" 1>&2 fi # Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic # Loading for Tcl -- What Became of It?". Proc. 2nd Tcl/Tk Workshop, # New Orleans, LA, Computerized Processes Unlimited, 1994), then we need # to determine which of several header files defines the a.out file # format (a.out.h, sys/exec.h, or sys/exec_aout.h). At present, we # support only a file format that is more or less version-7-compatible. # In particular, # - a.out files must begin with `struct exec'. # - the N_TXTOFF on the `struct exec' must compute the seek address # of the text segment # - The `struct exec' must contain a_magic, a_text, a_data, a_bss # and a_entry fields. # The following compilation should succeed if and only if either sys/exec.h # or a.out.h is usable for the purpose. # # Note that the modified COFF format used on MIPS Ultrix 4.x is usable; the # `struct exec' includes a second header that contains information that # duplicates the v7 fields that are needed. if test "x$DL_OBJS" = "xtclLoadAout.o" ; then echo $ac_n "checking sys/exec.h""... $ac_c" 1>&6 echo "configure:8464: checking sys/exec.h" >&5 cat > conftest.$ac_ext < int main() { struct exec foo; unsigned long seek; int flag; #if defined(__mips) || defined(mips) seek = N_TXTOFF (foo.ex_f, foo.ex_o); #else seek = N_TXTOFF (foo); #endif flag = (foo.a_magic == OMAGIC); return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; ; return 0; } EOF if { (eval echo configure:8484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tcl_ok=usable else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tcl_ok=unusable fi rm -f conftest* echo "$ac_t""$tcl_ok" 1>&6 if test $tcl_ok = usable; then cat >> confdefs.h <<\EOF #define USE_SYS_EXEC_H 1 EOF else echo $ac_n "checking a.out.h""... $ac_c" 1>&6 echo "configure:8502: checking a.out.h" >&5 cat > conftest.$ac_ext < int main() { struct exec foo; unsigned long seek; int flag; #if defined(__mips) || defined(mips) seek = N_TXTOFF (foo.ex_f, foo.ex_o); #else seek = N_TXTOFF (foo); #endif flag = (foo.a_magic == OMAGIC); return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; ; return 0; } EOF if { (eval echo configure:8522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tcl_ok=usable else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tcl_ok=unusable fi rm -f conftest* echo "$ac_t""$tcl_ok" 1>&6 if test $tcl_ok = usable; then cat >> confdefs.h <<\EOF #define USE_A_OUT_H 1 EOF else echo $ac_n "checking sys/exec_aout.h""... $ac_c" 1>&6 echo "configure:8540: checking sys/exec_aout.h" >&5 cat > conftest.$ac_ext < int main() { struct exec foo; unsigned long seek; int flag; #if defined(__mips) || defined(mips) seek = N_TXTOFF (foo.ex_f, foo.ex_o); #else seek = N_TXTOFF (foo); #endif flag = (foo.a_midmag == OMAGIC); return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; ; return 0; } EOF if { (eval echo configure:8560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tcl_ok=usable else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tcl_ok=unusable fi rm -f conftest* echo "$ac_t""$tcl_ok" 1>&6 if test $tcl_ok = usable; then cat >> confdefs.h <<\EOF #define USE_SYS_EXEC_AOUT_H 1 EOF else DL_OBJS="" fi fi fi fi # Step 5: disable dynamic loading if requested via a command-line switch. # Check whether --enable-load or --disable-load was given. if test "${enable_load+set}" = set; then enableval="$enable_load" tcl_ok=$enableval else tcl_ok=yes fi if test "$tcl_ok" = "no"; then DL_OBJS="" fi if test "x$DL_OBJS" != "x" ; then BUILD_DLTEST="\$(DLTEST_TARGETS)" else echo "Can't figure out how to do dynamic loading or shared libraries" echo "on this system." SHLIB_CFLAGS="" SHLIB_LD="" CXX_SHLIB_LD="" SHLIB_SUFFIX="" DL_OBJS="tclLoadNone.o" DL_LIBS="" LDFLAGS="" CC_SEARCH_FLAGS="" LD_SEARCH_FLAGS="" BUILD_DLTEST="" fi # If we're running gcc, then change the C flags for compiling shared # libraries to the right flags for gcc, instead of those for the # standard manufacturer compiler. if test "$DL_OBJS" != "tclLoadNone.o" ; then if test "$GCC" = "yes" ; then case $system in AIX-*) ;; BSD/OS*) ;; IRIX*) ;; NetBSD-*|FreeBSD-*|OpenBSD-*) ;; Rhapsody-*|Darwin-*) ;; RISCos-*) ;; SCO_SV-3.2*) ;; ULTRIX-4.*) ;; *) SHLIB_CFLAGS="-fPIC" ;; esac fi fi if test "$SHARED_LIB_SUFFIX" = "" ; then SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}${SHLIB_SUFFIX}' fi if test "$UNSHARED_LIB_SUFFIX" = "" ; then UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a' fi if test "${SHARED_BUILD}" = "1" && test "${SHLIB_SUFFIX}" != "" ; then LIB_SUFFIX=${SHARED_LIB_SUFFIX} MAKE_LIB='${SHLIB_LD} -o $@ ${SHLIB_LD_FLAGS} ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}' INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)' else LIB_SUFFIX=${UNSHARED_LIB_SUFFIX} if test "$RANLIB" = "" ; then MAKE_LIB='$(STLIB_LD) $@ ${OBJS}' INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)' else MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@' INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(LIB_FILE))' fi fi # Stub lib does not depend on shared/static configuration if test "$RANLIB" = "" ; then MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}' INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)' else MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@' INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(STUB_LIB_FILE))' fi echo $ac_n "checking for build with symbols""... $ac_c" 1>&6 echo "configure:8712: checking for build with symbols" >&5 # Check whether --enable-symbols or --disable-symbols was given. if test "${enable_symbols+set}" = set; then enableval="$enable_symbols" tcl_ok=$enableval else tcl_ok=no fi # FIXME: Currently, LDFLAGS_DEFAULT is not used, it should work like CFLAGS_DEFAULT. if test "$tcl_ok" = "no"; then CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)' LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)' DBGX="" echo "$ac_t""no" 1>&6 else CFLAGS_DEFAULT='$(CFLAGS_DEBUG)' LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)' DBGX=g if test "$tcl_ok" = "yes"; then echo "$ac_t""yes (standard debugging)" 1>&6 fi fi if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then cat >> confdefs.h <<\EOF #define TCL_MEM_DEBUG 1 EOF fi if test "$tcl_ok" = "compile" -o "$tcl_ok" = "all"; then cat >> confdefs.h <<\EOF #define TCL_COMPILE_DEBUG 1 EOF cat >> confdefs.h <<\EOF #define TCL_COMPILE_STATS 1 EOF fi if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then if test "$tcl_ok" = "all"; then echo "$ac_t""enabled symbols mem compile debugging" 1>&6 else echo "$ac_t""enabled $tcl_ok debugging" 1>&6 fi fi # CCAFE_DL_LIBS - Library file(s) to include in demo and other base # applications in order for the "load" command to work. # CCAFE_LD_FLAGS - Flags to pass to the compiler when linking object # files into an executable application binary such # as demo. # CCAFE_LD_SEARCH_FLAGS-Flags to pass to ld, such as "-R /usr/local/tcl/lib", # that tell the run-time dynamic linker where to look # for shared libraries such as libtcl.so. Depends on # the variable LIB_RUNTIME_DIR in the Makefile. # CCAFE_SHLIB_CFLAGS - Flags to pass to cc/c++ when compiling the components # for use with CCAFFEINE. # CCAFE_SHLIB_LD - Base command to use for combining object files # into a shared library for CCAFFEINE. # CCAFE_SHLIB_LDFLAGS - Flags to pass to the dynamic linker when # creating a shared library. # CCAFE_SHLIB_LD_LIBS - Dependent libraries for the linker to scan when # creating shared libraries for CCAFFEINE. This symbol typically # goes at the end of the "ld" commands that build # shared libraries. # CCAFE_SHLIB_SUFFIX - Suffix to use for the names of dynamically loadable LD_FLAGS=$LDFLAGS CCAFE_DL_LIBS="$DL_LIBS" CCAFE_LD_FLAGS="$LD_FLAGS" CCAFE_LD_SEARCH_FLAGS="$LD_SEARCH_FLAGS" CCAFE_SHLIB_CFLAGS="$SHLIB_CFLAGS" CCAFE_SHLIB_LD="$CXX_SHLIB_LD" CCAFE_SHLIB_LDFLAGS="$SHLIB_LDFLAGS" CCAFE_SHLIB_LD_LIBS="$SHLIB_LD_LIBS" CCAFE_SHLIB_SUFFIX="$SHLIB_SUFFIX" if test "${ccafe_have_mpi}" = "no"; then USEMPI=0 echo "configure: warning: Configured without MPI. Hope that is what you meant. See configure --help for other mpi switches if it is not what you meant." 1>&2 else echo "$ac_t""Configured with MPI. 'grep MPI ./varlist' for details." 1>&6 USEMPI=1 fi # Check whether --enable-single or --disable-single was given. if test "${enable_single+set}" = set; then enableval="$enable_single" enable_single=$enableval else enable_single=no fi PURESINGLE= if test ! "X$enable_single" = "Xno"; then enable_single=yes fi if test "X$enable_single" = "Xyes"; then PURESINGLE=yes fi # Check whether --enable-makedebug or --disable-makedebug was given. if test "${enable_makedebug+set}" = set; then enableval="$enable_makedebug" enable_makedebug=$enableval else enable_makedebug=no fi HAVE_NOISE= if test ! "X$enable_makedebug" = "Xno"; then enable_makedebug=noise fi if test "X$enable_makedebug" = "Xyes"; then HAVE_NOISE=noise fi # Check whether --enable-showlibtool or --disable-showlibtool was given. if test "${enable_showlibtool+set}" = set; then enableval="$enable_showlibtool" enable_showlibtool=$enableval else enable_showlibtool=no fi HIDELIBTOOL=@ if test ! "X$enable_showlibtool" = "Xno"; then enable_showlibtool=yes fi if test "X$enable_showlibtool" = "Xyes"; then HIDELIBTOOL= fi # Check whether --enable-showcompile or --disable-showcompile was given. if test "${enable_showcompile+set}" = set; then enableval="$enable_showcompile" enable_showcompile=$enableval else enable_showcompile=no fi HIDECOMPILE=--quiet if test ! "X$enable_showcompile" = "Xno"; then enable_showcompile=yes fi if test "X$enable_showcompile" = "Xyes"; then HIDECOMPILE= fi #------------------------------------------------------------------------------ # FWK-SPEW # turn on various debugging or not? mostly useful in binding debuggging. #------------------------------------------------------------------------------ # Check whether --enable-spew or --disable-spew was given. if test "${enable_spew+set}" = set; then enableval="$enable_spew" enable_spew=$enableval else enable_spew=no fi if test ! "X$enable_spew" = "Xno"; then enable_spew=yes fi if test "X$enable_spew" = "Xyes"; then CCAFE_SPEW=1 else CCAFE_SPEW=0 fi CCAFE_SHARED_LIB=libccafeCore$VER_SUFFIX$PROGRAM_SUFFIX$SHLIB_SUFFIX CCAFE_STATIC_LIB=libccafeCore$VER_SUFFIX$PROGRAM_SUFFIX.a CCAFE_LIBTOOL_LIB=libccafeCore$VER_SUFFIX$PROGRAM_SUFFIX.la CCAFE_STATIC_DRIVER_LIB=libccafeDrivers$VER_SUFFIX$PROGRAM_SUFFIX.a CCAFE_SHARED_DRIVER_LIB=libccafeDrivers$VER_SUFFIX$PROGRAM_SUFFIX$SHLIB_SUFFIX CCAFE_LIBTOOL_DRIVER_LIB=libccafeDrivers$VER_SUFFIX$PROGRAM_SUFFIX.la CCAFE_BABEL_LIBTOOL_LIB=libccaffeine$VER_SUFFIX$PROGRAM_SUFFIX.la CCAFE_BABEL_SHARED_LIB=libccaffeine$VER_SUFFIX$PROGRAM_SUFFIX$SHLIB_SUFFIX CCAFE_BABEL_STATIC_LIB=libccaffeine$VER_SUFFIX$PROGRAM_SUFFIX.a BUILT_SHARED_LIB=libccafeCore$SHLIB_SUFFIX BUILT_STATIC_LIB=libccafeCore.a BUILT_LIBTOOL_LIB=libccafeCore.la BUILT_SHARED_DRIVER_LIB=libccafeDrivers$SHLIB_SUFFIX BUILT_STATIC_DRIVER_LIB=libccafeDrivers.a BUILT_LIBTOOL_DRIVER_LIB=libccafeDrivers.la BUILT_BABEL_LIBTOOL_LIB=libccaffeine.la BUILT_BABEL_SHARED_LIB=libccaffeine$SHLIB_SUFFIX BUILT_BABEL_STATIC_LIB=libccaffeine.a if test "X$MPICC" = "X"; then MPICC=$CC fi if test "X$MPICXX" = "X"; then MPICXX=$CXX fi NO_CLASSIC_RC="#" NO_BABEL_RC="#" NO_BABELCLASSIC_RC="#" if test "X$HAVE_BABEL" = "X1"; then NO_BABEL_RC="" fi if test "X$HAVE_CLASSIC" = "X1"; then NO_CLASSIC_RC="" fi if test "X$HAVE_CLASSIC$HAVE_BABEL" = "X11"; then NO_BABELCLASSIC_RC="" fi # Check whether --enable-developer or --disable-developer was given. if test "${enable_developer+set}" = set; then enableval="$enable_developer" enable_developer=$enableval else enable_developer=no fi CCAFE_DEVELOPER=no if test ! "X$enable_developer" = "Xno"; then enable_developer=yes fi if test "X$enable_developer" = "Xyes"; then CCAFE_DEVELOPER=yes fi # some flags for mpi which should be obsolete soon we hope # end of some flags for mpi which should be obsolete soon we hope #chez_rob_files="chez-rob/protoBS/Makefile chez-rob/protoBS/CcaffeineAbstractFramework.cxx" chez_rob_files="chez-rob/protoBS/Makefile" top_files="varlist Makefile Makefile.dl Makefile.conf.dl Makefile.install reconfigure examples/configureHints" dep_files="cxx/util/xlcdepinclude cxx/util/xlcdepinclude_nosys" cxx_files="cxx/Makefile.Rules cxx/Makefile.Vars cxx/MakeIncl.CCAFE_MPI cxx/dc/user_iface/CcaffeineRC cxx/scutil/detemplate.rb cxx/dc/user_iface/ProgramSuffix.h cxx/dc/export/config.hh" doc_files="src/DoxyConfig" src_files="src/MakeIncl.CCAFE src/ccafe-config src/ccafeConfig.sh src/bkupFile.rb src/namespchgr.rb src/memtest src/simpleTests src/testBabelFactoryService src/testBabelParameterDialogServiceTest src/testBabelPortTranslator src/testRPMBatch src/testRPMPortTranslator src/test-python-bs src/test-GoThread src/testBabelParameterPortFactory src/testBabelServiceRegistry src/libccafeCore.scl" scripts_files="scripts/simplify-bld scripts/bld2rc" bcf="cxx/dc/babel/component" sidl_files="cxx/dc/babel/babel-cca/ccafe.sidl $bcf/StringConsumerPort/StringConsumerPort.sidl $bcf/PrinterComponent/PrinterComponent.sidl $bcf/PortTranslatorStarter/PortTranslatorStarter.sidl $bcf/StarterComponent/StarterComponent.sidl $bcf/GoComponent/GoComponent.sidl $bcf/ParameterDialogServiceTest/ParameterDialogServiceTest.sidl $bcf/ParameterPortFactoryTest/ParameterPortFactoryTest.sidl $bcf/ServiceRegistryTest/ServiceRegistryTest.sidl $bcf/MPIComponent/MPIComponent.sidl" neofiles="cxx/dc/neo/mpitest/mpiTest.scr" babelfiles="cxx/dc/babel/test/test-input.scr cxx/dc/babel/mpitest/mpitest-input.scr" CCAFE_CONFIG_FILES=" $top_files $dep_files $cxx_files $scripts_files $chez_rob_files $sidl_files $babelfiles $neofiles $doc_files $src_files" trap '' 1 2 15 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # Any assignment to VPATH causes Sun make to only execute # the first set of double-colon rules, so remove it if not needed. # If there is a colon in the path, we need to keep it. if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' fi trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 # Transform confdefs.h into DEFS. # Protect against shell expansion while executing Makefile rules. # Protect against Makefile macro expansion. # # If the first sed substitution is executed (which looks for macros that # take arguments), then we branch to the quote section. Otherwise, # look for a macro that doesn't take arguments. cat >confdef2opt.sed <<\_ACEOF t clear : clear s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g t quote s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g t quote d : quote s,[ `~#$^&*(){}\\|;'"<>?],\\&,g s,\[,\\&,g s,\],\\&,g s,\$,$$,g p _ACEOF # We use echo to avoid assuming a particular line-breaking character. # The extra dot is to prevent the shell from consuming trailing # line-breaks from the sub-command output. A line-break within # single-quotes doesn't work because, if this script is created in a # platform that uses two characters for line-breaks (e.g., DOS), tr # would break. ac_LF_and_DOT=`echo; echo .` DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` rm -f confdef2opt.sed # Without the "./", some shells look in PATH for config.status. : ${CONFIG_STATUS=./config.status} echo creating $CONFIG_STATUS rm -f $CONFIG_STATUS cat > $CONFIG_STATUS </dev/null | sed 1q`: # # $0 $ac_configure_args # # Compiler output produced by configure, useful for debugging # configure, is in ./config.log if it exists. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" for ac_option do case "\$ac_option" in -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 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.13" exit 0 ;; -help | --help | --hel | --he | --h) echo "\$ac_cs_usage"; exit 0 ;; *) echo "\$ac_cs_usage"; exit 1 ;; esac done ac_given_srcdir=$srcdir ac_given_INSTALL="$INSTALL" trap 'rm -fr `echo "$CCAFE_CONFIG_FILES" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 EOF cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF $ac_vpsub $extrasub 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 s%@exec_prefix@%$exec_prefix%g s%@prefix@%$prefix%g s%@program_transform_name@%$program_transform_name%g s%@bindir@%$bindir%g s%@sbindir@%$sbindir%g s%@libexecdir@%$libexecdir%g s%@datadir@%$datadir%g s%@sysconfdir@%$sysconfdir%g s%@sharedstatedir@%$sharedstatedir%g s%@localstatedir@%$localstatedir%g s%@libdir@%$libdir%g s%@includedir@%$includedir%g s%@oldincludedir@%$oldincludedir%g s%@infodir@%$infodir%g s%@mandir@%$mandir%g s%@CCA_BUNDLE_VERSION@%$CCA_BUNDLE_VERSION%g s%@host@%$host%g 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%@target@%$target%g s%@target_alias@%$target_alias%g s%@target_cpu@%$target_cpu%g s%@target_vendor@%$target_vendor%g s%@target_os@%$target_os%g s%@build@%$build%g s%@build_alias@%$build_alias%g s%@build_cpu@%$build_cpu%g s%@build_vendor@%$build_vendor%g s%@build_os@%$build_os%g s%@CCAFFEINE_SIDL_START_0@%$CCAFFEINE_SIDL_START_0%g s%@CCAFFEINE_SIDL_START_1@%$CCAFFEINE_SIDL_START_1%g s%@CCAFFEINE_SIDL_START_2@%$CCAFFEINE_SIDL_START_2%g s%@CCAFEEG_SIDL_START_0@%$CCAFEEG_SIDL_START_0%g s%@CCAFEEG_SIDL_START_1@%$CCAFEEG_SIDL_START_1%g s%@CCAFE0_SIDL_START_0@%$CCAFE0_SIDL_START_0%g s%@CCAFE0_SIDL_START_1@%$CCAFE0_SIDL_START_1%g s%@CCAFE1_SIDL_START_0@%$CCAFE1_SIDL_START_0%g s%@CCAFE1_SIDL_START_1@%$CCAFE1_SIDL_START_1%g s%@CCAFE2_SIDL_START_0@%$CCAFE2_SIDL_START_0%g s%@CCAFE2_SIDL_START_1@%$CCAFE2_SIDL_START_1%g s%@CCAFE3_SIDL_START_0@%$CCAFE3_SIDL_START_0%g s%@CCAFE3_SIDL_START_1@%$CCAFE3_SIDL_START_1%g s%@CCAFE4_SIDL_START_0@%$CCAFE4_SIDL_START_0%g s%@CCAFE4_SIDL_START_1@%$CCAFE4_SIDL_START_1%g s%@CCAFE5_SIDL_START_0@%$CCAFE5_SIDL_START_0%g s%@CCAFE5_SIDL_START_1@%$CCAFE5_SIDL_START_1%g s%@CCAFE6_SIDL_START_0@%$CCAFE6_SIDL_START_0%g s%@CCAFE6_SIDL_START_1@%$CCAFE6_SIDL_START_1%g s%@BABEL_CCA_ROOT@%$BABEL_CCA_ROOT%g s%@BABEL_CCA_INSTALLED@%$BABEL_CCA_INSTALLED%g s%@HAVE_BABEL@%$HAVE_BABEL%g s%@BABEL_ROOT@%$BABEL_ROOT%g s%@BABEL_CCA_CONFIG@%$BABEL_CCA_CONFIG%g s%@CCAFE_CCA_SPEC_BABEL_CONFIG@%$CCAFE_CCA_SPEC_BABEL_CONFIG%g s%@CCAFE_BUILD_PY@%$CCAFE_BUILD_PY%g s%@INSTALL_PYTHON@%$INSTALL_PYTHON%g s%@ccafe_test_babel_libtool@%$ccafe_test_babel_libtool%g s%@BABEL_LIBTOOL@%$BABEL_LIBTOOL%g s%@AWK@%$AWK%g s%@LN_S@%$LN_S%g s%@SET_MAKE@%$SET_MAKE%g s%@RANLIB@%$RANLIB%g s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g s%@INSTALL_DATA@%$INSTALL_DATA%g s%@CC@%$CC%g s%@F77@%$F77%g s%@FLIBS@%$FLIBS%g s%@CXX@%$CXX%g s%@CPP@%$CPP%g s%@CXXCPP@%$CXXCPP%g s%@gmake_1@%$gmake_1%g s%@tclsh_1@%$tclsh_1%g s%@ruby_1@%$ruby_1%g s%@swig_1@%$swig_1%g s%@NAMESPACE_NEEDS_ENDSEMI@%$NAMESPACE_NEEDS_ENDSEMI%g s%@BLASLIB@%$BLASLIB%g s%@bogoXML2config@%$bogoXML2config%g s%@doxygen_1@%$doxygen_1%g s%@dot_1@%$dot_1%g s%@LAPACKLIB@%$LAPACKLIB%g s%@BLASX1@%$BLASX1%g s%@BLASX2@%$BLASX2%g s%@BOOST_ROOT@%$BOOST_ROOT%g s%@BOOST_INC@%$BOOST_INC%g s%@BOOST_FLAGS@%$BOOST_FLAGS%g s%@LIBREADLINE_LIBS@%$LIBREADLINE_LIBS%g s%@HAVE_LIBREADLINE@%$HAVE_LIBREADLINE%g s%@HAVE_READLINE_READLINE_H@%$HAVE_READLINE_READLINE_H%g s%@HAVE_READLINE_H@%$HAVE_READLINE_H%g s%@HAVE_READLINE_HISTORY@%$HAVE_READLINE_HISTORY%g s%@HAVE_HISTORY_H@%$HAVE_HISTORY_H%g s%@HAVE_READLINE_HISTORY_H@%$HAVE_READLINE_HISTORY_H%g s%@NO_HAVE_LIBREADLINE@%$NO_HAVE_LIBREADLINE%g s%@NO_HAVE_READLINE_READLINE_H@%$NO_HAVE_READLINE_READLINE_H%g s%@NO_HAVE_READLINE_H@%$NO_HAVE_READLINE_H%g s%@NO_HAVE_READLINE_HISTORY@%$NO_HAVE_READLINE_HISTORY%g s%@NO_HAVE_HISTORY_H@%$NO_HAVE_HISTORY_H%g s%@NO_HAVE_READLINE_HISTORY_H@%$NO_HAVE_READLINE_HISTORY_H%g s%@AR@%$AR%g s%@DL_LIBS@%$DL_LIBS%g s%@DL_OBJS@%$DL_OBJS%g s%@PLAT_OBJS@%$PLAT_OBJS%g s%@CFLAGS_DEBUG@%$CFLAGS_DEBUG%g s%@CFLAGS_OPTIMIZE@%$CFLAGS_OPTIMIZE%g s%@CFLAGS_WARNING@%$CFLAGS_WARNING%g s%@EXTRA_CFLAGS@%$EXTRA_CFLAGS%g s%@LDFLAGS_DEBUG@%$LDFLAGS_DEBUG%g s%@LDFLAGS_OPTIMIZE@%$LDFLAGS_OPTIMIZE%g s%@CC_SEARCH_FLAGS@%$CC_SEARCH_FLAGS%g s%@LD_SEARCH_FLAGS@%$LD_SEARCH_FLAGS%g s%@STLIB_LD@%$STLIB_LD%g s%@SHLIB_LD@%$SHLIB_LD%g s%@TCL_SHLIB_LD_EXTRAS@%$TCL_SHLIB_LD_EXTRAS%g s%@TK_SHLIB_LD_EXTRAS@%$TK_SHLIB_LD_EXTRAS%g s%@SHLIB_LD_FLAGS@%$SHLIB_LD_FLAGS%g s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g s%@MAKE_LIB@%$MAKE_LIB%g s%@MAKE_STUB_LIB@%$MAKE_STUB_LIB%g s%@INSTALL_LIB@%$INSTALL_LIB%g s%@INSTALL_STUB_LIB@%$INSTALL_STUB_LIB%g s%@CFLAGS_DEFAULT@%$CFLAGS_DEFAULT%g s%@LDFLAGS_DEFAULT@%$LDFLAGS_DEFAULT%g s%@CCAFE_DEVELOPER@%$CCAFE_DEVELOPER%g s%@NO_BABEL_RC@%$NO_BABEL_RC%g s%@NO_BABELCLASSIC_RC@%$NO_BABELCLASSIC_RC%g s%@NO_CLASSIC_RC@%$NO_CLASSIC_RC%g s%@CCASPEC_BABEL_BABEL@%$CCASPEC_BABEL_BABEL%g s%@TCL_STUB_LIB_FILE@%$TCL_STUB_LIB_FILE%g s%@TCL_STUB_LIB_FLAG@%$TCL_STUB_LIB_FLAG%g s%@TCL_BUILD_STUB_LIB_SPEC@%$TCL_BUILD_STUB_LIB_SPEC%g s%@TCL_STUB_LIB_SPEC@%$TCL_STUB_LIB_SPEC%g s%@TCL_BUILD_STUB_LIB_PATH@%$TCL_BUILD_STUB_LIB_PATH%g s%@TCL_STUB_LIB_PATH@%$TCL_STUB_LIB_PATH%g s%@BUILD_DLTEST@%$BUILD_DLTEST%g s%@CFG_TCL_SHARED_LIB_SUFFIX@%$CFG_TCL_SHARED_LIB_SUFFIX%g s%@CFG_TCL_UNSHARED_LIB_SUFFIX@%$CFG_TCL_UNSHARED_LIB_SUFFIX%g s%@CFG_TCL_EXPORT_FILE_SUFFIX@%$CFG_TCL_EXPORT_FILE_SUFFIX%g s%@TCL_DBGX@%$TCL_DBGX%g s%@LD_FLAGS@%$LD_FLAGS%g s%@MATH_LIBS@%$MATH_LIBS%g s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g s%@TCL_LIB_FILE@%$TCL_LIB_FILE%g s%@TCL_LIB_FLAG@%$TCL_LIB_FLAG%g s%@TCL_NEEDS_EXP_FILE@%$TCL_NEEDS_EXP_FILE%g s%@TCL_BUILD_EXP_FILE@%$TCL_BUILD_EXP_FILE%g s%@TCL_EXP_FILE@%$TCL_EXP_FILE%g s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g s%@TCL_PACKAGE_PATH@%$TCL_PACKAGE_PATH%g s%@TCL_PATCH_LEVEL@%$TCL_PATCH_LEVEL%g s%@TCL_SHARED_LIB_SUFFIX@%$TCL_SHARED_LIB_SUFFIX%g s%@TCL_SHARED_BUILD@%$TCL_SHARED_BUILD%g s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g s%@TCL_UNSHARED_LIB_SUFFIX@%$TCL_UNSHARED_LIB_SUFFIX%g s%@TCL_VERSION@%$TCL_VERSION%g s%@XMLINC@%$XMLINC%g s%@XMLLIB@%$XMLLIB%g s%@HAVE_XML@%$HAVE_XML%g s%@BABEL_FLAGS@%$BABEL_FLAGS%g s%@CCAFE_DL_LIBS@%$CCAFE_DL_LIBS%g s%@CCAFE_LD_FLAGS@%$CCAFE_LD_FLAGS%g s%@CCAFE_LD_SEARCH_FLAGS@%$CCAFE_LD_SEARCH_FLAGS%g s%@CCAFE_SHLIB_CFLAGS@%$CCAFE_SHLIB_CFLAGS%g s%@CCAFE_SHLIB_LD@%$CCAFE_SHLIB_LD%g s%@CCAFE_SHLIB_LDFLAGS@%$CCAFE_SHLIB_LDFLAGS%g s%@CCAFE_SHLIB_LD_LIBS@%$CCAFE_SHLIB_LD_LIBS%g s%@CCAFE_SHLIB_SUFFIX@%$CCAFE_SHLIB_SUFFIX%g s%@PVM_ROOT@%$PVM_ROOT%g s%@EFENCE@%$EFENCE%g s%@EFENCE_INC@%$EFENCE_INC%g s%@CCASPEC_SUPPORT_SHARED@%$CCASPEC_SUPPORT_SHARED%g s%@CCASPEC_SUPPORT_STATIC@%$CCASPEC_SUPPORT_STATIC%g s%@CCA_ROOT@%$CCA_ROOT%g s%@CCA_JAVA_HM@%$CCA_JAVA_HM%g s%@NEO_CCA_ROOT_INSTALLED@%$NEO_CCA_ROOT_INSTALLED%g s%@NEO_CCA_INSTALLED@%$NEO_CCA_INSTALLED%g s%@NEO_CCA_CONFIG@%$NEO_CCA_CONFIG%g s%@EGNEO_CONFIG@%$EGNEO_CONFIG%g s%@NEOTESTPARAMETER_CONFIG@%$NEOTESTPARAMETER_CONFIG%g s%@CLASSIC_CCA_ROOT@%$CLASSIC_CCA_ROOT%g s%@CLASSIC_CCA_INSTALLED@%$CLASSIC_CCA_INSTALLED%g s%@CLASSIC_CCA_CONFIG@%$CLASSIC_CCA_CONFIG%g s%@HAVE_CLASSIC@%$HAVE_CLASSIC%g s%@HAVE_NEO@%$HAVE_NEO%g s%@CCAFE_SHARED_LIB@%$CCAFE_SHARED_LIB%g s%@CCAFE_STATIC_LIB@%$CCAFE_STATIC_LIB%g s%@CCAFE_STATIC_DRIVER_LIB@%$CCAFE_STATIC_DRIVER_LIB%g s%@BUILT_LIBTOOL_LIB@%$BUILT_LIBTOOL_LIB%g s%@CCAFE_LIBTOOL_LIB@%$CCAFE_LIBTOOL_LIB%g s%@CCAFE_LIBTOOL_DRIVER_LIB@%$CCAFE_LIBTOOL_DRIVER_LIB%g s%@BUILT_SHARED_LIB@%$BUILT_SHARED_LIB%g s%@BUILT_STATIC_LIB@%$BUILT_STATIC_LIB%g s%@BUILT_STATIC_DRIVER_LIB@%$BUILT_STATIC_DRIVER_LIB%g s%@BUILT_LIBTOOL_DRIVER_LIB@%$BUILT_LIBTOOL_DRIVER_LIB%g s%@CCAFE_SHARED_DRIVER_LIB@%$CCAFE_SHARED_DRIVER_LIB%g s%@BUILT_SHARED_DRIVER_LIB@%$BUILT_SHARED_DRIVER_LIB%g s%@CCAFE_BABEL_LIBTOOL_LIB@%$CCAFE_BABEL_LIBTOOL_LIB%g s%@CCAFE_BABEL_SHARED_LIB@%$CCAFE_BABEL_SHARED_LIB%g s%@CCAFE_BABEL_STATIC_LIB@%$CCAFE_BABEL_STATIC_LIB%g s%@BUILT_BABEL_LIBTOOL_LIB@%$BUILT_BABEL_LIBTOOL_LIB%g s%@BUILT_BABEL_SHARED_LIB@%$BUILT_BABEL_SHARED_LIB%g s%@BUILT_BABEL_STATIC_LIB@%$BUILT_BABEL_STATIC_LIB%g s%@HAVE_JAVA@%$HAVE_JAVA%g s%@NOJAVARULE@%$NOJAVARULE%g s%@EGNEO_CCA_DATA@%$EGNEO_CCA_DATA%g s%@NEOTESTPARAMETER_CCA_DATA@%$NEOTESTPARAMETER_CCA_DATA%g s%@NEOTESTGO_CCA_DATA@%$NEOTESTGO_CCA_DATA%g s%@PURESINGLE@%$PURESINGLE%g s%@HAVE_NOISE@%$HAVE_NOISE%g s%@HIDECOMPILE@%$HIDECOMPILE%g s%@HIDELIBTOOL@%$HIDELIBTOOL%g s%@OS_ARCH@%$OS_ARCH%g s%@MPI@%$MPI%g s%@MPI_IS_MPD@%$MPI_IS_MPD%g s%@MPIRUN@%$MPIRUN%g s%@MPIPRERUN@%$MPIPRERUN%g s%@MPIF77@%$MPIF77%g s%@MPIF90@%$MPIF90%g s%@MPICC@%$MPICC%g s%@MPI_LD@%$MPI_LD%g s%@MPICXX@%$MPICXX%g s%@MPI_ARCH@%$MPI_ARCH%g s%@MPI_HOME@%$MPI_HOME%g s%@MPI_INC@%$MPI_INC%g s%@MPI_BIN@%$MPI_BIN%g s%@MPI_STATIC_LIBS@%$MPI_STATIC_LIBS%g s%@MPI_STATIC_LDFLAGS@%$MPI_STATIC_LDFLAGS%g s%@MPI_SO_LIBS@%$MPI_SO_LIBS%g s%@MPI_SO_LDFLAGS@%$MPI_SO_LDFLAGS%g s%@MPI_CFLAGS@%$MPI_CFLAGS%g s%@MPI_FFLAGS@%$MPI_FFLAGS%g s%@MPI_CXXFLAGS@%$MPI_CXXFLAGS%g s%@BROKEN_MPICC@%$BROKEN_MPICC%g s%@BROKEN_MPICXX@%$BROKEN_MPICXX%g s%@MPI_LDFLAGS@%$MPI_LDFLAGS%g s%@MPILIB@%$MPILIB%g s%@MPI_LIBDIR@%$MPI_LIBDIR%g s%@MPI_SO_LIBDIR@%$MPI_SO_LIBDIR%g s%@MPILD_SO_FLAGS@%$MPILD_SO_FLAGS%g s%@MPI_INC_ODD@%$MPI_INC_ODD%g s%@PKG_NAME@%$PKG_NAME%g s%@VER_SUFFIX@%$VER_SUFFIX%g s%@PROGRAM_SUFFIX@%$PROGRAM_SUFFIX%g s%@pkgdatadir@%$pkgdatadir%g s%@pkgdocdir@%$pkgdocdir%g s%@pkglibdir@%$pkglibdir%g s%@pkgincludedir@%$pkgincludedir%g s%@CCAFE_SPEW@%$CCAFE_SPEW%g s%@CCAFE_MAJOR_VERSION@%$CCAFE_MAJOR_VERSION%g s%@CCAFE_MINOR_VERSION@%$CCAFE_MINOR_VERSION%g s%@CCAFE_PATCH_LEVEL@%$CCAFE_PATCH_LEVEL%g s%@CCAFE_VERSION@%$CCAFE_VERSION%g s%@CCAFE_VERSION_UNDERBAR@%$CCAFE_VERSION_UNDERBAR%g s%@VERSION@%$VERSION%g s%@TCLSH@%$TCLSH%g s%@RUBY@%$RUBY%g s%@SWIG@%$SWIG%g s%@SWIG_HOME@%$SWIG_HOME%g s%@CCAFE_ROOT@%$CCAFE_ROOT%g s%@CCAFE_CXX_ROOT@%$CCAFE_CXX_ROOT%g s%@CCAFE_JAVA_ROOT@%$CCAFE_JAVA_ROOT%g s%@CCAFE_INSTALL_ROOT@%$CCAFE_INSTALL_ROOT%g s%@CCAFE_RPM_ROOT@%$CCAFE_RPM_ROOT%g s%@CCAFE_RPM_prefix@%$CCAFE_RPM_prefix%g s%@CCAFE_RPM_libdir@%$CCAFE_RPM_libdir%g s%@CCAFE_RPM_pkgdatadir@%$CCAFE_RPM_pkgdatadir%g s%@EYES2_ROOT@%$EYES2_ROOT%g s%@SNLCPP_ROOT@%$SNLCPP_ROOT%g s%@ESI_ROOT@%$ESI_ROOT%g s%@STV_ROOT@%$STV_ROOT%g s%@EYES_ROOT@%$EYES_ROOT%g s%@PYTHON_SCRIPTING@%$PYTHON_SCRIPTING%g s%@PYTHON_INCLUDE@%$PYTHON_INCLUDE%g s%@PYTHON_CPPFLAGS@%$PYTHON_CPPFLAGS%g s%@PYTHON_LDFLAGS@%$PYTHON_LDFLAGS%g s%@CONFIG_ARGS@%$CONFIG_ARGS%g s%@CCAFE_FORCE@%$CCAFE_FORCE%g s%@NOT_HAVE_CXX_LIMITS@%$NOT_HAVE_CXX_LIMITS%g s%@CXX_TEMPLATES@%$CXX_TEMPLATES%g s%@LEX@%$LEX%g s%@YACC@%$YACC%g s%@TIME_WITH_SYS_TIME@%$TIME_WITH_SYS_TIME%g s%@HAVE_SYS_TIME_H@%$HAVE_SYS_TIME_H%g s%@SETVBUF_REVERSED@%$SETVBUF_REVERSED%g s%@HAVE_VPRINTF@%$HAVE_VPRINTF%g s%@HAVE_SYS_IOCTL_H@%$HAVE_SYS_IOCTL_H%g s%@HAVE_SYS_FILIO_H@%$HAVE_SYS_FILIO_H%g s%@USE_FIONBIO@%$USE_FIONBIO%g s%@USEMPI@%$USEMPI%g s%@GMAKE@%$GMAKE%g s%@PURIFY@%$PURIFY%g s%@SIZEOF_SHORT_P@%$SIZEOF_SHORT_P%g s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g s%@SIZEOF_LONG_INT@%$SIZEOF_LONG_INT%g s%@SIZEOF_LONG_LONG_INT@%$SIZEOF_LONG_LONG_INT%g s%@SIZEOF_INT64_T@%$SIZEOF_INT64_T%g s%@INSTALL@%$INSTALL%g s%@MONOCHROME@%$MONOCHROME%g s%@DOTTARG@%$DOTTARG%g s%@DOT@%$DOT%g s%@DOXYGENTARG@%$DOXYGENTARG%g s%@DOXYGEN@%$DOXYGEN%g s%@CCAFE_CONFIG_FILES@%$CCAFE_CONFIG_FILES%g CEOF EOF cat >> $CONFIG_STATUS <<\EOF # Split the substitutions into bite-sized pieces for seds with # small command number limits, like on Digital OSF/1 and HP-UX. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. ac_file=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_cmds # Line after last line for current file. ac_more_lines=: ac_sed_cmds="" while $ac_more_lines; do if test $ac_beg -gt 1; then sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file else sed "${ac_end}q" conftest.subs > conftest.s$ac_file fi if test ! -s conftest.s$ac_file; then ac_more_lines=false rm -f conftest.s$ac_file else if test -z "$ac_sed_cmds"; then ac_sed_cmds="sed -f conftest.s$ac_file" else ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" fi ac_file=`expr $ac_file + 1` ac_beg=$ac_end ac_end=`expr $ac_end + $ac_max_sed_cmds` fi done if test -z "$ac_sed_cmds"; then ac_sed_cmds=cat fi EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case "$ac_file" in *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; *) ac_file_in="${ac_file}.in" ;; esac # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. # Remove last slash and all that follows it. Not all systems have dirname. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then # The file is in a subdirectory. test ! -d "$ac_dir" && mkdir "$ac_dir" ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" # A "../" for each directory in $ac_dir_suffix. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` else ac_dir_suffix= ac_dots= fi case "$ac_given_srcdir" in .) srcdir=. if test -z "$ac_dots"; then top_srcdir=. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; *) # Relative path. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" top_srcdir="$ac_dots$ac_given_srcdir" ;; esac case "$ac_given_INSTALL" in [/$]*) INSTALL="$ac_given_INSTALL" ;; *) INSTALL="$ac_dots$ac_given_INSTALL" ;; esac echo creating "$ac_file" rm -f "$ac_file" configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." case "$ac_file" in *Makefile*) ac_comsub="1i\\ # $configure_input" ;; *) ac_comsub= ;; esac ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` sed -e "$ac_comsub s%@configure_input@%$configure_input%g s%@srcdir@%$srcdir%g s%@top_srcdir@%$top_srcdir%g s%@INSTALL@%$INSTALL%g " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file fi; done rm -f conftest.s* EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF chmod +x reconfigure echo "=== Summary of configuration ===" echo "Installation will be in $prefix" echo "libtool is $BABEL_LIBTOOL ($BLVERSION)" if test "x$HAVE_BABEL" = "x1"; then echo "babel support enabled." echo "CCASPEC_BABEL_VERSION=$CCASPEC_BABEL_VERSION" else echo "babel support disabled." fi if test "x$HAVE_CLASSIC" = "x1"; then echo "classic support enabled." else echo "classic support disabled." fi if test "x$HAVE_NEO" = "x1" ; then echo "neo support enabled." else echo "neo support disabled." fi if test "x$HAVE_XML" = "x1"; then echo "libxml2 use enabled." else echo "libxml2 use disabled." fi exit 0 EOF chmod +x $CONFIG_STATUS rm -fr confdefs* $ac_clean_files test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 # Source: /cvs/ccaffeine/repository/dccafe/configure.in,v 1.130 2005/05/10 22:24:09 baallan Exp $