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