"Fossies" - the Fresh Open Source Software Archive

Member "npadmin-0.14/configure" (12 Feb 2003, 80513 Bytes) of package /linux/misc/old/npadmin-0.14.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    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   --enable-debug turn on debugging (assumes gcc/gdb) [default=no]"
   16 
   17 # Initialize some variables set by options.
   18 # The variables have the same names as the options, with
   19 # dashes changed to underlines.
   20 build=NONE
   21 cache_file=./config.cache
   22 exec_prefix=NONE
   23 host=NONE
   24 no_create=
   25 nonopt=NONE
   26 no_recursion=
   27 prefix=NONE
   28 program_prefix=NONE
   29 program_suffix=NONE
   30 program_transform_name=s,x,x,
   31 silent=
   32 site=
   33 srcdir=
   34 target=NONE
   35 verbose=
   36 x_includes=NONE
   37 x_libraries=NONE
   38 bindir='${exec_prefix}/bin'
   39 sbindir='${exec_prefix}/sbin'
   40 libexecdir='${exec_prefix}/libexec'
   41 datadir='${prefix}/share'
   42 sysconfdir='${prefix}/etc'
   43 sharedstatedir='${prefix}/com'
   44 localstatedir='${prefix}/var'
   45 libdir='${exec_prefix}/lib'
   46 includedir='${prefix}/include'
   47 oldincludedir='/usr/include'
   48 infodir='${prefix}/info'
   49 mandir='${prefix}/man'
   50 
   51 # Initialize some other variables.
   52 subdirs=
   53 MFLAGS= MAKEFLAGS=
   54 SHELL=${CONFIG_SHELL-/bin/sh}
   55 # Maximum number of lines to put in a shell here document.
   56 ac_max_here_lines=12
   57 
   58 ac_prev=
   59 for ac_option
   60 do
   61 
   62   # If the previous option needs an argument, assign it.
   63   if test -n "$ac_prev"; then
   64     eval "$ac_prev=\$ac_option"
   65     ac_prev=
   66     continue
   67   fi
   68 
   69   case "$ac_option" in
   70   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
   71   *) ac_optarg= ;;
   72   esac
   73 
   74   # Accept the important Cygnus configure options, so we can diagnose typos.
   75 
   76   case "$ac_option" in
   77 
   78   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   79     ac_prev=bindir ;;
   80   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   81     bindir="$ac_optarg" ;;
   82 
   83   -build | --build | --buil | --bui | --bu)
   84     ac_prev=build ;;
   85   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   86     build="$ac_optarg" ;;
   87 
   88   -cache-file | --cache-file | --cache-fil | --cache-fi \
   89   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   90     ac_prev=cache_file ;;
   91   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   92   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   93     cache_file="$ac_optarg" ;;
   94 
   95   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
   96     ac_prev=datadir ;;
   97   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
   98   | --da=*)
   99     datadir="$ac_optarg" ;;
  100 
  101   -disable-* | --disable-*)
  102     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  103     # Reject names that are not valid shell variable names.
  104     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  105       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  106     fi
  107     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  108     eval "enable_${ac_feature}=no" ;;
  109 
  110   -enable-* | --enable-*)
  111     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  112     # Reject names that are not valid shell variable names.
  113     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  114       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  115     fi
  116     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  117     case "$ac_option" in
  118       *=*) ;;
  119       *) ac_optarg=yes ;;
  120     esac
  121     eval "enable_${ac_feature}='$ac_optarg'" ;;
  122 
  123   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  124   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  125   | --exec | --exe | --ex)
  126     ac_prev=exec_prefix ;;
  127   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  128   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  129   | --exec=* | --exe=* | --ex=*)
  130     exec_prefix="$ac_optarg" ;;
  131 
  132   -gas | --gas | --ga | --g)
  133     # Obsolete; use --with-gas.
  134     with_gas=yes ;;
  135 
  136   -help | --help | --hel | --he)
  137     # Omit some internal or obsolete options to make the list less imposing.
  138     # This message is too long to be a string in the A/UX 3.1 sh.
  139     cat << EOF
  140 Usage: configure [options] [host]
  141 Options: [defaults in brackets after descriptions]
  142 Configuration:
  143   --cache-file=FILE       cache test results in FILE
  144   --help                  print this message
  145   --no-create             do not create output files
  146   --quiet, --silent       do not print \`checking...' messages
  147   --version               print the version of autoconf that created configure
  148 Directory and file names:
  149   --prefix=PREFIX         install architecture-independent files in PREFIX
  150                           [$ac_default_prefix]
  151   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  152                           [same as prefix]
  153   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  154   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  155   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  156   --datadir=DIR           read-only architecture-independent data in DIR
  157                           [PREFIX/share]
  158   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  159   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  160                           [PREFIX/com]
  161   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  162   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  163   --includedir=DIR        C header files in DIR [PREFIX/include]
  164   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  165   --infodir=DIR           info documentation in DIR [PREFIX/info]
  166   --mandir=DIR            man documentation in DIR [PREFIX/man]
  167   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  168   --program-prefix=PREFIX prepend PREFIX to installed program names
  169   --program-suffix=SUFFIX append SUFFIX to installed program names
  170   --program-transform-name=PROGRAM
  171                           run sed PROGRAM on installed program names
  172 EOF
  173     cat << EOF
  174 Host type:
  175   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  176   --host=HOST             configure for HOST [guessed]
  177   --target=TARGET         configure for TARGET [TARGET=HOST]
  178 Features and packages:
  179   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  180   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  181   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  182   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  183   --x-includes=DIR        X include files are in DIR
  184   --x-libraries=DIR       X library files are in DIR
  185 EOF
  186     if test -n "$ac_help"; then
  187       echo "--enable and --with options recognized:$ac_help"
  188     fi
  189     exit 0 ;;
  190 
  191   -host | --host | --hos | --ho)
  192     ac_prev=host ;;
  193   -host=* | --host=* | --hos=* | --ho=*)
  194     host="$ac_optarg" ;;
  195 
  196   -includedir | --includedir | --includedi | --included | --include \
  197   | --includ | --inclu | --incl | --inc)
  198     ac_prev=includedir ;;
  199   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  200   | --includ=* | --inclu=* | --incl=* | --inc=*)
  201     includedir="$ac_optarg" ;;
  202 
  203   -infodir | --infodir | --infodi | --infod | --info | --inf)
  204     ac_prev=infodir ;;
  205   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  206     infodir="$ac_optarg" ;;
  207 
  208   -libdir | --libdir | --libdi | --libd)
  209     ac_prev=libdir ;;
  210   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  211     libdir="$ac_optarg" ;;
  212 
  213   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  214   | --libexe | --libex | --libe)
  215     ac_prev=libexecdir ;;
  216   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  217   | --libexe=* | --libex=* | --libe=*)
  218     libexecdir="$ac_optarg" ;;
  219 
  220   -localstatedir | --localstatedir | --localstatedi | --localstated \
  221   | --localstate | --localstat | --localsta | --localst \
  222   | --locals | --local | --loca | --loc | --lo)
  223     ac_prev=localstatedir ;;
  224   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  225   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  226   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  227     localstatedir="$ac_optarg" ;;
  228 
  229   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  230     ac_prev=mandir ;;
  231   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  232     mandir="$ac_optarg" ;;
  233 
  234   -nfp | --nfp | --nf)
  235     # Obsolete; use --without-fp.
  236     with_fp=no ;;
  237 
  238   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  239   | --no-cr | --no-c)
  240     no_create=yes ;;
  241 
  242   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  243   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  244     no_recursion=yes ;;
  245 
  246   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  247   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  248   | --oldin | --oldi | --old | --ol | --o)
  249     ac_prev=oldincludedir ;;
  250   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  251   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  252   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  253     oldincludedir="$ac_optarg" ;;
  254 
  255   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  256     ac_prev=prefix ;;
  257   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  258     prefix="$ac_optarg" ;;
  259 
  260   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  261   | --program-pre | --program-pr | --program-p)
  262     ac_prev=program_prefix ;;
  263   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  264   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  265     program_prefix="$ac_optarg" ;;
  266 
  267   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  268   | --program-suf | --program-su | --program-s)
  269     ac_prev=program_suffix ;;
  270   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  271   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  272     program_suffix="$ac_optarg" ;;
  273 
  274   -program-transform-name | --program-transform-name \
  275   | --program-transform-nam | --program-transform-na \
  276   | --program-transform-n | --program-transform- \
  277   | --program-transform | --program-transfor \
  278   | --program-transfo | --program-transf \
  279   | --program-trans | --program-tran \
  280   | --progr-tra | --program-tr | --program-t)
  281     ac_prev=program_transform_name ;;
  282   -program-transform-name=* | --program-transform-name=* \
  283   | --program-transform-nam=* | --program-transform-na=* \
  284   | --program-transform-n=* | --program-transform-=* \
  285   | --program-transform=* | --program-transfor=* \
  286   | --program-transfo=* | --program-transf=* \
  287   | --program-trans=* | --program-tran=* \
  288   | --progr-tra=* | --program-tr=* | --program-t=*)
  289     program_transform_name="$ac_optarg" ;;
  290 
  291   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  292   | -silent | --silent | --silen | --sile | --sil)
  293     silent=yes ;;
  294 
  295   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  296     ac_prev=sbindir ;;
  297   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  298   | --sbi=* | --sb=*)
  299     sbindir="$ac_optarg" ;;
  300 
  301   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  302   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  303   | --sharedst | --shareds | --shared | --share | --shar \
  304   | --sha | --sh)
  305     ac_prev=sharedstatedir ;;
  306   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  307   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  308   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  309   | --sha=* | --sh=*)
  310     sharedstatedir="$ac_optarg" ;;
  311 
  312   -site | --site | --sit)
  313     ac_prev=site ;;
  314   -site=* | --site=* | --sit=*)
  315     site="$ac_optarg" ;;
  316 
  317   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  318     ac_prev=srcdir ;;
  319   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  320     srcdir="$ac_optarg" ;;
  321 
  322   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  323   | --syscon | --sysco | --sysc | --sys | --sy)
  324     ac_prev=sysconfdir ;;
  325   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  326   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  327     sysconfdir="$ac_optarg" ;;
  328 
  329   -target | --target | --targe | --targ | --tar | --ta | --t)
  330     ac_prev=target ;;
  331   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  332     target="$ac_optarg" ;;
  333 
  334   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  335     verbose=yes ;;
  336 
  337   -version | --version | --versio | --versi | --vers)
  338     echo "configure generated by autoconf version 2.13"
  339     exit 0 ;;
  340 
  341   -with-* | --with-*)
  342     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  343     # Reject names that are not valid shell variable names.
  344     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  345       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  346     fi
  347     ac_package=`echo $ac_package| sed 's/-/_/g'`
  348     case "$ac_option" in
  349       *=*) ;;
  350       *) ac_optarg=yes ;;
  351     esac
  352     eval "with_${ac_package}='$ac_optarg'" ;;
  353 
  354   -without-* | --without-*)
  355     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  356     # Reject names that are not valid shell variable names.
  357     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  358       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  359     fi
  360     ac_package=`echo $ac_package| sed 's/-/_/g'`
  361     eval "with_${ac_package}=no" ;;
  362 
  363   --x)
  364     # Obsolete; use --with-x.
  365     with_x=yes ;;
  366 
  367   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  368   | --x-incl | --x-inc | --x-in | --x-i)
  369     ac_prev=x_includes ;;
  370   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  371   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  372     x_includes="$ac_optarg" ;;
  373 
  374   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  375   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  376     ac_prev=x_libraries ;;
  377   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  378   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  379     x_libraries="$ac_optarg" ;;
  380 
  381   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  382     ;;
  383 
  384   *)
  385     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  386       echo "configure: warning: $ac_option: invalid host type" 1>&2
  387     fi
  388     if test "x$nonopt" != xNONE; then
  389       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  390     fi
  391     nonopt="$ac_option"
  392     ;;
  393 
  394   esac
  395 done
  396 
  397 if test -n "$ac_prev"; then
  398   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  399 fi
  400 
  401 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  402 
  403 # File descriptor usage:
  404 # 0 standard input
  405 # 1 file creation
  406 # 2 errors and warnings
  407 # 3 some systems may open it to /dev/tty
  408 # 4 used on the Kubota Titan
  409 # 6 checking for... messages and results
  410 # 5 compiler messages saved in config.log
  411 if test "$silent" = yes; then
  412   exec 6>/dev/null
  413 else
  414   exec 6>&1
  415 fi
  416 exec 5>./config.log
  417 
  418 echo "\
  419 This file contains any messages produced by compilers while
  420 running configure, to aid debugging if configure makes a mistake.
  421 " 1>&5
  422 
  423 # Strip out --no-create and --no-recursion so they do not pile up.
  424 # Also quote any args containing shell metacharacters.
  425 ac_configure_args=
  426 for ac_arg
  427 do
  428   case "$ac_arg" in
  429   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  430   | --no-cr | --no-c) ;;
  431   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  432   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  433   *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  434   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  435   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  436   esac
  437 done
  438 
  439 # NLS nuisances.
  440 # Only set these to C if already set.  These must not be set unconditionally
  441 # because not all systems understand e.g. LANG=C (notably SCO).
  442 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  443 # Non-C LC_CTYPE values break the ctype check.
  444 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  445 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  446 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  447 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  448 
  449 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  450 rm -rf conftest* confdefs.h
  451 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  452 echo > confdefs.h
  453 
  454 # A filename unique to this package, relative to the directory that
  455 # configure is in, which we can look for to find out if srcdir is correct.
  456 ac_unique_file=ber.C
  457 
  458 # Find the source files, if location was not specified.
  459 if test -z "$srcdir"; then
  460   ac_srcdir_defaulted=yes
  461   # Try the directory containing this script, then its parent.
  462   ac_prog=$0
  463   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  464   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  465   srcdir=$ac_confdir
  466   if test ! -r $srcdir/$ac_unique_file; then
  467     srcdir=..
  468   fi
  469 else
  470   ac_srcdir_defaulted=no
  471 fi
  472 if test ! -r $srcdir/$ac_unique_file; then
  473   if test "$ac_srcdir_defaulted" = yes; then
  474     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  475   else
  476     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  477   fi
  478 fi
  479 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  480 
  481 # Prefer explicitly selected file to automatically selected ones.
  482 if test -z "$CONFIG_SITE"; then
  483   if test "x$prefix" != xNONE; then
  484     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  485   else
  486     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  487   fi
  488 fi
  489 for ac_site_file in $CONFIG_SITE; do
  490   if test -r "$ac_site_file"; then
  491     echo "loading site script $ac_site_file"
  492     . "$ac_site_file"
  493   fi
  494 done
  495 
  496 if test -r "$cache_file"; then
  497   echo "loading cache $cache_file"
  498   . $cache_file
  499 else
  500   echo "creating cache $cache_file"
  501   > $cache_file
  502 fi
  503 
  504 ac_ext=c
  505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  506 ac_cpp='$CPP $CPPFLAGS'
  507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  509 cross_compiling=$ac_cv_prog_cc_cross
  510 
  511 ac_exeext=
  512 ac_objext=o
  513 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  514   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  515   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  516     ac_n= ac_c='
  517 ' ac_t='    '
  518   else
  519     ac_n=-n ac_c= ac_t=
  520   fi
  521 else
  522   ac_n= ac_c='\c' ac_t=
  523 fi
  524 
  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=npadmin
  696 
  697 VERSION=0.13
  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 
  783 
  784 
  785 
  786 ac_ext=C
  787 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  788 ac_cpp='$CXXCPP $CPPFLAGS'
  789 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  790 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  791 cross_compiling=$ac_cv_prog_cxx_cross
  792 
  793 
  794 WARNS=""
  795 # Check whether --enable-debug or --disable-debug was given.
  796 if test "${enable_debug+set}" = set; then
  797   enableval="$enable_debug"
  798   WARNS="-W -Wall -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wshadow -O0 -ggdb3"
  799 else
  800   cat >> confdefs.h <<\EOF
  801 #define NDEBUG 1
  802 EOF
  803 
  804 fi
  805 
  806 
  807 
  808 # Find a good install program.  We prefer a C program (faster),
  809 # so one script is as good as another.  But avoid the broken or
  810 # incompatible versions:
  811 # SysV /etc/install, /usr/sbin/install
  812 # SunOS /usr/etc/install
  813 # IRIX /sbin/install
  814 # AIX /bin/install
  815 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  816 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  817 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  818 # ./install, which can be erroneously created by make from ./install.sh.
  819 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  820 echo "configure:821: checking for a BSD compatible install" >&5
  821 if test -z "$INSTALL"; then
  822 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  823   echo $ac_n "(cached) $ac_c" 1>&6
  824 else
  825     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
  826   for ac_dir in $PATH; do
  827     # Account for people who put trailing slashes in PATH elements.
  828     case "$ac_dir/" in
  829     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  830     *)
  831       # OSF1 and SCO ODT 3.0 have their own names for install.
  832       # Don't use installbsd from OSF since it installs stuff as root
  833       # by default.
  834       for ac_prog in ginstall scoinst install; do
  835         if test -f $ac_dir/$ac_prog; then
  836       if test $ac_prog = install &&
  837             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  838         # AIX install.  It has an incompatible calling convention.
  839         :
  840       else
  841         ac_cv_path_install="$ac_dir/$ac_prog -c"
  842         break 2
  843       fi
  844     fi
  845       done
  846       ;;
  847     esac
  848   done
  849   IFS="$ac_save_IFS"
  850 
  851 fi
  852   if test "${ac_cv_path_install+set}" = set; then
  853     INSTALL="$ac_cv_path_install"
  854   else
  855     # As a last resort, use the slow shell script.  We don't cache a
  856     # path for INSTALL within a source directory, because that will
  857     # break other packages using the cache if that directory is
  858     # removed, or if the path is relative.
  859     INSTALL="$ac_install_sh"
  860   fi
  861 fi
  862 echo "$ac_t""$INSTALL" 1>&6
  863 
  864 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  865 # It thinks the first close brace ends the variable substitution.
  866 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  867 
  868 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  869 
  870 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  871 
  872 # Extract the first word of "gcc", so it can be a program name with args.
  873 set dummy gcc; ac_word=$2
  874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  875 echo "configure:876: checking for $ac_word" >&5
  876 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  877   echo $ac_n "(cached) $ac_c" 1>&6
  878 else
  879   if test -n "$CC"; then
  880   ac_cv_prog_CC="$CC" # Let the user override the test.
  881 else
  882   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  883   ac_dummy="$PATH"
  884   for ac_dir in $ac_dummy; do
  885     test -z "$ac_dir" && ac_dir=.
  886     if test -f $ac_dir/$ac_word; then
  887       ac_cv_prog_CC="gcc"
  888       break
  889     fi
  890   done
  891   IFS="$ac_save_ifs"
  892 fi
  893 fi
  894 CC="$ac_cv_prog_CC"
  895 if test -n "$CC"; then
  896   echo "$ac_t""$CC" 1>&6
  897 else
  898   echo "$ac_t""no" 1>&6
  899 fi
  900 
  901 if test -z "$CC"; then
  902   # Extract the first word of "cc", so it can be a program name with args.
  903 set dummy cc; ac_word=$2
  904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  905 echo "configure:906: checking for $ac_word" >&5
  906 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  907   echo $ac_n "(cached) $ac_c" 1>&6
  908 else
  909   if test -n "$CC"; then
  910   ac_cv_prog_CC="$CC" # Let the user override the test.
  911 else
  912   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  913   ac_prog_rejected=no
  914   ac_dummy="$PATH"
  915   for ac_dir in $ac_dummy; do
  916     test -z "$ac_dir" && ac_dir=.
  917     if test -f $ac_dir/$ac_word; then
  918       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  919         ac_prog_rejected=yes
  920     continue
  921       fi
  922       ac_cv_prog_CC="cc"
  923       break
  924     fi
  925   done
  926   IFS="$ac_save_ifs"
  927 if test $ac_prog_rejected = yes; then
  928   # We found a bogon in the path, so make sure we never use it.
  929   set dummy $ac_cv_prog_CC
  930   shift
  931   if test $# -gt 0; then
  932     # We chose a different compiler from the bogus one.
  933     # However, it has the same basename, so the bogon will be chosen
  934     # first if we set CC to just the basename; use the full file name.
  935     shift
  936     set dummy "$ac_dir/$ac_word" "$@"
  937     shift
  938     ac_cv_prog_CC="$@"
  939   fi
  940 fi
  941 fi
  942 fi
  943 CC="$ac_cv_prog_CC"
  944 if test -n "$CC"; then
  945   echo "$ac_t""$CC" 1>&6
  946 else
  947   echo "$ac_t""no" 1>&6
  948 fi
  949 
  950   if test -z "$CC"; then
  951     case "`uname -s`" in
  952     *win32* | *WIN32*)
  953       # Extract the first word of "cl", so it can be a program name with args.
  954 set dummy cl; ac_word=$2
  955 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  956 echo "configure:957: checking for $ac_word" >&5
  957 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  958   echo $ac_n "(cached) $ac_c" 1>&6
  959 else
  960   if test -n "$CC"; then
  961   ac_cv_prog_CC="$CC" # Let the user override the test.
  962 else
  963   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  964   ac_dummy="$PATH"
  965   for ac_dir in $ac_dummy; do
  966     test -z "$ac_dir" && ac_dir=.
  967     if test -f $ac_dir/$ac_word; then
  968       ac_cv_prog_CC="cl"
  969       break
  970     fi
  971   done
  972   IFS="$ac_save_ifs"
  973 fi
  974 fi
  975 CC="$ac_cv_prog_CC"
  976 if test -n "$CC"; then
  977   echo "$ac_t""$CC" 1>&6
  978 else
  979   echo "$ac_t""no" 1>&6
  980 fi
  981  ;;
  982     esac
  983   fi
  984   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  985 fi
  986 
  987 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  988 echo "configure:989: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  989 
  990 ac_ext=c
  991 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  992 ac_cpp='$CPP $CPPFLAGS'
  993 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  994 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  995 cross_compiling=$ac_cv_prog_cc_cross
  996 
  997 cat > conftest.$ac_ext << EOF
  998 
  999 #line 1000 "configure"
 1000 #include "confdefs.h"
 1001 
 1002 main(){return(0);}
 1003 EOF
 1004 if { (eval echo configure:1005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 1005   ac_cv_prog_cc_works=yes
 1006   # If we can't run a trivial program, we are probably using a cross compiler.
 1007   if (./conftest; exit) 2>/dev/null; then
 1008     ac_cv_prog_cc_cross=no
 1009   else
 1010     ac_cv_prog_cc_cross=yes
 1011   fi
 1012 else
 1013   echo "configure: failed program was:" >&5
 1014   cat conftest.$ac_ext >&5
 1015   ac_cv_prog_cc_works=no
 1016 fi
 1017 rm -fr conftest*
 1018 ac_ext=C
 1019 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 1020 ac_cpp='$CXXCPP $CPPFLAGS'
 1021 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 1022 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 1023 cross_compiling=$ac_cv_prog_cxx_cross
 1024 
 1025 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
 1026 if test $ac_cv_prog_cc_works = no; then
 1027   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 1028 fi
 1029 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 1030 echo "configure:1031: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 1031 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 1032 cross_compiling=$ac_cv_prog_cc_cross
 1033 
 1034 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
 1035 echo "configure:1036: checking whether we are using GNU C" >&5
 1036 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
 1037   echo $ac_n "(cached) $ac_c" 1>&6
 1038 else
 1039   cat > conftest.c <<EOF
 1040 #ifdef __GNUC__
 1041   yes;
 1042 #endif
 1043 EOF
 1044 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 1045   ac_cv_prog_gcc=yes
 1046 else
 1047   ac_cv_prog_gcc=no
 1048 fi
 1049 fi
 1050 
 1051 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 1052 
 1053 if test $ac_cv_prog_gcc = yes; then
 1054   GCC=yes
 1055 else
 1056   GCC=
 1057 fi
 1058 
 1059 ac_test_CFLAGS="${CFLAGS+set}"
 1060 ac_save_CFLAGS="$CFLAGS"
 1061 CFLAGS=
 1062 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
 1063 echo "configure:1064: checking whether ${CC-cc} accepts -g" >&5
 1064 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
 1065   echo $ac_n "(cached) $ac_c" 1>&6
 1066 else
 1067   echo 'void f(){}' > conftest.c
 1068 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 1069   ac_cv_prog_cc_g=yes
 1070 else
 1071   ac_cv_prog_cc_g=no
 1072 fi
 1073 rm -f conftest*
 1074 
 1075 fi
 1076 
 1077 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 1078 if test "$ac_test_CFLAGS" = set; then
 1079   CFLAGS="$ac_save_CFLAGS"
 1080 elif test $ac_cv_prog_cc_g = yes; then
 1081   if test "$GCC" = yes; then
 1082     CFLAGS="-g -O2"
 1083   else
 1084     CFLAGS="-g"
 1085   fi
 1086 else
 1087   if test "$GCC" = yes; then
 1088     CFLAGS="-O2"
 1089   else
 1090     CFLAGS=
 1091   fi
 1092 fi
 1093 
 1094 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
 1095 do
 1096 # Extract the first word of "$ac_prog", so it can be a program name with args.
 1097 set dummy $ac_prog; ac_word=$2
 1098 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 1099 echo "configure:1100: checking for $ac_word" >&5
 1100 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
 1101   echo $ac_n "(cached) $ac_c" 1>&6
 1102 else
 1103   if test -n "$CXX"; then
 1104   ac_cv_prog_CXX="$CXX" # Let the user override the test.
 1105 else
 1106   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 1107   ac_dummy="$PATH"
 1108   for ac_dir in $ac_dummy; do
 1109     test -z "$ac_dir" && ac_dir=.
 1110     if test -f $ac_dir/$ac_word; then
 1111       ac_cv_prog_CXX="$ac_prog"
 1112       break
 1113     fi
 1114   done
 1115   IFS="$ac_save_ifs"
 1116 fi
 1117 fi
 1118 CXX="$ac_cv_prog_CXX"
 1119 if test -n "$CXX"; then
 1120   echo "$ac_t""$CXX" 1>&6
 1121 else
 1122   echo "$ac_t""no" 1>&6
 1123 fi
 1124 
 1125 test -n "$CXX" && break
 1126 done
 1127 test -n "$CXX" || CXX="gcc"
 1128 
 1129 
 1130 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 1131 echo "configure:1132: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
 1132 
 1133 ac_ext=C
 1134 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 1135 ac_cpp='$CXXCPP $CPPFLAGS'
 1136 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 1137 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 1138 cross_compiling=$ac_cv_prog_cxx_cross
 1139 
 1140 cat > conftest.$ac_ext << EOF
 1141 
 1142 #line 1143 "configure"
 1143 #include "confdefs.h"
 1144 
 1145 int main(){return(0);}
 1146 EOF
 1147 if { (eval echo configure:1148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 1148   ac_cv_prog_cxx_works=yes
 1149   # If we can't run a trivial program, we are probably using a cross compiler.
 1150   if (./conftest; exit) 2>/dev/null; then
 1151     ac_cv_prog_cxx_cross=no
 1152   else
 1153     ac_cv_prog_cxx_cross=yes
 1154   fi
 1155 else
 1156   echo "configure: failed program was:" >&5
 1157   cat conftest.$ac_ext >&5
 1158   ac_cv_prog_cxx_works=no
 1159 fi
 1160 rm -fr conftest*
 1161 ac_ext=C
 1162 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 1163 ac_cpp='$CXXCPP $CPPFLAGS'
 1164 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 1165 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 1166 cross_compiling=$ac_cv_prog_cxx_cross
 1167 
 1168 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
 1169 if test $ac_cv_prog_cxx_works = no; then
 1170   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
 1171 fi
 1172 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 1173 echo "configure:1174: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
 1174 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
 1175 cross_compiling=$ac_cv_prog_cxx_cross
 1176 
 1177 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
 1178 echo "configure:1179: checking whether we are using GNU C++" >&5
 1179 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
 1180   echo $ac_n "(cached) $ac_c" 1>&6
 1181 else
 1182   cat > conftest.C <<EOF
 1183 #ifdef __GNUC__
 1184   yes;
 1185 #endif
 1186 EOF
 1187 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 1188   ac_cv_prog_gxx=yes
 1189 else
 1190   ac_cv_prog_gxx=no
 1191 fi
 1192 fi
 1193 
 1194 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
 1195 
 1196 if test $ac_cv_prog_gxx = yes; then
 1197   GXX=yes
 1198 else
 1199   GXX=
 1200 fi
 1201 
 1202 ac_test_CXXFLAGS="${CXXFLAGS+set}"
 1203 ac_save_CXXFLAGS="$CXXFLAGS"
 1204 CXXFLAGS=
 1205 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
 1206 echo "configure:1207: checking whether ${CXX-g++} accepts -g" >&5
 1207 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
 1208   echo $ac_n "(cached) $ac_c" 1>&6
 1209 else
 1210   echo 'void f(){}' > conftest.cc
 1211 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
 1212   ac_cv_prog_cxx_g=yes
 1213 else
 1214   ac_cv_prog_cxx_g=no
 1215 fi
 1216 rm -f conftest*
 1217 
 1218 fi
 1219 
 1220 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
 1221 if test "$ac_test_CXXFLAGS" = set; then
 1222   CXXFLAGS="$ac_save_CXXFLAGS"
 1223 elif test $ac_cv_prog_cxx_g = yes; then
 1224   if test "$GXX" = yes; then
 1225     CXXFLAGS="-g -O2"
 1226   else
 1227     CXXFLAGS="-g"
 1228   fi
 1229 else
 1230   if test "$GXX" = yes; then
 1231     CXXFLAGS="-O2"
 1232   else
 1233     CXXFLAGS=
 1234   fi
 1235 fi
 1236 
 1237 for ac_declaration in \
 1238    ''\
 1239    '#include <stdlib.h>' \
 1240    'extern "C" void std::exit (int) throw (); using std::exit;' \
 1241    'extern "C" void std::exit (int); using std::exit;' \
 1242    'extern "C" void exit (int) throw ();' \
 1243    'extern "C" void exit (int);' \
 1244    'void exit (int);'
 1245 do
 1246   cat > conftest.$ac_ext <<EOF
 1247 #line 1248 "configure"
 1248 #include "confdefs.h"
 1249 #include <stdlib.h>
 1250 $ac_declaration
 1251 int main() {
 1252 exit (42);
 1253 ; return 0; }
 1254 EOF
 1255 if { (eval echo configure:1256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 1256   :
 1257 else
 1258   echo "configure: failed program was:" >&5
 1259   cat conftest.$ac_ext >&5
 1260   rm -rf conftest*
 1261   continue
 1262 fi
 1263 rm -f conftest*
 1264   cat > conftest.$ac_ext <<EOF
 1265 #line 1266 "configure"
 1266 #include "confdefs.h"
 1267 $ac_declaration
 1268 int main() {
 1269 exit (42);
 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   break
 1275 else
 1276   echo "configure: failed program was:" >&5
 1277   cat conftest.$ac_ext >&5
 1278 fi
 1279 rm -f conftest*
 1280 done
 1281 if test -n "$ac_declaration"; then
 1282   echo '#ifdef __cplusplus' >>confdefs.h
 1283   echo $ac_declaration      >>confdefs.h
 1284   echo '#endif'             >>confdefs.h
 1285 fi
 1286 
 1287 
 1288 
 1289 
 1290 echo $ac_n "checking whether compiler handles exceptions""... $ac_c" 1>&6
 1291 echo "configure:1292: checking whether compiler handles exceptions" >&5
 1292 cat > conftest.$ac_ext <<EOF
 1293 #line 1294 "configure"
 1294 #include "confdefs.h"
 1295 
 1296 int main() {
 1297 try{}catch(int e){}
 1298 ; return 0; }
 1299 EOF
 1300 if { (eval echo configure:1301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 1301   rm -rf conftest*
 1302   echo "$ac_t""yes" 1>&6
 1303 else
 1304   echo "configure: failed program was:" >&5
 1305   cat conftest.$ac_ext >&5
 1306   rm -rf conftest*
 1307   echo "$ac_t""no" 1>&6
 1308    echo $ac_n "checking whether compiler needs -fhandle-exceptions""... $ac_c" 1>&6
 1309 echo "configure:1310: checking whether compiler needs -fhandle-exceptions" >&5
 1310    CXXFLAGS="-fhandle-exceptions -g"
 1311    __needs_excepthand_flag="-fhandle-exceptions"
 1312    cat > conftest.$ac_ext <<EOF
 1313 #line 1314 "configure"
 1314 #include "confdefs.h"
 1315 
 1316 int main() {
 1317 try{}catch(int e){}
 1318 ; return 0; }
 1319 EOF
 1320 if { (eval echo configure:1321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 1321   rm -rf conftest*
 1322   echo "$ac_t""yes" 1>&6
 1323 else
 1324   echo "configure: failed program was:" >&5
 1325   cat conftest.$ac_ext >&5
 1326   rm -rf conftest*
 1327   echo "$ac_t""no" 1>&6
 1328       { echo "configure: error: C++ compiler must support exception handling." 1>&2; exit 1; }
 1329 fi
 1330 rm -f conftest*
 1331 
 1332 fi
 1333 rm -f conftest*
 1334 
 1335 
 1336 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
 1337 echo "configure:1338: checking how to run the C++ preprocessor" >&5
 1338 if test -z "$CXXCPP"; then
 1339 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
 1340   echo $ac_n "(cached) $ac_c" 1>&6
 1341 else
 1342   ac_ext=C
 1343 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 1344 ac_cpp='$CXXCPP $CPPFLAGS'
 1345 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 1346 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 1347 cross_compiling=$ac_cv_prog_cxx_cross
 1348   CXXCPP="${CXX-g++} -E"
 1349   cat > conftest.$ac_ext <<EOF
 1350 #line 1351 "configure"
 1351 #include "confdefs.h"
 1352 #include <stdlib.h>
 1353 EOF
 1354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 1355 { (eval echo configure:1356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 1356 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 1357 if test -z "$ac_err"; then
 1358   :
 1359 else
 1360   echo "$ac_err" >&5
 1361   echo "configure: failed program was:" >&5
 1362   cat conftest.$ac_ext >&5
 1363   rm -rf conftest*
 1364   CXXCPP=/lib/cpp
 1365 fi
 1366 rm -f conftest*
 1367   ac_cv_prog_CXXCPP="$CXXCPP"
 1368 ac_ext=C
 1369 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 1370 ac_cpp='$CXXCPP $CPPFLAGS'
 1371 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 1372 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 1373 cross_compiling=$ac_cv_prog_cxx_cross
 1374 fi
 1375 fi
 1376 CXXCPP="$ac_cv_prog_CXXCPP"
 1377 echo "$ac_t""$CXXCPP" 1>&6
 1378 
 1379 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
 1380 echo "configure:1381: checking for ANSI C header files" >&5
 1381 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
 1382   echo $ac_n "(cached) $ac_c" 1>&6
 1383 else
 1384   cat > conftest.$ac_ext <<EOF
 1385 #line 1386 "configure"
 1386 #include "confdefs.h"
 1387 #include <stdlib.h>
 1388 #include <stdarg.h>
 1389 #include <string.h>
 1390 #include <float.h>
 1391 EOF
 1392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 1393 { (eval echo configure:1394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 1394 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 1395 if test -z "$ac_err"; then
 1396   rm -rf conftest*
 1397   ac_cv_header_stdc=yes
 1398 else
 1399   echo "$ac_err" >&5
 1400   echo "configure: failed program was:" >&5
 1401   cat conftest.$ac_ext >&5
 1402   rm -rf conftest*
 1403   ac_cv_header_stdc=no
 1404 fi
 1405 rm -f conftest*
 1406 
 1407 if test $ac_cv_header_stdc = yes; then
 1408   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 1409 cat > conftest.$ac_ext <<EOF
 1410 #line 1411 "configure"
 1411 #include "confdefs.h"
 1412 #include <string.h>
 1413 EOF
 1414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 1415   egrep "memchr" >/dev/null 2>&1; then
 1416   :
 1417 else
 1418   rm -rf conftest*
 1419   ac_cv_header_stdc=no
 1420 fi
 1421 rm -f conftest*
 1422 
 1423 fi
 1424 
 1425 if test $ac_cv_header_stdc = yes; then
 1426   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 1427 cat > conftest.$ac_ext <<EOF
 1428 #line 1429 "configure"
 1429 #include "confdefs.h"
 1430 #include <stdlib.h>
 1431 EOF
 1432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 1433   egrep "free" >/dev/null 2>&1; then
 1434   :
 1435 else
 1436   rm -rf conftest*
 1437   ac_cv_header_stdc=no
 1438 fi
 1439 rm -f conftest*
 1440 
 1441 fi
 1442 
 1443 if test $ac_cv_header_stdc = yes; then
 1444   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 1445 if test "$cross_compiling" = yes; then
 1446   :
 1447 else
 1448   cat > conftest.$ac_ext <<EOF
 1449 #line 1450 "configure"
 1450 #include "confdefs.h"
 1451 #include <ctype.h>
 1452 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 1453 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 1454 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 1455 int main () { int i; for (i = 0; i < 256; i++)
 1456 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
 1457 exit (0); }
 1458 
 1459 EOF
 1460 if { (eval echo configure:1461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 1461 then
 1462   :
 1463 else
 1464   echo "configure: failed program was:" >&5
 1465   cat conftest.$ac_ext >&5
 1466   rm -fr conftest*
 1467   ac_cv_header_stdc=no
 1468 fi
 1469 rm -fr conftest*
 1470 fi
 1471 
 1472 fi
 1473 fi
 1474 
 1475 echo "$ac_t""$ac_cv_header_stdc" 1>&6
 1476 if test $ac_cv_header_stdc = yes; then
 1477   cat >> confdefs.h <<\EOF
 1478 #define STDC_HEADERS 1
 1479 EOF
 1480 
 1481 fi
 1482 
 1483 for ac_hdr in arpa/inet.h assert.h errno.h fcntl.h limits.h netdb.h \
 1484          netinet/in.h stdarg.h stdio.h stdlib.h string.h sys/socket.h \
 1485              sys/stat.h sys/time.h sys/types.h unistd.h pthread.h
 1486 do
 1487 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 1488 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 1489 echo "configure:1490: checking for $ac_hdr" >&5
 1490 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 1491   echo $ac_n "(cached) $ac_c" 1>&6
 1492 else
 1493   cat > conftest.$ac_ext <<EOF
 1494 #line 1495 "configure"
 1495 #include "confdefs.h"
 1496 #include <$ac_hdr>
 1497 EOF
 1498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 1499 { (eval echo configure:1500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 1500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 1501 if test -z "$ac_err"; then
 1502   rm -rf conftest*
 1503   eval "ac_cv_header_$ac_safe=yes"
 1504 else
 1505   echo "$ac_err" >&5
 1506   echo "configure: failed program was:" >&5
 1507   cat conftest.$ac_ext >&5
 1508   rm -rf conftest*
 1509   eval "ac_cv_header_$ac_safe=no"
 1510 fi
 1511 rm -f conftest*
 1512 fi
 1513 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 1514   echo "$ac_t""yes" 1>&6
 1515     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 1516   cat >> confdefs.h <<EOF
 1517 #define $ac_tr_hdr 1
 1518 EOF
 1519  
 1520 else
 1521   echo "$ac_t""no" 1>&6
 1522 fi
 1523 done
 1524 
 1525 
 1526 echo $ac_n "checking for working const""... $ac_c" 1>&6
 1527 echo "configure:1528: checking for working const" >&5
 1528 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
 1529   echo $ac_n "(cached) $ac_c" 1>&6
 1530 else
 1531   cat > conftest.$ac_ext <<EOF
 1532 #line 1533 "configure"
 1533 #include "confdefs.h"
 1534 
 1535 int main() {
 1536 
 1537 /* Ultrix mips cc rejects this.  */
 1538 typedef int charset[2]; const charset x;
 1539 /* SunOS 4.1.1 cc rejects this.  */
 1540 char const *const *ccp;
 1541 char **p;
 1542 /* NEC SVR4.0.2 mips cc rejects this.  */
 1543 struct point {int x, y;};
 1544 static struct point const zero = {0,0};
 1545 /* AIX XL C 1.02.0.0 rejects this.
 1546    It does not let you subtract one const X* pointer from another in an arm
 1547    of an if-expression whose if-part is not a constant expression */
 1548 const char *g = "string";
 1549 ccp = &g + (g ? g-g : 0);
 1550 /* HPUX 7.0 cc rejects these. */
 1551 ++ccp;
 1552 p = (char**) ccp;
 1553 ccp = (char const *const *) p;
 1554 { /* SCO 3.2v4 cc rejects this.  */
 1555   char *t;
 1556   char const *s = 0 ? (char *) 0 : (char const *) 0;
 1557 
 1558   *t++ = 0;
 1559 }
 1560 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 1561   int x[] = {25, 17};
 1562   const int *foo = &x[0];
 1563   ++foo;
 1564 }
 1565 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 1566   typedef const int *iptr;
 1567   iptr p = 0;
 1568   ++p;
 1569 }
 1570 { /* AIX XL C 1.02.0.0 rejects this saying
 1571      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 1572   struct s { int j; const int *ap[3]; };
 1573   struct s *b; b->j = 5;
 1574 }
 1575 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 1576   const int foo = 10;
 1577 }
 1578 
 1579 ; return 0; }
 1580 EOF
 1581 if { (eval echo configure:1582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 1582   rm -rf conftest*
 1583   ac_cv_c_const=yes
 1584 else
 1585   echo "configure: failed program was:" >&5
 1586   cat conftest.$ac_ext >&5
 1587   rm -rf conftest*
 1588   ac_cv_c_const=no
 1589 fi
 1590 rm -f conftest*
 1591 fi
 1592 
 1593 echo "$ac_t""$ac_cv_c_const" 1>&6
 1594 if test $ac_cv_c_const = no; then
 1595   cat >> confdefs.h <<\EOF
 1596 #define const 
 1597 EOF
 1598 
 1599 fi
 1600 
 1601 echo $ac_n "checking for inline""... $ac_c" 1>&6
 1602 echo "configure:1603: checking for inline" >&5
 1603 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
 1604   echo $ac_n "(cached) $ac_c" 1>&6
 1605 else
 1606   ac_cv_c_inline=no
 1607 for ac_kw in inline __inline__ __inline; do
 1608   cat > conftest.$ac_ext <<EOF
 1609 #line 1610 "configure"
 1610 #include "confdefs.h"
 1611 
 1612 int main() {
 1613 } $ac_kw foo() {
 1614 ; return 0; }
 1615 EOF
 1616 if { (eval echo configure:1617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 1617   rm -rf conftest*
 1618   ac_cv_c_inline=$ac_kw; break
 1619 else
 1620   echo "configure: failed program was:" >&5
 1621   cat conftest.$ac_ext >&5
 1622 fi
 1623 rm -f conftest*
 1624 done
 1625 
 1626 fi
 1627 
 1628 echo "$ac_t""$ac_cv_c_inline" 1>&6
 1629 case "$ac_cv_c_inline" in
 1630   inline | yes) ;;
 1631   no) cat >> confdefs.h <<\EOF
 1632 #define inline 
 1633 EOF
 1634  ;;
 1635   *)  cat >> confdefs.h <<EOF
 1636 #define inline $ac_cv_c_inline
 1637 EOF
 1638  ;;
 1639 esac
 1640 
 1641 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
 1642 echo "configure:1643: checking whether time.h and sys/time.h may both be included" >&5
 1643 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
 1644   echo $ac_n "(cached) $ac_c" 1>&6
 1645 else
 1646   cat > conftest.$ac_ext <<EOF
 1647 #line 1648 "configure"
 1648 #include "confdefs.h"
 1649 #include <sys/types.h>
 1650 #include <sys/time.h>
 1651 #include <time.h>
 1652 int main() {
 1653 struct tm *tp;
 1654 ; return 0; }
 1655 EOF
 1656 if { (eval echo configure:1657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 1657   rm -rf conftest*
 1658   ac_cv_header_time=yes
 1659 else
 1660   echo "configure: failed program was:" >&5
 1661   cat conftest.$ac_ext >&5
 1662   rm -rf conftest*
 1663   ac_cv_header_time=no
 1664 fi
 1665 rm -f conftest*
 1666 fi
 1667 
 1668 echo "$ac_t""$ac_cv_header_time" 1>&6
 1669 if test $ac_cv_header_time = yes; then
 1670   cat >> confdefs.h <<\EOF
 1671 #define TIME_WITH_SYS_TIME 1
 1672 EOF
 1673 
 1674 fi
 1675 
 1676 
 1677 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
 1678 echo "configure:1679: checking for 8-bit clean memcmp" >&5
 1679 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
 1680   echo $ac_n "(cached) $ac_c" 1>&6
 1681 else
 1682   if test "$cross_compiling" = yes; then
 1683   ac_cv_func_memcmp_clean=no
 1684 else
 1685   cat > conftest.$ac_ext <<EOF
 1686 #line 1687 "configure"
 1687 #include "confdefs.h"
 1688 
 1689 main()
 1690 {
 1691   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
 1692   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
 1693 }
 1694 
 1695 EOF
 1696 if { (eval echo configure:1697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 1697 then
 1698   ac_cv_func_memcmp_clean=yes
 1699 else
 1700   echo "configure: failed program was:" >&5
 1701   cat conftest.$ac_ext >&5
 1702   rm -fr conftest*
 1703   ac_cv_func_memcmp_clean=no
 1704 fi
 1705 rm -fr conftest*
 1706 fi
 1707 
 1708 fi
 1709 
 1710 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
 1711 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
 1712 
 1713 for ac_func in select strdup strstr strtol getopt_long
 1714 do
 1715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 1716 echo "configure:1717: checking for $ac_func" >&5
 1717 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 1718   echo $ac_n "(cached) $ac_c" 1>&6
 1719 else
 1720   cat > conftest.$ac_ext <<EOF
 1721 #line 1722 "configure"
 1722 #include "confdefs.h"
 1723 /* System header to define __stub macros and hopefully few prototypes,
 1724     which can conflict with char $ac_func(); below.  */
 1725 #include <assert.h>
 1726 /* Override any gcc2 internal prototype to avoid an error.  */
 1727 #ifdef __cplusplus
 1728 extern "C"
 1729 #endif
 1730 /* We use char because int might match the return type of a gcc2
 1731     builtin and then its argument prototype would still apply.  */
 1732 char $ac_func();
 1733 
 1734 int main() {
 1735 
 1736 /* The GNU C library defines this for functions which it implements
 1737     to always fail with ENOSYS.  Some functions are actually named
 1738     something starting with __ and the normal name is an alias.  */
 1739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 1740 choke me
 1741 #else
 1742 $ac_func();
 1743 #endif
 1744 
 1745 ; return 0; }
 1746 EOF
 1747 if { (eval echo configure:1748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 1748   rm -rf conftest*
 1749   eval "ac_cv_func_$ac_func=yes"
 1750 else
 1751   echo "configure: failed program was:" >&5
 1752   cat conftest.$ac_ext >&5
 1753   rm -rf conftest*
 1754   eval "ac_cv_func_$ac_func=no"
 1755 fi
 1756 rm -f conftest*
 1757 fi
 1758 
 1759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 1760   echo "$ac_t""yes" 1>&6
 1761     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 1762   cat >> confdefs.h <<EOF
 1763 #define $ac_tr_func 1
 1764 EOF
 1765  
 1766 else
 1767   echo "$ac_t""no" 1>&6
 1768 fi
 1769 done
 1770 
 1771 for ac_func in snprintf
 1772 do
 1773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 1774 echo "configure:1775: checking for $ac_func" >&5
 1775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 1776   echo $ac_n "(cached) $ac_c" 1>&6
 1777 else
 1778   cat > conftest.$ac_ext <<EOF
 1779 #line 1780 "configure"
 1780 #include "confdefs.h"
 1781 /* System header to define __stub macros and hopefully few prototypes,
 1782     which can conflict with char $ac_func(); below.  */
 1783 #include <assert.h>
 1784 /* Override any gcc2 internal prototype to avoid an error.  */
 1785 #ifdef __cplusplus
 1786 extern "C"
 1787 #endif
 1788 /* We use char because int might match the return type of a gcc2
 1789     builtin and then its argument prototype would still apply.  */
 1790 char $ac_func();
 1791 
 1792 int main() {
 1793 
 1794 /* The GNU C library defines this for functions which it implements
 1795     to always fail with ENOSYS.  Some functions are actually named
 1796     something starting with __ and the normal name is an alias.  */
 1797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 1798 choke me
 1799 #else
 1800 $ac_func();
 1801 #endif
 1802 
 1803 ; return 0; }
 1804 EOF
 1805 if { (eval echo configure:1806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 1806   rm -rf conftest*
 1807   eval "ac_cv_func_$ac_func=yes"
 1808 else
 1809   echo "configure: failed program was:" >&5
 1810   cat conftest.$ac_ext >&5
 1811   rm -rf conftest*
 1812   eval "ac_cv_func_$ac_func=no"
 1813 fi
 1814 rm -f conftest*
 1815 fi
 1816 
 1817 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 1818   echo "$ac_t""yes" 1>&6
 1819     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 1820   cat >> confdefs.h <<EOF
 1821 #define $ac_tr_func 1
 1822 EOF
 1823  
 1824 else
 1825   echo "$ac_t""no" 1>&6
 1826 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
 1827 fi
 1828 done
 1829 
 1830 
 1831 
 1832 # Under sysV68, socket and friends are provided by the C library.
 1833 # -linet does not provide socket, but causes multiple definition
 1834 # errors at link-time.  It is thus better to only use the C library.
 1835 # So don't add -linet to the link list unless it's necessary
 1836 echo $ac_n "checking for socket""... $ac_c" 1>&6
 1837 echo "configure:1838: checking for socket" >&5
 1838 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
 1839   echo $ac_n "(cached) $ac_c" 1>&6
 1840 else
 1841   cat > conftest.$ac_ext <<EOF
 1842 #line 1843 "configure"
 1843 #include "confdefs.h"
 1844 /* System header to define __stub macros and hopefully few prototypes,
 1845     which can conflict with char socket(); below.  */
 1846 #include <assert.h>
 1847 /* Override any gcc2 internal prototype to avoid an error.  */
 1848 #ifdef __cplusplus
 1849 extern "C"
 1850 #endif
 1851 /* We use char because int might match the return type of a gcc2
 1852     builtin and then its argument prototype would still apply.  */
 1853 char socket();
 1854 
 1855 int main() {
 1856 
 1857 /* The GNU C library defines this for functions which it implements
 1858     to always fail with ENOSYS.  Some functions are actually named
 1859     something starting with __ and the normal name is an alias.  */
 1860 #if defined (__stub_socket) || defined (__stub___socket)
 1861 choke me
 1862 #else
 1863 socket();
 1864 #endif
 1865 
 1866 ; return 0; }
 1867 EOF
 1868 if { (eval echo configure:1869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 1869   rm -rf conftest*
 1870   eval "ac_cv_func_socket=yes"
 1871 else
 1872   echo "configure: failed program was:" >&5
 1873   cat conftest.$ac_ext >&5
 1874   rm -rf conftest*
 1875   eval "ac_cv_func_socket=no"
 1876 fi
 1877 rm -f conftest*
 1878 fi
 1879 
 1880 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
 1881   echo "$ac_t""yes" 1>&6
 1882   echo "$ac_t""using libc's socket" 1>&6
 1883 else
 1884   echo "$ac_t""no" 1>&6
 1885 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
 1886 echo "configure:1887: checking for socket in -lsocket" >&5
 1887 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
 1888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 1889   echo $ac_n "(cached) $ac_c" 1>&6
 1890 else
 1891   ac_save_LIBS="$LIBS"
 1892 LIBS="-lsocket  $LIBS"
 1893 cat > conftest.$ac_ext <<EOF
 1894 #line 1895 "configure"
 1895 #include "confdefs.h"
 1896 /* Override any gcc2 internal prototype to avoid an error.  */
 1897 #ifdef __cplusplus
 1898 extern "C"
 1899 #endif
 1900 /* We use char because int might match the return type of a gcc2
 1901     builtin and then its argument prototype would still apply.  */
 1902 char socket();
 1903 
 1904 int main() {
 1905 socket()
 1906 ; return 0; }
 1907 EOF
 1908 if { (eval echo configure:1909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 1909   rm -rf conftest*
 1910   eval "ac_cv_lib_$ac_lib_var=yes"
 1911 else
 1912   echo "configure: failed program was:" >&5
 1913   cat conftest.$ac_ext >&5
 1914   rm -rf conftest*
 1915   eval "ac_cv_lib_$ac_lib_var=no"
 1916 fi
 1917 rm -f conftest*
 1918 LIBS="$ac_save_LIBS"
 1919 
 1920 fi
 1921 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 1922   echo "$ac_t""yes" 1>&6
 1923     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
 1924     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 1925   cat >> confdefs.h <<EOF
 1926 #define $ac_tr_lib 1
 1927 EOF
 1928 
 1929   LIBS="-lsocket $LIBS"
 1930 
 1931 else
 1932   echo "$ac_t""no" 1>&6
 1933 fi
 1934 
 1935     echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
 1936 echo "configure:1937: checking for socket in -linet" >&5
 1937 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
 1938 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 1939   echo $ac_n "(cached) $ac_c" 1>&6
 1940 else
 1941   ac_save_LIBS="$LIBS"
 1942 LIBS="-linet  $LIBS"
 1943 cat > conftest.$ac_ext <<EOF
 1944 #line 1945 "configure"
 1945 #include "confdefs.h"
 1946 /* Override any gcc2 internal prototype to avoid an error.  */
 1947 #ifdef __cplusplus
 1948 extern "C"
 1949 #endif
 1950 /* We use char because int might match the return type of a gcc2
 1951     builtin and then its argument prototype would still apply.  */
 1952 char socket();
 1953 
 1954 int main() {
 1955 socket()
 1956 ; return 0; }
 1957 EOF
 1958 if { (eval echo configure:1959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 1959   rm -rf conftest*
 1960   eval "ac_cv_lib_$ac_lib_var=yes"
 1961 else
 1962   echo "configure: failed program was:" >&5
 1963   cat conftest.$ac_ext >&5
 1964   rm -rf conftest*
 1965   eval "ac_cv_lib_$ac_lib_var=no"
 1966 fi
 1967 rm -f conftest*
 1968 LIBS="$ac_save_LIBS"
 1969 
 1970 fi
 1971 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 1972   echo "$ac_t""yes" 1>&6
 1973     ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/^a-zA-Z0-9_/_/g' \
 1974     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 1975   cat >> confdefs.h <<EOF
 1976 #define $ac_tr_lib 1
 1977 EOF
 1978 
 1979   LIBS="-linet $LIBS"
 1980 
 1981 else
 1982   echo "$ac_t""no" 1>&6
 1983 fi
 1984 
 1985 fi
 1986 
 1987 
 1988 # The condition in this test copes with the presence of inet_addr in libc6.
 1989 echo $ac_n "checking for inet_addr""... $ac_c" 1>&6
 1990 echo "configure:1991: checking for inet_addr" >&5
 1991 if eval "test \"`echo '$''{'ac_cv_func_inet_addr'+set}'`\" = set"; then
 1992   echo $ac_n "(cached) $ac_c" 1>&6
 1993 else
 1994   cat > conftest.$ac_ext <<EOF
 1995 #line 1996 "configure"
 1996 #include "confdefs.h"
 1997 /* System header to define __stub macros and hopefully few prototypes,
 1998     which can conflict with char inet_addr(); below.  */
 1999 #include <assert.h>
 2000 /* Override any gcc2 internal prototype to avoid an error.  */
 2001 #ifdef __cplusplus
 2002 extern "C"
 2003 #endif
 2004 /* We use char because int might match the return type of a gcc2
 2005     builtin and then its argument prototype would still apply.  */
 2006 char inet_addr();
 2007 
 2008 int main() {
 2009 
 2010 /* The GNU C library defines this for functions which it implements
 2011     to always fail with ENOSYS.  Some functions are actually named
 2012     something starting with __ and the normal name is an alias.  */
 2013 #if defined (__stub_inet_addr) || defined (__stub___inet_addr)
 2014 choke me
 2015 #else
 2016 inet_addr();
 2017 #endif
 2018 
 2019 ; return 0; }
 2020 EOF
 2021 if { (eval echo configure:2022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 2022   rm -rf conftest*
 2023   eval "ac_cv_func_inet_addr=yes"
 2024 else
 2025   echo "configure: failed program was:" >&5
 2026   cat conftest.$ac_ext >&5
 2027   rm -rf conftest*
 2028   eval "ac_cv_func_inet_addr=no"
 2029 fi
 2030 rm -f conftest*
 2031 fi
 2032 
 2033 if eval "test \"`echo '$ac_cv_func_'inet_addr`\" = yes"; then
 2034   echo "$ac_t""yes" 1>&6
 2035   echo "$ac_t""using libc's inet_addr" 1>&6
 2036 else
 2037   echo "$ac_t""no" 1>&6
 2038 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
 2039 echo "configure:2040: checking for inet_addr in -lnsl" >&5
 2040 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
 2041 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 2042   echo $ac_n "(cached) $ac_c" 1>&6
 2043 else
 2044   ac_save_LIBS="$LIBS"
 2045 LIBS="-lnsl  $LIBS"
 2046 cat > conftest.$ac_ext <<EOF
 2047 #line 2048 "configure"
 2048 #include "confdefs.h"
 2049 /* Override any gcc2 internal prototype to avoid an error.  */
 2050 #ifdef __cplusplus
 2051 extern "C"
 2052 #endif
 2053 /* We use char because int might match the return type of a gcc2
 2054     builtin and then its argument prototype would still apply.  */
 2055 char inet_addr();
 2056 
 2057 int main() {
 2058 inet_addr()
 2059 ; return 0; }
 2060 EOF
 2061 if { (eval echo configure:2062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 2062   rm -rf conftest*
 2063   eval "ac_cv_lib_$ac_lib_var=yes"
 2064 else
 2065   echo "configure: failed program was:" >&5
 2066   cat conftest.$ac_ext >&5
 2067   rm -rf conftest*
 2068   eval "ac_cv_lib_$ac_lib_var=no"
 2069 fi
 2070 rm -f conftest*
 2071 LIBS="$ac_save_LIBS"
 2072 
 2073 fi
 2074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 2075   echo "$ac_t""yes" 1>&6
 2076     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
 2077     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 2078   cat >> confdefs.h <<EOF
 2079 #define $ac_tr_lib 1
 2080 EOF
 2081 
 2082   LIBS="-lnsl $LIBS"
 2083 
 2084 else
 2085   echo "$ac_t""no" 1>&6
 2086 fi
 2087 
 2088 fi
 2089 
 2090 
 2091 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
 2092 echo "configure:2093: checking for getopt_long" >&5
 2093 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
 2094   echo $ac_n "(cached) $ac_c" 1>&6
 2095 else
 2096   cat > conftest.$ac_ext <<EOF
 2097 #line 2098 "configure"
 2098 #include "confdefs.h"
 2099 /* System header to define __stub macros and hopefully few prototypes,
 2100     which can conflict with char getopt_long(); below.  */
 2101 #include <assert.h>
 2102 /* Override any gcc2 internal prototype to avoid an error.  */
 2103 #ifdef __cplusplus
 2104 extern "C"
 2105 #endif
 2106 /* We use char because int might match the return type of a gcc2
 2107     builtin and then its argument prototype would still apply.  */
 2108 char getopt_long();
 2109 
 2110 int main() {
 2111 
 2112 /* The GNU C library defines this for functions which it implements
 2113     to always fail with ENOSYS.  Some functions are actually named
 2114     something starting with __ and the normal name is an alias.  */
 2115 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
 2116 choke me
 2117 #else
 2118 getopt_long();
 2119 #endif
 2120 
 2121 ; return 0; }
 2122 EOF
 2123 if { (eval echo configure:2124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 2124   rm -rf conftest*
 2125   eval "ac_cv_func_getopt_long=yes"
 2126 else
 2127   echo "configure: failed program was:" >&5
 2128   cat conftest.$ac_ext >&5
 2129   rm -rf conftest*
 2130   eval "ac_cv_func_getopt_long=no"
 2131 fi
 2132 rm -f conftest*
 2133 fi
 2134 
 2135 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
 2136   echo "$ac_t""yes" 1>&6
 2137   echo "$ac_t""using libc's getopt_long" 1>&6
 2138 else
 2139   echo "$ac_t""no" 1>&6
 2140 echo $ac_n "checking for getopt_long in -liberty""... $ac_c" 1>&6
 2141 echo "configure:2142: checking for getopt_long in -liberty" >&5
 2142 ac_lib_var=`echo iberty'_'getopt_long | sed 'y%./+-%__p_%'`
 2143 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 2144   echo $ac_n "(cached) $ac_c" 1>&6
 2145 else
 2146   ac_save_LIBS="$LIBS"
 2147 LIBS="-liberty  $LIBS"
 2148 cat > conftest.$ac_ext <<EOF
 2149 #line 2150 "configure"
 2150 #include "confdefs.h"
 2151 /* Override any gcc2 internal prototype to avoid an error.  */
 2152 #ifdef __cplusplus
 2153 extern "C"
 2154 #endif
 2155 /* We use char because int might match the return type of a gcc2
 2156     builtin and then its argument prototype would still apply.  */
 2157 char getopt_long();
 2158 
 2159 int main() {
 2160 getopt_long()
 2161 ; return 0; }
 2162 EOF
 2163 if { (eval echo configure:2164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 2164   rm -rf conftest*
 2165   eval "ac_cv_lib_$ac_lib_var=yes"
 2166 else
 2167   echo "configure: failed program was:" >&5
 2168   cat conftest.$ac_ext >&5
 2169   rm -rf conftest*
 2170   eval "ac_cv_lib_$ac_lib_var=no"
 2171 fi
 2172 rm -f conftest*
 2173 LIBS="$ac_save_LIBS"
 2174 
 2175 fi
 2176 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 2177   echo "$ac_t""yes" 1>&6
 2178     ac_tr_lib=HAVE_LIB`echo iberty | sed -e 's/^a-zA-Z0-9_/_/g' \
 2179     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 2180   cat >> confdefs.h <<EOF
 2181 #define $ac_tr_lib 1
 2182 EOF
 2183 
 2184   LIBS="-liberty $LIBS"
 2185 
 2186 else
 2187   echo "$ac_t""no" 1>&6
 2188 fi
 2189 
 2190 fi
 2191 
 2192 
 2193 echo $ac_n "checking for pthread_join in -lpthread""... $ac_c" 1>&6
 2194 echo "configure:2195: checking for pthread_join in -lpthread" >&5
 2195 ac_lib_var=`echo pthread'_'pthread_join | sed 'y%./+-%__p_%'`
 2196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 2197   echo $ac_n "(cached) $ac_c" 1>&6
 2198 else
 2199   ac_save_LIBS="$LIBS"
 2200 LIBS="-lpthread  $LIBS"
 2201 cat > conftest.$ac_ext <<EOF
 2202 #line 2203 "configure"
 2203 #include "confdefs.h"
 2204 /* Override any gcc2 internal prototype to avoid an error.  */
 2205 #ifdef __cplusplus
 2206 extern "C"
 2207 #endif
 2208 /* We use char because int might match the return type of a gcc2
 2209     builtin and then its argument prototype would still apply.  */
 2210 char pthread_join();
 2211 
 2212 int main() {
 2213 pthread_join()
 2214 ; return 0; }
 2215 EOF
 2216 if { (eval echo configure:2217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 2217   rm -rf conftest*
 2218   eval "ac_cv_lib_$ac_lib_var=yes"
 2219 else
 2220   echo "configure: failed program was:" >&5
 2221   cat conftest.$ac_ext >&5
 2222   rm -rf conftest*
 2223   eval "ac_cv_lib_$ac_lib_var=no"
 2224 fi
 2225 rm -f conftest*
 2226 LIBS="$ac_save_LIBS"
 2227 
 2228 fi
 2229 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 2230   echo "$ac_t""yes" 1>&6
 2231     ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
 2232     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 2233   cat >> confdefs.h <<EOF
 2234 #define $ac_tr_lib 1
 2235 EOF
 2236 
 2237   LIBS="-lpthread $LIBS"
 2238 
 2239 else
 2240   echo "$ac_t""no" 1>&6
 2241 fi
 2242 
 2243 
 2244 trap '' 1 2 15
 2245 cat > confcache <<\EOF
 2246 # This file is a shell script that caches the results of configure
 2247 # tests run on this system so they can be shared between configure
 2248 # scripts and configure runs.  It is not useful on other systems.
 2249 # If it contains results you don't want to keep, you may remove or edit it.
 2250 #
 2251 # By default, configure uses ./config.cache as the cache file,
 2252 # creating it if it does not exist already.  You can give configure
 2253 # the --cache-file=FILE option to use a different cache file; that is
 2254 # what configure does when it calls configure scripts in
 2255 # subdirectories, so they share the cache.
 2256 # Giving --cache-file=/dev/null disables caching, for debugging configure.
 2257 # config.status only pays attention to the cache file if you give it the
 2258 # --recheck option to rerun configure.
 2259 #
 2260 EOF
 2261 # The following way of writing the cache mishandles newlines in values,
 2262 # but we know of no workaround that is simple, portable, and efficient.
 2263 # So, don't put newlines in cache variables' values.
 2264 # Ultrix sh set writes to stderr and can't be redirected directly,
 2265 # and sets the high bit in the cache file unless we assign to the vars.
 2266 (set) 2>&1 |
 2267   case `(ac_space=' '; set | grep ac_space) 2>&1` in
 2268   *ac_space=\ *)
 2269     # `set' does not quote correctly, so add quotes (double-quote substitution
 2270     # turns \\\\ into \\, and sed turns \\ into \).
 2271     sed -n \
 2272       -e "s/'/'\\\\''/g" \
 2273       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
 2274     ;;
 2275   *)
 2276     # `set' quotes correctly as required by POSIX, so do not add quotes.
 2277     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
 2278     ;;
 2279   esac >> confcache
 2280 if cmp -s $cache_file confcache; then
 2281   :
 2282 else
 2283   if test -w $cache_file; then
 2284     echo "updating cache $cache_file"
 2285     cat confcache > $cache_file
 2286   else
 2287     echo "not updating unwritable cache $cache_file"
 2288   fi
 2289 fi
 2290 rm -f confcache
 2291 
 2292 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 2293 
 2294 test "x$prefix" = xNONE && prefix=$ac_default_prefix
 2295 # Let make expand exec_prefix.
 2296 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 2297 
 2298 # Any assignment to VPATH causes Sun make to only execute
 2299 # the first set of double-colon rules, so remove it if not needed.
 2300 # If there is a colon in the path, we need to keep it.
 2301 if test "x$srcdir" = x.; then
 2302   ac_vpsub='/^[     ]*VPATH[    ]*=[^:]*$/d'
 2303 fi
 2304 
 2305 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
 2306 
 2307 DEFS=-DHAVE_CONFIG_H
 2308 
 2309 # Without the "./", some shells look in PATH for config.status.
 2310 : ${CONFIG_STATUS=./config.status}
 2311 
 2312 echo creating $CONFIG_STATUS
 2313 rm -f $CONFIG_STATUS
 2314 cat > $CONFIG_STATUS <<EOF
 2315 #! /bin/sh
 2316 # Generated automatically by configure.
 2317 # Run this file to recreate the current configuration.
 2318 # This directory was configured as follows,
 2319 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 2320 #
 2321 # $0 $ac_configure_args
 2322 #
 2323 # Compiler output produced by configure, useful for debugging
 2324 # configure, is in ./config.log if it exists.
 2325 
 2326 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
 2327 for ac_option
 2328 do
 2329   case "\$ac_option" in
 2330   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 2331     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
 2332     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
 2333   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
 2334     echo "$CONFIG_STATUS generated by autoconf version 2.13"
 2335     exit 0 ;;
 2336   -help | --help | --hel | --he | --h)
 2337     echo "\$ac_cs_usage"; exit 0 ;;
 2338   *) echo "\$ac_cs_usage"; exit 1 ;;
 2339   esac
 2340 done
 2341 
 2342 ac_given_srcdir=$srcdir
 2343 ac_given_INSTALL="$INSTALL"
 2344 
 2345 trap 'rm -fr `echo "Makefile npadmin.spec config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
 2346 EOF
 2347 cat >> $CONFIG_STATUS <<EOF
 2348 
 2349 # Protect against being on the right side of a sed subst in config.status.
 2350 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
 2351  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
 2352 $ac_vpsub
 2353 $extrasub
 2354 s%@SHELL@%$SHELL%g
 2355 s%@CFLAGS@%$CFLAGS%g
 2356 s%@CPPFLAGS@%$CPPFLAGS%g
 2357 s%@CXXFLAGS@%$CXXFLAGS%g
 2358 s%@FFLAGS@%$FFLAGS%g
 2359 s%@DEFS@%$DEFS%g
 2360 s%@LDFLAGS@%$LDFLAGS%g
 2361 s%@LIBS@%$LIBS%g
 2362 s%@exec_prefix@%$exec_prefix%g
 2363 s%@prefix@%$prefix%g
 2364 s%@program_transform_name@%$program_transform_name%g
 2365 s%@bindir@%$bindir%g
 2366 s%@sbindir@%$sbindir%g
 2367 s%@libexecdir@%$libexecdir%g
 2368 s%@datadir@%$datadir%g
 2369 s%@sysconfdir@%$sysconfdir%g
 2370 s%@sharedstatedir@%$sharedstatedir%g
 2371 s%@localstatedir@%$localstatedir%g
 2372 s%@libdir@%$libdir%g
 2373 s%@includedir@%$includedir%g
 2374 s%@oldincludedir@%$oldincludedir%g
 2375 s%@infodir@%$infodir%g
 2376 s%@mandir@%$mandir%g
 2377 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
 2378 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
 2379 s%@INSTALL_DATA@%$INSTALL_DATA%g
 2380 s%@PACKAGE@%$PACKAGE%g
 2381 s%@VERSION@%$VERSION%g
 2382 s%@ACLOCAL@%$ACLOCAL%g
 2383 s%@AUTOCONF@%$AUTOCONF%g
 2384 s%@AUTOMAKE@%$AUTOMAKE%g
 2385 s%@AUTOHEADER@%$AUTOHEADER%g
 2386 s%@MAKEINFO@%$MAKEINFO%g
 2387 s%@SET_MAKE@%$SET_MAKE%g
 2388 s%@WARNS@%$WARNS%g
 2389 s%@CC@%$CC%g
 2390 s%@CXX@%$CXX%g
 2391 s%@__needs_excepthand_flag@%$__needs_excepthand_flag%g
 2392 s%@CXXCPP@%$CXXCPP%g
 2393 s%@LIBOBJS@%$LIBOBJS%g
 2394 
 2395 CEOF
 2396 EOF
 2397 
 2398 cat >> $CONFIG_STATUS <<\EOF
 2399 
 2400 # Split the substitutions into bite-sized pieces for seds with
 2401 # small command number limits, like on Digital OSF/1 and HP-UX.
 2402 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
 2403 ac_file=1 # Number of current file.
 2404 ac_beg=1 # First line for current file.
 2405 ac_end=$ac_max_sed_cmds # Line after last line for current file.
 2406 ac_more_lines=:
 2407 ac_sed_cmds=""
 2408 while $ac_more_lines; do
 2409   if test $ac_beg -gt 1; then
 2410     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
 2411   else
 2412     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
 2413   fi
 2414   if test ! -s conftest.s$ac_file; then
 2415     ac_more_lines=false
 2416     rm -f conftest.s$ac_file
 2417   else
 2418     if test -z "$ac_sed_cmds"; then
 2419       ac_sed_cmds="sed -f conftest.s$ac_file"
 2420     else
 2421       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
 2422     fi
 2423     ac_file=`expr $ac_file + 1`
 2424     ac_beg=$ac_end
 2425     ac_end=`expr $ac_end + $ac_max_sed_cmds`
 2426   fi
 2427 done
 2428 if test -z "$ac_sed_cmds"; then
 2429   ac_sed_cmds=cat
 2430 fi
 2431 EOF
 2432 
 2433 cat >> $CONFIG_STATUS <<EOF
 2434 
 2435 CONFIG_FILES=\${CONFIG_FILES-"Makefile npadmin.spec"}
 2436 EOF
 2437 cat >> $CONFIG_STATUS <<\EOF
 2438 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
 2439   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 2440   case "$ac_file" in
 2441   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 2442        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 2443   *) ac_file_in="${ac_file}.in" ;;
 2444   esac
 2445 
 2446   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
 2447 
 2448   # Remove last slash and all that follows it.  Not all systems have dirname.
 2449   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 2450   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 2451     # The file is in a subdirectory.
 2452     test ! -d "$ac_dir" && mkdir "$ac_dir"
 2453     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
 2454     # A "../" for each directory in $ac_dir_suffix.
 2455     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
 2456   else
 2457     ac_dir_suffix= ac_dots=
 2458   fi
 2459 
 2460   case "$ac_given_srcdir" in
 2461   .)  srcdir=.
 2462       if test -z "$ac_dots"; then top_srcdir=.
 2463       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
 2464   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
 2465   *) # Relative path.
 2466     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
 2467     top_srcdir="$ac_dots$ac_given_srcdir" ;;
 2468   esac
 2469 
 2470   case "$ac_given_INSTALL" in
 2471   [/$]*) INSTALL="$ac_given_INSTALL" ;;
 2472   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
 2473   esac
 2474 
 2475   echo creating "$ac_file"
 2476   rm -f "$ac_file"
 2477   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
 2478   case "$ac_file" in
 2479   *Makefile*) ac_comsub="1i\\
 2480 # $configure_input" ;;
 2481   *) ac_comsub= ;;
 2482   esac
 2483 
 2484   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 2485   sed -e "$ac_comsub
 2486 s%@configure_input@%$configure_input%g
 2487 s%@srcdir@%$srcdir%g
 2488 s%@top_srcdir@%$top_srcdir%g
 2489 s%@INSTALL@%$INSTALL%g
 2490 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
 2491 fi; done
 2492 rm -f conftest.s*
 2493 
 2494 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 2495 # NAME is the cpp macro being defined and VALUE is the value it is being given.
 2496 #
 2497 # ac_d sets the value in "#define NAME VALUE" lines.
 2498 ac_dA='s%^\([   ]*\)#\([    ]*define[   ][  ]*\)'
 2499 ac_dB='\([  ][  ]*\)[^  ]*%\1#\2'
 2500 ac_dC='\3'
 2501 ac_dD='%g'
 2502 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
 2503 ac_uA='s%^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
 2504 ac_uB='\([  ]\)%\1#\2define\3'
 2505 ac_uC=' '
 2506 ac_uD='\4%g'
 2507 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 2508 ac_eA='s%^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
 2509 ac_eB='$%\1#\2define\3'
 2510 ac_eC=' '
 2511 ac_eD='%g'
 2512 
 2513 if test "${CONFIG_HEADERS+set}" != set; then
 2514 EOF
 2515 cat >> $CONFIG_STATUS <<EOF
 2516   CONFIG_HEADERS="config.h"
 2517 EOF
 2518 cat >> $CONFIG_STATUS <<\EOF
 2519 fi
 2520 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
 2521   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 2522   case "$ac_file" in
 2523   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 2524        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 2525   *) ac_file_in="${ac_file}.in" ;;
 2526   esac
 2527 
 2528   echo creating $ac_file
 2529 
 2530   rm -f conftest.frag conftest.in conftest.out
 2531   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 2532   cat $ac_file_inputs > conftest.in
 2533 
 2534 EOF
 2535 
 2536 # Transform confdefs.h into a sed script conftest.vals that substitutes
 2537 # the proper values into config.h.in to produce config.h.  And first:
 2538 # Protect against being on the right side of a sed subst in config.status.
 2539 # Protect against being in an unquoted here document in config.status.
 2540 rm -f conftest.vals
 2541 cat > conftest.hdr <<\EOF
 2542 s/[\\&%]/\\&/g
 2543 s%[\\$`]%\\&%g
 2544 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
 2545 s%ac_d%ac_u%gp
 2546 s%ac_u%ac_e%gp
 2547 EOF
 2548 sed -n -f conftest.hdr confdefs.h > conftest.vals
 2549 rm -f conftest.hdr
 2550 
 2551 # This sed command replaces #undef with comments.  This is necessary, for
 2552 # example, in the case of _POSIX_SOURCE, which is predefined and required
 2553 # on some systems where configure will not decide to define it.
 2554 cat >> conftest.vals <<\EOF
 2555 s%^[    ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
 2556 EOF
 2557 
 2558 # Break up conftest.vals because some shells have a limit on
 2559 # the size of here documents, and old seds have small limits too.
 2560 
 2561 rm -f conftest.tail
 2562 while :
 2563 do
 2564   ac_lines=`grep -c . conftest.vals`
 2565   # grep -c gives empty output for an empty file on some AIX systems.
 2566   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
 2567   # Write a limited-size here document to conftest.frag.
 2568   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
 2569   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
 2570   echo 'CEOF
 2571   sed -f conftest.frag conftest.in > conftest.out
 2572   rm -f conftest.in
 2573   mv conftest.out conftest.in
 2574 ' >> $CONFIG_STATUS
 2575   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
 2576   rm -f conftest.vals
 2577   mv conftest.tail conftest.vals
 2578 done
 2579 rm -f conftest.vals
 2580 
 2581 cat >> $CONFIG_STATUS <<\EOF
 2582   rm -f conftest.frag conftest.h
 2583   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
 2584   cat conftest.in >> conftest.h
 2585   rm -f conftest.in
 2586   if cmp -s $ac_file conftest.h 2>/dev/null; then
 2587     echo "$ac_file is unchanged"
 2588     rm -f conftest.h
 2589   else
 2590     # Remove last slash and all that follows it.  Not all systems have dirname.
 2591       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 2592       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 2593       # The file is in a subdirectory.
 2594       test ! -d "$ac_dir" && mkdir "$ac_dir"
 2595     fi
 2596     rm -f $ac_file
 2597     mv conftest.h $ac_file
 2598   fi
 2599 fi; done
 2600 
 2601 EOF
 2602 cat >> $CONFIG_STATUS <<EOF
 2603 
 2604 
 2605 EOF
 2606 cat >> $CONFIG_STATUS <<\EOF
 2607 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
 2608 
 2609 exit 0
 2610 EOF
 2611 chmod +x $CONFIG_STATUS
 2612 rm -fr confdefs* $ac_clean_files
 2613 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 2614