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