home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 036 / less232.zip / CONFIGUR < prev    next >
Text File  |  1994-09-24  |  43KB  |  1,478 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=`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=`echo $ac_option|sed -e 's/-*disable-//'`
  91.     # Reject names that aren't valid shell variable names.
  92.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  93.       echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  94.     fi
  95.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  96.     eval "enable_${ac_feature}=no" ;;
  97.  
  98.   -enable-* | --enable-*)
  99.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  100.     # Reject names that aren't valid shell variable names.
  101.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  102.       echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  103.     fi
  104.     ac_feature=`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.     echo "configure generated by autoconf version 1.11"
  201.     exit 0 ;;
  202.  
  203.   -with-* | --with-*)
  204.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  205.     # Reject names that aren't valid shell variable names.
  206.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  207.       echo "configure: $ac_package: invalid package name" >&2; exit 1
  208.     fi
  209.     ac_package=`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=`echo $ac_option|sed -e 's/-*without-//'`
  218.     # Reject names that aren't valid shell variable names.
  219.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  220.       echo "configure: $ac_package: invalid package name" >&2; exit 1
  221.     fi
  222.     ac_package=`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.   -*) echo "configure: $ac_option: invalid option; use --help to show usage" >&2; exit 1
  242.     ;;
  243.  
  244.   *) 
  245.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  246.       echo "configure: warning: $ac_option: invalid host type" >&2
  247.     fi
  248.     if test "x$nonopt" != xNONE; then
  249.       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.   echo "configure: missing argument to --`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. 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=forwback.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=`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.     echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
  308.   else
  309.     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.  
  320. if test -z "$CC"; then
  321.   # Extract the first word of `gcc', so it can be a program name with args.
  322.   set ac_dummy gcc; ac_word=$2
  323.   test -n "$silent" || echo "checking for $ac_word"
  324.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  325.   for ac_dir in $PATH; do
  326.     test -z "$ac_dir" && ac_dir=.
  327.     if test -f $ac_dir/$ac_word; then
  328.       CC="gcc"
  329.       break
  330.     fi
  331.   done
  332.   IFS="$ac_save_ifs"
  333. fi
  334. test -z "$CC" && CC="cc"
  335. test -n "$CC" && test -n "$verbose" && echo "    setting CC to $CC"
  336.  
  337. # Find out if we are using GNU C, under whatever name.
  338. cat > conftest.c <<EOF
  339. #ifdef __GNUC__
  340.   yes
  341. #endif
  342. EOF
  343. ${CC-cc} -E conftest.c > conftest.out 2>&1
  344. if egrep yes conftest.out >/dev/null 2>&1; then
  345.   GCC=1 # For later tests.
  346. fi
  347. rm -f conftest*
  348.  
  349. test -n "$silent" || echo "checking how to run the C preprocessor"
  350. if test -z "$CPP"; then
  351.   # This must be in double quotes, not single quotes, because CPP may get
  352.   # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  353.   # make.  It must be expanded now.
  354.   CPP="${CC-cc} -E"
  355.   cat > conftest.${ac_ext} <<EOF
  356. #include "confdefs.h"
  357. #include <stdio.h>
  358. Syntax Error
  359. EOF
  360. # Some shells (Coherent) do redirections in the wrong order, so need
  361. # the parens.
  362. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  363. if test -z "$ac_err"; then
  364.   :
  365. else
  366.   rm -rf conftest*
  367.   CPP="${CC-cc} -E -traditional-cpp"
  368.   cat > conftest.${ac_ext} <<EOF
  369. #include "confdefs.h"
  370. #include <stdio.h>
  371. Syntax Error
  372. EOF
  373. # Some shells (Coherent) do redirections in the wrong order, so need
  374. # the parens.
  375. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  376. if test -z "$ac_err"; then
  377.   :
  378. else
  379.   rm -rf conftest*
  380.   CPP=/lib/cpp
  381. fi
  382. rm -f conftest*
  383. fi
  384. rm -f conftest*
  385. fi
  386. test -n "$verbose" && echo "    setting CPP to $CPP"
  387.  
  388. if test -n "$GCC"; then
  389.   test -n "$silent" || echo "checking whether -traditional is needed"
  390.   ac_pattern="Autoconf.*'x'"
  391.   ac_prog='#include <sgtty.h>
  392. Autoconf TIOCGETP'
  393.   cat > conftest.${ac_ext} <<EOF
  394. #include "confdefs.h"
  395. $ac_prog
  396. EOF
  397. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  398. if egrep "$ac_pattern" conftest.out >/dev/null 2>&1; then
  399.   rm -rf conftest*
  400.   ac_need_trad=1
  401.  
  402. fi
  403. rm -f conftest*
  404.  
  405.  
  406.   if test -z "$ac_need_trad"; then
  407.     ac_prog='#include <termio.h>
  408. Autoconf TCGETA'
  409.     cat > conftest.${ac_ext} <<EOF
  410. #include "confdefs.h"
  411. $ac_prog
  412. EOF
  413. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  414. if egrep "$ac_pattern" conftest.out >/dev/null 2>&1; then
  415.   rm -rf conftest*
  416.   ac_need_trad=1
  417.  
  418. fi
  419. rm -f conftest*
  420.  
  421.   fi
  422.   test -n "$ac_need_trad" && CC="$CC -traditional"
  423. fi
  424.  
  425. # Make sure to not get the incompatible SysV /etc/install and
  426. # /usr/sbin/install, which might be in PATH before a BSD-like install,
  427. # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  428. # or the AFS install, which mishandles nonexistent args, or
  429. # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  430. # `staff', or /sbin/install on IRIX which has incompatible command-line
  431. # syntax.  Sigh.
  432. #
  433. #     On most BSDish systems install is in /usr/bin, not /usr/ucb
  434. #     anyway.
  435. # This turns out not to be true, so the mere pathname isn't an indication
  436. # of whether the program works.  What we really need is a set of tests for
  437. # the install program to see if it actually works in all the required ways.
  438. #
  439. # Avoid using ./install, which might have been erroneously created
  440. # by make from ./install.sh.
  441. if test -z "${INSTALL}"; then
  442.   test -n "$silent" || echo "checking for a BSD compatible install"
  443.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  444.   for ac_dir in $PATH; do
  445.     case "$ac_dir" in
  446.     ''|.|/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  447.     *)
  448.       # OSF1 and SCO ODT 3.0 have their own names for install.
  449.       for ac_prog in installbsd scoinst install; do
  450.         if test -f $ac_dir/$ac_prog; then
  451.       if test $ac_prog = install &&
  452.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  453.         # AIX install.  It has an incompatible calling convention.
  454.         # OSF/1 installbsd also uses dspmsg, but is usable.
  455.         :
  456.       else
  457.         INSTALL="$ac_dir/$ac_prog -c"
  458.         break 2
  459.       fi
  460.     fi
  461.       done
  462.       ;;
  463.     esac
  464.   done
  465.   IFS="$ac_save_ifs"
  466. fi
  467.  
  468. if test -z "$INSTALL"; then
  469.   # As a last resort, use the slow shell script.
  470.   for ac_dir in ${srcdir} ${srcdir}/.. ${srcdir}/../..; do
  471.     if test -f $ac_dir/install.sh; then
  472.       INSTALL="$ac_dir/install.sh -c"; break
  473.     fi
  474.   done
  475. fi
  476. if test -z "$INSTALL"; then
  477.   echo "configure: can not find install.sh in ${srcdir} or ${srcdir}/.. or ${srcdir}/../.." >&2; exit 1
  478. fi
  479. test -n "$verbose" && echo "    setting INSTALL to $INSTALL"
  480.  
  481. # Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
  482. # It thinks the first close brace ends the variable substitution.
  483. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  484. test -n "$verbose" && echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  485.  
  486. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  487. test -n "$verbose" && echo "    setting INSTALL_DATA to $INSTALL_DATA"
  488.  
  489.  
  490. ac_save_LIBS="${LIBS}"
  491. LIBS="${LIBS} -lcurses"
  492. ac_have_lib=""
  493. test -n "$silent" || echo "checking for -lcurses"
  494. cat > conftest.${ac_ext} <<EOF
  495. #include "confdefs.h"
  496.  
  497. int main() { return 0; }
  498. int t() { main();; return 0; }
  499. EOF
  500. if eval $ac_compile; then
  501.   rm -rf conftest*
  502.   ac_have_lib="1"
  503.  
  504. fi
  505. rm -f conftest*
  506. LIBS="${ac_save_LIBS}"
  507. if test -n "${ac_have_lib}"; then
  508.    :; LIBS="$LIBS -lcurses"
  509. else
  510.    :; 
  511. fi
  512.  
  513. ac_save_LIBS="${LIBS}"
  514. LIBS="${LIBS} -ltermcap"
  515. ac_have_lib=""
  516. test -n "$silent" || echo "checking for -ltermcap"
  517. cat > conftest.${ac_ext} <<EOF
  518. #include "confdefs.h"
  519.  
  520. int main() { return 0; }
  521. int t() { main();; return 0; }
  522. EOF
  523. if eval $ac_compile; then
  524.   rm -rf conftest*
  525.   ac_have_lib="1"
  526.  
  527. fi
  528. rm -f conftest*
  529. LIBS="${ac_save_LIBS}"
  530. if test -n "${ac_have_lib}"; then
  531.    :; LIBS="$LIBS -ltermcap"
  532. else
  533.    :; 
  534. fi
  535.  
  536. ac_save_LIBS="${LIBS}"
  537. LIBS="${LIBS} -lgen"
  538. ac_have_lib=""
  539. test -n "$silent" || echo "checking for -lgen"
  540. cat > conftest.${ac_ext} <<EOF
  541. #include "confdefs.h"
  542.  
  543. int main() { return 0; }
  544. int t() { main();; return 0; }
  545. EOF
  546. if eval $ac_compile; then
  547.   rm -rf conftest*
  548.   ac_have_lib="1"
  549.  
  550. fi
  551. rm -f conftest*
  552. LIBS="${ac_save_LIBS}"
  553. if test -n "${ac_have_lib}"; then
  554.    :; LIBS="$LIBS -lgen"
  555. else
  556.    :; 
  557. fi
  558.  
  559. ac_save_LIBS="${LIBS}"
  560. LIBS="${LIBS} -lucb"
  561. ac_have_lib=""
  562. test -n "$silent" || echo "checking for -lucb"
  563. cat > conftest.${ac_ext} <<EOF
  564. #include "confdefs.h"
  565.  
  566. int main() { return 0; }
  567. int t() { main();; return 0; }
  568. EOF
  569. if eval $ac_compile; then
  570.   rm -rf conftest*
  571.   ac_have_lib="1"
  572.  
  573. fi
  574. rm -f conftest*
  575. LIBS="${ac_save_LIBS}"
  576. if test -n "${ac_have_lib}"; then
  577.    :; LIBS="$LIBS -lucb"
  578. else
  579.    :; 
  580. fi
  581.  
  582. ac_save_LIBS="${LIBS}"
  583. LIBS="${LIBS} -lintl"
  584. ac_have_lib=""
  585. test -n "$silent" || echo "checking for -lintl"
  586. cat > conftest.${ac_ext} <<EOF
  587. #include "confdefs.h"
  588.  
  589. int main() { return 0; }
  590. int t() { main();; return 0; }
  591. EOF
  592. if eval $ac_compile; then
  593.   rm -rf conftest*
  594.   ac_have_lib="1"
  595.  
  596. fi
  597. rm -f conftest*
  598. LIBS="${ac_save_LIBS}"
  599. if test -n "${ac_have_lib}"; then
  600.    :; LIBS="$LIBS -lintl"
  601. else
  602.    :; 
  603. fi
  604.  
  605.  
  606. test -n "$silent" || echo "checking for ANSI C header files"
  607. cat > conftest.${ac_ext} <<EOF
  608. #include "confdefs.h"
  609. #include <stdlib.h>
  610. #include <stdarg.h>
  611. #include <string.h>
  612. #include <float.h>
  613. EOF
  614. # Some shells (Coherent) do redirections in the wrong order, so need
  615. # the parens.
  616. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  617. if test -z "$ac_err"; then
  618.   rm -rf conftest*
  619.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  620. echo '#include "confdefs.h"
  621. #include <string.h>' > conftest.${ac_ext}
  622. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  623. if egrep "memchr" conftest.out >/dev/null 2>&1; then
  624.   rm -rf conftest*
  625.   # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  626. cat > conftest.${ac_ext} <<EOF
  627. #include "confdefs.h"
  628. #include <ctype.h>
  629. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  630. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  631. #define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))
  632. int main () { int i; for (i = 0; i < 256; i++)
  633. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  634. exit (0); }
  635.  
  636. EOF
  637. eval $ac_compile
  638. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  639.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  640. echo '#include "confdefs.h"
  641. #include <stdlib.h>' > conftest.${ac_ext}
  642. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  643. if egrep "free" conftest.out >/dev/null 2>&1; then
  644.   rm -rf conftest*
  645.   
  646. {
  647. test -n "$verbose" && \
  648. echo "    defining STDC_HEADERS"
  649. echo "#define" STDC_HEADERS "1" >> confdefs.h
  650. DEFS="$DEFS -DSTDC_HEADERS=1"
  651. ac_sed_defs="${ac_sed_defs}\${ac_dA}STDC_HEADERS\${ac_dB}STDC_HEADERS\${ac_dC}1\${ac_dD}
  652. \${ac_uA}STDC_HEADERS\${ac_uB}STDC_HEADERS\${ac_uC}1\${ac_uD}
  653. \${ac_eA}STDC_HEADERS\${ac_eB}STDC_HEADERS\${ac_eC}1\${ac_eD}
  654. "
  655. }
  656.  
  657.  
  658. fi
  659. rm -f conftest*
  660.  
  661.  
  662. fi
  663. rm -fr conftest*
  664.  
  665. fi
  666. rm -f conftest*
  667.  
  668.  
  669. fi
  670. rm -f conftest*
  671.  
  672. for ac_hdr in errno.h fcntl.h stdio.h termcap.h termio.h termios.h time.h unistd.h values.h sys/ioctl.h sys/stream.h sys/ptem.h
  673. do
  674. ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  675. test -n "$silent" || echo "checking for ${ac_hdr}"
  676. cat > conftest.${ac_ext} <<EOF
  677. #include "confdefs.h"
  678. #include <${ac_hdr}>
  679. EOF
  680. # Some shells (Coherent) do redirections in the wrong order, so need
  681. # the parens.
  682. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  683. if test -z "$ac_err"; then
  684.   rm -rf conftest*
  685.   
  686. {
  687. test -n "$verbose" && \
  688. echo "    defining ${ac_tr_hdr}"
  689. echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
  690. DEFS="$DEFS -D${ac_tr_hdr}=1"
  691. ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD}
  692. \${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD}
  693. \${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD}
  694. "
  695. }
  696.  
  697.  
  698. fi
  699. rm -f conftest*
  700. done
  701.  
  702.  
  703. test -n "$silent" || echo "checking for off_t in sys/types.h"
  704. echo '#include "confdefs.h"
  705. #include <sys/types.h>' > conftest.${ac_ext}
  706. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  707. if egrep "off_t" conftest.out >/dev/null 2>&1; then
  708.   :
  709. else
  710.   rm -rf conftest*
  711.   
  712. {
  713. test -n "$verbose" && \
  714. echo "    defining" off_t to be "long"
  715. echo "#define" off_t "long" >> confdefs.h
  716. DEFS="$DEFS -Doff_t=long"
  717. ac_sed_defs="${ac_sed_defs}\${ac_dA}off_t\${ac_dB}off_t\${ac_dC}long\${ac_dD}
  718. \${ac_uA}off_t\${ac_uB}off_t\${ac_uC}long\${ac_uD}
  719. \${ac_eA}off_t\${ac_eB}off_t\${ac_eC}long\${ac_eD}
  720. "
  721. }
  722.  
  723. fi
  724. rm -f conftest*
  725.  
  726. test -n "$silent" || echo "checking for void"
  727. cat > conftest.${ac_ext} <<EOF
  728. #include "confdefs.h"
  729.  
  730. int main() { return 0; }
  731. int t() { void *foo = 0;; return 0; }
  732. EOF
  733. if eval $ac_compile; then
  734.   rm -rf conftest*
  735.   
  736. {
  737. test -n "$verbose" && \
  738. echo "    defining HAVE_VOID"
  739. echo "#define" HAVE_VOID "1" >> confdefs.h
  740. DEFS="$DEFS -DHAVE_VOID=1"
  741. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_VOID\${ac_dB}HAVE_VOID\${ac_dC}1\${ac_dD}
  742. \${ac_uA}HAVE_VOID\${ac_uB}HAVE_VOID\${ac_uC}1\${ac_uD}
  743. \${ac_eA}HAVE_VOID\${ac_eB}HAVE_VOID\${ac_eC}1\${ac_eD}
  744. "
  745. }
  746.  
  747.  
  748. fi
  749. rm -f conftest*
  750.  
  751. test -n "$silent" || echo "checking for time_t"
  752. cat > conftest.${ac_ext} <<EOF
  753. #include "confdefs.h"
  754. #include <time.h>
  755. int main() { return 0; }
  756. int t() { time_t t = 0;; return 0; }
  757. EOF
  758. if eval $ac_compile; then
  759.   rm -rf conftest*
  760.   
  761. {
  762. test -n "$verbose" && \
  763. echo "    defining HAVE_TIME_T"
  764. echo "#define" HAVE_TIME_T "1" >> confdefs.h
  765. DEFS="$DEFS -DHAVE_TIME_T=1"
  766. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TIME_T\${ac_dB}HAVE_TIME_T\${ac_dC}1\${ac_dD}
  767. \${ac_uA}HAVE_TIME_T\${ac_uB}HAVE_TIME_T\${ac_uC}1\${ac_uD}
  768. \${ac_eA}HAVE_TIME_T\${ac_eB}HAVE_TIME_T\${ac_eC}1\${ac_eD}
  769. "
  770. }
  771.  
  772.  
  773. fi
  774. rm -f conftest*
  775.  
  776.  
  777. test -n "$silent" || echo "checking for return type of signal handlers"
  778. cat > conftest.${ac_ext} <<EOF
  779. #include "confdefs.h"
  780. #include <sys/types.h>
  781. #include <signal.h>
  782. #ifdef signal
  783. #undef signal
  784. #endif
  785. extern void (*signal ()) ();
  786. int main() { return 0; }
  787. int t() { int i;; return 0; }
  788. EOF
  789. if eval $ac_compile; then
  790.   rm -rf conftest*
  791.   
  792. {
  793. test -n "$verbose" && \
  794. echo "    defining" RETSIGTYPE to be "void"
  795. echo "#define" RETSIGTYPE "void" >> confdefs.h
  796. DEFS="$DEFS -DRETSIGTYPE=void"
  797. ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}void\${ac_dD}
  798. \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}void\${ac_uD}
  799. \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}void\${ac_eD}
  800. "
  801. }
  802.  
  803.  
  804. else
  805.   rm -rf conftest*
  806.   
  807. {
  808. test -n "$verbose" && \
  809. echo "    defining" RETSIGTYPE to be "int"
  810. echo "#define" RETSIGTYPE "int" >> confdefs.h
  811. DEFS="$DEFS -DRETSIGTYPE=int"
  812. ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}int\${ac_dD}
  813. \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}int\${ac_uD}
  814. \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}int\${ac_eD}
  815. "
  816. }
  817.  
  818. fi
  819. rm -f conftest*
  820.  
  821.  
  822. for ac_func in _setjmp system sigsetmask memcpy
  823. do
  824. ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  825. test -n "$silent" || echo "checking for ${ac_func}"
  826. cat > conftest.${ac_ext} <<EOF
  827. #include "confdefs.h"
  828. #include <ctype.h>
  829. int main() { return 0; }
  830. int t() { 
  831. /* The GNU C library defines this for functions which it implements
  832.     to always fail with ENOSYS.  Some functions are actually named
  833.     something starting with __ and the normal name is an alias.  */
  834. #if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
  835. choke me
  836. #else
  837. /* Override any gcc2 internal prototype to avoid an error.  */
  838. extern char ${ac_func}(); ${ac_func}();
  839. #endif
  840. ; return 0; }
  841. EOF
  842. if eval $ac_compile; then
  843.   rm -rf conftest*
  844.   {
  845. test -n "$verbose" && \
  846. echo "    defining ${ac_tr_func}"
  847. echo "#define" ${ac_tr_func} "1" >> confdefs.h
  848. DEFS="$DEFS -D${ac_tr_func}=1"
  849. ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_func}\${ac_dB}${ac_tr_func}\${ac_dC}1\${ac_dD}
  850. \${ac_uA}${ac_tr_func}\${ac_uB}${ac_tr_func}\${ac_uC}1\${ac_uD}
  851. \${ac_eA}${ac_tr_func}\${ac_eB}${ac_tr_func}\${ac_eC}1\${ac_eD}
  852. "
  853. }
  854.  
  855.  
  856. fi
  857. rm -f conftest*
  858. done
  859.  
  860. test -n "$silent" || echo "checking for tcgetattr"
  861. cat > conftest.${ac_ext} <<EOF
  862. #include "confdefs.h"
  863. #include <ctype.h>
  864. int main() { return 0; }
  865. int t() { 
  866. /* The GNU C library defines this for functions which it implements
  867.     to always fail with ENOSYS.  Some functions are actually named
  868.     something starting with __ and the normal name is an alias.  */
  869. #if defined (__stub_tcgetattr) || defined (__stub___tcgetattr)
  870. choke me
  871. #else
  872. /* Override any gcc2 internal prototype to avoid an error.  */
  873. extern char tcgetattr(); tcgetattr();
  874. #endif
  875. ; return 0; }
  876. EOF
  877. if eval $ac_compile; then
  878.   rm -rf conftest*
  879.   {
  880. test -n "$verbose" && \
  881. echo "    defining HAVE_TERMIOS_FUNCS"
  882. echo "#define" HAVE_TERMIOS_FUNCS "1" >> confdefs.h
  883. DEFS="$DEFS -DHAVE_TERMIOS_FUNCS=1"
  884. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TERMIOS_FUNCS\${ac_dB}HAVE_TERMIOS_FUNCS\${ac_dC}1\${ac_dD}
  885. \${ac_uA}HAVE_TERMIOS_FUNCS\${ac_uB}HAVE_TERMIOS_FUNCS\${ac_uC}1\${ac_uD}
  886. \${ac_eA}HAVE_TERMIOS_FUNCS\${ac_eB}HAVE_TERMIOS_FUNCS\${ac_eC}1\${ac_eD}
  887. "
  888. }
  889.  
  890.  
  891. fi
  892. rm -f conftest*
  893.  
  894. test -n "$silent" || echo "checking for strerror"
  895. cat > conftest.${ac_ext} <<EOF
  896. #include "confdefs.h"
  897.  
  898. #if HAVE_STDIO_H
  899. #include <stdio.h>
  900. #endif
  901. #if HAVE_STRING_H
  902. #include <string.h>
  903. #endif
  904. #if HAVE_ERRNO_H
  905. #include <errno.h>
  906. #endif
  907. int main() { return 0; }
  908. int t() { static char *x; x = strerror(0);; return 0; }
  909. EOF
  910. if eval $ac_compile; then
  911.   rm -rf conftest*
  912.   
  913. {
  914. test -n "$verbose" && \
  915. echo "    defining HAVE_STRERROR"
  916. echo "#define" HAVE_STRERROR "1" >> confdefs.h
  917. DEFS="$DEFS -DHAVE_STRERROR=1"
  918. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_STRERROR\${ac_dB}HAVE_STRERROR\${ac_dC}1\${ac_dD}
  919. \${ac_uA}HAVE_STRERROR\${ac_uB}HAVE_STRERROR\${ac_uC}1\${ac_uD}
  920. \${ac_eA}HAVE_STRERROR\${ac_eB}HAVE_STRERROR\${ac_eC}1\${ac_eD}
  921. "
  922. }
  923.  
  924.  
  925. fi
  926. rm -f conftest*
  927.  
  928. cat > conftest.${ac_ext} <<EOF
  929. #include "confdefs.h"
  930.  
  931. int main() { return 0; }
  932. int t() { extern int sys_errlist; static int x; x = sys_errlist;; return 0; }
  933. EOF
  934. if eval $ac_compile; then
  935.   rm -rf conftest*
  936.   
  937. {
  938. test -n "$verbose" && \
  939. echo "    defining HAVE_SYS_ERRLIST"
  940. echo "#define" HAVE_SYS_ERRLIST "1" >> confdefs.h
  941. DEFS="$DEFS -DHAVE_SYS_ERRLIST=1"
  942. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SYS_ERRLIST\${ac_dB}HAVE_SYS_ERRLIST\${ac_dC}1\${ac_dD}
  943. \${ac_uA}HAVE_SYS_ERRLIST\${ac_uB}HAVE_SYS_ERRLIST\${ac_uC}1\${ac_uD}
  944. \${ac_eA}HAVE_SYS_ERRLIST\${ac_eB}HAVE_SYS_ERRLIST\${ac_eC}1\${ac_eD}
  945. "
  946. }
  947.  
  948.  
  949. fi
  950. rm -f conftest*
  951.  
  952. cat > conftest.${ac_ext} <<EOF
  953. #include "confdefs.h"
  954.  
  955. int main() { return 0; }
  956. int t() { extern int errno; static int x; x = errno;; return 0; }
  957. EOF
  958. if eval $ac_compile; then
  959.   rm -rf conftest*
  960.   
  961. {
  962. test -n "$verbose" && \
  963. echo "    defining HAVE_ERRNO"
  964. echo "#define" HAVE_ERRNO "1" >> confdefs.h
  965. DEFS="$DEFS -DHAVE_ERRNO=1"
  966. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ERRNO\${ac_dB}HAVE_ERRNO\${ac_dC}1\${ac_dD}
  967. \${ac_uA}HAVE_ERRNO\${ac_uB}HAVE_ERRNO\${ac_uC}1\${ac_uD}
  968. \${ac_eA}HAVE_ERRNO\${ac_eB}HAVE_ERRNO\${ac_eC}1\${ac_eD}
  969. "
  970. }
  971.  
  972.  
  973. fi
  974. rm -f conftest*
  975.  
  976. test -n "$silent" || echo "checking for locale"
  977. cat > conftest.${ac_ext} <<EOF
  978. #include "confdefs.h"
  979. #include <locale.h>
  980. #include <ctype.h>
  981. int main() { return 0; }
  982. int t() { setlocale(LC_CTYPE,""); isprint(0); iscntrl(0);; return 0; }
  983. EOF
  984. if eval $ac_compile; then
  985.   rm -rf conftest*
  986.   
  987. {
  988. test -n "$verbose" && \
  989. echo "    defining HAVE_LOCALE"
  990. echo "#define" HAVE_LOCALE "1" >> confdefs.h
  991. DEFS="$DEFS -DHAVE_LOCALE=1"
  992. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LOCALE\${ac_dB}HAVE_LOCALE\${ac_dC}1\${ac_dD}
  993. \${ac_uA}HAVE_LOCALE\${ac_uB}HAVE_LOCALE\${ac_uC}1\${ac_uD}
  994. \${ac_eA}HAVE_LOCALE\${ac_eB}HAVE_LOCALE\${ac_eC}1\${ac_eD}
  995. "
  996. }
  997.  
  998.  
  999. fi
  1000. rm -f conftest*
  1001.  
  1002.  
  1003. have_ospeed=no
  1004. test -n "$silent" || echo "checking termcap for ospeed"
  1005. cat > conftest.${ac_ext} <<EOF
  1006. #include "confdefs.h"
  1007.  
  1008. #include <sys/types.h>
  1009. #if HAVE_TERMIOS_H
  1010. #include <termios.h>
  1011. #endif
  1012. #if HAVE_TERMCAP_H
  1013. #include <termcap.h>
  1014. #endif
  1015. int main() { return 0; }
  1016. int t() { ospeed = 0;; return 0; }
  1017. EOF
  1018. if eval $ac_compile; then
  1019.   rm -rf conftest*
  1020.   
  1021. {
  1022. test -n "$verbose" && \
  1023. echo "    defining HAVE_OSPEED"
  1024. echo "#define" HAVE_OSPEED "1" >> confdefs.h
  1025. DEFS="$DEFS -DHAVE_OSPEED=1"
  1026. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_OSPEED\${ac_dB}HAVE_OSPEED\${ac_dC}1\${ac_dD}
  1027. \${ac_uA}HAVE_OSPEED\${ac_uB}HAVE_OSPEED\${ac_uC}1\${ac_uD}
  1028. \${ac_eA}HAVE_OSPEED\${ac_eB}HAVE_OSPEED\${ac_eC}1\${ac_eD}
  1029. "
  1030. }
  1031.  have_ospeed=yes
  1032.  
  1033. fi
  1034. rm -f conftest*
  1035.  
  1036. if test $have_ospeed = no; then
  1037. cat > conftest.${ac_ext} <<EOF
  1038. #include "confdefs.h"
  1039.  
  1040. int main() { return 0; }
  1041. int t() { extern short ospeed; ospeed = 0;; return 0; }
  1042. EOF
  1043. if eval $ac_compile; then
  1044.   rm -rf conftest*
  1045.   
  1046. {
  1047. test -n "$verbose" && \
  1048. echo "    defining HAVE_OSPEED"
  1049. echo "#define" HAVE_OSPEED "1" >> confdefs.h
  1050. DEFS="$DEFS -DHAVE_OSPEED=1"
  1051. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_OSPEED\${ac_dB}HAVE_OSPEED\${ac_dC}1\${ac_dD}
  1052. \${ac_uA}HAVE_OSPEED\${ac_uB}HAVE_OSPEED\${ac_uC}1\${ac_uD}
  1053. \${ac_eA}HAVE_OSPEED\${ac_eB}HAVE_OSPEED\${ac_eC}1\${ac_eD}
  1054. "
  1055. }
  1056.  
  1057. {
  1058. test -n "$verbose" && \
  1059. echo "    defining MUST_DEFINE_OSPEED"
  1060. echo "#define" MUST_DEFINE_OSPEED "1" >> confdefs.h
  1061. DEFS="$DEFS -DMUST_DEFINE_OSPEED=1"
  1062. ac_sed_defs="${ac_sed_defs}\${ac_dA}MUST_DEFINE_OSPEED\${ac_dB}MUST_DEFINE_OSPEED\${ac_dC}1\${ac_dD}
  1063. \${ac_uA}MUST_DEFINE_OSPEED\${ac_uB}MUST_DEFINE_OSPEED\${ac_uC}1\${ac_uD}
  1064. \${ac_eA}MUST_DEFINE_OSPEED\${ac_eB}MUST_DEFINE_OSPEED\${ac_eC}1\${ac_eD}
  1065. "
  1066. }
  1067.  
  1068.  
  1069. fi
  1070. rm -f conftest*
  1071.  
  1072. fi
  1073.  
  1074.  
  1075. have_regex=no
  1076. test -n "$silent" || echo "checking for POSIX regex.h"
  1077. cat > conftest.${ac_ext} <<EOF
  1078. #include "confdefs.h"
  1079. #include <sys/types.h>
  1080. #include <regex.h>
  1081. int main() { return 0; }
  1082. int t() { regex_t *r; regfree(r);; return 0; }
  1083. EOF
  1084. if eval $ac_compile; then
  1085.   rm -rf conftest*
  1086.   
  1087. {
  1088. test -n "$verbose" && \
  1089. echo "    defining HAVE_POSIX_REGCOMP"
  1090. echo "#define" HAVE_POSIX_REGCOMP "1" >> confdefs.h
  1091. DEFS="$DEFS -DHAVE_POSIX_REGCOMP=1"
  1092. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_POSIX_REGCOMP\${ac_dB}HAVE_POSIX_REGCOMP\${ac_dC}1\${ac_dD}
  1093. \${ac_uA}HAVE_POSIX_REGCOMP\${ac_uB}HAVE_POSIX_REGCOMP\${ac_uC}1\${ac_uD}
  1094. \${ac_eA}HAVE_POSIX_REGCOMP\${ac_eB}HAVE_POSIX_REGCOMP\${ac_eC}1\${ac_eD}
  1095. "
  1096. }
  1097.  have_regex=yes
  1098.  
  1099. fi
  1100. rm -f conftest*
  1101.  
  1102. if test $have_regex = no; then
  1103. test -n "$silent" || echo "checking for regcmp"
  1104. cat > conftest.${ac_ext} <<EOF
  1105. #include "confdefs.h"
  1106. #include <ctype.h>
  1107. int main() { return 0; }
  1108. int t() { 
  1109. /* The GNU C library defines this for functions which it implements
  1110.     to always fail with ENOSYS.  Some functions are actually named
  1111.     something starting with __ and the normal name is an alias.  */
  1112. #if defined (__stub_regcmp) || defined (__stub___regcmp)
  1113. choke me
  1114. #else
  1115. /* Override any gcc2 internal prototype to avoid an error.  */
  1116. extern char regcmp(); regcmp();
  1117. #endif
  1118. ; return 0; }
  1119. EOF
  1120. if eval $ac_compile; then
  1121.   rm -rf conftest*
  1122.   {
  1123. test -n "$verbose" && \
  1124. echo "    defining HAVE_REGCMP"
  1125. echo "#define" HAVE_REGCMP "1" >> confdefs.h
  1126. DEFS="$DEFS -DHAVE_REGCMP=1"
  1127. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_REGCMP\${ac_dB}HAVE_REGCMP\${ac_dC}1\${ac_dD}
  1128. \${ac_uA}HAVE_REGCMP\${ac_uB}HAVE_REGCMP\${ac_uC}1\${ac_uD}
  1129. \${ac_eA}HAVE_REGCMP\${ac_eB}HAVE_REGCMP\${ac_eC}1\${ac_eD}
  1130. "
  1131. }
  1132.  have_regex=yes
  1133.  
  1134. fi
  1135. rm -f conftest*
  1136.  
  1137. fi
  1138. if test $have_regex = no; then
  1139. cat > conftest.${ac_ext} <<EOF
  1140. #include "confdefs.h"
  1141. #include "regexp.h"
  1142. int main() { return 0; }
  1143. int t() { regcomp("");; return 0; }
  1144. EOF
  1145. if eval $ac_compile; then
  1146.   rm -rf conftest*
  1147.   
  1148. {
  1149. test -n "$verbose" && \
  1150. echo "    defining HAVE_V8_REGCOMP"
  1151. echo "#define" HAVE_V8_REGCOMP "1" >> confdefs.h
  1152. DEFS="$DEFS -DHAVE_V8_REGCOMP=1"
  1153. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_V8_REGCOMP\${ac_dB}HAVE_V8_REGCOMP\${ac_dC}1\${ac_dD}
  1154. \${ac_uA}HAVE_V8_REGCOMP\${ac_uB}HAVE_V8_REGCOMP\${ac_uC}1\${ac_uD}
  1155. \${ac_eA}HAVE_V8_REGCOMP\${ac_eB}HAVE_V8_REGCOMP\${ac_eC}1\${ac_eD}
  1156. "
  1157. }
  1158.  have_regex=yes
  1159.  
  1160. fi
  1161. rm -f conftest*
  1162.  
  1163. fi
  1164. if test $have_regex = no && test -f ${srcdir}/regex.c; then
  1165.  
  1166. {
  1167. test -n "$verbose" && \
  1168. echo "    defining HAVE_POSIX_REGCOMP"
  1169. echo "#define" HAVE_POSIX_REGCOMP "1" >> confdefs.h
  1170. DEFS="$DEFS -DHAVE_POSIX_REGCOMP=1"
  1171. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_POSIX_REGCOMP\${ac_dB}HAVE_POSIX_REGCOMP\${ac_dC}1\${ac_dD}
  1172. \${ac_uA}HAVE_POSIX_REGCOMP\${ac_uB}HAVE_POSIX_REGCOMP\${ac_uC}1\${ac_uD}
  1173. \${ac_eA}HAVE_POSIX_REGCOMP\${ac_eB}HAVE_POSIX_REGCOMP\${ac_eC}1\${ac_eD}
  1174. "
  1175. }
  1176.  REGEX_O='regex.$(O)'  have_regex=yes
  1177. fi
  1178. if test $have_regex = no && test -f ${srcdir}/regexp.c; then
  1179.  
  1180. {
  1181. test -n "$verbose" && \
  1182. echo "    defining HAVE_V8_REGCOMP"
  1183. echo "#define" HAVE_V8_REGCOMP "1" >> confdefs.h
  1184. DEFS="$DEFS -DHAVE_V8_REGCOMP=1"
  1185. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_V8_REGCOMP\${ac_dB}HAVE_V8_REGCOMP\${ac_dC}1\${ac_dD}
  1186. \${ac_uA}HAVE_V8_REGCOMP\${ac_uB}HAVE_V8_REGCOMP\${ac_uC}1\${ac_uD}
  1187. \${ac_eA}HAVE_V8_REGCOMP\${ac_eB}HAVE_V8_REGCOMP\${ac_eC}1\${ac_eD}
  1188. "
  1189. }
  1190.  REGEX_O='regexp.$(O)'  have_regex=yes
  1191. fi
  1192. if test $have_regex = no; then
  1193. test -n "$silent" || echo "checking for re_comp"
  1194. cat > conftest.${ac_ext} <<EOF
  1195. #include "confdefs.h"
  1196. #include <ctype.h>
  1197. int main() { return 0; }
  1198. int t() { 
  1199. /* The GNU C library defines this for functions which it implements
  1200.     to always fail with ENOSYS.  Some functions are actually named
  1201.     something starting with __ and the normal name is an alias.  */
  1202. #if defined (__stub_re_comp) || defined (__stub___re_comp)
  1203. choke me
  1204. #else
  1205. /* Override any gcc2 internal prototype to avoid an error.  */
  1206. extern char re_comp(); re_comp();
  1207. #endif
  1208. ; return 0; }
  1209. EOF
  1210. if eval $ac_compile; then
  1211.   rm -rf conftest*
  1212.   {
  1213. test -n "$verbose" && \
  1214. echo "    defining HAVE_RE_COMP"
  1215. echo "#define" HAVE_RE_COMP "1" >> confdefs.h
  1216. DEFS="$DEFS -DHAVE_RE_COMP=1"
  1217. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_RE_COMP\${ac_dB}HAVE_RE_COMP\${ac_dC}1\${ac_dD}
  1218. \${ac_uA}HAVE_RE_COMP\${ac_uB}HAVE_RE_COMP\${ac_uC}1\${ac_uD}
  1219. \${ac_eA}HAVE_RE_COMP\${ac_eB}HAVE_RE_COMP\${ac_eC}1\${ac_eD}
  1220. "
  1221. }
  1222.  have_regex=yes
  1223.  
  1224. fi
  1225. rm -f conftest*
  1226.  
  1227. fi
  1228. if test $have_regex = no; then
  1229.  
  1230. {
  1231. test -n "$verbose" && \
  1232. echo "    defining NO_REGEX"
  1233. echo "#define" NO_REGEX "1" >> confdefs.h
  1234. DEFS="$DEFS -DNO_REGEX=1"
  1235. ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_REGEX\${ac_dB}NO_REGEX\${ac_dC}1\${ac_dD}
  1236. \${ac_uA}NO_REGEX\${ac_uB}NO_REGEX\${ac_uC}1\${ac_uD}
  1237. \${ac_eA}NO_REGEX\${ac_eB}NO_REGEX\${ac_eC}1\${ac_eD}
  1238. "
  1239. }
  1240.  
  1241. fi
  1242.  
  1243.  
  1244. # The preferred way to propogate these variables is regular @ substitutions.
  1245. if test -n "$prefix"; then
  1246.   ac_prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  1247. else
  1248.   prefix=/usr/local
  1249. fi
  1250. if test -n "$exec_prefix"; then
  1251.   ac_prsub="$ac_prsub
  1252. s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  1253. else
  1254.   exec_prefix='${prefix}' # Let make expand it.
  1255. fi
  1256.  
  1257. # Any assignment to VPATH causes Sun make to only execute
  1258. # the first set of double-colon rules, so remove it if not needed.
  1259. # If there is a colon in the path, we need to keep it.
  1260. if test "x$srcdir" = x.; then
  1261.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1262. fi
  1263.  
  1264. # Quote sed substitution magic chars in DEFS.
  1265. cat >conftest.def <<EOF
  1266. $DEFS
  1267. EOF
  1268. ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  1269. DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
  1270. rm -f conftest.def
  1271. # Substitute for predefined variables.
  1272.  
  1273. trap 'rm -f config.status; exit 1' 1 2 15
  1274. echo creating config.status
  1275. rm -f config.status
  1276. cat > config.status <<EOF
  1277. #!/bin/sh
  1278. # Generated automatically by configure.
  1279. # Run this file to recreate the current configuration.
  1280. # This directory was configured as follows,
  1281. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1282. #
  1283. # $0 $configure_args
  1284.  
  1285. ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
  1286. for ac_option
  1287. do
  1288.   case "\$ac_option" in
  1289.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1290.     echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
  1291.     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
  1292.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1293.     echo "config.status generated by autoconf version 1.11"
  1294.     exit 0 ;;
  1295.   -help | --help | --hel | --he | --h)
  1296.     echo "\$ac_cs_usage"; exit 0 ;;
  1297.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1298.   esac
  1299. done
  1300.  
  1301. trap 'rm -fr Makefile defines.h conftest*; exit 1' 1 2 15
  1302. CC='$CC'
  1303. CPP='$CPP'
  1304. INSTALL='$INSTALL'
  1305. INSTALL_PROGRAM='$INSTALL_PROGRAM'
  1306. INSTALL_DATA='$INSTALL_DATA'
  1307. REGEX_O='$REGEX_O'
  1308. LIBS='$LIBS'
  1309. srcdir='$srcdir'
  1310. top_srcdir='$top_srcdir'
  1311. prefix='$prefix'
  1312. exec_prefix='$exec_prefix'
  1313. ac_prsub='$ac_prsub'
  1314. ac_vpsub='$ac_vpsub'
  1315. extrasub='$extrasub'
  1316. EOF
  1317. cat >> config.status <<\EOF
  1318.  
  1319. ac_given_srcdir=$srcdir
  1320.  
  1321. CONFIG_FILES=${CONFIG_FILES-"Makefile"}
  1322. for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
  1323.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1324.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1325.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1326.     # The file is in a subdirectory.
  1327.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1328.     ac_dir_suffix="/$ac_dir"
  1329.   else
  1330.     ac_dir_suffix=
  1331.   fi
  1332.  
  1333.   # A "../" for each directory in $ac_dir_suffix.
  1334.   ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1335.   case "$ac_given_srcdir" in
  1336.   .)  srcdir=.
  1337.       if test -z "$ac_dir_suffix"; then top_srcdir=.
  1338.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1339.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1340.   *) # Relative path.
  1341.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1342.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1343.   esac
  1344.  
  1345.   echo creating "$ac_file"
  1346.   rm -f "$ac_file"
  1347.   comment_str="Generated automatically from `echo $ac_file|sed 's|.*/||'`.in by configure."
  1348.   case "$ac_file" in
  1349.     *.c | *.h | *.C | *.cc | *.m )  echo "/* $comment_str */" > "$ac_file" ;;
  1350.     * )          echo "# $comment_str"     > "$ac_file" ;;
  1351.   esac
  1352.   sed -e "
  1353. $ac_prsub
  1354. $ac_vpsub
  1355. $extrasub
  1356. s%@CC@%$CC%g
  1357. s%@CPP@%$CPP%g
  1358. s%@INSTALL@%$INSTALL%g
  1359. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1360. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1361. s%@REGEX_O@%$REGEX_O%g
  1362. s%@LIBS@%$LIBS%g
  1363. s%@srcdir@%$srcdir%g
  1364. s%@top_srcdir@%$top_srcdir%g
  1365. s%@prefix@%$prefix%g
  1366. s%@exec_prefix@%$exec_prefix%g
  1367. s%@DEFS@%-DHAVE_CONFIG_H%" $ac_given_srcdir/${ac_file}.in >> $ac_file
  1368. fi; done
  1369.  
  1370. # These sed commands are put into ac_sed_defs when defining a macro.
  1371. # They are broken into pieces to make the sed script easier to manage.
  1372. # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  1373. # is the cpp macro being defined and VALUE is the value it is being given.
  1374. # Each defining turns into a single global substitution command.
  1375. # Hopefully no one uses "!" as a variable value.
  1376. # Other candidates for the sed separators, like , and @, do get used.
  1377. #
  1378. # ac_d sets the value in "#define NAME VALUE" lines.
  1379. ac_dA='s!^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  1380. ac_dB='\([     ][     ]*\)[^     ]*!\1#\2'
  1381. ac_dC='\3'
  1382. ac_dD='!g'
  1383. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  1384. ac_uA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1385. ac_uB='\([     ]\)!\1#\2define\3'
  1386. ac_uC=' '
  1387. ac_uD='\4!g'
  1388. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  1389. ac_eA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1390. ac_eB='$!\1#\2define\3'
  1391. ac_eC=' '
  1392. ac_eD='!g'
  1393. rm -f conftest.sed
  1394. EOF
  1395. # Turn off quoting long enough to insert the sed commands.
  1396. rm -f conftest.sh
  1397. cat > conftest.sh <<EOF
  1398. $ac_sed_defs
  1399. EOF
  1400.  
  1401. # Break up $ac_sed_defs (now in conftest.sh) because some shells have a limit
  1402. # on the size of here documents.
  1403.  
  1404. # Maximum number of lines to put in a single here document.
  1405. ac_max_sh_lines=9
  1406.  
  1407. while :
  1408. do
  1409.   # wc gives bogus results for an empty file on some AIX systems.
  1410.   ac_lines=`grep -c . conftest.sh`
  1411.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  1412.   rm -f conftest.s1 conftest.s2
  1413.   sed ${ac_max_sh_lines}q conftest.sh > conftest.s1 # Like head -9.
  1414.   sed 1,${ac_max_sh_lines}d conftest.sh > conftest.s2 # Like tail +10.
  1415.   # Write a limited-size here document to append to conftest.sed.
  1416.   echo 'cat >> conftest.sed <<CONFEOF' >> config.status
  1417.   cat conftest.s1 >> config.status
  1418.   echo 'CONFEOF' >> config.status
  1419.   rm -f conftest.s1 conftest.sh
  1420.   mv conftest.s2 conftest.sh
  1421. done
  1422. rm -f conftest.sh
  1423.  
  1424. # Now back to your regularly scheduled config.status.
  1425. cat >> config.status <<\EOF
  1426. # This sed command replaces #undef's with comments.  This is necessary, for
  1427. # example, in the case of _POSIX_SOURCE, which is predefined and required
  1428. # on some systems where configure will not decide to define it in
  1429. # defines.h.
  1430. cat >> conftest.sed <<\CONFEOF
  1431. s,^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  1432. CONFEOF
  1433. rm -f conftest.h
  1434. # Break up the sed commands because old seds have small limits.
  1435. ac_max_sed_lines=20
  1436.  
  1437. CONFIG_HEADERS=${CONFIG_HEADERS-"defines.h"}
  1438. for ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then
  1439.   echo creating $ac_file
  1440.  
  1441.   cp $ac_given_srcdir/$ac_file.in conftest.h1
  1442.   cp conftest.sed conftest.stm
  1443.   while :
  1444.   do
  1445.     ac_lines=`grep -c . conftest.stm`
  1446.     if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  1447.     rm -f conftest.s1 conftest.s2 conftest.h2
  1448.     sed ${ac_max_sed_lines}q conftest.stm > conftest.s1 # Like head -20.
  1449.     sed 1,${ac_max_sed_lines}d conftest.stm > conftest.s2 # Like tail +21.
  1450.     sed -f conftest.s1 < conftest.h1 > conftest.h2
  1451.     rm -f conftest.s1 conftest.h1 conftest.stm
  1452.     mv conftest.h2 conftest.h1
  1453.     mv conftest.s2 conftest.stm
  1454.   done
  1455.   rm -f conftest.stm conftest.h
  1456.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  1457.   cat conftest.h1 >> conftest.h
  1458.   rm -f conftest.h1
  1459.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  1460.     # The file exists and we would not be changing it.
  1461.     echo "$ac_file is unchanged"
  1462.     rm -f conftest.h
  1463.   else
  1464.     rm -f $ac_file
  1465.     mv conftest.h $ac_file
  1466.   fi
  1467. fi; done
  1468. rm -f conftest.sed
  1469.  
  1470.  
  1471.  
  1472. exit 0
  1473. EOF
  1474. chmod +x config.status
  1475. # Some shells look in PATH for config.status without the "./".
  1476. test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} ./config.status
  1477.  
  1478.