home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / libstock.zip / configure < prev    next >
Text File  |  2000-09-05  |  58KB  |  1,838 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.13 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_default_prefix=/usr
  15. ac_help="$ac_help
  16.   --enable-debug    Turn on debugging"
  17.  
  18. # Initialize some variables set by options.
  19. # The variables have the same names as the options, with
  20. # dashes changed to underlines.
  21. build=NONE
  22. cache_file=./config.cache
  23. exec_prefix=NONE
  24. host=NONE
  25. no_create=
  26. nonopt=NONE
  27. no_recursion=
  28. prefix=NONE
  29. program_prefix=NONE
  30. program_suffix=NONE
  31. program_transform_name=s,x,x,
  32. silent=
  33. site=
  34. srcdir=
  35. target=NONE
  36. verbose=
  37. x_includes=NONE
  38. x_libraries=NONE
  39. bindir='${exec_prefix}/bin'
  40. sbindir='${exec_prefix}/sbin'
  41. libexecdir='${exec_prefix}/libexec'
  42. datadir='${prefix}/share'
  43. sysconfdir='${prefix}/etc'
  44. sharedstatedir='${prefix}/com'
  45. localstatedir='${prefix}/var'
  46. libdir='${exec_prefix}/lib'
  47. includedir='${prefix}/include'
  48. oldincludedir='/usr/include'
  49. infodir='${prefix}/info'
  50. mandir='${prefix}/man'
  51.  
  52. # Initialize some other variables.
  53. subdirs=
  54. MFLAGS= MAKEFLAGS=
  55. SHELL=${CONFIG_SHELL-/bin/sh}
  56. # Maximum number of lines to put in a shell here document.
  57. ac_max_here_lines=12
  58.  
  59. ac_prev=
  60. for ac_option
  61. do
  62.  
  63.   # If the previous option needs an argument, assign it.
  64.   if test -n "$ac_prev"; then
  65.     eval "$ac_prev=\$ac_option"
  66.     ac_prev=
  67.     continue
  68.   fi
  69.  
  70.   case "$ac_option" in
  71.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  72.   *) ac_optarg= ;;
  73.   esac
  74.  
  75.   # Accept the important Cygnus configure options, so we can diagnose typos.
  76.  
  77.   case "$ac_option" in
  78.  
  79.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  80.     ac_prev=bindir ;;
  81.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  82.     bindir="$ac_optarg" ;;
  83.  
  84.   -build | --build | --buil | --bui | --bu)
  85.     ac_prev=build ;;
  86.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  87.     build="$ac_optarg" ;;
  88.  
  89.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  90.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  91.     ac_prev=cache_file ;;
  92.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  93.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  94.     cache_file="$ac_optarg" ;;
  95.  
  96.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  97.     ac_prev=datadir ;;
  98.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  99.   | --da=*)
  100.     datadir="$ac_optarg" ;;
  101.  
  102.   -disable-* | --disable-*)
  103.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  104.     # Reject names that are not valid shell variable names.
  105.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  106.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  107.     fi
  108.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  109.     eval "enable_${ac_feature}=no" ;;
  110.  
  111.   -enable-* | --enable-*)
  112.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  113.     # Reject names that are not valid shell variable names.
  114.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  115.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  116.     fi
  117.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  118.     case "$ac_option" in
  119.       *=*) ;;
  120.       *) ac_optarg=yes ;;
  121.     esac
  122.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  123.  
  124.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  125.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  126.   | --exec | --exe | --ex)
  127.     ac_prev=exec_prefix ;;
  128.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  129.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  130.   | --exec=* | --exe=* | --ex=*)
  131.     exec_prefix="$ac_optarg" ;;
  132.  
  133.   -gas | --gas | --ga | --g)
  134.     # Obsolete; use --with-gas.
  135.     with_gas=yes ;;
  136.  
  137.   -help | --help | --hel | --he)
  138.     # Omit some internal or obsolete options to make the list less imposing.
  139.     # This message is too long to be a string in the A/UX 3.1 sh.
  140.     cat << EOF
  141. Usage: configure [options] [host]
  142. Options: [defaults in brackets after descriptions]
  143. Configuration:
  144.   --cache-file=FILE       cache test results in FILE
  145.   --help                  print this message
  146.   --no-create             do not create output files
  147.   --quiet, --silent       do not print \`checking...' messages
  148.   --version               print the version of autoconf that created configure
  149. Directory and file names:
  150.   --prefix=PREFIX         install architecture-independent files in PREFIX
  151.                           [$ac_default_prefix]
  152.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  153.                           [same as prefix]
  154.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  155.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  156.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  157.   --datadir=DIR           read-only architecture-independent data in DIR
  158.                           [PREFIX/share]
  159.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  160.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  161.                           [PREFIX/com]
  162.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  163.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  164.   --includedir=DIR        C header files in DIR [PREFIX/include]
  165.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  166.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  167.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  168.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  169.   --program-prefix=PREFIX prepend PREFIX to installed program names
  170.   --program-suffix=SUFFIX append SUFFIX to installed program names
  171.   --program-transform-name=PROGRAM
  172.                           run sed PROGRAM on installed program names
  173. EOF
  174.     cat << EOF
  175. Host type:
  176.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  177.   --host=HOST             configure for HOST [guessed]
  178.   --target=TARGET         configure for TARGET [TARGET=HOST]
  179. Features and packages:
  180.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  181.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  182.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  183.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  184.   --x-includes=DIR        X include files are in DIR
  185.   --x-libraries=DIR       X library files are in DIR
  186. EOF
  187.     if test -n "$ac_help"; then
  188.       echo "--enable and --with options recognized:$ac_help"
  189.     fi
  190.     exit 0 ;;
  191.  
  192.   -host | --host | --hos | --ho)
  193.     ac_prev=host ;;
  194.   -host=* | --host=* | --hos=* | --ho=*)
  195.     host="$ac_optarg" ;;
  196.  
  197.   -includedir | --includedir | --includedi | --included | --include \
  198.   | --includ | --inclu | --incl | --inc)
  199.     ac_prev=includedir ;;
  200.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  201.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  202.     includedir="$ac_optarg" ;;
  203.  
  204.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  205.     ac_prev=infodir ;;
  206.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  207.     infodir="$ac_optarg" ;;
  208.  
  209.   -libdir | --libdir | --libdi | --libd)
  210.     ac_prev=libdir ;;
  211.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  212.     libdir="$ac_optarg" ;;
  213.  
  214.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  215.   | --libexe | --libex | --libe)
  216.     ac_prev=libexecdir ;;
  217.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  218.   | --libexe=* | --libex=* | --libe=*)
  219.     libexecdir="$ac_optarg" ;;
  220.  
  221.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  222.   | --localstate | --localstat | --localsta | --localst \
  223.   | --locals | --local | --loca | --loc | --lo)
  224.     ac_prev=localstatedir ;;
  225.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  226.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  227.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  228.     localstatedir="$ac_optarg" ;;
  229.  
  230.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  231.     ac_prev=mandir ;;
  232.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  233.     mandir="$ac_optarg" ;;
  234.  
  235.   -nfp | --nfp | --nf)
  236.     # Obsolete; use --without-fp.
  237.     with_fp=no ;;
  238.  
  239.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  240.   | --no-cr | --no-c)
  241.     no_create=yes ;;
  242.  
  243.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  244.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  245.     no_recursion=yes ;;
  246.  
  247.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  248.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  249.   | --oldin | --oldi | --old | --ol | --o)
  250.     ac_prev=oldincludedir ;;
  251.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  252.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  253.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  254.     oldincludedir="$ac_optarg" ;;
  255.  
  256.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  257.     ac_prev=prefix ;;
  258.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  259.     prefix="$ac_optarg" ;;
  260.  
  261.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  262.   | --program-pre | --program-pr | --program-p)
  263.     ac_prev=program_prefix ;;
  264.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  265.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  266.     program_prefix="$ac_optarg" ;;
  267.  
  268.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  269.   | --program-suf | --program-su | --program-s)
  270.     ac_prev=program_suffix ;;
  271.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  272.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  273.     program_suffix="$ac_optarg" ;;
  274.  
  275.   -program-transform-name | --program-transform-name \
  276.   | --program-transform-nam | --program-transform-na \
  277.   | --program-transform-n | --program-transform- \
  278.   | --program-transform | --program-transfor \
  279.   | --program-transfo | --program-transf \
  280.   | --program-trans | --program-tran \
  281.   | --progr-tra | --program-tr | --program-t)
  282.     ac_prev=program_transform_name ;;
  283.   -program-transform-name=* | --program-transform-name=* \
  284.   | --program-transform-nam=* | --program-transform-na=* \
  285.   | --program-transform-n=* | --program-transform-=* \
  286.   | --program-transform=* | --program-transfor=* \
  287.   | --program-transfo=* | --program-transf=* \
  288.   | --program-trans=* | --program-tran=* \
  289.   | --progr-tra=* | --program-tr=* | --program-t=*)
  290.     program_transform_name="$ac_optarg" ;;
  291.  
  292.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  293.   | -silent | --silent | --silen | --sile | --sil)
  294.     silent=yes ;;
  295.  
  296.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  297.     ac_prev=sbindir ;;
  298.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  299.   | --sbi=* | --sb=*)
  300.     sbindir="$ac_optarg" ;;
  301.  
  302.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  303.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  304.   | --sharedst | --shareds | --shared | --share | --shar \
  305.   | --sha | --sh)
  306.     ac_prev=sharedstatedir ;;
  307.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  308.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  309.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  310.   | --sha=* | --sh=*)
  311.     sharedstatedir="$ac_optarg" ;;
  312.  
  313.   -site | --site | --sit)
  314.     ac_prev=site ;;
  315.   -site=* | --site=* | --sit=*)
  316.     site="$ac_optarg" ;;
  317.  
  318.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  319.     ac_prev=srcdir ;;
  320.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  321.     srcdir="$ac_optarg" ;;
  322.  
  323.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  324.   | --syscon | --sysco | --sysc | --sys | --sy)
  325.     ac_prev=sysconfdir ;;
  326.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  327.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  328.     sysconfdir="$ac_optarg" ;;
  329.  
  330.   -target | --target | --targe | --targ | --tar | --ta | --t)
  331.     ac_prev=target ;;
  332.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  333.     target="$ac_optarg" ;;
  334.  
  335.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  336.     verbose=yes ;;
  337.  
  338.   -version | --version | --versio | --versi | --vers)
  339.     echo "configure generated by autoconf version 2.13"
  340.     exit 0 ;;
  341.  
  342.   -with-* | --with-*)
  343.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  344.     # Reject names that are not valid shell variable names.
  345.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  346.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  347.     fi
  348.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  349.     case "$ac_option" in
  350.       *=*) ;;
  351.       *) ac_optarg=yes ;;
  352.     esac
  353.     eval "with_${ac_package}='$ac_optarg'" ;;
  354.  
  355.   -without-* | --without-*)
  356.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  357.     # Reject names that are not valid shell variable names.
  358.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  359.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  360.     fi
  361.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  362.     eval "with_${ac_package}=no" ;;
  363.  
  364.   --x)
  365.     # Obsolete; use --with-x.
  366.     with_x=yes ;;
  367.  
  368.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  369.   | --x-incl | --x-inc | --x-in | --x-i)
  370.     ac_prev=x_includes ;;
  371.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  372.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  373.     x_includes="$ac_optarg" ;;
  374.  
  375.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  376.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  377.     ac_prev=x_libraries ;;
  378.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  379.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  380.     x_libraries="$ac_optarg" ;;
  381.  
  382.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  383.     ;;
  384.  
  385.   *)
  386.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  387.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  388.     fi
  389.     if test "x$nonopt" != xNONE; then
  390.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  391.     fi
  392.     nonopt="$ac_option"
  393.     ;;
  394.  
  395.   esac
  396. done
  397.  
  398. if test -n "$ac_prev"; then
  399.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  400. fi
  401.  
  402. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  403.  
  404. # File descriptor usage:
  405. # 0 standard input
  406. # 1 file creation
  407. # 2 errors and warnings
  408. # 3 some systems may open it to /dev/tty
  409. # 4 used on the Kubota Titan
  410. # 6 checking for... messages and results
  411. # 5 compiler messages saved in config.log
  412. if test "$silent" = yes; then
  413.   exec 6>/dev/null
  414. else
  415.   exec 6>&1
  416. fi
  417. exec 5>./config.log
  418.  
  419. echo "\
  420. This file contains any messages produced by compilers while
  421. running configure, to aid debugging if configure makes a mistake.
  422. " 1>&5
  423.  
  424. # Strip out --no-create and --no-recursion so they do not pile up.
  425. # Also quote any args containing shell metacharacters.
  426. ac_configure_args=
  427. for ac_arg
  428. do
  429.   case "$ac_arg" in
  430.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  431.   | --no-cr | --no-c) ;;
  432.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  433.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  434.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  435.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  436.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  437.   esac
  438. done
  439.  
  440. # NLS nuisances.
  441. # Only set these to C if already set.  These must not be set unconditionally
  442. # because not all systems understand e.g. LANG=C (notably SCO).
  443. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  444. # Non-C LC_CTYPE values break the ctype check.
  445. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  446. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  447. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  448. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  449.  
  450. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  451. rm -rf conftest* confdefs.h
  452. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  453. echo > confdefs.h
  454.  
  455. # A filename unique to this package, relative to the directory that
  456. # configure is in, which we can look for to find out if srcdir is correct.
  457. ac_unique_file=lib/csv.h
  458.  
  459. # Find the source files, if location was not specified.
  460. if test -z "$srcdir"; then
  461.   ac_srcdir_defaulted=yes
  462.   # Try the directory containing this script, then its parent.
  463.   ac_prog=$0
  464.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  465.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  466.   srcdir=$ac_confdir
  467.   if test ! -r $srcdir/$ac_unique_file; then
  468.     srcdir=..
  469.   fi
  470. else
  471.   ac_srcdir_defaulted=no
  472. fi
  473. if test ! -r $srcdir/$ac_unique_file; then
  474.   if test "$ac_srcdir_defaulted" = yes; then
  475.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  476.   else
  477.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  478.   fi
  479. fi
  480. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  481.  
  482. # Prefer explicitly selected file to automatically selected ones.
  483. if test -z "$CONFIG_SITE"; then
  484.   if test "x$prefix" != xNONE; then
  485.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  486.   else
  487.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  488.   fi
  489. fi
  490. for ac_site_file in $CONFIG_SITE; do
  491.   if test -r "$ac_site_file"; then
  492.     echo "loading site script $ac_site_file"
  493.     . "$ac_site_file"
  494.   fi
  495. done
  496.  
  497. if test -r "$cache_file"; then
  498.   echo "loading cache $cache_file"
  499.   . $cache_file
  500. else
  501.   echo "creating cache $cache_file"
  502.   > $cache_file
  503. fi
  504.  
  505. ac_ext=c
  506. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  507. ac_cpp='$CPP $CPPFLAGS'
  508. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  509. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  510. cross_compiling=$ac_cv_prog_cc_cross
  511.  
  512. ac_exeext=
  513. ac_objext=o
  514. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  515.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  516.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  517.     ac_n= ac_c='
  518. ' ac_t='    '
  519.   else
  520.     ac_n=-n ac_c= ac_t=
  521.   fi
  522. else
  523.   ac_n= ac_c='\c' ac_t=
  524. fi
  525.  
  526.  
  527. ac_aux_dir=
  528. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  529.   if test -f $ac_dir/install-sh; then
  530.     ac_aux_dir=$ac_dir
  531.     ac_install_sh="$ac_aux_dir/install-sh -c"
  532.     break
  533.   elif test -f $ac_dir/install.sh; then
  534.     ac_aux_dir=$ac_dir
  535.     ac_install_sh="$ac_aux_dir/install.sh -c"
  536.     break
  537.   fi
  538. done
  539. if test -z "$ac_aux_dir"; then
  540.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  541. fi
  542. ac_config_guess=$ac_aux_dir/config.guess
  543. ac_config_sub=$ac_aux_dir/config.sub
  544. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  545.  
  546. # Find a good install program.  We prefer a C program (faster),
  547. # so one script is as good as another.  But avoid the broken or
  548. # incompatible versions:
  549. # SysV /etc/install, /usr/sbin/install
  550. # SunOS /usr/etc/install
  551. # IRIX /sbin/install
  552. # AIX /bin/install
  553. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  554. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  555. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  556. # ./install, which can be erroneously created by make from ./install.sh.
  557. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  558. echo "configure:559: checking for a BSD compatible install" >&5
  559. if test -z "$INSTALL"; then
  560. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  561.   echo $ac_n "(cached) $ac_c" 1>&6
  562. else
  563.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
  564.   for ac_dir in $PATH; do
  565.     # Account for people who put trailing slashes in PATH elements.
  566.     case "$ac_dir/" in
  567.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  568.     *)
  569.       # OSF1 and SCO ODT 3.0 have their own names for install.
  570.       # Don't use installbsd from OSF since it installs stuff as root
  571.       # by default.
  572.       for ac_prog in ginstall scoinst install; do
  573.         if test -f $ac_dir/$ac_prog; then
  574.       if test $ac_prog = install &&
  575.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  576.         # AIX install.  It has an incompatible calling convention.
  577.         :
  578.       else
  579.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  580.         break 2
  581.       fi
  582.     fi
  583.       done
  584.       ;;
  585.     esac
  586.   done
  587.   IFS="$ac_save_IFS"
  588.  
  589. fi
  590.   if test "${ac_cv_path_install+set}" = set; then
  591.     INSTALL="$ac_cv_path_install"
  592.   else
  593.     # As a last resort, use the slow shell script.  We don't cache a
  594.     # path for INSTALL within a source directory, because that will
  595.     # break other packages using the cache if that directory is
  596.     # removed, or if the path is relative.
  597.     INSTALL="$ac_install_sh"
  598.   fi
  599. fi
  600. echo "$ac_t""$INSTALL" 1>&6
  601.  
  602. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  603. # It thinks the first close brace ends the variable substitution.
  604. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  605.  
  606. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  607.  
  608. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  609.  
  610. echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  611. echo "configure:612: checking whether build environment is sane" >&5
  612. # Just in case
  613. sleep 1
  614. echo timestamp > conftestfile
  615. # Do `set' in a subshell so we don't clobber the current shell's
  616. # arguments.  Must try -L first in case configure is actually a
  617. # symlink; some systems play weird games with the mod time of symlinks
  618. # (eg FreeBSD returns the mod time of the symlink's containing
  619. # directory).
  620. if (
  621.    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  622.    if test "$*" = "X"; then
  623.       # -L didn't work.
  624.       set X `ls -t $srcdir/configure conftestfile`
  625.    fi
  626.    if test "$*" != "X $srcdir/configure conftestfile" \
  627.       && test "$*" != "X conftestfile $srcdir/configure"; then
  628.  
  629.       # If neither matched, then we have a broken ls.  This can happen
  630.       # if, for instance, CONFIG_SHELL is bash and it inherits a
  631.       # broken ls alias from the environment.  This has actually
  632.       # happened.  Such a system could not be considered "sane".
  633.       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
  634. alias in your environment" 1>&2; exit 1; }
  635.    fi
  636.  
  637.    test "$2" = conftestfile
  638.    )
  639. then
  640.    # Ok.
  641.    :
  642. else
  643.    { echo "configure: error: newly created file is older than distributed files!
  644. Check your system clock" 1>&2; exit 1; }
  645. fi
  646. rm -f conftest*
  647. echo "$ac_t""yes" 1>&6
  648. if test "$program_transform_name" = s,x,x,; then
  649.   program_transform_name=
  650. else
  651.   # Double any \ or $.  echo might interpret backslashes.
  652.   cat <<\EOF_SED > conftestsed
  653. s,\\,\\\\,g; s,\$,$$,g
  654. EOF_SED
  655.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  656.   rm -f conftestsed
  657. fi
  658. test "$program_prefix" != NONE &&
  659.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  660. # Use a double $ so make ignores it.
  661. test "$program_suffix" != NONE &&
  662.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  663.  
  664. # sed with no file args requires a program.
  665. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  666.  
  667. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  668. echo "configure:669: checking whether ${MAKE-make} sets \${MAKE}" >&5
  669. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  670. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  671.   echo $ac_n "(cached) $ac_c" 1>&6
  672. else
  673.   cat > conftestmake <<\EOF
  674. all:
  675.     @echo 'ac_maketemp="${MAKE}"'
  676. EOF
  677. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  678. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  679. if test -n "$ac_maketemp"; then
  680.   eval ac_cv_prog_make_${ac_make}_set=yes
  681. else
  682.   eval ac_cv_prog_make_${ac_make}_set=no
  683. fi
  684. rm -f conftestmake
  685. fi
  686. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  687.   echo "$ac_t""yes" 1>&6
  688.   SET_MAKE=
  689. else
  690.   echo "$ac_t""no" 1>&6
  691.   SET_MAKE="MAKE=${MAKE-make}"
  692. fi
  693.  
  694.  
  695. PACKAGE=libstocks
  696.  
  697. VERSION=0.5.0
  698.  
  699. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  700.   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  701. fi
  702. cat >> confdefs.h <<EOF
  703. #define PACKAGE "$PACKAGE"
  704. EOF
  705.  
  706. cat >> confdefs.h <<EOF
  707. #define VERSION "$VERSION"
  708. EOF
  709.  
  710.  
  711.  
  712. missing_dir=`cd $ac_aux_dir && pwd`
  713. echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  714. echo "configure:715: checking for working aclocal" >&5
  715. # Run test in a subshell; some versions of sh will print an error if
  716. # an executable is not found, even if stderr is redirected.
  717. # Redirect stdin to placate older versions of autoconf.  Sigh.
  718. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  719.    ACLOCAL=aclocal
  720.    echo "$ac_t""found" 1>&6
  721. else
  722.    ACLOCAL="$missing_dir/missing aclocal"
  723.    echo "$ac_t""missing" 1>&6
  724. fi
  725.  
  726. echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  727. echo "configure:728: checking for working autoconf" >&5
  728. # Run test in a subshell; some versions of sh will print an error if
  729. # an executable is not found, even if stderr is redirected.
  730. # Redirect stdin to placate older versions of autoconf.  Sigh.
  731. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  732.    AUTOCONF=autoconf
  733.    echo "$ac_t""found" 1>&6
  734. else
  735.    AUTOCONF="$missing_dir/missing autoconf"
  736.    echo "$ac_t""missing" 1>&6
  737. fi
  738.  
  739. echo $ac_n "checking for working automake""... $ac_c" 1>&6
  740. echo "configure:741: checking for working automake" >&5
  741. # Run test in a subshell; some versions of sh will print an error if
  742. # an executable is not found, even if stderr is redirected.
  743. # Redirect stdin to placate older versions of autoconf.  Sigh.
  744. if (automake --version) < /dev/null > /dev/null 2>&1; then
  745.    AUTOMAKE=automake
  746.    echo "$ac_t""found" 1>&6
  747. else
  748.    AUTOMAKE="$missing_dir/missing automake"
  749.    echo "$ac_t""missing" 1>&6
  750. fi
  751.  
  752. echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  753. echo "configure:754: checking for working autoheader" >&5
  754. # Run test in a subshell; some versions of sh will print an error if
  755. # an executable is not found, even if stderr is redirected.
  756. # Redirect stdin to placate older versions of autoconf.  Sigh.
  757. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  758.    AUTOHEADER=autoheader
  759.    echo "$ac_t""found" 1>&6
  760. else
  761.    AUTOHEADER="$missing_dir/missing autoheader"
  762.    echo "$ac_t""missing" 1>&6
  763. fi
  764.  
  765. echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  766. echo "configure:767: checking for working makeinfo" >&5
  767. # Run test in a subshell; some versions of sh will print an error if
  768. # an executable is not found, even if stderr is redirected.
  769. # Redirect stdin to placate older versions of autoconf.  Sigh.
  770. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  771.    MAKEINFO=makeinfo
  772.    echo "$ac_t""found" 1>&6
  773. else
  774.    MAKEINFO="$missing_dir/missing makeinfo"
  775.    echo "$ac_t""missing" 1>&6
  776. fi
  777.  
  778.  
  779.  
  780.  
  781.  
  782. # Extract the first word of "gcc", so it can be a program name with args.
  783. set dummy gcc; ac_word=$2
  784. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  785. echo "configure:786: checking for $ac_word" >&5
  786. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  787.   echo $ac_n "(cached) $ac_c" 1>&6
  788. else
  789.   if test -n "$CC"; then
  790.   ac_cv_prog_CC="$CC" # Let the user override the test.
  791. else
  792.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  793.   ac_dummy="$PATH"
  794.   for ac_dir in $ac_dummy; do
  795.     test -z "$ac_dir" && ac_dir=.
  796.     if test -f $ac_dir/$ac_word; then
  797.       ac_cv_prog_CC="gcc"
  798.       break
  799.     fi
  800.   done
  801.   IFS="$ac_save_ifs"
  802. fi
  803. fi
  804. CC="$ac_cv_prog_CC"
  805. if test -n "$CC"; then
  806.   echo "$ac_t""$CC" 1>&6
  807. else
  808.   echo "$ac_t""no" 1>&6
  809. fi
  810.  
  811. if test -z "$CC"; then
  812.   # Extract the first word of "cc", so it can be a program name with args.
  813. set dummy cc; ac_word=$2
  814. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  815. echo "configure:816: checking for $ac_word" >&5
  816. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  817.   echo $ac_n "(cached) $ac_c" 1>&6
  818. else
  819.   if test -n "$CC"; then
  820.   ac_cv_prog_CC="$CC" # Let the user override the test.
  821. else
  822.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  823.   ac_prog_rejected=no
  824.   ac_dummy="$PATH"
  825.   for ac_dir in $ac_dummy; do
  826.     test -z "$ac_dir" && ac_dir=.
  827.     if test -f $ac_dir/$ac_word; then
  828.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  829.         ac_prog_rejected=yes
  830.     continue
  831.       fi
  832.       ac_cv_prog_CC="cc"
  833.       break
  834.     fi
  835.   done
  836.   IFS="$ac_save_ifs"
  837. if test $ac_prog_rejected = yes; then
  838.   # We found a bogon in the path, so make sure we never use it.
  839.   set dummy $ac_cv_prog_CC
  840.   shift
  841.   if test $# -gt 0; then
  842.     # We chose a different compiler from the bogus one.
  843.     # However, it has the same basename, so the bogon will be chosen
  844.     # first if we set CC to just the basename; use the full file name.
  845.     shift
  846.     set dummy "$ac_dir/$ac_word" "$@"
  847.     shift
  848.     ac_cv_prog_CC="$@"
  849.   fi
  850. fi
  851. fi
  852. fi
  853. CC="$ac_cv_prog_CC"
  854. if test -n "$CC"; then
  855.   echo "$ac_t""$CC" 1>&6
  856. else
  857.   echo "$ac_t""no" 1>&6
  858. fi
  859.  
  860.   if test -z "$CC"; then
  861.     case "`uname -s`" in
  862.     *win32* | *WIN32*)
  863.       # Extract the first word of "cl", so it can be a program name with args.
  864. set dummy cl; ac_word=$2
  865. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  866. echo "configure:867: checking for $ac_word" >&5
  867. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  868.   echo $ac_n "(cached) $ac_c" 1>&6
  869. else
  870.   if test -n "$CC"; then
  871.   ac_cv_prog_CC="$CC" # Let the user override the test.
  872. else
  873.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  874.   ac_dummy="$PATH"
  875.   for ac_dir in $ac_dummy; do
  876.     test -z "$ac_dir" && ac_dir=.
  877.     if test -f $ac_dir/$ac_word; then
  878.       ac_cv_prog_CC="cl"
  879.       break
  880.     fi
  881.   done
  882.   IFS="$ac_save_ifs"
  883. fi
  884. fi
  885. CC="$ac_cv_prog_CC"
  886. if test -n "$CC"; then
  887.   echo "$ac_t""$CC" 1>&6
  888. else
  889.   echo "$ac_t""no" 1>&6
  890. fi
  891.  ;;
  892.     esac
  893.   fi
  894.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  895. fi
  896.  
  897. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  898. echo "configure:899: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  899.  
  900. ac_ext=c
  901. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  902. ac_cpp='$CPP $CPPFLAGS'
  903. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  904. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  905. cross_compiling=$ac_cv_prog_cc_cross
  906.  
  907. cat > conftest.$ac_ext << EOF
  908.  
  909. #line 910 "configure"
  910. #include "confdefs.h"
  911.  
  912. main(){return(0);}
  913. EOF
  914. if { (eval echo configure:915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  915.   ac_cv_prog_cc_works=yes
  916.   # If we can't run a trivial program, we are probably using a cross compiler.
  917.   if (./conftest; exit) 2>/dev/null; then
  918.     ac_cv_prog_cc_cross=no
  919.   else
  920.     ac_cv_prog_cc_cross=yes
  921.   fi
  922. else
  923.   echo "configure: failed program was:" >&5
  924.   cat conftest.$ac_ext >&5
  925.   ac_cv_prog_cc_works=no
  926. fi
  927. rm -fr conftest*
  928. ac_ext=c
  929. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  930. ac_cpp='$CPP $CPPFLAGS'
  931. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  932. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  933. cross_compiling=$ac_cv_prog_cc_cross
  934.  
  935. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  936. if test $ac_cv_prog_cc_works = no; then
  937.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  938. fi
  939. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  940. echo "configure:941: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  941. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  942. cross_compiling=$ac_cv_prog_cc_cross
  943.  
  944. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  945. echo "configure:946: checking whether we are using GNU C" >&5
  946. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  947.   echo $ac_n "(cached) $ac_c" 1>&6
  948. else
  949.   cat > conftest.c <<EOF
  950. #ifdef __GNUC__
  951.   yes;
  952. #endif
  953. EOF
  954. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  955.   ac_cv_prog_gcc=yes
  956. else
  957.   ac_cv_prog_gcc=no
  958. fi
  959. fi
  960.  
  961. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  962.  
  963. if test $ac_cv_prog_gcc = yes; then
  964.   GCC=yes
  965. else
  966.   GCC=
  967. fi
  968.  
  969. ac_test_CFLAGS="${CFLAGS+set}"
  970. ac_save_CFLAGS="$CFLAGS"
  971. CFLAGS=
  972. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  973. echo "configure:974: checking whether ${CC-cc} accepts -g" >&5
  974. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  975.   echo $ac_n "(cached) $ac_c" 1>&6
  976. else
  977.   echo 'void f(){}' > conftest.c
  978. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  979.   ac_cv_prog_cc_g=yes
  980. else
  981.   ac_cv_prog_cc_g=no
  982. fi
  983. rm -f conftest*
  984.  
  985. fi
  986.  
  987. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  988. if test "$ac_test_CFLAGS" = set; then
  989.   CFLAGS="$ac_save_CFLAGS"
  990. elif test $ac_cv_prog_cc_g = yes; then
  991.   if test "$GCC" = yes; then
  992.     CFLAGS="-g -O2"
  993.   else
  994.     CFLAGS="-g"
  995.   fi
  996. else
  997.   if test "$GCC" = yes; then
  998.     CFLAGS="-O2"
  999.   else
  1000.     CFLAGS=
  1001.   fi
  1002. fi
  1003.  
  1004. # Extract the first word of "ranlib", so it can be a program name with args.
  1005. set dummy ranlib; ac_word=$2
  1006. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1007. echo "configure:1008: checking for $ac_word" >&5
  1008. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1009.   echo $ac_n "(cached) $ac_c" 1>&6
  1010. else
  1011.   if test -n "$RANLIB"; then
  1012.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1013. else
  1014.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1015.   ac_dummy="$PATH"
  1016.   for ac_dir in $ac_dummy; do
  1017.     test -z "$ac_dir" && ac_dir=.
  1018.     if test -f $ac_dir/$ac_word; then
  1019.       ac_cv_prog_RANLIB="ranlib"
  1020.       break
  1021.     fi
  1022.   done
  1023.   IFS="$ac_save_ifs"
  1024.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  1025. fi
  1026. fi
  1027. RANLIB="$ac_cv_prog_RANLIB"
  1028. if test -n "$RANLIB"; then
  1029.   echo "$ac_t""$RANLIB" 1>&6
  1030. else
  1031.   echo "$ac_t""no" 1>&6
  1032. fi
  1033.  
  1034.  
  1035. for ac_prog in gawk mawk nawk awk
  1036. do
  1037. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1038. set dummy $ac_prog; ac_word=$2
  1039. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1040. echo "configure:1041: checking for $ac_word" >&5
  1041. if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
  1042.   echo $ac_n "(cached) $ac_c" 1>&6
  1043. else
  1044.   if test -n "$AWK"; then
  1045.   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1046. else
  1047.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1048.   ac_dummy="$PATH"
  1049.   for ac_dir in $ac_dummy; do
  1050.     test -z "$ac_dir" && ac_dir=.
  1051.     if test -f $ac_dir/$ac_word; then
  1052.       ac_cv_prog_AWK="$ac_prog"
  1053.       break
  1054.     fi
  1055.   done
  1056.   IFS="$ac_save_ifs"
  1057. fi
  1058. fi
  1059. AWK="$ac_cv_prog_AWK"
  1060. if test -n "$AWK"; then
  1061.   echo "$ac_t""$AWK" 1>&6
  1062. else
  1063.   echo "$ac_t""no" 1>&6
  1064. fi
  1065.  
  1066. test -n "$AWK" && break
  1067. done
  1068.  
  1069. # Find a good install program.  We prefer a C program (faster),
  1070. # so one script is as good as another.  But avoid the broken or
  1071. # incompatible versions:
  1072. # SysV /etc/install, /usr/sbin/install
  1073. # SunOS /usr/etc/install
  1074. # IRIX /sbin/install
  1075. # AIX /bin/install
  1076. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1077. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1078. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1079. # ./install, which can be erroneously created by make from ./install.sh.
  1080. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1081. echo "configure:1082: checking for a BSD compatible install" >&5
  1082. if test -z "$INSTALL"; then
  1083. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1084.   echo $ac_n "(cached) $ac_c" 1>&6
  1085. else
  1086.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
  1087.   for ac_dir in $PATH; do
  1088.     # Account for people who put trailing slashes in PATH elements.
  1089.     case "$ac_dir/" in
  1090.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1091.     *)
  1092.       # OSF1 and SCO ODT 3.0 have their own names for install.
  1093.       # Don't use installbsd from OSF since it installs stuff as root
  1094.       # by default.
  1095.       for ac_prog in ginstall scoinst install; do
  1096.         if test -f $ac_dir/$ac_prog; then
  1097.       if test $ac_prog = install &&
  1098.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1099.         # AIX install.  It has an incompatible calling convention.
  1100.         :
  1101.       else
  1102.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  1103.         break 2
  1104.       fi
  1105.     fi
  1106.       done
  1107.       ;;
  1108.     esac
  1109.   done
  1110.   IFS="$ac_save_IFS"
  1111.  
  1112. fi
  1113.   if test "${ac_cv_path_install+set}" = set; then
  1114.     INSTALL="$ac_cv_path_install"
  1115.   else
  1116.     # As a last resort, use the slow shell script.  We don't cache a
  1117.     # path for INSTALL within a source directory, because that will
  1118.     # break other packages using the cache if that directory is
  1119.     # removed, or if the path is relative.
  1120.     INSTALL="$ac_install_sh"
  1121.   fi
  1122. fi
  1123. echo "$ac_t""$INSTALL" 1>&6
  1124.  
  1125. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1126. # It thinks the first close brace ends the variable substitution.
  1127. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1128.  
  1129. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1130.  
  1131. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1132.  
  1133. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  1134. echo "configure:1135: checking whether ln -s works" >&5
  1135. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  1136.   echo $ac_n "(cached) $ac_c" 1>&6
  1137. else
  1138.   rm -f conftestdata
  1139. if ln -s X conftestdata 2>/dev/null
  1140. then
  1141.   rm -f conftestdata
  1142.   ac_cv_prog_LN_S="ln -s"
  1143. else
  1144.   ac_cv_prog_LN_S=ln
  1145. fi
  1146. fi
  1147. LN_S="$ac_cv_prog_LN_S"
  1148. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  1149.   echo "$ac_t""yes" 1>&6
  1150. else
  1151.   echo "$ac_t""no" 1>&6
  1152. fi
  1153.  
  1154.  
  1155. echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  1156. echo "configure:1157: checking for connect in -lsocket" >&5
  1157. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  1158. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1159.   echo $ac_n "(cached) $ac_c" 1>&6
  1160. else
  1161.   ac_save_LIBS="$LIBS"
  1162. LIBS="-lsocket  $LIBS"
  1163. cat > conftest.$ac_ext <<EOF
  1164. #line 1165 "configure"
  1165. #include "confdefs.h"
  1166. /* Override any gcc2 internal prototype to avoid an error.  */
  1167. /* We use char because int might match the return type of a gcc2
  1168.     builtin and then its argument prototype would still apply.  */
  1169. char connect();
  1170.  
  1171. int main() {
  1172. connect()
  1173. ; return 0; }
  1174. EOF
  1175. if { (eval echo configure:1176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1176.   rm -rf conftest*
  1177.   eval "ac_cv_lib_$ac_lib_var=yes"
  1178. else
  1179.   echo "configure: failed program was:" >&5
  1180.   cat conftest.$ac_ext >&5
  1181.   rm -rf conftest*
  1182.   eval "ac_cv_lib_$ac_lib_var=no"
  1183. fi
  1184. rm -f conftest*
  1185. LIBS="$ac_save_LIBS"
  1186.  
  1187. fi
  1188. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1189.   echo "$ac_t""yes" 1>&6
  1190.     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1191.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1192.   cat >> confdefs.h <<EOF
  1193. #define $ac_tr_lib 1
  1194. EOF
  1195.  
  1196.   LIBS="-lsocket $LIBS"
  1197.  
  1198. else
  1199.   echo "$ac_t""no" 1>&6
  1200. fi
  1201.  
  1202. echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  1203. echo "configure:1204: checking for gethostbyname in -lnsl" >&5
  1204. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  1205. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1206.   echo $ac_n "(cached) $ac_c" 1>&6
  1207. else
  1208.   ac_save_LIBS="$LIBS"
  1209. LIBS="-lnsl  $LIBS"
  1210. cat > conftest.$ac_ext <<EOF
  1211. #line 1212 "configure"
  1212. #include "confdefs.h"
  1213. /* Override any gcc2 internal prototype to avoid an error.  */
  1214. /* We use char because int might match the return type of a gcc2
  1215.     builtin and then its argument prototype would still apply.  */
  1216. char gethostbyname();
  1217.  
  1218. int main() {
  1219. gethostbyname()
  1220. ; return 0; }
  1221. EOF
  1222. if { (eval echo configure:1223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1223.   rm -rf conftest*
  1224.   eval "ac_cv_lib_$ac_lib_var=yes"
  1225. else
  1226.   echo "configure: failed program was:" >&5
  1227.   cat conftest.$ac_ext >&5
  1228.   rm -rf conftest*
  1229.   eval "ac_cv_lib_$ac_lib_var=no"
  1230. fi
  1231. rm -f conftest*
  1232. LIBS="$ac_save_LIBS"
  1233.  
  1234. fi
  1235. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1236.   echo "$ac_t""yes" 1>&6
  1237.     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1238.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1239.   cat >> confdefs.h <<EOF
  1240. #define $ac_tr_lib 1
  1241. EOF
  1242.  
  1243.   LIBS="-lnsl $LIBS"
  1244.  
  1245. else
  1246.   echo "$ac_t""no" 1>&6
  1247. fi
  1248.  
  1249.  
  1250. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  1251. echo "configure:1252: checking how to run the C preprocessor" >&5
  1252. # On Suns, sometimes $CPP names a directory.
  1253. if test -n "$CPP" && test -d "$CPP"; then
  1254.   CPP=
  1255. fi
  1256. if test -z "$CPP"; then
  1257. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  1258.   echo $ac_n "(cached) $ac_c" 1>&6
  1259. else
  1260.     # This must be in double quotes, not single quotes, because CPP may get
  1261.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  1262.   CPP="${CC-cc} -E"
  1263.   # On the NeXT, cc -E runs the code through the compiler's parser,
  1264.   # not just through cpp.
  1265.   cat > conftest.$ac_ext <<EOF
  1266. #line 1267 "configure"
  1267. #include "confdefs.h"
  1268. #include <assert.h>
  1269. Syntax Error
  1270. EOF
  1271. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1272. { (eval echo configure:1273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1273. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1274. if test -z "$ac_err"; then
  1275.   :
  1276. else
  1277.   echo "$ac_err" >&5
  1278.   echo "configure: failed program was:" >&5
  1279.   cat conftest.$ac_ext >&5
  1280.   rm -rf conftest*
  1281.   CPP="${CC-cc} -E -traditional-cpp"
  1282.   cat > conftest.$ac_ext <<EOF
  1283. #line 1284 "configure"
  1284. #include "confdefs.h"
  1285. #include <assert.h>
  1286. Syntax Error
  1287. EOF
  1288. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1289. { (eval echo configure:1290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1290. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1291. if test -z "$ac_err"; then
  1292.   :
  1293. else
  1294.   echo "$ac_err" >&5
  1295.   echo "configure: failed program was:" >&5
  1296.   cat conftest.$ac_ext >&5
  1297.   rm -rf conftest*
  1298.   CPP="${CC-cc} -nologo -E"
  1299.   cat > conftest.$ac_ext <<EOF
  1300. #line 1301 "configure"
  1301. #include "confdefs.h"
  1302. #include <assert.h>
  1303. Syntax Error
  1304. EOF
  1305. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1306. { (eval echo configure:1307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1307. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1308. if test -z "$ac_err"; then
  1309.   :
  1310. else
  1311.   echo "$ac_err" >&5
  1312.   echo "configure: failed program was:" >&5
  1313.   cat conftest.$ac_ext >&5
  1314.   rm -rf conftest*
  1315.   CPP=/lib/cpp
  1316. fi
  1317. rm -f conftest*
  1318. fi
  1319. rm -f conftest*
  1320. fi
  1321. rm -f conftest*
  1322.   ac_cv_prog_CPP="$CPP"
  1323. fi
  1324.   CPP="$ac_cv_prog_CPP"
  1325. else
  1326.   ac_cv_prog_CPP="$CPP"
  1327. fi
  1328. echo "$ac_t""$CPP" 1>&6
  1329.  
  1330. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1331. echo "configure:1332: checking for ANSI C header files" >&5
  1332. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1333.   echo $ac_n "(cached) $ac_c" 1>&6
  1334. else
  1335.   cat > conftest.$ac_ext <<EOF
  1336. #line 1337 "configure"
  1337. #include "confdefs.h"
  1338. #include <stdlib.h>
  1339. #include <stdarg.h>
  1340. #include <string.h>
  1341. #include <float.h>
  1342. EOF
  1343. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1344. { (eval echo configure:1345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1345. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1346. if test -z "$ac_err"; then
  1347.   rm -rf conftest*
  1348.   ac_cv_header_stdc=yes
  1349. else
  1350.   echo "$ac_err" >&5
  1351.   echo "configure: failed program was:" >&5
  1352.   cat conftest.$ac_ext >&5
  1353.   rm -rf conftest*
  1354.   ac_cv_header_stdc=no
  1355. fi
  1356. rm -f conftest*
  1357.  
  1358. if test $ac_cv_header_stdc = yes; then
  1359.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1360. cat > conftest.$ac_ext <<EOF
  1361. #line 1362 "configure"
  1362. #include "confdefs.h"
  1363. #include <string.h>
  1364. EOF
  1365. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1366.   egrep "memchr" >/dev/null 2>&1; then
  1367.   :
  1368. else
  1369.   rm -rf conftest*
  1370.   ac_cv_header_stdc=no
  1371. fi
  1372. rm -f conftest*
  1373.  
  1374. fi
  1375.  
  1376. if test $ac_cv_header_stdc = yes; then
  1377.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1378. cat > conftest.$ac_ext <<EOF
  1379. #line 1380 "configure"
  1380. #include "confdefs.h"
  1381. #include <stdlib.h>
  1382. EOF
  1383. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1384.   egrep "free" >/dev/null 2>&1; then
  1385.   :
  1386. else
  1387.   rm -rf conftest*
  1388.   ac_cv_header_stdc=no
  1389. fi
  1390. rm -f conftest*
  1391.  
  1392. fi
  1393.  
  1394. if test $ac_cv_header_stdc = yes; then
  1395.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1396. if test "$cross_compiling" = yes; then
  1397.   :
  1398. else
  1399.   cat > conftest.$ac_ext <<EOF
  1400. #line 1401 "configure"
  1401. #include "confdefs.h"
  1402. #include <ctype.h>
  1403. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1404. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1405. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1406. int main () { int i; for (i = 0; i < 256; i++)
  1407. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1408. exit (0); }
  1409.  
  1410. EOF
  1411. if { (eval echo configure:1412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1412. then
  1413.   :
  1414. else
  1415.   echo "configure: failed program was:" >&5
  1416.   cat conftest.$ac_ext >&5
  1417.   rm -fr conftest*
  1418.   ac_cv_header_stdc=no
  1419. fi
  1420. rm -fr conftest*
  1421. fi
  1422.  
  1423. fi
  1424. fi
  1425.  
  1426. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1427. if test $ac_cv_header_stdc = yes; then
  1428.   cat >> confdefs.h <<\EOF
  1429. #define STDC_HEADERS 1
  1430. EOF
  1431.  
  1432. fi
  1433.  
  1434. for ac_hdr in malloc.h unistd.h
  1435. do
  1436. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1437. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1438. echo "configure:1439: checking for $ac_hdr" >&5
  1439. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1440.   echo $ac_n "(cached) $ac_c" 1>&6
  1441. else
  1442.   cat > conftest.$ac_ext <<EOF
  1443. #line 1444 "configure"
  1444. #include "confdefs.h"
  1445. #include <$ac_hdr>
  1446. EOF
  1447. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1448. { (eval echo configure:1449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1449. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1450. if test -z "$ac_err"; then
  1451.   rm -rf conftest*
  1452.   eval "ac_cv_header_$ac_safe=yes"
  1453. else
  1454.   echo "$ac_err" >&5
  1455.   echo "configure: failed program was:" >&5
  1456.   cat conftest.$ac_ext >&5
  1457.   rm -rf conftest*
  1458.   eval "ac_cv_header_$ac_safe=no"
  1459. fi
  1460. rm -f conftest*
  1461. fi
  1462. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1463.   echo "$ac_t""yes" 1>&6
  1464.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1465.   cat >> confdefs.h <<EOF
  1466. #define $ac_tr_hdr 1
  1467. EOF
  1468.  
  1469. else
  1470.   echo "$ac_t""no" 1>&6
  1471. fi
  1472. done
  1473.  
  1474.  
  1475.  
  1476. for ac_func in socket strdup strstr
  1477. do
  1478. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1479. echo "configure:1480: checking for $ac_func" >&5
  1480. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1481.   echo $ac_n "(cached) $ac_c" 1>&6
  1482. else
  1483.   cat > conftest.$ac_ext <<EOF
  1484. #line 1485 "configure"
  1485. #include "confdefs.h"
  1486. /* System header to define __stub macros and hopefully few prototypes,
  1487.     which can conflict with char $ac_func(); below.  */
  1488. #include <assert.h>
  1489. /* Override any gcc2 internal prototype to avoid an error.  */
  1490. /* We use char because int might match the return type of a gcc2
  1491.     builtin and then its argument prototype would still apply.  */
  1492. char $ac_func();
  1493.  
  1494. int main() {
  1495.  
  1496. /* The GNU C library defines this for functions which it implements
  1497.     to always fail with ENOSYS.  Some functions are actually named
  1498.     something starting with __ and the normal name is an alias.  */
  1499. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1500. choke me
  1501. #else
  1502. $ac_func();
  1503. #endif
  1504.  
  1505. ; return 0; }
  1506. EOF
  1507. if { (eval echo configure:1508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1508.   rm -rf conftest*
  1509.   eval "ac_cv_func_$ac_func=yes"
  1510. else
  1511.   echo "configure: failed program was:" >&5
  1512.   cat conftest.$ac_ext >&5
  1513.   rm -rf conftest*
  1514.   eval "ac_cv_func_$ac_func=no"
  1515. fi
  1516. rm -f conftest*
  1517. fi
  1518.  
  1519. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1520.   echo "$ac_t""yes" 1>&6
  1521.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1522.   cat >> confdefs.h <<EOF
  1523. #define $ac_tr_func 1
  1524. EOF
  1525.  
  1526. else
  1527.   echo "$ac_t""no" 1>&6
  1528. fi
  1529. done
  1530.  
  1531.  
  1532.  
  1533. # Check whether --enable-debug or --disable-debug was given.
  1534. if test "${enable_debug+set}" = set; then
  1535.   enableval="$enable_debug"
  1536.   case "${enableval}" in
  1537.   yes) debug=true ;;
  1538.   no)  debug=false ;;
  1539.   *) { echo "configure: error: bad value ${enableval} for --enable-debug" 1>&2; exit 1; } ;;
  1540. esac
  1541. else
  1542.   debug=false
  1543. fi
  1544.  
  1545.  
  1546.  
  1547.  
  1548. if test x$debug = xtrue; then
  1549.   DEBUG_TRUE=
  1550.   DEBUG_FALSE='#'
  1551. else
  1552.   DEBUG_TRUE='#'
  1553.   DEBUG_FALSE=
  1554. fi
  1555.  
  1556. if test "x$GCC" = "xyes"; then
  1557.   case " $CFLAGS " in
  1558.   *[\ \ ]-Wall[\ \    ]*) ;;
  1559.   *) CFLAGS="$CFLAGS -Wall" ;;
  1560.   esac
  1561. fi
  1562.  
  1563. trap '' 1 2 15
  1564. cat > confcache <<\EOF
  1565. # This file is a shell script that caches the results of configure
  1566. # tests run on this system so they can be shared between configure
  1567. # scripts and configure runs.  It is not useful on other systems.
  1568. # If it contains results you don't want to keep, you may remove or edit it.
  1569. #
  1570. # By default, configure uses ./config.cache as the cache file,
  1571. # creating it if it does not exist already.  You can give configure
  1572. # the --cache-file=FILE option to use a different cache file; that is
  1573. # what configure does when it calls configure scripts in
  1574. # subdirectories, so they share the cache.
  1575. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1576. # config.status only pays attention to the cache file if you give it the
  1577. # --recheck option to rerun configure.
  1578. #
  1579. EOF
  1580. # The following way of writing the cache mishandles newlines in values,
  1581. # but we know of no workaround that is simple, portable, and efficient.
  1582. # So, don't put newlines in cache variables' values.
  1583. # Ultrix sh set writes to stderr and can't be redirected directly,
  1584. # and sets the high bit in the cache file unless we assign to the vars.
  1585. (set) 2>&1 |
  1586.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1587.   *ac_space=\ *)
  1588.     # `set' does not quote correctly, so add quotes (double-quote substitution
  1589.     # turns \\\\ into \\, and sed turns \\ into \).
  1590.     sed -n \
  1591.       -e "s/'/'\\\\''/g" \
  1592.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1593.     ;;
  1594.   *)
  1595.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  1596.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1597.     ;;
  1598.   esac >> confcache
  1599. if cmp -s $cache_file confcache; then
  1600.   :
  1601. else
  1602.   if test -w $cache_file; then
  1603.     echo "updating cache $cache_file"
  1604.     cat confcache > $cache_file
  1605.   else
  1606.     echo "not updating unwritable cache $cache_file"
  1607.   fi
  1608. fi
  1609. rm -f confcache
  1610.  
  1611. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1612.  
  1613. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1614. # Let make expand exec_prefix.
  1615. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1616.  
  1617. # Any assignment to VPATH causes Sun make to only execute
  1618. # the first set of double-colon rules, so remove it if not needed.
  1619. # If there is a colon in the path, we need to keep it.
  1620. if test "x$srcdir" = x.; then
  1621.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1622. fi
  1623.  
  1624. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1625.  
  1626. # Transform confdefs.h into DEFS.
  1627. # Protect against shell expansion while executing Makefile rules.
  1628. # Protect against Makefile macro expansion.
  1629. cat > conftest.defs <<\EOF
  1630. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  1631. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  1632. s%\[%\\&%g
  1633. s%\]%\\&%g
  1634. s%\$%$$%g
  1635. EOF
  1636. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  1637. rm -f conftest.defs
  1638.  
  1639.  
  1640. # Without the "./", some shells look in PATH for config.status.
  1641. : ${CONFIG_STATUS=./config.status}
  1642.  
  1643. echo creating $CONFIG_STATUS
  1644. rm -f $CONFIG_STATUS
  1645. cat > $CONFIG_STATUS <<EOF
  1646. #! /bin/sh
  1647. # Generated automatically by configure.
  1648. # Run this file to recreate the current configuration.
  1649. # This directory was configured as follows,
  1650. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1651. #
  1652. # $0 $ac_configure_args
  1653. #
  1654. # Compiler output produced by configure, useful for debugging
  1655. # configure, is in ./config.log if it exists.
  1656.  
  1657. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1658. for ac_option
  1659. do
  1660.   case "\$ac_option" in
  1661.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1662.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1663.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1664.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1665.     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  1666.     exit 0 ;;
  1667.   -help | --help | --hel | --he | --h)
  1668.     echo "\$ac_cs_usage"; exit 0 ;;
  1669.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1670.   esac
  1671. done
  1672.  
  1673. ac_given_srcdir=$srcdir
  1674. ac_given_INSTALL="$INSTALL"
  1675.  
  1676. trap 'rm -fr `echo "lib/Makefile client/Makefile Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1677. EOF
  1678. cat >> $CONFIG_STATUS <<EOF
  1679.  
  1680. # Protect against being on the right side of a sed subst in config.status.
  1681. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1682.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1683. $ac_vpsub
  1684. $extrasub
  1685. s%@SHELL@%$SHELL%g
  1686. s%@CFLAGS@%$CFLAGS%g
  1687. s%@CPPFLAGS@%$CPPFLAGS%g
  1688. s%@CXXFLAGS@%$CXXFLAGS%g
  1689. s%@FFLAGS@%$FFLAGS%g
  1690. s%@DEFS@%$DEFS%g
  1691. s%@LDFLAGS@%$LDFLAGS%g
  1692. s%@LIBS@%$LIBS%g
  1693. s%@exec_prefix@%$exec_prefix%g
  1694. s%@prefix@%$prefix%g
  1695. s%@program_transform_name@%$program_transform_name%g
  1696. s%@bindir@%$bindir%g
  1697. s%@sbindir@%$sbindir%g
  1698. s%@libexecdir@%$libexecdir%g
  1699. s%@datadir@%$datadir%g
  1700. s%@sysconfdir@%$sysconfdir%g
  1701. s%@sharedstatedir@%$sharedstatedir%g
  1702. s%@localstatedir@%$localstatedir%g
  1703. s%@libdir@%$libdir%g
  1704. s%@includedir@%$includedir%g
  1705. s%@oldincludedir@%$oldincludedir%g
  1706. s%@infodir@%$infodir%g
  1707. s%@mandir@%$mandir%g
  1708. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1709. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  1710. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1711. s%@PACKAGE@%$PACKAGE%g
  1712. s%@VERSION@%$VERSION%g
  1713. s%@ACLOCAL@%$ACLOCAL%g
  1714. s%@AUTOCONF@%$AUTOCONF%g
  1715. s%@AUTOMAKE@%$AUTOMAKE%g
  1716. s%@AUTOHEADER@%$AUTOHEADER%g
  1717. s%@MAKEINFO@%$MAKEINFO%g
  1718. s%@SET_MAKE@%$SET_MAKE%g
  1719. s%@CC@%$CC%g
  1720. s%@RANLIB@%$RANLIB%g
  1721. s%@AWK@%$AWK%g
  1722. s%@LN_S@%$LN_S%g
  1723. s%@CPP@%$CPP%g
  1724. s%@DEBUG_TRUE@%$DEBUG_TRUE%g
  1725. s%@DEBUG_FALSE@%$DEBUG_FALSE%g
  1726.  
  1727. CEOF
  1728. EOF
  1729.  
  1730. cat >> $CONFIG_STATUS <<\EOF
  1731.  
  1732. # Split the substitutions into bite-sized pieces for seds with
  1733. # small command number limits, like on Digital OSF/1 and HP-UX.
  1734. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  1735. ac_file=1 # Number of current file.
  1736. ac_beg=1 # First line for current file.
  1737. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  1738. ac_more_lines=:
  1739. ac_sed_cmds=""
  1740. while $ac_more_lines; do
  1741.   if test $ac_beg -gt 1; then
  1742.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  1743.   else
  1744.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  1745.   fi
  1746.   if test ! -s conftest.s$ac_file; then
  1747.     ac_more_lines=false
  1748.     rm -f conftest.s$ac_file
  1749.   else
  1750.     if test -z "$ac_sed_cmds"; then
  1751.       ac_sed_cmds="sed -f conftest.s$ac_file"
  1752.     else
  1753.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  1754.     fi
  1755.     ac_file=`expr $ac_file + 1`
  1756.     ac_beg=$ac_end
  1757.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  1758.   fi
  1759. done
  1760. if test -z "$ac_sed_cmds"; then
  1761.   ac_sed_cmds=cat
  1762. fi
  1763. EOF
  1764.  
  1765. cat >> $CONFIG_STATUS <<EOF
  1766.  
  1767. CONFIG_FILES=\${CONFIG_FILES-"lib/Makefile client/Makefile Makefile"}
  1768. EOF
  1769. cat >> $CONFIG_STATUS <<\EOF
  1770. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1771.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1772.   case "$ac_file" in
  1773.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1774.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1775.   *) ac_file_in="${ac_file}.in" ;;
  1776.   esac
  1777.  
  1778.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  1779.  
  1780.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1781.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1782.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1783.     # The file is in a subdirectory.
  1784.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1785.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1786.     # A "../" for each directory in $ac_dir_suffix.
  1787.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1788.   else
  1789.     ac_dir_suffix= ac_dots=
  1790.   fi
  1791.  
  1792.   case "$ac_given_srcdir" in
  1793.   .)  srcdir=.
  1794.       if test -z "$ac_dots"; then top_srcdir=.
  1795.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1796.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1797.   *) # Relative path.
  1798.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1799.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1800.   esac
  1801.  
  1802.   case "$ac_given_INSTALL" in
  1803.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1804.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1805.   esac
  1806.  
  1807.   echo creating "$ac_file"
  1808.   rm -f "$ac_file"
  1809.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1810.   case "$ac_file" in
  1811.   *Makefile*) ac_comsub="1i\\
  1812. # $configure_input" ;;
  1813.   *) ac_comsub= ;;
  1814.   esac
  1815.  
  1816.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1817.   sed -e "$ac_comsub
  1818. s%@configure_input@%$configure_input%g
  1819. s%@srcdir@%$srcdir%g
  1820. s%@top_srcdir@%$top_srcdir%g
  1821. s%@INSTALL@%$INSTALL%g
  1822. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  1823. fi; done
  1824. rm -f conftest.s*
  1825.  
  1826. EOF
  1827. cat >> $CONFIG_STATUS <<EOF
  1828.  
  1829. EOF
  1830. cat >> $CONFIG_STATUS <<\EOF
  1831.  
  1832. exit 0
  1833. EOF
  1834. chmod +x $CONFIG_STATUS
  1835. rm -fr confdefs* $ac_clean_files
  1836. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1837.  
  1838.