home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 6 / FreshFish_September1994.bin / bbs / gnu / flex-2.4.7-src.lha / GNU / src / amiga / flex-2.4.7 / configure < prev    next >
Encoding:
Text File  |  1994-09-03  |  30.1 KB  |  1,058 lines

  1. #!/bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 1.11 
  4. # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  5.  
  6. # This configure script is free software; you can redistribute it and/or
  7. # modify it under the terms of the GNU General Public License as published
  8. # by the Free Software Foundation; either version 2, or (at your option)
  9. # any later version.
  10.  
  11. # This script is distributed in the hope that it will be useful, but
  12. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
  14. # Public License for more details.
  15.  
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20. # Save the original args to write them into config.status later.
  21. configure_args="$*"
  22.  
  23. # Only options that might do something get documented.
  24. ac_usage="Usage: configure [options] [host]
  25. Options: [defaults in brackets after descriptions]
  26. --build=BUILD        configure for building on BUILD [BUILD=HOST]
  27. --disable-FEATURE    do not include FEATURE (same as --enable-FEATURE=no)
  28. --enable-FEATURE[=ARG]    include FEATURE [ARG=yes]
  29. --exec-prefix=PREFIX    install host dependent files in PREFIX [/usr/local]
  30. --help            print this message
  31. --host=HOST        configure for HOST [guessed]
  32. --prefix=PREFIX        install host independent files in PREFIX [/usr/local]
  33. --quiet, --silent    do not print \`checking for...' messages
  34. --srcdir=DIR        find the sources in DIR [configure dir or ..]
  35. --target=TARGET        configure for TARGET [TARGET=HOST]
  36. --verbose        print results of checks
  37. --version        print the version of autoconf that created configure
  38. --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  39. --without-PACKAGE    do not use PACKAGE (same as --with-PACKAGE=no)
  40. --x-includes=DIR    X include files are in DIR
  41. --x-libraries=DIR    X library files are in DIR"
  42.  
  43. # Initialize some variables set by options.
  44. # The variables have the same names as the options, with
  45. # dashes changed to underlines.
  46. build=NONE
  47. exec_prefix=
  48. host=NONE
  49. no_create=
  50. nonopt=NONE
  51. norecursion=
  52. prefix=
  53. program_prefix=
  54. program_suffix=
  55. program_transform_name=
  56. silent=
  57. srcdir=
  58. target=NONE
  59. verbose=
  60. x_includes=
  61. x_libraries=
  62.  
  63. ac_prev=
  64. for ac_option
  65. do
  66.  
  67.   # If the previous option needs an argument, assign it.
  68.   if test -n "$ac_prev"; then
  69.     eval "$ac_prev=\$ac_option"
  70.     ac_prev=
  71.     continue
  72.   fi
  73.  
  74.   # Accept (but ignore some of) the important Cygnus configure
  75.   # options, so we can diagnose typos.
  76.  
  77.   case "$ac_option" in
  78.   -*=*) ac_optarg=`/bin/echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  79.   *) ac_optarg= ;;
  80.   esac
  81.  
  82.   case "$ac_option" in
  83.  
  84.   -build | --build | --buil | --bui | --bu | --b)
  85.     ac_prev=build ;;
  86.   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  87.     build="$ac_optarg" ;;
  88.  
  89.   -disable-* | --disable-*)
  90.     ac_feature=`/bin/echo $ac_option|sed -e 's/-*disable-//'`
  91.     # Reject names that aren't valid shell variable names.
  92.     if test -n "`/bin/echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  93.       /bin/echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  94.     fi
  95.     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  96.     eval "enable_${ac_feature}=no" ;;
  97.  
  98.   -enable-* | --enable-*)
  99.     ac_feature=`/bin/echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  100.     # Reject names that aren't valid shell variable names.
  101.     if test -n "`/bin/echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  102.       /bin/echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  103.     fi
  104.     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  105.     case "$ac_option" in
  106.       *=*) ;;
  107.       *) ac_optarg=yes ;;
  108.     esac
  109.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  110.  
  111.   # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  112.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  113.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  114.   | --exec | --exe | --ex)
  115.     ac_prev=exec_prefix ;;
  116.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  117.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  118.   | --exec=* | --exe=* | --ex=*)
  119.     exec_prefix="$ac_optarg" ;;
  120.  
  121.   -gas | --gas | --ga | --g)
  122.     with_gas=yes ;; # Obsolete; use --with-gas.
  123.  
  124.   -help | --help | --hel | --he)
  125.     cat << EOF
  126. $ac_usage
  127. EOF
  128.     exit 0 ;;
  129.  
  130.   -host | --host | --hos | --ho)
  131.     ac_prev=host ;;
  132.   -host=* | --host=* | --hos=* | --ho=*)
  133.     host="$ac_optarg" ;;
  134.  
  135.   -nfp | --nfp | --nf)
  136.     with_fp=no ;; # Obsolete; use --without-fp.
  137.  
  138.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  139.   | --no-cr | --no-c)
  140.     no_create=yes ;;
  141.  
  142.   -norecursion | --norecursion | --norecursio | --norecursi \
  143.   | --norecurs | --norecur | --norecu | --norec | --nore | --nor)
  144.     norecursion=yes ;;
  145.  
  146.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  147.     ac_prev=prefix ;;
  148.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  149.     prefix="$ac_optarg" ;;
  150.  
  151.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  152.   | --program-pre | --program-pr | --program-p)
  153.     ac_prev=program_prefix ;;
  154.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  155.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  156.     program_prefix="$ac_optarg" ;;
  157.  
  158.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  159.   | --program-suf | --program-su | --program-s)
  160.     ac_prev=program_suffix ;;
  161.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  162.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  163.     program_suffix="$ac_optarg" ;;
  164.  
  165.   -program-transform-name | --program-transform-name \
  166.   | --program-transform-nam | --program-transform-na \
  167.   | --program-transform-n | --program-transform- \
  168.   | --program-transform | --program-transfor \
  169.   | --program-transfo | --program-transf \
  170.   | --program-trans | --program-tran \
  171.   | --progr-tra | --program-tr | --program-t)
  172.     ac_prev=program_transform_name ;;
  173.   -program-transform-name=* | --program-transform-name=* \
  174.   | --program-transform-nam=* | --program-transform-na=* \
  175.   | --program-transform-n=* | --program-transform-=* \
  176.   | --program-transform=* | --program-transfor=* \
  177.   | --program-transfo=* | --program-transf=* \
  178.   | --program-trans=* | --program-tran=* \
  179.   | --progr-tra=* | --program-tr=* | --program-t=*)
  180.     program_transform_name="$ac_optarg" ;;
  181.  
  182.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  183.   | -silent | --silent | --silen | --sile | --sil)
  184.     silent=yes ;;
  185.  
  186.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  187.     ac_prev=srcdir ;;
  188.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  189.     srcdir="$ac_optarg" ;;
  190.  
  191.   -target | --target | --targe | --targ | --tar | --ta | --t)
  192.     ac_prev=target ;;
  193.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  194.     target="$ac_optarg" ;;
  195.  
  196.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  197.     verbose=yes ;;
  198.  
  199.   -version | --version | --versio | --versi | --vers)
  200.     /bin/echo "configure generated by autoconf version 1.11"
  201.     exit 0 ;;
  202.  
  203.   -with-* | --with-*)
  204.     ac_package=`/bin/echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  205.     # Reject names that aren't valid shell variable names.
  206.     if test -n "`/bin/echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  207.       /bin/echo "configure: $ac_package: invalid package name" >&2; exit 1
  208.     fi
  209.     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  210.     case "$ac_option" in
  211.       *=*) ;;
  212.       *) ac_optarg=yes ;;
  213.     esac
  214.     eval "with_${ac_package}='$ac_optarg'" ;;
  215.  
  216.   -without-* | --without-*)
  217.     ac_package=`/bin/echo $ac_option|sed -e 's/-*without-//'`
  218.     # Reject names that aren't valid shell variable names.
  219.     if test -n "`/bin/echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  220.       /bin/echo "configure: $ac_package: invalid package name" >&2; exit 1
  221.     fi
  222.     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  223.     eval "with_${ac_package}=no" ;;
  224.  
  225.   --x) with_x=yes ;; # Obsolete; use --with-x.
  226.  
  227.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  228.   | --x-incl | --x-inc | --x-in | --x-i)
  229.     ac_prev=x_includes ;;
  230.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  231.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  232.     x_includes="$ac_optarg" ;;
  233.  
  234.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  235.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  236.     ac_prev=x_libraries ;;
  237.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  238.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  239.     x_libraries="$ac_optarg" ;;
  240.  
  241.   -*) /bin/echo "configure: $ac_option: invalid option; use --help to show usage" >&2; exit 1
  242.     ;;
  243.  
  244.   *) 
  245.     if test -n "`/bin/echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  246.       /bin/echo "configure: warning: $ac_option: invalid host type" >&2
  247.     fi
  248.     if test "x$nonopt" != xNONE; then
  249.       /bin/echo "configure: can only configure for one host and one target at a time" >&2; exit 1
  250.     fi
  251.     nonopt="$ac_option"
  252.     ;;
  253.  
  254.   esac
  255. done
  256.  
  257. if test -n "$ac_prev"; then
  258.   /bin/echo "configure: missing argument to --`/bin/echo $ac_prev | sed 's/_/-/g'`" >&2; exit 1
  259. fi
  260.  
  261. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  262. trap 'rm -fr confdefs* $ac_clean_files' 0
  263.  
  264. # Save the original args if we used an alternate arg parser.
  265. ac_configure_temp="${configure_args-$*}"
  266. # Strip out --no-create and --norecursion so they don't pile up.
  267. configure_args=
  268. for ac_arg in $ac_configure_temp; do
  269.   case "$ac_arg" in
  270.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  271.   | --no-cr | --no-c) ;;
  272.   -norecursion | --norecursion | --norecursio | --norecursi \
  273.   | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
  274.   *) configure_args="$configure_args $ac_arg" ;;
  275.   esac
  276. done
  277.  
  278. # NLS nuisances.
  279. # These must not be set unconditionally because not all systems understand
  280. # e.g. LANG=C (notably SCO).
  281. if test "${LC_ALL+set}" = 'set'; then LC_ALL=C; export LC_ALL; fi
  282. if test "${LANG+set}"   = 'set'; then LANG=C;   export LANG;   fi
  283.  
  284. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  285. rm -rf conftest* confdefs.h
  286. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  287. /bin/echo > confdefs.h
  288.  
  289. # A filename unique to this package, relative to the directory that
  290. # configure is in, which we can look for to find out if srcdir is correct.
  291. ac_unique_file=initscan.c
  292.  
  293. # Find the source files, if location was not specified.
  294. if test -z "$srcdir"; then
  295.   ac_srcdir_defaulted=yes
  296.   # Try the directory containing this script, then `..'.
  297.   ac_prog=$0
  298.   ac_confdir=`/bin/echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  299.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  300.   srcdir=$ac_confdir
  301.   if test ! -r $srcdir/$ac_unique_file; then
  302.     srcdir=..
  303.   fi
  304. fi
  305. if test ! -r $srcdir/$ac_unique_file; then
  306.   if test x$ac_srcdir_defaulted = xyes; then
  307.     /bin/echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
  308.   else
  309.     /bin/echo "configure: can not find sources in ${srcdir}" >&2; exit 1
  310.   fi
  311. fi
  312. ac_ext=c
  313. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  314. ac_cpp='${CPP}'
  315. ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
  316.  
  317.  
  318.  
  319. test -n "$silent" || /bin/echo "checking for ln -s"
  320. rm -f conftestdata
  321. if ln -s X conftestdata 2>/dev/null
  322. then
  323.   rm -f conftestdata
  324.   LN_S="ln -s"
  325. else
  326.   LN_S=ln
  327. fi
  328.  
  329.  
  330. for ac_prog in 'bison -y' byacc
  331. do
  332. if test -z "$YACC"; then
  333.   # Extract the first word of `$ac_prog', so it can be a program name with args.
  334.   set ac_dummy $ac_prog; ac_word=$2
  335.   test -n "$silent" || /bin/echo "checking for $ac_word"
  336.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  337.   for ac_dir in $PATH; do
  338.     test -z "$ac_dir" && ac_dir=.
  339.     if test -f $ac_dir/$ac_word; then
  340.       YACC="$ac_prog"
  341.       break
  342.     fi
  343.   done
  344.   IFS="$ac_save_ifs"
  345. fi
  346.  
  347. test -n "$YACC" && test -n "$verbose" && /bin/echo "    setting YACC to $YACC"
  348.  
  349. test -n "$YACC" && break
  350. done
  351. test -n "$YACC" || YACC="yacc"
  352.  
  353. if test -z "$CC"; then
  354.   # Extract the first word of `gcc', so it can be a program name with args.
  355.   set ac_dummy gcc; ac_word=$2
  356.   test -n "$silent" || /bin/echo "checking for $ac_word"
  357.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  358.   for ac_dir in $PATH; do
  359.     test -z "$ac_dir" && ac_dir=.
  360.     if test -f $ac_dir/$ac_word; then
  361.       CC="gcc"
  362.       break
  363.     fi
  364.   done
  365.   IFS="$ac_save_ifs"
  366. fi
  367. test -z "$CC" && CC="cc"
  368. test -n "$CC" && test -n "$verbose" && /bin/echo "    setting CC to $CC"
  369.  
  370. # Find out if we are using GNU C, under whatever name.
  371. cat > conftest.c <<EOF
  372. #ifdef __GNUC__
  373.   yes
  374. #endif
  375. EOF
  376. ${CC-cc} -E conftest.c > conftest.out 2>&1
  377. if egrep yes conftest.out >/dev/null 2>&1; then
  378.   GCC=1 # For later tests.
  379. fi
  380. rm -f conftest*
  381.  
  382. if test -z "$RANLIB"; then
  383.   # Extract the first word of `ranlib', so it can be a program name with args.
  384.   set ac_dummy ranlib; ac_word=$2
  385.   test -n "$silent" || /bin/echo "checking for $ac_word"
  386.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  387.   for ac_dir in $PATH; do
  388.     test -z "$ac_dir" && ac_dir=.
  389.     if test -f $ac_dir/$ac_word; then
  390.       RANLIB="ranlib"
  391.       break
  392.     fi
  393.   done
  394.   IFS="$ac_save_ifs"
  395. fi
  396. test -z "$RANLIB" && RANLIB=":"
  397. test -n "$RANLIB" && test -n "$verbose" && /bin/echo "    setting RANLIB to $RANLIB"
  398.  
  399. # Make sure to not get the incompatible SysV /etc/install and
  400. # /usr/sbin/install, which might be in PATH before a BSD-like install,
  401. # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  402. # or the AFS install, which mishandles nonexistent args, or
  403. # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  404. # `staff', or /sbin/install on IRIX which has incompatible command-line
  405. # syntax.  Sigh.
  406. #
  407. #     On most BSDish systems install is in /usr/bin, not /usr/ucb
  408. #     anyway.
  409. # This turns out not to be true, so the mere pathname isn't an indication
  410. # of whether the program works.  What we really need is a set of tests for
  411. # the install program to see if it actually works in all the required ways.
  412. #
  413. # Avoid using ./install, which might have been erroneously created
  414. # by make from ./install.sh.
  415. if test -z "${INSTALL}"; then
  416.   test -n "$silent" || /bin/echo "checking for a BSD compatible install"
  417.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  418.   for ac_dir in $PATH; do
  419.     case "$ac_dir" in
  420.     ''|.|/gnu/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  421.     *)
  422.       # OSF1 and SCO ODT 3.0 have their own names for install.
  423.       for ac_prog in installbsd scoinst install; do
  424.         if test -f $ac_dir/$ac_prog; then
  425.       if test $ac_prog = install &&
  426.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  427.         # AIX install.  It has an incompatible calling convention.
  428.         # OSF/1 installbsd also uses dspmsg, but is usable.
  429.         :
  430.       else
  431.         INSTALL="$ac_dir/$ac_prog -c"
  432.         break 2
  433.       fi
  434.     fi
  435.       done
  436.       ;;
  437.     esac
  438.   done
  439.   IFS="$ac_save_ifs"
  440. fi
  441.  
  442. if test -z "$INSTALL"; then
  443.   # As a last resort, use the slow shell script.
  444.   for ac_dir in ${srcdir} ${srcdir}/.. ${srcdir}/../..; do
  445.     if test -f $ac_dir/install.sh; then
  446.       INSTALL="$ac_dir/install.sh -c"; break
  447.     fi
  448.   done
  449. fi
  450. if test -z "$INSTALL"; then
  451.   /bin/echo "configure: can not find install.sh in ${srcdir} or ${srcdir}/.. or ${srcdir}/../.." >&2; exit 1
  452. fi
  453. test -n "$verbose" && /bin/echo "    setting INSTALL to $INSTALL"
  454.  
  455. # Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
  456. # It thinks the first close brace ends the variable substitution.
  457. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  458. test -n "$verbose" && /bin/echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  459.  
  460. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  461. test -n "$verbose" && /bin/echo "    setting INSTALL_DATA to $INSTALL_DATA"
  462.  
  463. ac_prog='/* Ultrix mips cc rejects this.  */
  464. typedef int charset[2]; const charset x;
  465. /* SunOS 4.1.1 cc rejects this.  */
  466. char const *const *ccp;
  467. char **p;
  468. /* AIX XL C 1.02.0.0 rejects this.
  469.    It does not let you subtract one const X* pointer from another in an arm
  470.    of an if-expression whose if-part is not a constant expression */
  471. const char *g = "string";
  472. ccp = &g + (g ? g-g : 0);
  473. /* HPUX 7.0 cc rejects these. */
  474. ++ccp;
  475. p = (char**) ccp;
  476. ccp = (char const *const *) p;
  477. { /* SCO 3.2v4 cc rejects this.  */
  478.   char *t;
  479.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  480.  
  481.   *t++ = 0;
  482. }
  483. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  484.   int x[] = {25,17};
  485.   const int *foo = &x[0];
  486.   ++foo;
  487. }
  488. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  489.   typedef const int *iptr;
  490.   iptr p = 0;
  491.   ++p;
  492. }
  493. { /* AIX XL C 1.02.0.0 rejects this saying
  494.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  495.   struct s { int j; const int *ap[3]; };
  496.   struct s *b; b->j = 5;
  497. }
  498. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  499.   const int foo = 10;
  500. }'
  501. test -n "$silent" || /bin/echo "checking for lack of working const"
  502. cat > conftest.${ac_ext} <<EOF
  503. #include "confdefs.h"
  504.  
  505. int main() { return 0; }
  506. int t() { $ac_prog; return 0; }
  507. EOF
  508. if eval $ac_compile; then
  509.   :
  510. else
  511.   rm -rf conftest*
  512.   
  513. {
  514. test -n "$verbose" && \
  515. /bin/echo "    defining" const to be empty
  516. /bin/echo "#define" const "" >> confdefs.h
  517. DEFS="$DEFS -Dconst="
  518. }
  519.  
  520. fi
  521. rm -f conftest*
  522.  
  523. test -n "$silent" || /bin/echo "checking how to run the C preprocessor"
  524. if test -z "$CPP"; then
  525.   # This must be in double quotes, not single quotes, because CPP may get
  526.   # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  527.   # make.  It must be expanded now.
  528.   CPP="${CC-cc} -E"
  529.   cat > conftest.${ac_ext} <<EOF
  530. #include "confdefs.h"
  531. #include <stdio.h>
  532. Syntax Error
  533. EOF
  534. # Some shells (Coherent) do redirections in the wrong order, so need
  535. # the parens.
  536. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  537. if test -z "$ac_err"; then
  538.   :
  539. else
  540.   rm -rf conftest*
  541.   CPP="${CC-cc} -E -traditional-cpp"
  542.   cat > conftest.${ac_ext} <<EOF
  543. #include "confdefs.h"
  544. #include <stdio.h>
  545. Syntax Error
  546. EOF
  547. # Some shells (Coherent) do redirections in the wrong order, so need
  548. # the parens.
  549. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  550. if test -z "$ac_err"; then
  551.   :
  552. else
  553.   rm -rf conftest*
  554.   CPP=/lib/cpp
  555. fi
  556. rm -f conftest*
  557. fi
  558. rm -f conftest*
  559. fi
  560. test -n "$verbose" && /bin/echo "    setting CPP to $CPP"
  561.  
  562. test -n "$silent" || /bin/echo "checking for ANSI C header files"
  563. cat > conftest.${ac_ext} <<EOF
  564. #include "confdefs.h"
  565. #include <stdlib.h>
  566. #include <stdarg.h>
  567. #include <string.h>
  568. #include <float.h>
  569. EOF
  570. # Some shells (Coherent) do redirections in the wrong order, so need
  571. # the parens.
  572. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  573. if test -z "$ac_err"; then
  574.   rm -rf conftest*
  575.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  576. /bin/echo '#include "confdefs.h"
  577. #include <string.h>' > conftest.${ac_ext}
  578. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  579. if egrep "memchr" conftest.out >/dev/null 2>&1; then
  580.   rm -rf conftest*
  581.   # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  582. cat > conftest.${ac_ext} <<EOF
  583. #include "confdefs.h"
  584. #include <ctype.h>
  585. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  586. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  587. #define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))
  588. int main () { int i; for (i = 0; i < 256; i++)
  589. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  590. exit (0); }
  591.  
  592. EOF
  593. eval $ac_compile
  594. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  595.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  596. /bin/echo '#include "confdefs.h"
  597. #include <stdlib.h>' > conftest.${ac_ext}
  598. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  599. if egrep "free" conftest.out >/dev/null 2>&1; then
  600.   rm -rf conftest*
  601.   
  602. {
  603. test -n "$verbose" && \
  604. /bin/echo "    defining STDC_HEADERS"
  605. /bin/echo "#define" STDC_HEADERS "1" >> confdefs.h
  606. DEFS="$DEFS -DSTDC_HEADERS=1"
  607. }
  608.  
  609.  
  610. fi
  611. rm -f conftest*
  612.  
  613.  
  614. fi
  615. rm -fr conftest*
  616.  
  617. fi
  618. rm -f conftest*
  619.  
  620.  
  621. fi
  622. rm -f conftest*
  623.  
  624. for ac_hdr in string.h
  625. do
  626. ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  627. test -n "$silent" || /bin/echo "checking for ${ac_hdr}"
  628. cat > conftest.${ac_ext} <<EOF
  629. #include "confdefs.h"
  630. #include <${ac_hdr}>
  631. EOF
  632. # Some shells (Coherent) do redirections in the wrong order, so need
  633. # the parens.
  634. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  635. if test -z "$ac_err"; then
  636.   rm -rf conftest*
  637.   
  638. {
  639. test -n "$verbose" && \
  640. /bin/echo "    defining ${ac_tr_hdr}"
  641. /bin/echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
  642. DEFS="$DEFS -D${ac_tr_hdr}=1"
  643. }
  644.  
  645.  
  646. fi
  647. rm -f conftest*
  648. done
  649.  
  650.  
  651. case "$YACC" in
  652. *bison*)
  653.   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  654. # for constant arguments.  Useless!
  655. test -n "$silent" || /bin/echo "checking for working alloca.h"
  656. cat > conftest.${ac_ext} <<EOF
  657. #include "confdefs.h"
  658. #include <alloca.h>
  659. int main() { return 0; }
  660. int t() { char *p = alloca(2 * sizeof(int));; return 0; }
  661. EOF
  662. if eval $ac_compile; then
  663.   rm -rf conftest*
  664.   
  665. {
  666. test -n "$verbose" && \
  667. /bin/echo "    defining HAVE_ALLOCA_H"
  668. /bin/echo "#define" HAVE_ALLOCA_H "1" >> confdefs.h
  669. DEFS="$DEFS -DHAVE_ALLOCA_H=1"
  670. }
  671.  
  672.  
  673. fi
  674. rm -f conftest*
  675.  
  676. ac_decl="#ifdef __GNUC__
  677. #define alloca __builtin_alloca
  678. #else
  679. #if HAVE_ALLOCA_H
  680. #include <alloca.h>
  681. #else
  682. #ifdef _AIX
  683.  #pragma alloca
  684. #else
  685. char *alloca ();
  686. #endif
  687. #endif
  688. #endif
  689. "
  690. test -n "$silent" || /bin/echo "checking for alloca"
  691. cat > conftest.${ac_ext} <<EOF
  692. #include "confdefs.h"
  693. $ac_decl
  694. int main() { return 0; }
  695. int t() { char *p = (char *) alloca(1);; return 0; }
  696. EOF
  697. if eval $ac_compile; then
  698.   rm -rf conftest*
  699.   
  700. {
  701. test -n "$verbose" && \
  702. /bin/echo "    defining HAVE_ALLOCA"
  703. /bin/echo "#define" HAVE_ALLOCA "1" >> confdefs.h
  704. DEFS="$DEFS -DHAVE_ALLOCA=1"
  705. }
  706.  
  707.  
  708. else
  709.   rm -rf conftest*
  710.   ac_alloca_missing=1
  711. cat > conftest.${ac_ext} <<EOF
  712. #include "confdefs.h"
  713.  
  714. #if defined(CRAY) && ! defined(CRAY2)
  715. winnitude
  716. #else
  717. lossage
  718. #endif
  719.  
  720. EOF
  721. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  722. if egrep "winnitude" conftest.out >/dev/null 2>&1; then
  723.   rm -rf conftest*
  724.   test -n "$silent" || /bin/echo "checking for _getb67"
  725. cat > conftest.${ac_ext} <<EOF
  726. #include "confdefs.h"
  727. #include <ctype.h>
  728. int main() { return 0; }
  729. int t() { 
  730. /* The GNU C library defines this for functions which it implements
  731.     to always fail with ENOSYS.  Some functions are actually named
  732.     something starting with __ and the normal name is an alias.  */
  733. #if defined (__stub__getb67) || defined (__stub____getb67)
  734. choke me
  735. #else
  736. /* Override any gcc2 internal prototype to avoid an error.  */
  737. extern char _getb67(); _getb67();
  738. #endif
  739. ; return 0; }
  740. EOF
  741. if eval $ac_compile; then
  742.   rm -rf conftest*
  743.   {
  744. test -n "$verbose" && \
  745. /bin/echo "    defining" CRAY_STACKSEG_END to be "_getb67"
  746. /bin/echo "#define" CRAY_STACKSEG_END "_getb67" >> confdefs.h
  747. DEFS="$DEFS -DCRAY_STACKSEG_END=_getb67"
  748. }
  749.  
  750.  
  751. else
  752.   rm -rf conftest*
  753.   test -n "$silent" || /bin/echo "checking for GETB67"
  754. cat > conftest.${ac_ext} <<EOF
  755. #include "confdefs.h"
  756. #include <ctype.h>
  757. int main() { return 0; }
  758. int t() { 
  759. /* The GNU C library defines this for functions which it implements
  760.     to always fail with ENOSYS.  Some functions are actually named
  761.     something starting with __ and the normal name is an alias.  */
  762. #if defined (__stub_GETB67) || defined (__stub___GETB67)
  763. choke me
  764. #else
  765. /* Override any gcc2 internal prototype to avoid an error.  */
  766. extern char GETB67(); GETB67();
  767. #endif
  768. ; return 0; }
  769. EOF
  770. if eval $ac_compile; then
  771.   rm -rf conftest*
  772.   {
  773. test -n "$verbose" && \
  774. /bin/echo "    defining" CRAY_STACKSEG_END to be "GETB67"
  775. /bin/echo "#define" CRAY_STACKSEG_END "GETB67" >> confdefs.h
  776. DEFS="$DEFS -DCRAY_STACKSEG_END=GETB67"
  777. }
  778.  
  779.  
  780. else
  781.   rm -rf conftest*
  782.   test -n "$silent" || /bin/echo "checking for getb67"
  783. cat > conftest.${ac_ext} <<EOF
  784. #include "confdefs.h"
  785. #include <ctype.h>
  786. int main() { return 0; }
  787. int t() { 
  788. /* The GNU C library defines this for functions which it implements
  789.     to always fail with ENOSYS.  Some functions are actually named
  790.     something starting with __ and the normal name is an alias.  */
  791. #if defined (__stub_getb67) || defined (__stub___getb67)
  792. choke me
  793. #else
  794. /* Override any gcc2 internal prototype to avoid an error.  */
  795. extern char getb67(); getb67();
  796. #endif
  797. ; return 0; }
  798. EOF
  799. if eval $ac_compile; then
  800.   rm -rf conftest*
  801.   {
  802. test -n "$verbose" && \
  803. /bin/echo "    defining" CRAY_STACKSEG_END to be "getb67"
  804. /bin/echo "#define" CRAY_STACKSEG_END "getb67" >> confdefs.h
  805. DEFS="$DEFS -DCRAY_STACKSEG_END=getb67"
  806. }
  807.  
  808.  
  809. fi
  810. rm -f conftest*
  811.  
  812. fi
  813. rm -f conftest*
  814.  
  815. fi
  816. rm -f conftest*
  817.  
  818.  
  819. fi
  820. rm -f conftest*
  821.  
  822.  
  823. fi
  824. rm -f conftest*
  825.  
  826. if test -n "$ac_alloca_missing"; then
  827.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  828.   # that cause trouble.  Some versions do not even contain alloca or
  829.   # contain a buggy version.  If you still want to use their alloca,
  830.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  831.   ALLOCA=alloca.o
  832.   
  833. {
  834. test -n "$verbose" && \
  835. /bin/echo "    defining C_ALLOCA"
  836. /bin/echo "#define" C_ALLOCA "1" >> confdefs.h
  837. DEFS="$DEFS -DC_ALLOCA=1"
  838. }
  839.  
  840.  
  841.   test -n "$silent" || /bin/echo "checking stack direction for C alloca"
  842.   test -n "$silent" || /bin/echo "checking whether cross-compiling"
  843. # If we cannot run a trivial program, we must be cross compiling.
  844. cat > conftest.${ac_ext} <<EOF
  845. #include "confdefs.h"
  846. main(){exit(0);}
  847. EOF
  848. eval $ac_compile
  849. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  850.   :
  851. else
  852.   cross_compiling=1
  853. fi
  854. rm -fr conftest*
  855.  
  856. if test -n "$cross_compiling"
  857. then
  858.   
  859. {
  860. test -n "$verbose" && \
  861. /bin/echo "    defining" STACK_DIRECTION to be "0"
  862. /bin/echo "#define" STACK_DIRECTION "0" >> confdefs.h
  863. DEFS="$DEFS -DSTACK_DIRECTION=0"
  864. }
  865.  
  866. else
  867. cat > conftest.${ac_ext} <<EOF
  868. #include "confdefs.h"
  869. find_stack_direction ()
  870. {
  871.   static char *addr = 0;
  872.   auto char dummy;
  873.   if (addr == 0)
  874.     {
  875.       addr = &dummy;
  876.       return find_stack_direction ();
  877.     }
  878.   else
  879.     return (&dummy > addr) ? 1 : -1;
  880. }
  881. main ()
  882. {
  883.   exit (find_stack_direction() < 0);
  884. }
  885. EOF
  886. eval $ac_compile
  887. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  888.   
  889. {
  890. test -n "$verbose" && \
  891. /bin/echo "    defining" STACK_DIRECTION to be "1"
  892. /bin/echo "#define" STACK_DIRECTION "1" >> confdefs.h
  893. DEFS="$DEFS -DSTACK_DIRECTION=1"
  894. }
  895.  
  896.  
  897. else
  898.   
  899. {
  900. test -n "$verbose" && \
  901. /bin/echo "    defining" STACK_DIRECTION to be "-1"
  902. /bin/echo "#define" STACK_DIRECTION "-1" >> confdefs.h
  903. DEFS="$DEFS -DSTACK_DIRECTION=-1"
  904. }
  905.  
  906. fi
  907. fi
  908. rm -fr conftest*
  909. fi
  910.  
  911.   ;;
  912. esac
  913.  
  914.  
  915. # The preferred way to propogate these variables is regular @ substitutions.
  916. if test -n "$prefix"; then
  917.   ac_prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  918. else
  919.   prefix=/usr/local
  920. fi
  921. if test -n "$exec_prefix"; then
  922.   ac_prsub="$ac_prsub
  923. s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  924. else
  925.   exec_prefix='${prefix}' # Let make expand it.
  926. fi
  927.  
  928. # Any assignment to VPATH causes Sun make to only execute
  929. # the first set of double-colon rules, so remove it if not needed.
  930. # If there is a colon in the path, we need to keep it.
  931. if test "x$srcdir" = x.; then
  932.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  933. fi
  934.  
  935. # Quote sed substitution magic chars in DEFS.
  936. cat >conftest.def <<EOF
  937. $DEFS
  938. EOF
  939. ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  940. DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
  941. rm -f conftest.def
  942. # Substitute for predefined variables.
  943.  
  944. trap 'rm -f config.status; exit 1' 1 2 15
  945. /bin/echo creating config.status
  946. # Some systems, like AmigaDOS, won't allow you to remove a script that is
  947. # being executed, so just move it out of the way instead.
  948. if test -f config.status; then mv config.status config.status.old; else true; fi
  949. cat > config.status <<EOF
  950. #!/bin/sh
  951. # Generated automatically by configure.
  952. # Run this file to recreate the current configuration.
  953. # This directory was configured as follows,
  954. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  955. #
  956. # $0 $configure_args
  957.  
  958. ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
  959. for ac_option
  960. do
  961.   case "\$ac_option" in
  962.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  963.     /bin/echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
  964.     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
  965.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  966.     /bin/echo "config.status generated by autoconf version 1.11"
  967.     exit 0 ;;
  968.   -help | --help | --hel | --he | --h)
  969.     /bin/echo "\$ac_cs_usage"; exit 0 ;;
  970.   *) /bin/echo "\$ac_cs_usage"; exit 1 ;;
  971.   esac
  972. done
  973.  
  974. trap 'rm -f Makefile; exit 1' 1 2 15
  975. LN_S='$LN_S'
  976. YACC='$YACC'
  977. CC='$CC'
  978. RANLIB='$RANLIB'
  979. INSTALL='$INSTALL'
  980. INSTALL_PROGRAM='$INSTALL_PROGRAM'
  981. INSTALL_DATA='$INSTALL_DATA'
  982. CPP='$CPP'
  983. ALLOCA='$ALLOCA'
  984. LIBS='$LIBS'
  985. srcdir='$srcdir'
  986. top_srcdir='$top_srcdir'
  987. prefix='$prefix'
  988. exec_prefix='$exec_prefix'
  989. DEFS='$DEFS'
  990. ac_prsub='$ac_prsub'
  991. ac_vpsub='$ac_vpsub'
  992. extrasub='$extrasub'
  993. EOF
  994. cat >> config.status <<\EOF
  995.  
  996. ac_given_srcdir=$srcdir
  997.  
  998. CONFIG_FILES=${CONFIG_FILES-"Makefile"}
  999. for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
  1000.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1001.   ac_dir=`/bin/echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1002.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1003.     # The file is in a subdirectory.
  1004.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1005.     ac_dir_suffix="/$ac_dir"
  1006.   else
  1007.     ac_dir_suffix=
  1008.   fi
  1009.  
  1010.   # A "../" for each directory in $ac_dir_suffix.
  1011.   ac_dots=`/bin/echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1012.   case "$ac_given_srcdir" in
  1013.   .)  srcdir=.
  1014.       if test -z "$ac_dir_suffix"; then top_srcdir=.
  1015.       else top_srcdir=`/bin/echo $ac_dots|sed 's%/$%%'`; fi ;;
  1016.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1017.   *) # Relative path.
  1018.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1019.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1020.   esac
  1021.  
  1022.   /bin/echo creating "$ac_file"
  1023.   rm -f "$ac_file"
  1024.   comment_str="Generated automatically from `/bin/echo $ac_file|sed 's|.*/||'`.in by configure."
  1025.   case "$ac_file" in
  1026.     *.c | *.h | *.C | *.cc | *.m )  /bin/echo "/* $comment_str */" > "$ac_file" ;;
  1027.     * )          /bin/echo "# $comment_str"     > "$ac_file" ;;
  1028.   esac
  1029.   sed -e "
  1030. $ac_prsub
  1031. $ac_vpsub
  1032. $extrasub
  1033. s%@LN_S@%$LN_S%g
  1034. s%@YACC@%$YACC%g
  1035. s%@CC@%$CC%g
  1036. s%@RANLIB@%$RANLIB%g
  1037. s%@INSTALL@%$INSTALL%g
  1038. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1039. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1040. s%@CPP@%$CPP%g
  1041. s%@ALLOCA@%$ALLOCA%g
  1042. s%@LIBS@%$LIBS%g
  1043. s%@srcdir@%$srcdir%g
  1044. s%@top_srcdir@%$top_srcdir%g
  1045. s%@prefix@%$prefix%g
  1046. s%@exec_prefix@%$exec_prefix%g
  1047. s%@DEFS@%$DEFS%
  1048. " $ac_given_srcdir/${ac_file}.in >> $ac_file
  1049. fi; done
  1050.  
  1051.  
  1052. exit 0
  1053. EOF
  1054. chmod +x config.status
  1055. # Some shells look in PATH for config.status without the "./".
  1056. test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} ./config.status
  1057.  
  1058.