]> granicus.if.org Git - postgresql/blob - configure
Fix typo.
[postgresql] / 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_default_prefix=/usr/local/pgsql
15 ac_help="$ac_help
16   --with-template=TEMPLATE
17                           use operating system template file 
18                               see template directory"
19 ac_help="$ac_help
20   --with-includes=DIRS    look for header files for tcl/tk, etc in DIRS"
21 ac_help="$ac_help
22   --with-libraries=DIRS   look for additional libraries in DIRS"
23 ac_help="$ac_help
24   --with-libs=DIRS        alternate spelling of --with-libraries"
25 ac_help="$ac_help
26   --enable-locale         enable locale support "
27 ac_help="$ac_help
28   --enable-recode         enable cyrillic recode support "
29 ac_help="$ac_help
30   --enable-multibyte      enable multibyte character support "
31 ac_help="$ac_help
32   --with-pgport=PORTNUM   change default postmaster port "
33 ac_help="$ac_help
34   --with-maxbackends=N    set default maximum number of server processes "
35 ac_help="$ac_help
36   --with-CC=compiler      use specific C compiler"
37 ac_help="$ac_help
38   --with-tcl              build Tcl interfaces and pgtclsh "
39 ac_help="$ac_help
40   --with-tclconfig=DIR    tclConfig.sh and tkConfig.sh are in DIR"
41 ac_help="$ac_help
42   --with-tkconfig=DIR     tkConfig.sh is in DIR"
43 ac_help="$ac_help
44   --with-perl             build Perl interface and plperl"
45 ac_help="$ac_help
46   --with-python           build Python interface module"
47 ac_help="$ac_help
48   --with-odbc             build ODBC driver package "
49 ac_help="$ac_help
50   --with-odbcinst=DIR     change default directory for odbcinst.ini"
51 ac_help="$ac_help
52   --with-unixODBC[=DIR]   Use unixODBC located in DIR"
53 ac_help="$ac_help
54   --with-unixODBC-includes=DIR Find unixODBC headers in DIR"
55 ac_help="$ac_help
56   --with-unixODBC-libs=DIR Find unixODBC libraries in DIR"
57 ac_help="$ac_help
58   --enable-cassert        enable assertion checks (for debugging) "
59 ac_help="$ac_help
60   --enable-debug          build with debugging symbols (-g) "
61 ac_help="$ac_help
62   --with-CXX              build C++ modules (libpq++)"
63 ac_help="$ac_help
64   --enable-syslog         enable logging to syslog"
65 ac_help="$ac_help
66   --with-x                use the X Window System"
67
68 # Initialize some variables set by options.
69 # The variables have the same names as the options, with
70 # dashes changed to underlines.
71 build=NONE
72 cache_file=./config.cache
73 exec_prefix=NONE
74 host=NONE
75 no_create=
76 nonopt=NONE
77 no_recursion=
78 prefix=NONE
79 program_prefix=NONE
80 program_suffix=NONE
81 program_transform_name=s,x,x,
82 silent=
83 site=
84 srcdir=
85 target=NONE
86 verbose=
87 x_includes=NONE
88 x_libraries=NONE
89 bindir='${exec_prefix}/bin'
90 sbindir='${exec_prefix}/sbin'
91 libexecdir='${exec_prefix}/libexec'
92 datadir='${prefix}/share'
93 sysconfdir='${prefix}/etc'
94 sharedstatedir='${prefix}/com'
95 localstatedir='${prefix}/var'
96 libdir='${exec_prefix}/lib'
97 includedir='${prefix}/include'
98 oldincludedir='/usr/include'
99 infodir='${prefix}/info'
100 mandir='${prefix}/man'
101
102 # Initialize some other variables.
103 subdirs=
104 MFLAGS= MAKEFLAGS=
105 SHELL=${CONFIG_SHELL-/bin/sh}
106 # Maximum number of lines to put in a shell here document.
107 ac_max_here_lines=12
108
109 ac_prev=
110 for ac_option
111 do
112
113   # If the previous option needs an argument, assign it.
114   if test -n "$ac_prev"; then
115     eval "$ac_prev=\$ac_option"
116     ac_prev=
117     continue
118   fi
119
120   case "$ac_option" in
121   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
122   *) ac_optarg= ;;
123   esac
124
125   # Accept the important Cygnus configure options, so we can diagnose typos.
126
127   case "$ac_option" in
128
129   -bindir | --bindir | --bindi | --bind | --bin | --bi)
130     ac_prev=bindir ;;
131   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
132     bindir="$ac_optarg" ;;
133
134   -build | --build | --buil | --bui | --bu)
135     ac_prev=build ;;
136   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
137     build="$ac_optarg" ;;
138
139   -cache-file | --cache-file | --cache-fil | --cache-fi \
140   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
141     ac_prev=cache_file ;;
142   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
143   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
144     cache_file="$ac_optarg" ;;
145
146   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
147     ac_prev=datadir ;;
148   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
149   | --da=*)
150     datadir="$ac_optarg" ;;
151
152   -disable-* | --disable-*)
153     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
154     # Reject names that are not valid shell variable names.
155     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
156       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157     fi
158     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
159     eval "enable_${ac_feature}=no" ;;
160
161   -enable-* | --enable-*)
162     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
163     # Reject names that are not valid shell variable names.
164     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
165       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166     fi
167     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
168     case "$ac_option" in
169       *=*) ;;
170       *) ac_optarg=yes ;;
171     esac
172     eval "enable_${ac_feature}='$ac_optarg'" ;;
173
174   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
175   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
176   | --exec | --exe | --ex)
177     ac_prev=exec_prefix ;;
178   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
179   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
180   | --exec=* | --exe=* | --ex=*)
181     exec_prefix="$ac_optarg" ;;
182
183   -gas | --gas | --ga | --g)
184     # Obsolete; use --with-gas.
185     with_gas=yes ;;
186
187   -help | --help | --hel | --he)
188     # Omit some internal or obsolete options to make the list less imposing.
189     # This message is too long to be a string in the A/UX 3.1 sh.
190     cat << EOF
191 Usage: configure [options] [host]
192 Options: [defaults in brackets after descriptions]
193 Configuration:
194   --cache-file=FILE       cache test results in FILE
195   --help                  print this message
196   --no-create             do not create output files
197   --quiet, --silent       do not print \`checking...' messages
198   --version               print the version of autoconf that created configure
199 Directory and file names:
200   --prefix=PREFIX         install architecture-independent files in PREFIX
201                           [$ac_default_prefix]
202   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
203                           [same as prefix]
204   --bindir=DIR            user executables in DIR [EPREFIX/bin]
205   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
206   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
207   --datadir=DIR           read-only architecture-independent data in DIR
208                           [PREFIX/share]
209   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
210   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
211                           [PREFIX/com]
212   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
213   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
214   --includedir=DIR        C header files in DIR [PREFIX/include]
215   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
216   --infodir=DIR           info documentation in DIR [PREFIX/info]
217   --mandir=DIR            man documentation in DIR [PREFIX/man]
218   --srcdir=DIR            find the sources in DIR [configure dir or ..]
219   --program-prefix=PREFIX prepend PREFIX to installed program names
220   --program-suffix=SUFFIX append SUFFIX to installed program names
221   --program-transform-name=PROGRAM
222                           run sed PROGRAM on installed program names
223 EOF
224     cat << EOF
225 Host type:
226   --build=BUILD           configure for building on BUILD [BUILD=HOST]
227   --host=HOST             configure for HOST [guessed]
228   --target=TARGET         configure for TARGET [TARGET=HOST]
229 Features and packages:
230   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
231   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
232   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
233   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
234   --x-includes=DIR        X include files are in DIR
235   --x-libraries=DIR       X library files are in DIR
236 EOF
237     if test -n "$ac_help"; then
238       echo "--enable and --with options recognized:$ac_help"
239     fi
240     exit 0 ;;
241
242   -host | --host | --hos | --ho)
243     ac_prev=host ;;
244   -host=* | --host=* | --hos=* | --ho=*)
245     host="$ac_optarg" ;;
246
247   -includedir | --includedir | --includedi | --included | --include \
248   | --includ | --inclu | --incl | --inc)
249     ac_prev=includedir ;;
250   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
251   | --includ=* | --inclu=* | --incl=* | --inc=*)
252     includedir="$ac_optarg" ;;
253
254   -infodir | --infodir | --infodi | --infod | --info | --inf)
255     ac_prev=infodir ;;
256   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
257     infodir="$ac_optarg" ;;
258
259   -libdir | --libdir | --libdi | --libd)
260     ac_prev=libdir ;;
261   -libdir=* | --libdir=* | --libdi=* | --libd=*)
262     libdir="$ac_optarg" ;;
263
264   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
265   | --libexe | --libex | --libe)
266     ac_prev=libexecdir ;;
267   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
268   | --libexe=* | --libex=* | --libe=*)
269     libexecdir="$ac_optarg" ;;
270
271   -localstatedir | --localstatedir | --localstatedi | --localstated \
272   | --localstate | --localstat | --localsta | --localst \
273   | --locals | --local | --loca | --loc | --lo)
274     ac_prev=localstatedir ;;
275   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
276   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
277   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
278     localstatedir="$ac_optarg" ;;
279
280   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
281     ac_prev=mandir ;;
282   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
283     mandir="$ac_optarg" ;;
284
285   -nfp | --nfp | --nf)
286     # Obsolete; use --without-fp.
287     with_fp=no ;;
288
289   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
290   | --no-cr | --no-c)
291     no_create=yes ;;
292
293   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
294   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
295     no_recursion=yes ;;
296
297   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
298   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
299   | --oldin | --oldi | --old | --ol | --o)
300     ac_prev=oldincludedir ;;
301   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
302   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
303   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
304     oldincludedir="$ac_optarg" ;;
305
306   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
307     ac_prev=prefix ;;
308   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
309     prefix="$ac_optarg" ;;
310
311   -program-prefix | --program-prefix | --program-prefi | --program-pref \
312   | --program-pre | --program-pr | --program-p)
313     ac_prev=program_prefix ;;
314   -program-prefix=* | --program-prefix=* | --program-prefi=* \
315   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
316     program_prefix="$ac_optarg" ;;
317
318   -program-suffix | --program-suffix | --program-suffi | --program-suff \
319   | --program-suf | --program-su | --program-s)
320     ac_prev=program_suffix ;;
321   -program-suffix=* | --program-suffix=* | --program-suffi=* \
322   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
323     program_suffix="$ac_optarg" ;;
324
325   -program-transform-name | --program-transform-name \
326   | --program-transform-nam | --program-transform-na \
327   | --program-transform-n | --program-transform- \
328   | --program-transform | --program-transfor \
329   | --program-transfo | --program-transf \
330   | --program-trans | --program-tran \
331   | --progr-tra | --program-tr | --program-t)
332     ac_prev=program_transform_name ;;
333   -program-transform-name=* | --program-transform-name=* \
334   | --program-transform-nam=* | --program-transform-na=* \
335   | --program-transform-n=* | --program-transform-=* \
336   | --program-transform=* | --program-transfor=* \
337   | --program-transfo=* | --program-transf=* \
338   | --program-trans=* | --program-tran=* \
339   | --progr-tra=* | --program-tr=* | --program-t=*)
340     program_transform_name="$ac_optarg" ;;
341
342   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
343   | -silent | --silent | --silen | --sile | --sil)
344     silent=yes ;;
345
346   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
347     ac_prev=sbindir ;;
348   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
349   | --sbi=* | --sb=*)
350     sbindir="$ac_optarg" ;;
351
352   -sharedstatedir | --sharedstatedir | --sharedstatedi \
353   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
354   | --sharedst | --shareds | --shared | --share | --shar \
355   | --sha | --sh)
356     ac_prev=sharedstatedir ;;
357   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
358   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
359   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
360   | --sha=* | --sh=*)
361     sharedstatedir="$ac_optarg" ;;
362
363   -site | --site | --sit)
364     ac_prev=site ;;
365   -site=* | --site=* | --sit=*)
366     site="$ac_optarg" ;;
367
368   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
369     ac_prev=srcdir ;;
370   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
371     srcdir="$ac_optarg" ;;
372
373   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
374   | --syscon | --sysco | --sysc | --sys | --sy)
375     ac_prev=sysconfdir ;;
376   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
377   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
378     sysconfdir="$ac_optarg" ;;
379
380   -target | --target | --targe | --targ | --tar | --ta | --t)
381     ac_prev=target ;;
382   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
383     target="$ac_optarg" ;;
384
385   -v | -verbose | --verbose | --verbos | --verbo | --verb)
386     verbose=yes ;;
387
388   -version | --version | --versio | --versi | --vers)
389     echo "configure generated by autoconf version 2.13"
390     exit 0 ;;
391
392   -with-* | --with-*)
393     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
394     # Reject names that are not valid shell variable names.
395     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
396       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
397     fi
398     ac_package=`echo $ac_package| sed 's/-/_/g'`
399     case "$ac_option" in
400       *=*) ;;
401       *) ac_optarg=yes ;;
402     esac
403     eval "with_${ac_package}='$ac_optarg'" ;;
404
405   -without-* | --without-*)
406     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
407     # Reject names that are not valid shell variable names.
408     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
409       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410     fi
411     ac_package=`echo $ac_package| sed 's/-/_/g'`
412     eval "with_${ac_package}=no" ;;
413
414   --x)
415     # Obsolete; use --with-x.
416     with_x=yes ;;
417
418   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
419   | --x-incl | --x-inc | --x-in | --x-i)
420     ac_prev=x_includes ;;
421   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
422   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
423     x_includes="$ac_optarg" ;;
424
425   -x-libraries | --x-libraries | --x-librarie | --x-librari \
426   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
427     ac_prev=x_libraries ;;
428   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
429   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
430     x_libraries="$ac_optarg" ;;
431
432   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
433     ;;
434
435   *)
436     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
437       echo "configure: warning: $ac_option: invalid host type" 1>&2
438     fi
439     if test "x$nonopt" != xNONE; then
440       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
441     fi
442     nonopt="$ac_option"
443     ;;
444
445   esac
446 done
447
448 if test -n "$ac_prev"; then
449   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
450 fi
451
452 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
453
454 # File descriptor usage:
455 # 0 standard input
456 # 1 file creation
457 # 2 errors and warnings
458 # 3 some systems may open it to /dev/tty
459 # 4 used on the Kubota Titan
460 # 6 checking for... messages and results
461 # 5 compiler messages saved in config.log
462 if test "$silent" = yes; then
463   exec 6>/dev/null
464 else
465   exec 6>&1
466 fi
467 exec 5>./config.log
468
469 echo "\
470 This file contains any messages produced by compilers while
471 running configure, to aid debugging if configure makes a mistake.
472 " 1>&5
473
474 # Strip out --no-create and --no-recursion so they do not pile up.
475 # Also quote any args containing shell metacharacters.
476 ac_configure_args=
477 for ac_arg
478 do
479   case "$ac_arg" in
480   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
481   | --no-cr | --no-c) ;;
482   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
483   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
484   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
485   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
486   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
487   esac
488 done
489
490 # NLS nuisances.
491 # Only set these to C if already set.  These must not be set unconditionally
492 # because not all systems understand e.g. LANG=C (notably SCO).
493 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
494 # Non-C LC_CTYPE values break the ctype check.
495 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
496 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
497 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
498 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
499
500 # confdefs.h avoids OS command line length limits that DEFS can exceed.
501 rm -rf conftest* confdefs.h
502 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
503 echo > confdefs.h
504
505 # A filename unique to this package, relative to the directory that
506 # configure is in, which we can look for to find out if srcdir is correct.
507 ac_unique_file=src/backend/access/common/heaptuple.c
508
509 # Find the source files, if location was not specified.
510 if test -z "$srcdir"; then
511   ac_srcdir_defaulted=yes
512   # Try the directory containing this script, then its parent.
513   ac_prog=$0
514   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
515   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
516   srcdir=$ac_confdir
517   if test ! -r $srcdir/$ac_unique_file; then
518     srcdir=..
519   fi
520 else
521   ac_srcdir_defaulted=no
522 fi
523 if test ! -r $srcdir/$ac_unique_file; then
524   if test "$ac_srcdir_defaulted" = yes; then
525     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
526   else
527     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
528   fi
529 fi
530 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
531
532 # Prefer explicitly selected file to automatically selected ones.
533 if test -z "$CONFIG_SITE"; then
534   if test "x$prefix" != xNONE; then
535     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
536   else
537     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
538   fi
539 fi
540 for ac_site_file in $CONFIG_SITE; do
541   if test -r "$ac_site_file"; then
542     echo "loading site script $ac_site_file"
543     . "$ac_site_file"
544   fi
545 done
546
547 if test -r "$cache_file"; then
548   echo "loading cache $cache_file"
549   . $cache_file
550 else
551   echo "creating cache $cache_file"
552   > $cache_file
553 fi
554
555 ac_ext=c
556 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
557 ac_cpp='$CPP $CPPFLAGS'
558 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
559 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
560 cross_compiling=$ac_cv_prog_cc_cross
561
562 ac_exeext=
563 ac_objext=o
564 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
565   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
566   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
567     ac_n= ac_c='
568 ' ac_t='        '
569   else
570     ac_n=-n ac_c= ac_t=
571   fi
572 else
573   ac_n= ac_c='\c' ac_t=
574 fi
575
576
577
578
579
580
581 ac_aux_dir=
582 for ac_dir in `pwd`/config $srcdir/`pwd`/config; do
583   if test -f $ac_dir/install-sh; then
584     ac_aux_dir=$ac_dir
585     ac_install_sh="$ac_aux_dir/install-sh -c"
586     break
587   elif test -f $ac_dir/install.sh; then
588     ac_aux_dir=$ac_dir
589     ac_install_sh="$ac_aux_dir/install.sh -c"
590     break
591   fi
592 done
593 if test -z "$ac_aux_dir"; then
594   { echo "configure: error: can not find install-sh or install.sh in `pwd`/config $srcdir/`pwd`/config" 1>&2; exit 1; }
595 fi
596 ac_config_guess=$ac_aux_dir/config.guess
597 ac_config_sub=$ac_aux_dir/config.sub
598 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
599
600
601 mkinstalldirs="\$(SHELL) \$(top_srcdir)/config/mkinstalldirs"
602
603
604
605 # Make sure we can run config.sub.
606 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
607 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
608 fi
609
610 echo $ac_n "checking host system type""... $ac_c" 1>&6
611 echo "configure:612: checking host system type" >&5
612
613 host_alias=$host
614 case "$host_alias" in
615 NONE)
616   case $nonopt in
617   NONE)
618     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
619     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
620     fi ;;
621   *) host_alias=$nonopt ;;
622   esac ;;
623 esac
624
625 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
626 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
627 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
628 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
629 echo "$ac_t""$host" 1>&6
630
631
632 tas_file=dummy.s
633 case "$host_os" in
634  solaris*)
635         case "$host_cpu" in
636           sparc) os=solaris_sparc need_tas=yes tas_file=solaris_sparc.s ;;
637            i386) os=solaris_i386 need_tas=yes tas_file=solaris_i386.s ;;
638         esac ;;
639    sunos*) os=sunos4 need_tas=no ;;
640      beos) os=beos need_tas=no ;;
641      aux*) os=aux need_tas=no ;;
642    linux*) os=linux need_tas=no ;;
643     bsdi*) os=bsdi need_tas=no ;;
644  freebsd1*|freebsd2*) os=freebsd need_tas=no ;;
645  freebsd*) os=freebsd need_tas=no elf=yes ;;
646   netbsd*) os=netbsd need_tas=no ;;
647   openbsd*) os=bsd need_tas=no ;;
648     dgux*) os=dgux need_tas=no ;;
649      aix*) os=aix need_tas=no ;;
650 nextstep*) os=nextstep need_tas=no ;;
651   ultrix*) os=ultrix4 need_tas=no ;;
652     irix*) os=irix5 need_tas=no ;;
653     hpux*) os=hpux need_tas=yes tas_file=hpux.s ;;
654      osf*) os=alpha need_tas=no ;;
655      sco*) os=sco need_tas=no ;;
656  machten*) os=machten need_tas=no ;;
657   cygwin*) os=win need_tas=no ;;
658  sysv4.2*)
659        case "$host_vendor" in
660                univel) os=univel need_tas=no ;;
661                     *) os=unknown need_tas=no ;;
662        esac ;;
663    sysv4*) os=svr4 need_tas=no ;;
664    sysv5uw*) os=unixware need_tas=no ;;
665    unixware*) os=unixware need_tas=no ;;
666     qnx*) os=qnx4 need_tas=no ;;
667 *) echo ""
668    echo "*************************************************************"
669    echo "configure does not currently recognize your operating system,"
670    echo "therefore you must do a manual configuration of:"
671    echo "$host_os"
672    echo "Please contact scrappy@hub.org to see about rectifying this, "
673    echo "including the above 'checking host system type...' line "
674    echo "*************************************************************"
675    echo ""
676    exit;;
677 esac
678
679 PORTNAME=${os}
680 CPU=${host_cpu}
681
682
683
684
685
686 if test "X$need_tas" = "Xyes"
687 then
688         
689         TAS=tas.o
690         
691 fi
692
693
694 echo $ac_n "checking setting template to""... $ac_c" 1>&6
695 echo "configure:696: checking setting template to" >&5
696 # Check whether --with-template or --without-template was given.
697 if test "${with_template+set}" = set; then
698   withval="$with_template"
699     TEMPLATE=$withval 
700 else
701   
702
703 # lowercase $host
704 host="`echo $host | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`"
705
706 # First, try for a template exactly matching $host
707 if test -f "src/template/$host"
708 then TEMPLATE="$host"
709 else
710     # Scan template/.similar for a rule that tells us which template to use.
711     # The format of each line of the file is
712     #           hostnamepattern=templatefilename
713     # where the hostnamepattern is evaluated per the rules of expr(1) ---
714     # namely, it is a standard regular expression with an implicit ^ at the
715     # start.  If multiple lines match, we will end up using the last match.
716     #
717     # The tempfile hackery is needed because some shells will run the loop
718     # inside a subshell, whereupon shell variables set therein aren't seen
719     # outside the loop :-(
720     TMPFILE="guesses.$$"
721     cat /dev/null > $TMPFILE
722     while read LINE
723     do
724         SIMHOST=`expr "$LINE" : '\(.*\)='`
725         MATCH=`expr "$host" : "$SIMHOST"`
726         if test "$MATCH" != 0
727         then
728             echo "$LINE" | sed 's/^.*=//' > $TMPFILE
729         fi
730     done <src/template/.similar
731     GUESS=`cat $TMPFILE`
732     rm -f $TMPFILE
733     if test "$GUESS"
734     then TEMPLATE="$GUESS"
735     else
736         # Last chance ... maybe uname -s will match an entry.
737         TEMPLATE=`uname -s | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
738     fi
739 fi
740     
741 fi
742
743 echo "$ac_t""$TEMPLATE" 1>&6
744
745 export TEMPLATE
746 if test ! -f "src/template/$TEMPLATE"; then
747         echo ""
748         echo "$TEMPLATE does not exist"
749         echo ""
750         echo "Available Templates (select one using --with-template):"
751         echo ""
752         ls template
753         echo ""
754         exit
755 fi
756
757
758
759 rm -f conftest.sh
760 sed 's/^\([A-Za-z_]*\):\(.*\)$/\1="\2"/' "src/template/$TEMPLATE" >conftest.sh
761 . ./conftest.sh
762 rm -f conftest.sh
763
764
765
766 # Check whether --with-includes or --without-includes was given.
767 if test "${with_includes+set}" = set; then
768   withval="$with_includes"
769   
770         case "$withval" in
771         "" | y | ye | yes | n | no)
772             { echo "configure: error: *** You must supply an argument to the --with-includes option." 1>&2; exit 1; }
773           ;;
774         esac
775         INCLUDE_DIRS="$withval"
776     
777 fi
778
779
780 if test "$INCLUDE_DIRS" -o "$SRCH_INC"; then
781         for dir in $INCLUDE_DIRS $SRCH_INC; do
782                 if test -d "$dir"; then
783                         PGSQL_INCLUDES="$PGSQL_INCLUDES -I$dir"
784                 else
785                         echo "configure: warning: *** Include directory $dir does not exist." 1>&2
786                 fi
787         done
788 fi
789
790 # Check whether --with-libraries or --without-libraries was given.
791 if test "${with_libraries+set}" = set; then
792   withval="$with_libraries"
793   
794         case "$withval" in
795         "" | y | ye | yes | n | no)
796             { echo "configure: error: *** You must supply an argument to the --with-libraries option." 1>&2; exit 1; }
797           ;;
798         esac
799         LIBRARY_DIRS="$withval"
800     
801 fi
802
803
804 # Check whether --with-libs or --without-libs was given.
805 if test "${with_libs+set}" = set; then
806   withval="$with_libs"
807   
808         case "$withval" in
809         "" | y | ye | yes | n | no)
810             { echo "configure: error: *** You must supply an argument to the --with-libs option." 1>&2; exit 1; }
811           ;;
812         esac
813         LIBRARY_DIRS="$withval"
814     
815 fi
816
817
818 if test "$LIBRARY_DIRS" -o "$SRCH_LIB"; then
819         for dir in $LIBRARY_DIRS $SRCH_LIB; do
820                 if test -d "$dir"; then
821                         PGSQL_LDFLAGS="$PGSQL_LDFLAGS -L$dir"
822                 else
823                         echo "configure: warning: *** Library directory $dir does not exist." 1>&2
824                 fi
825         done
826 fi
827
828
829 echo $ac_n "checking whether to support locale""... $ac_c" 1>&6
830 echo "configure:831: checking whether to support locale" >&5
831 # Check whether --enable-locale or --disable-locale was given.
832 if test "${enable_locale+set}" = set; then
833   enableval="$enable_locale"
834   cat >> confdefs.h <<\EOF
835 #define USE_LOCALE 1
836 EOF
837  echo "$ac_t""enabled" 1>&6
838 else
839   echo "$ac_t""disabled" 1>&6
840
841 fi
842
843
844 echo $ac_n "checking whether to support cyrillic recode""... $ac_c" 1>&6
845 echo "configure:846: checking whether to support cyrillic recode" >&5
846 # Check whether --enable-recode or --disable-recode was given.
847 if test "${enable_recode+set}" = set; then
848   enableval="$enable_recode"
849   cat >> confdefs.h <<\EOF
850 #define CYR_RECODE 1
851 EOF
852  echo "$ac_t""enabled" 1>&6
853 else
854   echo "$ac_t""disabled" 1>&6
855
856 fi
857
858
859
860 echo $ac_n "checking whether to support multibyte""... $ac_c" 1>&6
861 echo "configure:862: checking whether to support multibyte" >&5
862 # Check whether --enable-multibyte or --disable-multibyte was given.
863 if test "${enable_multibyte+set}" = set; then
864   enableval="$enable_multibyte"
865   
866         MULTIBYTE=SQL_ASCII
867         if test "$enableval" != "yes"; then
868                 case "$enableval" in
869                         SQL_ASCII|EUC_JP|EUC_CN|EUC_KR|EUC_TW|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5|KOI8|WIN|ALT)
870                         # ok
871                         ;;
872                 *)
873                         { echo "configure: error: Argument to --enable-multibyte must be one of:
874   SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW,
875   UNICODE, MULE_INTERNAL,
876   LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
877   KOI8, WIN, ALT
878 Or do not specify an argument to the option to use the default." 1>&2; exit 1; }
879                 esac
880                 MULTIBYTE=$enableval
881         fi
882         cat >> confdefs.h <<\EOF
883 #define MULTIBYTE 1
884 EOF
885
886         echo "$ac_t""enabled" 1>&6
887     
888 else
889   echo "$ac_t"""disabled"" 1>&6
890
891 fi
892
893
894 if test "${with_mb}"; then
895   { echo "configure: error: --with-mb is not supported anymore. Use --enable-multibyte instead." 1>&2; exit 1; }
896 fi
897
898
899 echo $ac_n "checking setting DEF_PGPORT""... $ac_c" 1>&6
900 echo "configure:901: checking setting DEF_PGPORT" >&5
901 # Check whether --with-pgport or --without-pgport was given.
902 if test "${with_pgport+set}" = set; then
903   withval="$with_pgport"
904   default_port="$withval"
905 else
906   default_port=5432
907
908 fi
909
910 cat >> confdefs.h <<EOF
911 #define DEF_PGPORT ${default_port}
912 EOF
913
914 cat >> confdefs.h <<EOF
915 #define DEF_PGPORT_STR "${default_port}"
916 EOF
917
918 echo "$ac_t""${default_port}" 1>&6
919
920
921 echo $ac_n "checking setting DEF_MAXBACKENDS""... $ac_c" 1>&6
922 echo "configure:923: checking setting DEF_MAXBACKENDS" >&5
923 # Check whether --with-maxbackends or --without-maxbackends was given.
924 if test "${with_maxbackends+set}" = set; then
925   withval="$with_maxbackends"
926   cat >> confdefs.h <<EOF
927 #define DEF_MAXBACKENDS ${withval}
928 EOF
929  echo "$ac_t""$with_maxbackends" 1>&6
930 else
931   cat >> confdefs.h <<EOF
932 #define DEF_MAXBACKENDS 32
933 EOF
934  echo "$ac_t""32" 1>&6
935
936 fi
937
938
939
940 # Check whether --with-CC or --without-CC was given.
941 if test "${with_CC+set}" = set; then
942   withval="$with_CC"
943   
944         case "$withval" in
945         "" | y | ye | yes | n | no)
946             { echo "configure: error: *** You must supply an argument to the --with-CC option." 1>&2; exit 1; }
947           ;;
948         esac
949         CC="$withval"
950     
951 fi
952
953
954 # Extract the first word of "gcc", so it can be a program name with args.
955 set dummy gcc; ac_word=$2
956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
957 echo "configure:958: checking for $ac_word" >&5
958 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
959   echo $ac_n "(cached) $ac_c" 1>&6
960 else
961   if test -n "$CC"; then
962   ac_cv_prog_CC="$CC" # Let the user override the test.
963 else
964   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
965   ac_dummy="$PATH"
966   for ac_dir in $ac_dummy; do
967     test -z "$ac_dir" && ac_dir=.
968     if test -f $ac_dir/$ac_word; then
969       ac_cv_prog_CC="gcc"
970       break
971     fi
972   done
973   IFS="$ac_save_ifs"
974 fi
975 fi
976 CC="$ac_cv_prog_CC"
977 if test -n "$CC"; then
978   echo "$ac_t""$CC" 1>&6
979 else
980   echo "$ac_t""no" 1>&6
981 fi
982
983 if test -z "$CC"; then
984   # Extract the first word of "cc", so it can be a program name with args.
985 set dummy cc; ac_word=$2
986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
987 echo "configure:988: checking for $ac_word" >&5
988 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
989   echo $ac_n "(cached) $ac_c" 1>&6
990 else
991   if test -n "$CC"; then
992   ac_cv_prog_CC="$CC" # Let the user override the test.
993 else
994   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
995   ac_prog_rejected=no
996   ac_dummy="$PATH"
997   for ac_dir in $ac_dummy; do
998     test -z "$ac_dir" && ac_dir=.
999     if test -f $ac_dir/$ac_word; then
1000       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1001         ac_prog_rejected=yes
1002         continue
1003       fi
1004       ac_cv_prog_CC="cc"
1005       break
1006     fi
1007   done
1008   IFS="$ac_save_ifs"
1009 if test $ac_prog_rejected = yes; then
1010   # We found a bogon in the path, so make sure we never use it.
1011   set dummy $ac_cv_prog_CC
1012   shift
1013   if test $# -gt 0; then
1014     # We chose a different compiler from the bogus one.
1015     # However, it has the same basename, so the bogon will be chosen
1016     # first if we set CC to just the basename; use the full file name.
1017     shift
1018     set dummy "$ac_dir/$ac_word" "$@"
1019     shift
1020     ac_cv_prog_CC="$@"
1021   fi
1022 fi
1023 fi
1024 fi
1025 CC="$ac_cv_prog_CC"
1026 if test -n "$CC"; then
1027   echo "$ac_t""$CC" 1>&6
1028 else
1029   echo "$ac_t""no" 1>&6
1030 fi
1031
1032   if test -z "$CC"; then
1033     case "`uname -s`" in
1034     *win32* | *WIN32*)
1035       # Extract the first word of "cl", so it can be a program name with args.
1036 set dummy cl; ac_word=$2
1037 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1038 echo "configure:1039: checking for $ac_word" >&5
1039 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1040   echo $ac_n "(cached) $ac_c" 1>&6
1041 else
1042   if test -n "$CC"; then
1043   ac_cv_prog_CC="$CC" # Let the user override the test.
1044 else
1045   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1046   ac_dummy="$PATH"
1047   for ac_dir in $ac_dummy; do
1048     test -z "$ac_dir" && ac_dir=.
1049     if test -f $ac_dir/$ac_word; then
1050       ac_cv_prog_CC="cl"
1051       break
1052     fi
1053   done
1054   IFS="$ac_save_ifs"
1055 fi
1056 fi
1057 CC="$ac_cv_prog_CC"
1058 if test -n "$CC"; then
1059   echo "$ac_t""$CC" 1>&6
1060 else
1061   echo "$ac_t""no" 1>&6
1062 fi
1063  ;;
1064     esac
1065   fi
1066   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1067 fi
1068
1069 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1070 echo "configure:1071: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1071
1072 ac_ext=c
1073 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1074 ac_cpp='$CPP $CPPFLAGS'
1075 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1076 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1077 cross_compiling=$ac_cv_prog_cc_cross
1078
1079 cat > conftest.$ac_ext << EOF
1080
1081 #line 1082 "configure"
1082 #include "confdefs.h"
1083
1084 main(){return(0);}
1085 EOF
1086 if { (eval echo configure:1087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1087   ac_cv_prog_cc_works=yes
1088   # If we can't run a trivial program, we are probably using a cross compiler.
1089   if (./conftest; exit) 2>/dev/null; then
1090     ac_cv_prog_cc_cross=no
1091   else
1092     ac_cv_prog_cc_cross=yes
1093   fi
1094 else
1095   echo "configure: failed program was:" >&5
1096   cat conftest.$ac_ext >&5
1097   ac_cv_prog_cc_works=no
1098 fi
1099 rm -fr conftest*
1100 ac_ext=c
1101 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1102 ac_cpp='$CPP $CPPFLAGS'
1103 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1104 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1105 cross_compiling=$ac_cv_prog_cc_cross
1106
1107 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1108 if test $ac_cv_prog_cc_works = no; then
1109   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1110 fi
1111 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1112 echo "configure:1113: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1113 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1114 cross_compiling=$ac_cv_prog_cc_cross
1115
1116 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1117 echo "configure:1118: checking whether we are using GNU C" >&5
1118 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1119   echo $ac_n "(cached) $ac_c" 1>&6
1120 else
1121   cat > conftest.c <<EOF
1122 #ifdef __GNUC__
1123   yes;
1124 #endif
1125 EOF
1126 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1127   ac_cv_prog_gcc=yes
1128 else
1129   ac_cv_prog_gcc=no
1130 fi
1131 fi
1132
1133 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1134
1135 if test $ac_cv_prog_gcc = yes; then
1136   GCC=yes
1137 else
1138   GCC=
1139 fi
1140
1141 ac_test_CFLAGS="${CFLAGS+set}"
1142 ac_save_CFLAGS="$CFLAGS"
1143 CFLAGS=
1144 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1145 echo "configure:1146: checking whether ${CC-cc} accepts -g" >&5
1146 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1147   echo $ac_n "(cached) $ac_c" 1>&6
1148 else
1149   echo 'void f(){}' > conftest.c
1150 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1151   ac_cv_prog_cc_g=yes
1152 else
1153   ac_cv_prog_cc_g=no
1154 fi
1155 rm -f conftest*
1156
1157 fi
1158
1159 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1160 if test "$ac_test_CFLAGS" = set; then
1161   CFLAGS="$ac_save_CFLAGS"
1162 elif test $ac_cv_prog_cc_g = yes; then
1163   if test "$GCC" = yes; then
1164     CFLAGS="-g -O2"
1165   else
1166     CFLAGS="-g"
1167   fi
1168 else
1169   if test "$GCC" = yes; then
1170     CFLAGS="-O2"
1171   else
1172     CFLAGS=
1173   fi
1174 fi
1175
1176 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1177 echo "configure:1178: checking how to run the C preprocessor" >&5
1178 # On Suns, sometimes $CPP names a directory.
1179 if test -n "$CPP" && test -d "$CPP"; then
1180   CPP=
1181 fi
1182 if test -z "$CPP"; then
1183 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1184   echo $ac_n "(cached) $ac_c" 1>&6
1185 else
1186     # This must be in double quotes, not single quotes, because CPP may get
1187   # substituted into the Makefile and "${CC-cc}" will confuse make.
1188   CPP="${CC-cc} -E"
1189   # On the NeXT, cc -E runs the code through the compiler's parser,
1190   # not just through cpp.
1191   cat > conftest.$ac_ext <<EOF
1192 #line 1193 "configure"
1193 #include "confdefs.h"
1194 #include <assert.h>
1195 Syntax Error
1196 EOF
1197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1198 { (eval echo configure:1199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1199 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1200 if test -z "$ac_err"; then
1201   :
1202 else
1203   echo "$ac_err" >&5
1204   echo "configure: failed program was:" >&5
1205   cat conftest.$ac_ext >&5
1206   rm -rf conftest*
1207   CPP="${CC-cc} -E -traditional-cpp"
1208   cat > conftest.$ac_ext <<EOF
1209 #line 1210 "configure"
1210 #include "confdefs.h"
1211 #include <assert.h>
1212 Syntax Error
1213 EOF
1214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1215 { (eval echo configure:1216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1216 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1217 if test -z "$ac_err"; then
1218   :
1219 else
1220   echo "$ac_err" >&5
1221   echo "configure: failed program was:" >&5
1222   cat conftest.$ac_ext >&5
1223   rm -rf conftest*
1224   CPP="${CC-cc} -nologo -E"
1225   cat > conftest.$ac_ext <<EOF
1226 #line 1227 "configure"
1227 #include "confdefs.h"
1228 #include <assert.h>
1229 Syntax Error
1230 EOF
1231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1232 { (eval echo configure:1233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1233 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1234 if test -z "$ac_err"; then
1235   :
1236 else
1237   echo "$ac_err" >&5
1238   echo "configure: failed program was:" >&5
1239   cat conftest.$ac_ext >&5
1240   rm -rf conftest*
1241   CPP=/lib/cpp
1242 fi
1243 rm -f conftest*
1244 fi
1245 rm -f conftest*
1246 fi
1247 rm -f conftest*
1248   ac_cv_prog_CPP="$CPP"
1249 fi
1250   CPP="$ac_cv_prog_CPP"
1251 else
1252   ac_cv_prog_CPP="$CPP"
1253 fi
1254 echo "$ac_t""$CPP" 1>&6
1255
1256 if test $ac_cv_prog_gcc = yes; then
1257     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1258 echo "configure:1259: checking whether ${CC-cc} needs -traditional" >&5
1259 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1260   echo $ac_n "(cached) $ac_c" 1>&6
1261 else
1262     ac_pattern="Autoconf.*'x'"
1263   cat > conftest.$ac_ext <<EOF
1264 #line 1265 "configure"
1265 #include "confdefs.h"
1266 #include <sgtty.h>
1267 Autoconf TIOCGETP
1268 EOF
1269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1270   egrep "$ac_pattern" >/dev/null 2>&1; then
1271   rm -rf conftest*
1272   ac_cv_prog_gcc_traditional=yes
1273 else
1274   rm -rf conftest*
1275   ac_cv_prog_gcc_traditional=no
1276 fi
1277 rm -f conftest*
1278
1279
1280   if test $ac_cv_prog_gcc_traditional = no; then
1281     cat > conftest.$ac_ext <<EOF
1282 #line 1283 "configure"
1283 #include "confdefs.h"
1284 #include <termio.h>
1285 Autoconf TCGETA
1286 EOF
1287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1288   egrep "$ac_pattern" >/dev/null 2>&1; then
1289   rm -rf conftest*
1290   ac_cv_prog_gcc_traditional=yes
1291 fi
1292 rm -f conftest*
1293
1294   fi
1295 fi
1296
1297 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1298   if test $ac_cv_prog_gcc_traditional = yes; then
1299     CC="$CC -traditional"
1300   fi
1301 fi
1302
1303
1304
1305 if test "$CC" = "gcc"
1306 then
1307         CC_VERSION=`${CC} --version`
1308 else
1309         CC_VERSION=""
1310 fi
1311
1312
1313
1314 echo $ac_n "checking setting USE_TCL""... $ac_c" 1>&6
1315 echo "configure:1316: checking setting USE_TCL" >&5
1316 # Check whether --with-tcl or --without-tcl was given.
1317 if test "${with_tcl+set}" = set; then
1318   withval="$with_tcl"
1319   
1320         case "$withval" in
1321         y | ye | yes)           USE_TCL=true; USE_TK=true; echo "$ac_t""enabled" 1>&6 ;;
1322         *)                      USE_TCL=; USE_TK=; echo "$ac_t""disabled" 1>&6 ;;
1323         esac
1324    
1325 else
1326    USE_TCL=; USE_TK=; echo "$ac_t""disabled" 1>&6 
1327
1328 fi
1329
1330
1331 export USE_TCL
1332 export USE_TK
1333
1334
1335 # Check whether --with-tclconfig or --without-tclconfig was given.
1336 if test "${with_tclconfig+set}" = set; then
1337   withval="$with_tclconfig"
1338   
1339         case "$withval" in
1340         "" | y | ye | yes | n | no)
1341             { echo "configure: error: *** You must supply an argument to the --with-tclconfig option." 1>&2; exit 1; }
1342           ;;
1343         esac
1344         TCL_DIRS="$withval"
1345     
1346
1347 fi
1348
1349
1350
1351 # Check whether --with-tkconfig or --without-tkconfig was given.
1352 if test "${with_tkconfig+set}" = set; then
1353   withval="$with_tkconfig"
1354   
1355         case "$withval" in
1356         "" | y | ye | yes | n | no)
1357             { echo "configure: error: *** You must supply an argument to the --with-tkconfig option." 1>&2; exit 1; }
1358           ;;
1359         esac
1360         TK_DIRS="$withval"
1361     
1362
1363 fi
1364
1365
1366
1367 echo $ac_n "checking whether to build Perl modules""... $ac_c" 1>&6
1368 echo "configure:1369: checking whether to build Perl modules" >&5
1369 # Check whether --with-perl or --without-perl was given.
1370 if test "${with_perl+set}" = set; then
1371   withval="$with_perl"
1372   if test x"${withval}" = x"yes" ; then
1373   echo "$ac_t""yes" 1>&6
1374 else
1375   echo "$ac_t""no" 1>&6
1376 fi
1377 else
1378   echo "$ac_t""no" 1>&6
1379 fi
1380
1381
1382
1383
1384 echo $ac_n "checking whether to build Python modules""... $ac_c" 1>&6
1385 echo "configure:1386: checking whether to build Python modules" >&5
1386 # Check whether --with-python or --without-python was given.
1387 if test "${with_python+set}" = set; then
1388   withval="$with_python"
1389   if test x"${withval}" = x"yes" ; then
1390   echo "$ac_t""yes" 1>&6
1391   # Extract the first word of "python", so it can be a program name with args.
1392 set dummy python; ac_word=$2
1393 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1394 echo "configure:1395: checking for $ac_word" >&5
1395 if eval "test \"`echo '$''{'ac_cv_prog_PYTHON'+set}'`\" = set"; then
1396   echo $ac_n "(cached) $ac_c" 1>&6
1397 else
1398   if test -n "$PYTHON"; then
1399   ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
1400 else
1401   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1402   ac_dummy="$PATH"
1403   for ac_dir in $ac_dummy; do
1404     test -z "$ac_dir" && ac_dir=.
1405     if test -f $ac_dir/$ac_word; then
1406       ac_cv_prog_PYTHON="python"
1407       break
1408     fi
1409   done
1410   IFS="$ac_save_ifs"
1411 fi
1412 fi
1413 PYTHON="$ac_cv_prog_PYTHON"
1414 if test -n "$PYTHON"; then
1415   echo "$ac_t""$PYTHON" 1>&6
1416 else
1417   echo "$ac_t""no" 1>&6
1418 fi
1419
1420   
1421 if test "${PYTHON+set}" = set ; then
1422   python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
1423   python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
1424   python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
1425   python_configdir="${python_execprefix}/lib/python${python_version}/config"
1426   python_moduledir="${python_prefix}/lib/python${python_version}"
1427   python_extmakefile="${python_configdir}/Makefile.pre.in"
1428
1429   echo $ac_n "checking for Python extension makefile""... $ac_c" 1>&6
1430 echo "configure:1431: checking for Python extension makefile" >&5
1431   if test -f "${python_extmakefile}" ; then
1432     echo "$ac_t""found" 1>&6
1433   else
1434     echo "$ac_t""no" 1>&6
1435     { echo "configure: error: The Python extension makefile was expected at \`${python_extmakefile}\'
1436 but does not exist. This means the Python module cannot be built automatically." 1>&2; exit 1; }
1437   fi
1438
1439   
1440   
1441   
1442   
1443   
1444   
1445 else
1446   { echo "configure: error: Python not found" 1>&2; exit 1; }
1447 fi
1448 else
1449   echo "$ac_t""no" 1>&6
1450 fi
1451 else
1452   echo "$ac_t""no" 1>&6
1453 fi
1454
1455
1456
1457 echo $ac_n "checking setting USE_ODBC""... $ac_c" 1>&6
1458 echo "configure:1459: checking setting USE_ODBC" >&5
1459 # Check whether --with-odbc or --without-odbc was given.
1460 if test "${with_odbc+set}" = set; then
1461   withval="$with_odbc"
1462   
1463         case "$withval" in
1464         y | ye | yes)           USE_ODBC=true; echo "$ac_t""enabled" 1>&6 ;;
1465         *)                      USE_ODBC=false; echo "$ac_t""disabled" 1>&6 ;;
1466         esac
1467    
1468 else
1469    USE_ODBC=false; echo "$ac_t""disabled" 1>&6 
1470
1471 fi
1472
1473 export USE_ODBC
1474
1475
1476 if test "X$USE_ODBC" = "Xtrue"
1477 then
1478    
1479    
1480    
1481    
1482
1483    echo $ac_n "checking setting ODBCINST""... $ac_c" 1>&6
1484 echo "configure:1485: checking setting ODBCINST" >&5
1485    # Check whether --with-odbcinst or --without-odbcinst was given.
1486 if test "${with_odbcinst+set}" = set; then
1487   withval="$with_odbcinst"
1488   cat >> confdefs.h <<EOF
1489 #define ODBCINST ${with_odbcinst}
1490 EOF
1491  echo "$ac_t""$with_odbcinst" 1>&6
1492 else
1493   cat >> confdefs.h <<EOF
1494 #define ODBCINST ${ODBCINSTDIR}
1495 EOF
1496  echo "$ac_t""${ODBCINSTDIR}" 1>&6
1497    
1498 fi
1499
1500 fi
1501 if test "X$with_odbcinst" != "X"
1502 then
1503     ODBCINSTDIR=$with_odbcinst
1504 fi
1505
1506
1507 # check for unixODBC
1508
1509 use_unixODBC=no
1510 # Check whether --with-unixODBC or --without-unixODBC was given.
1511 if test "${with_unixODBC+set}" = set; then
1512   withval="$with_unixODBC"
1513   use_unixODBC=yes; unixODBC="$withval"
1514 else
1515   use_unixODBC=no
1516 fi
1517
1518
1519 if test "x$use_unixODBC" = "xyes"
1520 then
1521
1522 # default to /usr if not specified
1523 if test "x$unixODBC" = "x"
1524 then
1525     unixODBC="/usr";
1526 fi
1527
1528 # Check whether --with-unixODBC-includes or --without-unixODBC-includes was given.
1529 if test "${with_unixODBC_includes+set}" = set; then
1530   withval="$with_unixODBC_includes"
1531   unixODBC_includes="$withval"
1532 else
1533   unixODBC_includes="$unixODBC/include"
1534 fi
1535
1536
1537 # Check whether --with-unixODBC-libs or --without-unixODBC-libs was given.
1538 if test "${with_unixODBC_libs+set}" = set; then
1539   withval="$with_unixODBC_libs"
1540   unixODBC_libs="$withval"
1541 else
1542   unixODBC_libs="$unixODBC/lib"
1543 fi
1544
1545
1546 PGSQL_INCLUDES="$PGSQL_INCLUDES -I$unixODBC_includes"
1547
1548 for ac_hdr in sql.h sqlext.h odbcinst.h
1549 do
1550 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1551 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1552 echo "configure:1553: checking for $ac_hdr" >&5
1553 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1554   echo $ac_n "(cached) $ac_c" 1>&6
1555 else
1556   cat > conftest.$ac_ext <<EOF
1557 #line 1558 "configure"
1558 #include "confdefs.h"
1559 #include <$ac_hdr>
1560 EOF
1561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1562 { (eval echo configure:1563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1564 if test -z "$ac_err"; then
1565   rm -rf conftest*
1566   eval "ac_cv_header_$ac_safe=yes"
1567 else
1568   echo "$ac_err" >&5
1569   echo "configure: failed program was:" >&5
1570   cat conftest.$ac_ext >&5
1571   rm -rf conftest*
1572   eval "ac_cv_header_$ac_safe=no"
1573 fi
1574 rm -f conftest*
1575 fi
1576 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1577   echo "$ac_t""yes" 1>&6
1578     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1579   cat >> confdefs.h <<EOF
1580 #define $ac_tr_hdr 1
1581 EOF
1582  unixODBC_ok=yes; odbc_headers="$odbc_headers $ac_hdr"
1583 else
1584   echo "$ac_t""no" 1>&6
1585 unixODBC_ok=no; break
1586 fi
1587 done
1588
1589
1590 if test "x$unixODBC_ok" != "xyes"
1591 then
1592     { echo "configure: error: Unable to find the unixODBC headers in $1" 1>&2; exit 1; }
1593 fi
1594
1595 save_LIBS="$LIBS"
1596 LIBS="$LIBS -L$unixODBC_libs"
1597
1598 echo $ac_n "checking for SQLGetPrivateProfileString in -lodbcinst""... $ac_c" 1>&6
1599 echo "configure:1600: checking for SQLGetPrivateProfileString in -lodbcinst" >&5
1600 ac_lib_var=`echo odbcinst'_'SQLGetPrivateProfileString | sed 'y%./+-%__p_%'`
1601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1602   echo $ac_n "(cached) $ac_c" 1>&6
1603 else
1604   ac_save_LIBS="$LIBS"
1605 LIBS="-lodbcinst  $LIBS"
1606 cat > conftest.$ac_ext <<EOF
1607 #line 1608 "configure"
1608 #include "confdefs.h"
1609 /* Override any gcc2 internal prototype to avoid an error.  */
1610 /* We use char because int might match the return type of a gcc2
1611     builtin and then its argument prototype would still apply.  */
1612 char SQLGetPrivateProfileString();
1613
1614 int main() {
1615 SQLGetPrivateProfileString()
1616 ; return 0; }
1617 EOF
1618 if { (eval echo configure:1619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1619   rm -rf conftest*
1620   eval "ac_cv_lib_$ac_lib_var=yes"
1621 else
1622   echo "configure: failed program was:" >&5
1623   cat conftest.$ac_ext >&5
1624   rm -rf conftest*
1625   eval "ac_cv_lib_$ac_lib_var=no"
1626 fi
1627 rm -f conftest*
1628 LIBS="$ac_save_LIBS"
1629
1630 fi
1631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1632   echo "$ac_t""yes" 1>&6
1633   cat >> confdefs.h <<\EOF
1634 #define HAVE_SQLGETPRIVATEPROFILESTRING 1
1635 EOF
1636
1637          LIBS="$LIBS -lodbcinst"
1638 else
1639   echo "$ac_t""no" 1>&6
1640 LIBS="$save_LIBS"
1641 fi
1642
1643
1644 fi
1645
1646 echo $ac_n "checking setting ASSERT CHECKING""... $ac_c" 1>&6
1647 echo "configure:1648: checking setting ASSERT CHECKING" >&5
1648 # Check whether --enable-cassert or --disable-cassert was given.
1649 if test "${enable_cassert+set}" = set; then
1650   enableval="$enable_cassert"
1651   cat >> confdefs.h <<\EOF
1652 #define USE_ASSERT_CHECKING 1
1653 EOF
1654  echo "$ac_t""enabled" 1>&6
1655 else
1656   echo "$ac_t""disabled" 1>&6
1657
1658 fi
1659
1660
1661 CPPFLAGS="$CPPFLAGS $PGSQL_INCLUDES"
1662 echo "- setting CPPFLAGS=$CPPFLAGS"
1663
1664 LDFLAGS="$LDFLAGS $PGSQL_LDFLAGS"
1665 echo "- setting LDFLAGS=$LDFLAGS"
1666
1667 echo $ac_n "checking setting debug compiler flag""... $ac_c" 1>&6
1668 echo "configure:1669: checking setting debug compiler flag" >&5
1669 # Check whether --enable-debug or --disable-debug was given.
1670 if test "${enable_debug+set}" = set; then
1671   enableval="$enable_debug"
1672   
1673         case "$enableval" in
1674         y | ye | yes)
1675             CFLAGS="$CFLAGS -g"
1676             echo "$ac_t""enabled" 1>&6
1677             ;;
1678         *)
1679             CFLAGS=`echo "$CFLAGS" | sed -e 's/ -g/ /g' | sed -e 's/^-g//'`
1680             echo "$ac_t""disabled" 1>&6
1681             ;;
1682         esac            
1683    
1684 else
1685   echo "$ac_t""using default" 1>&6
1686
1687 fi
1688
1689
1690 # Assume system is ELF if it predefines __ELF__ as 1,
1691 # otherwise believe "elf" setting from check of host_os above.
1692 cat > conftest.$ac_ext <<EOF
1693 #line 1694 "configure"
1694 #include "confdefs.h"
1695 #if __ELF__
1696   yes
1697 #endif
1698
1699 EOF
1700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1701   egrep "yes" >/dev/null 2>&1; then
1702   rm -rf conftest*
1703   ELF_SYS=true
1704 else
1705   rm -rf conftest*
1706   if test "X$elf" = "Xyes"
1707 then
1708         ELF_SYS=true
1709 else
1710         ELF_SYS=
1711 fi
1712
1713 fi
1714 rm -f conftest*
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736 echo $ac_n "checking whether to build C++ modules""... $ac_c" 1>&6
1737 echo "configure:1738: checking whether to build C++ modules" >&5
1738 # Check whether --with-CXX or --without-CXX was given.
1739 if test "${with_CXX+set}" = set; then
1740   withval="$with_CXX"
1741   if test "x${withval+set}" = xset; then
1742   echo "$ac_t""yes" 1>&6
1743   if test x"$withval" != xyes ; then
1744     CXX=$withval
1745   fi
1746   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1747 do
1748 # Extract the first word of "$ac_prog", so it can be a program name with args.
1749 set dummy $ac_prog; ac_word=$2
1750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1751 echo "configure:1752: checking for $ac_word" >&5
1752 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1753   echo $ac_n "(cached) $ac_c" 1>&6
1754 else
1755   if test -n "$CXX"; then
1756   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1757 else
1758   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1759   ac_dummy="$PATH"
1760   for ac_dir in $ac_dummy; do
1761     test -z "$ac_dir" && ac_dir=.
1762     if test -f $ac_dir/$ac_word; then
1763       ac_cv_prog_CXX="$ac_prog"
1764       break
1765     fi
1766   done
1767   IFS="$ac_save_ifs"
1768 fi
1769 fi
1770 CXX="$ac_cv_prog_CXX"
1771 if test -n "$CXX"; then
1772   echo "$ac_t""$CXX" 1>&6
1773 else
1774   echo "$ac_t""no" 1>&6
1775 fi
1776
1777 test -n "$CXX" && break
1778 done
1779 test -n "$CXX" || CXX="gcc"
1780
1781
1782 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1783 echo "configure:1784: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1784
1785 ac_ext=C
1786 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1787 ac_cpp='$CXXCPP $CPPFLAGS'
1788 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1789 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1790 cross_compiling=$ac_cv_prog_cxx_cross
1791
1792 cat > conftest.$ac_ext << EOF
1793
1794 #line 1795 "configure"
1795 #include "confdefs.h"
1796
1797 int main(){return(0);}
1798 EOF
1799 if { (eval echo configure:1800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1800   ac_cv_prog_cxx_works=yes
1801   # If we can't run a trivial program, we are probably using a cross compiler.
1802   if (./conftest; exit) 2>/dev/null; then
1803     ac_cv_prog_cxx_cross=no
1804   else
1805     ac_cv_prog_cxx_cross=yes
1806   fi
1807 else
1808   echo "configure: failed program was:" >&5
1809   cat conftest.$ac_ext >&5
1810   ac_cv_prog_cxx_works=no
1811 fi
1812 rm -fr conftest*
1813 ac_ext=c
1814 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1815 ac_cpp='$CPP $CPPFLAGS'
1816 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1817 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1818 cross_compiling=$ac_cv_prog_cc_cross
1819
1820 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1821 if test $ac_cv_prog_cxx_works = no; then
1822   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1823 fi
1824 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1825 echo "configure:1826: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1826 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1827 cross_compiling=$ac_cv_prog_cxx_cross
1828
1829 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1830 echo "configure:1831: checking whether we are using GNU C++" >&5
1831 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1832   echo $ac_n "(cached) $ac_c" 1>&6
1833 else
1834   cat > conftest.C <<EOF
1835 #ifdef __GNUC__
1836   yes;
1837 #endif
1838 EOF
1839 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1840   ac_cv_prog_gxx=yes
1841 else
1842   ac_cv_prog_gxx=no
1843 fi
1844 fi
1845
1846 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1847
1848 if test $ac_cv_prog_gxx = yes; then
1849   GXX=yes
1850 else
1851   GXX=
1852 fi
1853
1854 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1855 ac_save_CXXFLAGS="$CXXFLAGS"
1856 CXXFLAGS=
1857 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1858 echo "configure:1859: checking whether ${CXX-g++} accepts -g" >&5
1859 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1860   echo $ac_n "(cached) $ac_c" 1>&6
1861 else
1862   echo 'void f(){}' > conftest.cc
1863 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1864   ac_cv_prog_cxx_g=yes
1865 else
1866   ac_cv_prog_cxx_g=no
1867 fi
1868 rm -f conftest*
1869
1870 fi
1871
1872 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1873 if test "$ac_test_CXXFLAGS" = set; then
1874   CXXFLAGS="$ac_save_CXXFLAGS"
1875 elif test $ac_cv_prog_cxx_g = yes; then
1876   if test "$GXX" = yes; then
1877     CXXFLAGS="-g -O2"
1878   else
1879     CXXFLAGS="-g"
1880   fi
1881 else
1882   if test "$GXX" = yes; then
1883     CXXFLAGS="-O2"
1884   else
1885     CXXFLAGS=
1886   fi
1887 fi
1888
1889   echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1890 echo "configure:1891: checking how to run the C++ preprocessor" >&5
1891 if test -z "$CXXCPP"; then
1892 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1893   echo $ac_n "(cached) $ac_c" 1>&6
1894 else
1895   ac_ext=C
1896 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1897 ac_cpp='$CXXCPP $CPPFLAGS'
1898 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1899 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1900 cross_compiling=$ac_cv_prog_cxx_cross
1901   CXXCPP="${CXX-g++} -E"
1902   cat > conftest.$ac_ext <<EOF
1903 #line 1904 "configure"
1904 #include "confdefs.h"
1905 #include <stdlib.h>
1906 EOF
1907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1908 { (eval echo configure:1909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1910 if test -z "$ac_err"; then
1911   :
1912 else
1913   echo "$ac_err" >&5
1914   echo "configure: failed program was:" >&5
1915   cat conftest.$ac_ext >&5
1916   rm -rf conftest*
1917   CXXCPP=/lib/cpp
1918 fi
1919 rm -f conftest*
1920   ac_cv_prog_CXXCPP="$CXXCPP"
1921 ac_ext=c
1922 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1923 ac_cpp='$CPP $CPPFLAGS'
1924 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1925 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1926 cross_compiling=$ac_cv_prog_cc_cross
1927 fi
1928 fi
1929 CXXCPP="$ac_cv_prog_CXXCPP"
1930 echo "$ac_t""$CXXCPP" 1>&6
1931
1932   
1933 ac_ext=C
1934 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1935 ac_cpp='$CXXCPP $CPPFLAGS'
1936 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1937 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1938 cross_compiling=$ac_cv_prog_cxx_cross
1939
1940 ac_safe=`echo "string" | sed 'y%./+-%__p_%'`
1941 echo $ac_n "checking for string""... $ac_c" 1>&6
1942 echo "configure:1943: checking for string" >&5
1943 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1944   echo $ac_n "(cached) $ac_c" 1>&6
1945 else
1946   cat > conftest.$ac_ext <<EOF
1947 #line 1948 "configure"
1948 #include "confdefs.h"
1949 #include <string>
1950 EOF
1951 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1952 { (eval echo configure:1953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1953 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1954 if test -z "$ac_err"; then
1955   rm -rf conftest*
1956   eval "ac_cv_header_$ac_safe=yes"
1957 else
1958   echo "$ac_err" >&5
1959   echo "configure: failed program was:" >&5
1960   cat conftest.$ac_ext >&5
1961   rm -rf conftest*
1962   eval "ac_cv_header_$ac_safe=no"
1963 fi
1964 rm -f conftest*
1965 fi
1966 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1967   echo "$ac_t""yes" 1>&6
1968   cat >> confdefs.h <<\EOF
1969 #define HAVE_CXX_STRING_HEADER 1
1970 EOF
1971
1972 else
1973   echo "$ac_t""no" 1>&6
1974 fi
1975
1976
1977 if test x"$ac_cv_header_string" != xyes ; then
1978   echo $ac_n "checking for class string in <string.h>""... $ac_c" 1>&6
1979 echo "configure:1980: checking for class string in <string.h>" >&5
1980 if eval "test \"`echo '$''{'pgac_cv_class_string_in_string_h'+set}'`\" = set"; then
1981   echo $ac_n "(cached) $ac_c" 1>&6
1982 else
1983   cat > conftest.$ac_ext <<EOF
1984 #line 1985 "configure"
1985 #include "confdefs.h"
1986 #include <stdio.h>
1987 #include <stdlib.h>
1988 #include <string.h>
1989
1990 int main() {
1991 string foo = "test"
1992 ; return 0; }
1993 EOF
1994 if { (eval echo configure:1995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1995   rm -rf conftest*
1996   pgac_cv_class_string_in_string_h=yes
1997 else
1998   echo "configure: failed program was:" >&5
1999   cat conftest.$ac_ext >&5
2000   rm -rf conftest*
2001   pgac_cv_class_string_in_string_h=no
2002 fi
2003 rm -f conftest*
2004 fi
2005
2006 echo "$ac_t""$pgac_cv_class_string_in_string_h" 1>&6
2007
2008   if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
2009     { echo "configure: error: neither <string> nor <string.h> seem to define the C++ class \`string\'" 1>&2; exit 1; }
2010   fi
2011 fi
2012 ac_ext=c
2013 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2014 ac_cpp='$CPP $CPPFLAGS'
2015 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2016 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2017 cross_compiling=$ac_cv_prog_cc_cross
2018
2019   
2020 echo $ac_n "checking for namespace std in C++""... $ac_c" 1>&6
2021 echo "configure:2022: checking for namespace std in C++" >&5
2022 if eval "test \"`echo '$''{'pgac_cv_cxx_namespace_std'+set}'`\" = set"; then
2023   echo $ac_n "(cached) $ac_c" 1>&6
2024 else
2025   
2026
2027 ac_ext=C
2028 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2029 ac_cpp='$CXXCPP $CPPFLAGS'
2030 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2031 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2032 cross_compiling=$ac_cv_prog_cxx_cross
2033
2034 cat > conftest.$ac_ext <<EOF
2035 #line 2036 "configure"
2036 #include "confdefs.h"
2037 #include <stdio.h>
2038 #include <stdlib.h>
2039 #ifdef HAVE_CXX_STRING_HEADER
2040 #include <string>
2041 #endif
2042 using namespace std;
2043
2044 int main() {
2045
2046 ; return 0; }
2047 EOF
2048 if { (eval echo configure:2049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2049   rm -rf conftest*
2050   pgac_cv_cxx_namespace_std=yes
2051 else
2052   echo "configure: failed program was:" >&5
2053   cat conftest.$ac_ext >&5
2054   rm -rf conftest*
2055   pgac_cv_cxx_namespace_std=no
2056 fi
2057 rm -f conftest*
2058 ac_ext=c
2059 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2060 ac_cpp='$CPP $CPPFLAGS'
2061 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2062 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2063 cross_compiling=$ac_cv_prog_cc_cross
2064
2065 fi
2066
2067 echo "$ac_t""$pgac_cv_cxx_namespace_std" 1>&6
2068
2069 if test $pgac_cv_cxx_namespace_std = yes ; then
2070     cat >> confdefs.h <<\EOF
2071 #define HAVE_NAMESPACE_STD 1
2072 EOF
2073
2074 fi
2075 else
2076   echo "$ac_t""no" 1>&6
2077 fi
2078 else
2079   echo "$ac_t""no" 1>&6
2080 fi
2081
2082
2083
2084
2085
2086
2087 # Find a good install program.  We prefer a C program (faster),
2088 # so one script is as good as another.  But avoid the broken or
2089 # incompatible versions:
2090 # SysV /etc/install, /usr/sbin/install
2091 # SunOS /usr/etc/install
2092 # IRIX /sbin/install
2093 # AIX /bin/install
2094 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2095 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2096 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2097 # ./install, which can be erroneously created by make from ./install.sh.
2098 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2099 echo "configure:2100: checking for a BSD compatible install" >&5
2100 if test -z "$INSTALL"; then
2101 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2102   echo $ac_n "(cached) $ac_c" 1>&6
2103 else
2104     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
2105   for ac_dir in $PATH; do
2106     # Account for people who put trailing slashes in PATH elements.
2107     case "$ac_dir/" in
2108     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2109     *)
2110       # OSF1 and SCO ODT 3.0 have their own names for install.
2111       # Don't use installbsd from OSF since it installs stuff as root
2112       # by default.
2113       for ac_prog in ginstall scoinst install; do
2114         if test -f $ac_dir/$ac_prog; then
2115           if test $ac_prog = install &&
2116             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2117             # AIX install.  It has an incompatible calling convention.
2118             :
2119           else
2120             ac_cv_path_install="$ac_dir/$ac_prog -c"
2121             break 2
2122           fi
2123         fi
2124       done
2125       ;;
2126     esac
2127   done
2128   IFS="$ac_save_IFS"
2129
2130 fi
2131   if test "${ac_cv_path_install+set}" = set; then
2132     INSTALL="$ac_cv_path_install"
2133   else
2134     # As a last resort, use the slow shell script.  We don't cache a
2135     # path for INSTALL within a source directory, because that will
2136     # break other packages using the cache if that directory is
2137     # removed, or if the path is relative.
2138     INSTALL="$ac_install_sh"
2139   fi
2140 fi
2141 echo "$ac_t""$INSTALL" 1>&6
2142
2143 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2144 # It thinks the first close brace ends the variable substitution.
2145 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2146
2147 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2148
2149 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2150
2151
2152 INSTLOPTS="-m 444"
2153 INSTL_EXE_OPTS="-m 555"
2154 INSTL_LIB_OPTS="-m 644"
2155 INSTL_SHLIB_OPTS="-m 644"
2156
2157 case "$host_os" in
2158  hpux*)
2159         INSTL_SHLIB_OPTS="-m 555" ;;
2160 esac
2161
2162
2163
2164
2165
2166
2167
2168 for ac_prog in gawk mawk nawk awk
2169 do
2170 # Extract the first word of "$ac_prog", so it can be a program name with args.
2171 set dummy $ac_prog; ac_word=$2
2172 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2173 echo "configure:2174: checking for $ac_word" >&5
2174 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2175   echo $ac_n "(cached) $ac_c" 1>&6
2176 else
2177   if test -n "$AWK"; then
2178   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2179 else
2180   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2181   ac_dummy="$PATH"
2182   for ac_dir in $ac_dummy; do
2183     test -z "$ac_dir" && ac_dir=.
2184     if test -f $ac_dir/$ac_word; then
2185       ac_cv_prog_AWK="$ac_prog"
2186       break
2187     fi
2188   done
2189   IFS="$ac_save_ifs"
2190 fi
2191 fi
2192 AWK="$ac_cv_prog_AWK"
2193 if test -n "$AWK"; then
2194   echo "$ac_t""$AWK" 1>&6
2195 else
2196   echo "$ac_t""no" 1>&6
2197 fi
2198
2199 test -n "$AWK" && break
2200 done
2201
2202 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
2203 echo "configure:2204: checking for working autoconf" >&5
2204 # Run test in a subshell; some versions of sh will print an error if
2205 # an executable is not found, even if stderr is redirected.
2206 # Redirect stdin to placate older versions of autoconf.  Sigh.
2207 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
2208    AUTOCONF=autoconf
2209    echo "$ac_t""found" 1>&6
2210 else
2211    AUTOCONF="\${SHELL} \${top_srcdir}/config/missing autoconf"
2212    echo "$ac_t""missing" 1>&6
2213 fi
2214
2215 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
2216 echo "configure:2217: checking for working aclocal" >&5
2217 # Run test in a subshell; some versions of sh will print an error if
2218 # an executable is not found, even if stderr is redirected.
2219 # Redirect stdin to placate older versions of autoconf.  Sigh.
2220 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
2221    ACLOCAL=aclocal
2222    echo "$ac_t""found" 1>&6
2223 else
2224    ACLOCAL="\${SHELL} \${top_srcdir}/config/missing aclocal"
2225    echo "$ac_t""missing" 1>&6
2226 fi
2227
2228
2229 # Extract the first word of "flex", so it can be a program name with args.
2230 set dummy flex; ac_word=$2
2231 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2232 echo "configure:2233: checking for $ac_word" >&5
2233 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2234   echo $ac_n "(cached) $ac_c" 1>&6
2235 else
2236   if test -n "$LEX"; then
2237   ac_cv_prog_LEX="$LEX" # Let the user override the test.
2238 else
2239   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2240   ac_dummy="$PATH"
2241   for ac_dir in $ac_dummy; do
2242     test -z "$ac_dir" && ac_dir=.
2243     if test -f $ac_dir/$ac_word; then
2244       ac_cv_prog_LEX="flex"
2245       break
2246     fi
2247   done
2248   IFS="$ac_save_ifs"
2249   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
2250 fi
2251 fi
2252 LEX="$ac_cv_prog_LEX"
2253 if test -n "$LEX"; then
2254   echo "$ac_t""$LEX" 1>&6
2255 else
2256   echo "$ac_t""no" 1>&6
2257 fi
2258
2259 if test -z "$LEXLIB"
2260 then
2261   case "$LEX" in
2262   flex*) ac_lib=fl ;;
2263   *) ac_lib=l ;;
2264   esac
2265   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2266 echo "configure:2267: checking for yywrap in -l$ac_lib" >&5
2267 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2268 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2269   echo $ac_n "(cached) $ac_c" 1>&6
2270 else
2271   ac_save_LIBS="$LIBS"
2272 LIBS="-l$ac_lib  $LIBS"
2273 cat > conftest.$ac_ext <<EOF
2274 #line 2275 "configure"
2275 #include "confdefs.h"
2276 /* Override any gcc2 internal prototype to avoid an error.  */
2277 /* We use char because int might match the return type of a gcc2
2278     builtin and then its argument prototype would still apply.  */
2279 char yywrap();
2280
2281 int main() {
2282 yywrap()
2283 ; return 0; }
2284 EOF
2285 if { (eval echo configure:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2286   rm -rf conftest*
2287   eval "ac_cv_lib_$ac_lib_var=yes"
2288 else
2289   echo "configure: failed program was:" >&5
2290   cat conftest.$ac_ext >&5
2291   rm -rf conftest*
2292   eval "ac_cv_lib_$ac_lib_var=no"
2293 fi
2294 rm -f conftest*
2295 LIBS="$ac_save_LIBS"
2296
2297 fi
2298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2299   echo "$ac_t""yes" 1>&6
2300   LEXLIB="-l$ac_lib"
2301 else
2302   echo "$ac_t""no" 1>&6
2303 fi
2304
2305 fi
2306
2307 if test "$LEX" = "flex"; then
2308         $LEX --version 2> /dev/null | grep -s '2\.5\.3' > /dev/null 2>&1
2309         if test $? -eq 0 ; then
2310                 echo "configure: warning: 
2311 ***
2312 You have flex version 2.5.3, which is broken. Get version 2.5.4 or
2313 a different lex.
2314 (If you are using the official distribution of PostgreSQL then you
2315 do not need to worry about this because the lexer files are
2316 pre-generated. However, other software using flex is likely to be
2317 broken as well.)
2318 ***" 1>&2
2319         fi
2320 fi
2321 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2322 echo "configure:2323: checking whether ln -s works" >&5
2323 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2324   echo $ac_n "(cached) $ac_c" 1>&6
2325 else
2326   rm -f conftestdata
2327 if ln -s X conftestdata 2>/dev/null
2328 then
2329   rm -f conftestdata
2330   ac_cv_prog_LN_S="ln -s"
2331 else
2332   ac_cv_prog_LN_S=ln
2333 fi
2334 fi
2335 LN_S="$ac_cv_prog_LN_S"
2336 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2337   echo "$ac_t""yes" 1>&6
2338 else
2339   echo "$ac_t""no" 1>&6
2340 fi
2341
2342 # Extract the first word of "ranlib", so it can be a program name with args.
2343 set dummy ranlib; ac_word=$2
2344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2345 echo "configure:2346: checking for $ac_word" >&5
2346 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2347   echo $ac_n "(cached) $ac_c" 1>&6
2348 else
2349   if test -n "$RANLIB"; then
2350   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2351 else
2352   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2353   ac_dummy="$PATH"
2354   for ac_dir in $ac_dummy; do
2355     test -z "$ac_dir" && ac_dir=.
2356     if test -f $ac_dir/$ac_word; then
2357       ac_cv_prog_RANLIB="ranlib"
2358       break
2359     fi
2360   done
2361   IFS="$ac_save_ifs"
2362   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2363 fi
2364 fi
2365 RANLIB="$ac_cv_prog_RANLIB"
2366 if test -n "$RANLIB"; then
2367   echo "$ac_t""$RANLIB" 1>&6
2368 else
2369   echo "$ac_t""no" 1>&6
2370 fi
2371
2372 # Extract the first word of "find", so it can be a program name with args.
2373 set dummy find; ac_word=$2
2374 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2375 echo "configure:2376: checking for $ac_word" >&5
2376 if eval "test \"`echo '$''{'ac_cv_path_find'+set}'`\" = set"; then
2377   echo $ac_n "(cached) $ac_c" 1>&6
2378 else
2379   case "$find" in
2380   /*)
2381   ac_cv_path_find="$find" # Let the user override the test with a path.
2382   ;;
2383   ?:/*)                  
2384   ac_cv_path_find="$find" # Let the user override the test with a dos path.
2385   ;;
2386   *)
2387   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2388   ac_dummy="$PATH"
2389   for ac_dir in $ac_dummy; do 
2390     test -z "$ac_dir" && ac_dir=.
2391     if test -f $ac_dir/$ac_word; then
2392       ac_cv_path_find="$ac_dir/$ac_word"
2393       break
2394     fi
2395   done
2396   IFS="$ac_save_ifs"
2397   ;;
2398 esac
2399 fi
2400 find="$ac_cv_path_find"
2401 if test -n "$find"; then
2402   echo "$ac_t""$find" 1>&6
2403 else
2404   echo "$ac_t""no" 1>&6
2405 fi
2406
2407 # Extract the first word of "tar", so it can be a program name with args.
2408 set dummy tar; ac_word=$2
2409 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2410 echo "configure:2411: checking for $ac_word" >&5
2411 if eval "test \"`echo '$''{'ac_cv_path_tar'+set}'`\" = set"; then
2412   echo $ac_n "(cached) $ac_c" 1>&6
2413 else
2414   case "$tar" in
2415   /*)
2416   ac_cv_path_tar="$tar" # Let the user override the test with a path.
2417   ;;
2418   ?:/*)                  
2419   ac_cv_path_tar="$tar" # Let the user override the test with a dos path.
2420   ;;
2421   *)
2422   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2423   ac_dummy="$PATH"
2424   for ac_dir in $ac_dummy; do 
2425     test -z "$ac_dir" && ac_dir=.
2426     if test -f $ac_dir/$ac_word; then
2427       ac_cv_path_tar="$ac_dir/$ac_word"
2428       break
2429     fi
2430   done
2431   IFS="$ac_save_ifs"
2432   ;;
2433 esac
2434 fi
2435 tar="$ac_cv_path_tar"
2436 if test -n "$tar"; then
2437   echo "$ac_t""$tar" 1>&6
2438 else
2439   echo "$ac_t""no" 1>&6
2440 fi
2441
2442 # Extract the first word of "split", so it can be a program name with args.
2443 set dummy split; ac_word=$2
2444 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2445 echo "configure:2446: checking for $ac_word" >&5
2446 if eval "test \"`echo '$''{'ac_cv_path_split'+set}'`\" = set"; then
2447   echo $ac_n "(cached) $ac_c" 1>&6
2448 else
2449   case "$split" in
2450   /*)
2451   ac_cv_path_split="$split" # Let the user override the test with a path.
2452   ;;
2453   ?:/*)                  
2454   ac_cv_path_split="$split" # Let the user override the test with a dos path.
2455   ;;
2456   *)
2457   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2458   ac_dummy="$PATH"
2459   for ac_dir in $ac_dummy; do 
2460     test -z "$ac_dir" && ac_dir=.
2461     if test -f $ac_dir/$ac_word; then
2462       ac_cv_path_split="$ac_dir/$ac_word"
2463       break
2464     fi
2465   done
2466   IFS="$ac_save_ifs"
2467   ;;
2468 esac
2469 fi
2470 split="$ac_cv_path_split"
2471 if test -n "$split"; then
2472   echo "$ac_t""$split" 1>&6
2473 else
2474   echo "$ac_t""no" 1>&6
2475 fi
2476
2477 # Extract the first word of "etags", so it can be a program name with args.
2478 set dummy etags; ac_word=$2
2479 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2480 echo "configure:2481: checking for $ac_word" >&5
2481 if eval "test \"`echo '$''{'ac_cv_path_etags'+set}'`\" = set"; then
2482   echo $ac_n "(cached) $ac_c" 1>&6
2483 else
2484   case "$etags" in
2485   /*)
2486   ac_cv_path_etags="$etags" # Let the user override the test with a path.
2487   ;;
2488   ?:/*)                  
2489   ac_cv_path_etags="$etags" # Let the user override the test with a dos path.
2490   ;;
2491   *)
2492   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2493   ac_dummy="$PATH"
2494   for ac_dir in $ac_dummy; do 
2495     test -z "$ac_dir" && ac_dir=.
2496     if test -f $ac_dir/$ac_word; then
2497       ac_cv_path_etags="$ac_dir/$ac_word"
2498       break
2499     fi
2500   done
2501   IFS="$ac_save_ifs"
2502   ;;
2503 esac
2504 fi
2505 etags="$ac_cv_path_etags"
2506 if test -n "$etags"; then
2507   echo "$ac_t""$etags" 1>&6
2508 else
2509   echo "$ac_t""no" 1>&6
2510 fi
2511
2512 # Extract the first word of "xargs", so it can be a program name with args.
2513 set dummy xargs; ac_word=$2
2514 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2515 echo "configure:2516: checking for $ac_word" >&5
2516 if eval "test \"`echo '$''{'ac_cv_path_xargs'+set}'`\" = set"; then
2517   echo $ac_n "(cached) $ac_c" 1>&6
2518 else
2519   case "$xargs" in
2520   /*)
2521   ac_cv_path_xargs="$xargs" # Let the user override the test with a path.
2522   ;;
2523   ?:/*)                  
2524   ac_cv_path_xargs="$xargs" # Let the user override the test with a dos path.
2525   ;;
2526   *)
2527   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2528   ac_dummy="$PATH"
2529   for ac_dir in $ac_dummy; do 
2530     test -z "$ac_dir" && ac_dir=.
2531     if test -f $ac_dir/$ac_word; then
2532       ac_cv_path_xargs="$ac_dir/$ac_word"
2533       break
2534     fi
2535   done
2536   IFS="$ac_save_ifs"
2537   ;;
2538 esac
2539 fi
2540 xargs="$ac_cv_path_xargs"
2541 if test -n "$xargs"; then
2542   echo "$ac_t""$xargs" 1>&6
2543 else
2544   echo "$ac_t""no" 1>&6
2545 fi
2546
2547 for ac_prog in gzcat zcat
2548 do
2549 # Extract the first word of "$ac_prog", so it can be a program name with args.
2550 set dummy $ac_prog; ac_word=$2
2551 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2552 echo "configure:2553: checking for $ac_word" >&5
2553 if eval "test \"`echo '$''{'ac_cv_path_GZCAT'+set}'`\" = set"; then
2554   echo $ac_n "(cached) $ac_c" 1>&6
2555 else
2556   case "$GZCAT" in
2557   /*)
2558   ac_cv_path_GZCAT="$GZCAT" # Let the user override the test with a path.
2559   ;;
2560   ?:/*)                  
2561   ac_cv_path_GZCAT="$GZCAT" # Let the user override the test with a dos path.
2562   ;;
2563   *)
2564   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2565   ac_dummy="$PATH"
2566   for ac_dir in $ac_dummy; do 
2567     test -z "$ac_dir" && ac_dir=.
2568     if test -f $ac_dir/$ac_word; then
2569       ac_cv_path_GZCAT="$ac_dir/$ac_word"
2570       break
2571     fi
2572   done
2573   IFS="$ac_save_ifs"
2574   ;;
2575 esac
2576 fi
2577 GZCAT="$ac_cv_path_GZCAT"
2578 if test -n "$GZCAT"; then
2579   echo "$ac_t""$GZCAT" 1>&6
2580 else
2581   echo "$ac_t""no" 1>&6
2582 fi
2583
2584 test -n "$GZCAT" && break
2585 done
2586 test -n "$GZCAT" || GZCAT="gzcat"
2587
2588 for ac_prog in perl
2589 do
2590 # Extract the first word of "$ac_prog", so it can be a program name with args.
2591 set dummy $ac_prog; ac_word=$2
2592 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2593 echo "configure:2594: checking for $ac_word" >&5
2594 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
2595   echo $ac_n "(cached) $ac_c" 1>&6
2596 else
2597   if test -n "$PERL"; then
2598   ac_cv_prog_PERL="$PERL" # Let the user override the test.
2599 else
2600   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2601   ac_dummy="$PATH"
2602   for ac_dir in $ac_dummy; do
2603     test -z "$ac_dir" && ac_dir=.
2604     if test -f $ac_dir/$ac_word; then
2605       ac_cv_prog_PERL="$ac_prog"
2606       break
2607     fi
2608   done
2609   IFS="$ac_save_ifs"
2610 fi
2611 fi
2612 PERL="$ac_cv_prog_PERL"
2613 if test -n "$PERL"; then
2614   echo "$ac_t""$PERL" 1>&6
2615 else
2616   echo "$ac_t""no" 1>&6
2617 fi
2618
2619 test -n "$PERL" && break
2620 done
2621
2622 for ac_prog in 'bison -y' byacc
2623 do
2624 # Extract the first word of "$ac_prog", so it can be a program name with args.
2625 set dummy $ac_prog; ac_word=$2
2626 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2627 echo "configure:2628: checking for $ac_word" >&5
2628 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2629   echo $ac_n "(cached) $ac_c" 1>&6
2630 else
2631   if test -n "$YACC"; then
2632   ac_cv_prog_YACC="$YACC" # Let the user override the test.
2633 else
2634   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2635   ac_dummy="$PATH"
2636   for ac_dir in $ac_dummy; do
2637     test -z "$ac_dir" && ac_dir=.
2638     if test -f $ac_dir/$ac_word; then
2639       ac_cv_prog_YACC="$ac_prog"
2640       break
2641     fi
2642   done
2643   IFS="$ac_save_ifs"
2644 fi
2645 fi
2646 YACC="$ac_cv_prog_YACC"
2647 if test -n "$YACC"; then
2648   echo "$ac_t""$YACC" 1>&6
2649 else
2650   echo "$ac_t""no" 1>&6
2651 fi
2652
2653 test -n "$YACC" && break
2654 done
2655 test -n "$YACC" || YACC="yacc"
2656
2657
2658
2659
2660 echo $ac_n "checking for main in -lsfio""... $ac_c" 1>&6
2661 echo "configure:2662: checking for main in -lsfio" >&5
2662 ac_lib_var=`echo sfio'_'main | sed 'y%./+-%__p_%'`
2663 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2664   echo $ac_n "(cached) $ac_c" 1>&6
2665 else
2666   ac_save_LIBS="$LIBS"
2667 LIBS="-lsfio  $LIBS"
2668 cat > conftest.$ac_ext <<EOF
2669 #line 2670 "configure"
2670 #include "confdefs.h"
2671
2672 int main() {
2673 main()
2674 ; return 0; }
2675 EOF
2676 if { (eval echo configure:2677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2677   rm -rf conftest*
2678   eval "ac_cv_lib_$ac_lib_var=yes"
2679 else
2680   echo "configure: failed program was:" >&5
2681   cat conftest.$ac_ext >&5
2682   rm -rf conftest*
2683   eval "ac_cv_lib_$ac_lib_var=no"
2684 fi
2685 rm -f conftest*
2686 LIBS="$ac_save_LIBS"
2687
2688 fi
2689 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2690   echo "$ac_t""yes" 1>&6
2691     ac_tr_lib=HAVE_LIB`echo sfio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2692     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2693   cat >> confdefs.h <<EOF
2694 #define $ac_tr_lib 1
2695 EOF
2696
2697   LIBS="-lsfio $LIBS"
2698
2699 else
2700   echo "$ac_t""no" 1>&6
2701 fi
2702
2703 for curses in ncurses curses ; do
2704         echo $ac_n "checking for main in -l${curses}""... $ac_c" 1>&6
2705 echo "configure:2706: checking for main in -l${curses}" >&5
2706 ac_lib_var=`echo ${curses}'_'main | sed 'y%./+-%__p_%'`
2707 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2708   echo $ac_n "(cached) $ac_c" 1>&6
2709 else
2710   ac_save_LIBS="$LIBS"
2711 LIBS="-l${curses}  $LIBS"
2712 cat > conftest.$ac_ext <<EOF
2713 #line 2714 "configure"
2714 #include "confdefs.h"
2715
2716 int main() {
2717 main()
2718 ; return 0; }
2719 EOF
2720 if { (eval echo configure:2721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2721   rm -rf conftest*
2722   eval "ac_cv_lib_$ac_lib_var=yes"
2723 else
2724   echo "configure: failed program was:" >&5
2725   cat conftest.$ac_ext >&5
2726   rm -rf conftest*
2727   eval "ac_cv_lib_$ac_lib_var=no"
2728 fi
2729 rm -f conftest*
2730 LIBS="$ac_save_LIBS"
2731
2732 fi
2733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2734   echo "$ac_t""yes" 1>&6
2735   LIBS="-l${curses} $LIBS"; break
2736 else
2737   echo "$ac_t""no" 1>&6
2738 fi
2739
2740 done
2741 echo $ac_n "checking for main in -ltermcap""... $ac_c" 1>&6
2742 echo "configure:2743: checking for main in -ltermcap" >&5
2743 ac_lib_var=`echo termcap'_'main | sed 'y%./+-%__p_%'`
2744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2745   echo $ac_n "(cached) $ac_c" 1>&6
2746 else
2747   ac_save_LIBS="$LIBS"
2748 LIBS="-ltermcap  $LIBS"
2749 cat > conftest.$ac_ext <<EOF
2750 #line 2751 "configure"
2751 #include "confdefs.h"
2752
2753 int main() {
2754 main()
2755 ; return 0; }
2756 EOF
2757 if { (eval echo configure:2758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2758   rm -rf conftest*
2759   eval "ac_cv_lib_$ac_lib_var=yes"
2760 else
2761   echo "configure: failed program was:" >&5
2762   cat conftest.$ac_ext >&5
2763   rm -rf conftest*
2764   eval "ac_cv_lib_$ac_lib_var=no"
2765 fi
2766 rm -f conftest*
2767 LIBS="$ac_save_LIBS"
2768
2769 fi
2770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2771   echo "$ac_t""yes" 1>&6
2772     ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2773     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2774   cat >> confdefs.h <<EOF
2775 #define $ac_tr_lib 1
2776 EOF
2777
2778   LIBS="-ltermcap $LIBS"
2779
2780 else
2781   echo "$ac_t""no" 1>&6
2782 fi
2783
2784 echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
2785 echo "configure:2786: checking for main in -lreadline" >&5
2786 ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
2787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2788   echo $ac_n "(cached) $ac_c" 1>&6
2789 else
2790   ac_save_LIBS="$LIBS"
2791 LIBS="-lreadline  $LIBS"
2792 cat > conftest.$ac_ext <<EOF
2793 #line 2794 "configure"
2794 #include "confdefs.h"
2795
2796 int main() {
2797 main()
2798 ; return 0; }
2799 EOF
2800 if { (eval echo configure:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2801   rm -rf conftest*
2802   eval "ac_cv_lib_$ac_lib_var=yes"
2803 else
2804   echo "configure: failed program was:" >&5
2805   cat conftest.$ac_ext >&5
2806   rm -rf conftest*
2807   eval "ac_cv_lib_$ac_lib_var=no"
2808 fi
2809 rm -f conftest*
2810 LIBS="$ac_save_LIBS"
2811
2812 fi
2813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2814   echo "$ac_t""yes" 1>&6
2815     ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2816     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2817   cat >> confdefs.h <<EOF
2818 #define $ac_tr_lib 1
2819 EOF
2820
2821   LIBS="-lreadline $LIBS"
2822
2823 else
2824   echo "$ac_t""no" 1>&6
2825 fi
2826
2827 echo $ac_n "checking for using_history in -lreadline""... $ac_c" 1>&6
2828 echo "configure:2829: checking for using_history in -lreadline" >&5
2829 ac_lib_var=`echo readline'_'using_history | sed 'y%./+-%__p_%'`
2830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2831   echo $ac_n "(cached) $ac_c" 1>&6
2832 else
2833   ac_save_LIBS="$LIBS"
2834 LIBS="-lreadline  $LIBS"
2835 cat > conftest.$ac_ext <<EOF
2836 #line 2837 "configure"
2837 #include "confdefs.h"
2838 /* Override any gcc2 internal prototype to avoid an error.  */
2839 /* We use char because int might match the return type of a gcc2
2840     builtin and then its argument prototype would still apply.  */
2841 char using_history();
2842
2843 int main() {
2844 using_history()
2845 ; return 0; }
2846 EOF
2847 if { (eval echo configure:2848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2848   rm -rf conftest*
2849   eval "ac_cv_lib_$ac_lib_var=yes"
2850 else
2851   echo "configure: failed program was:" >&5
2852   cat conftest.$ac_ext >&5
2853   rm -rf conftest*
2854   eval "ac_cv_lib_$ac_lib_var=no"
2855 fi
2856 rm -f conftest*
2857 LIBS="$ac_save_LIBS"
2858
2859 fi
2860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2861   echo "$ac_t""yes" 1>&6
2862   cat >> confdefs.h <<\EOF
2863 #define HAVE_HISTORY_IN_READLINE 1
2864 EOF
2865
2866 else
2867   echo "$ac_t""no" 1>&6
2868 echo $ac_n "checking for main in -lhistory""... $ac_c" 1>&6
2869 echo "configure:2870: checking for main in -lhistory" >&5
2870 ac_lib_var=`echo history'_'main | sed 'y%./+-%__p_%'`
2871 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2872   echo $ac_n "(cached) $ac_c" 1>&6
2873 else
2874   ac_save_LIBS="$LIBS"
2875 LIBS="-lhistory  $LIBS"
2876 cat > conftest.$ac_ext <<EOF
2877 #line 2878 "configure"
2878 #include "confdefs.h"
2879
2880 int main() {
2881 main()
2882 ; return 0; }
2883 EOF
2884 if { (eval echo configure:2885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2885   rm -rf conftest*
2886   eval "ac_cv_lib_$ac_lib_var=yes"
2887 else
2888   echo "configure: failed program was:" >&5
2889   cat conftest.$ac_ext >&5
2890   rm -rf conftest*
2891   eval "ac_cv_lib_$ac_lib_var=no"
2892 fi
2893 rm -f conftest*
2894 LIBS="$ac_save_LIBS"
2895
2896 fi
2897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2898   echo "$ac_t""yes" 1>&6
2899     ac_tr_lib=HAVE_LIB`echo history | sed -e 's/^a-zA-Z0-9_/_/g' \
2900     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2901   cat >> confdefs.h <<EOF
2902 #define $ac_tr_lib 1
2903 EOF
2904
2905   LIBS="-lhistory $LIBS"
2906
2907 else
2908   echo "$ac_t""no" 1>&6
2909 fi
2910  
2911 fi
2912
2913
2914 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
2915 then
2916         echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
2917 echo "configure:2918: checking for main in -lbsd" >&5
2918 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
2919 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2920   echo $ac_n "(cached) $ac_c" 1>&6
2921 else
2922   ac_save_LIBS="$LIBS"
2923 LIBS="-lbsd  $LIBS"
2924 cat > conftest.$ac_ext <<EOF
2925 #line 2926 "configure"
2926 #include "confdefs.h"
2927
2928 int main() {
2929 main()
2930 ; return 0; }
2931 EOF
2932 if { (eval echo configure:2933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2933   rm -rf conftest*
2934   eval "ac_cv_lib_$ac_lib_var=yes"
2935 else
2936   echo "configure: failed program was:" >&5
2937   cat conftest.$ac_ext >&5
2938   rm -rf conftest*
2939   eval "ac_cv_lib_$ac_lib_var=no"
2940 fi
2941 rm -f conftest*
2942 LIBS="$ac_save_LIBS"
2943
2944 fi
2945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2946   echo "$ac_t""yes" 1>&6
2947     ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2948     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2949   cat >> confdefs.h <<EOF
2950 #define $ac_tr_lib 1
2951 EOF
2952
2953   LIBS="-lbsd $LIBS"
2954
2955 else
2956   echo "$ac_t""no" 1>&6
2957 fi
2958
2959 fi
2960 echo $ac_n "checking for main in -lutil""... $ac_c" 1>&6
2961 echo "configure:2962: checking for main in -lutil" >&5
2962 ac_lib_var=`echo util'_'main | sed 'y%./+-%__p_%'`
2963 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2964   echo $ac_n "(cached) $ac_c" 1>&6
2965 else
2966   ac_save_LIBS="$LIBS"
2967 LIBS="-lutil  $LIBS"
2968 cat > conftest.$ac_ext <<EOF
2969 #line 2970 "configure"
2970 #include "confdefs.h"
2971
2972 int main() {
2973 main()
2974 ; return 0; }
2975 EOF
2976 if { (eval echo configure:2977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2977   rm -rf conftest*
2978   eval "ac_cv_lib_$ac_lib_var=yes"
2979 else
2980   echo "configure: failed program was:" >&5
2981   cat conftest.$ac_ext >&5
2982   rm -rf conftest*
2983   eval "ac_cv_lib_$ac_lib_var=no"
2984 fi
2985 rm -f conftest*
2986 LIBS="$ac_save_LIBS"
2987
2988 fi
2989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2990   echo "$ac_t""yes" 1>&6
2991     ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2992     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2993   cat >> confdefs.h <<EOF
2994 #define $ac_tr_lib 1
2995 EOF
2996
2997   LIBS="-lutil $LIBS"
2998
2999 else
3000   echo "$ac_t""no" 1>&6
3001 fi
3002
3003 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3004 echo "configure:3005: checking for main in -lm" >&5
3005 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3006 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3007   echo $ac_n "(cached) $ac_c" 1>&6
3008 else
3009   ac_save_LIBS="$LIBS"
3010 LIBS="-lm  $LIBS"
3011 cat > conftest.$ac_ext <<EOF
3012 #line 3013 "configure"
3013 #include "confdefs.h"
3014
3015 int main() {
3016 main()
3017 ; return 0; }
3018 EOF
3019 if { (eval echo configure:3020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3020   rm -rf conftest*
3021   eval "ac_cv_lib_$ac_lib_var=yes"
3022 else
3023   echo "configure: failed program was:" >&5
3024   cat conftest.$ac_ext >&5
3025   rm -rf conftest*
3026   eval "ac_cv_lib_$ac_lib_var=no"
3027 fi
3028 rm -f conftest*
3029 LIBS="$ac_save_LIBS"
3030
3031 fi
3032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3033   echo "$ac_t""yes" 1>&6
3034     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3035     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3036   cat >> confdefs.h <<EOF
3037 #define $ac_tr_lib 1
3038 EOF
3039
3040   LIBS="-lm $LIBS"
3041
3042 else
3043   echo "$ac_t""no" 1>&6
3044 fi
3045
3046 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3047 echo "configure:3048: checking for main in -ldl" >&5
3048 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3049 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3050   echo $ac_n "(cached) $ac_c" 1>&6
3051 else
3052   ac_save_LIBS="$LIBS"
3053 LIBS="-ldl  $LIBS"
3054 cat > conftest.$ac_ext <<EOF
3055 #line 3056 "configure"
3056 #include "confdefs.h"
3057
3058 int main() {
3059 main()
3060 ; return 0; }
3061 EOF
3062 if { (eval echo configure:3063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3063   rm -rf conftest*
3064   eval "ac_cv_lib_$ac_lib_var=yes"
3065 else
3066   echo "configure: failed program was:" >&5
3067   cat conftest.$ac_ext >&5
3068   rm -rf conftest*
3069   eval "ac_cv_lib_$ac_lib_var=no"
3070 fi
3071 rm -f conftest*
3072 LIBS="$ac_save_LIBS"
3073
3074 fi
3075 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3076   echo "$ac_t""yes" 1>&6
3077     ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3078     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3079   cat >> confdefs.h <<EOF
3080 #define $ac_tr_lib 1
3081 EOF
3082
3083   LIBS="-ldl $LIBS"
3084
3085 else
3086   echo "$ac_t""no" 1>&6
3087 fi
3088
3089 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3090 echo "configure:3091: checking for main in -lsocket" >&5
3091 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3092 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3093   echo $ac_n "(cached) $ac_c" 1>&6
3094 else
3095   ac_save_LIBS="$LIBS"
3096 LIBS="-lsocket  $LIBS"
3097 cat > conftest.$ac_ext <<EOF
3098 #line 3099 "configure"
3099 #include "confdefs.h"
3100
3101 int main() {
3102 main()
3103 ; return 0; }
3104 EOF
3105 if { (eval echo configure:3106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3106   rm -rf conftest*
3107   eval "ac_cv_lib_$ac_lib_var=yes"
3108 else
3109   echo "configure: failed program was:" >&5
3110   cat conftest.$ac_ext >&5
3111   rm -rf conftest*
3112   eval "ac_cv_lib_$ac_lib_var=no"
3113 fi
3114 rm -f conftest*
3115 LIBS="$ac_save_LIBS"
3116
3117 fi
3118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3119   echo "$ac_t""yes" 1>&6
3120     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3121     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3122   cat >> confdefs.h <<EOF
3123 #define $ac_tr_lib 1
3124 EOF
3125
3126   LIBS="-lsocket $LIBS"
3127
3128 else
3129   echo "$ac_t""no" 1>&6
3130 fi
3131
3132 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3133 echo "configure:3134: checking for main in -lnsl" >&5
3134 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3136   echo $ac_n "(cached) $ac_c" 1>&6
3137 else
3138   ac_save_LIBS="$LIBS"
3139 LIBS="-lnsl  $LIBS"
3140 cat > conftest.$ac_ext <<EOF
3141 #line 3142 "configure"
3142 #include "confdefs.h"
3143
3144 int main() {
3145 main()
3146 ; return 0; }
3147 EOF
3148 if { (eval echo configure:3149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3149   rm -rf conftest*
3150   eval "ac_cv_lib_$ac_lib_var=yes"
3151 else
3152   echo "configure: failed program was:" >&5
3153   cat conftest.$ac_ext >&5
3154   rm -rf conftest*
3155   eval "ac_cv_lib_$ac_lib_var=no"
3156 fi
3157 rm -f conftest*
3158 LIBS="$ac_save_LIBS"
3159
3160 fi
3161 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3162   echo "$ac_t""yes" 1>&6
3163     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3164     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3165   cat >> confdefs.h <<EOF
3166 #define $ac_tr_lib 1
3167 EOF
3168
3169   LIBS="-lnsl $LIBS"
3170
3171 else
3172   echo "$ac_t""no" 1>&6
3173 fi
3174
3175 echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
3176 echo "configure:3177: checking for main in -lipc" >&5
3177 ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
3178 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3179   echo $ac_n "(cached) $ac_c" 1>&6
3180 else
3181   ac_save_LIBS="$LIBS"
3182 LIBS="-lipc  $LIBS"
3183 cat > conftest.$ac_ext <<EOF
3184 #line 3185 "configure"
3185 #include "confdefs.h"
3186
3187 int main() {
3188 main()
3189 ; return 0; }
3190 EOF
3191 if { (eval echo configure:3192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3192   rm -rf conftest*
3193   eval "ac_cv_lib_$ac_lib_var=yes"
3194 else
3195   echo "configure: failed program was:" >&5
3196   cat conftest.$ac_ext >&5
3197   rm -rf conftest*
3198   eval "ac_cv_lib_$ac_lib_var=no"
3199 fi
3200 rm -f conftest*
3201 LIBS="$ac_save_LIBS"
3202
3203 fi
3204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3205   echo "$ac_t""yes" 1>&6
3206     ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3207     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3208   cat >> confdefs.h <<EOF
3209 #define $ac_tr_lib 1
3210 EOF
3211
3212   LIBS="-lipc $LIBS"
3213
3214 else
3215   echo "$ac_t""no" 1>&6
3216 fi
3217
3218 echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
3219 echo "configure:3220: checking for main in -lIPC" >&5
3220 ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
3221 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3222   echo $ac_n "(cached) $ac_c" 1>&6
3223 else
3224   ac_save_LIBS="$LIBS"
3225 LIBS="-lIPC  $LIBS"
3226 cat > conftest.$ac_ext <<EOF
3227 #line 3228 "configure"
3228 #include "confdefs.h"
3229
3230 int main() {
3231 main()
3232 ; return 0; }
3233 EOF
3234 if { (eval echo configure:3235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3235   rm -rf conftest*
3236   eval "ac_cv_lib_$ac_lib_var=yes"
3237 else
3238   echo "configure: failed program was:" >&5
3239   cat conftest.$ac_ext >&5
3240   rm -rf conftest*
3241   eval "ac_cv_lib_$ac_lib_var=no"
3242 fi
3243 rm -f conftest*
3244 LIBS="$ac_save_LIBS"
3245
3246 fi
3247 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3248   echo "$ac_t""yes" 1>&6
3249     ac_tr_lib=HAVE_LIB`echo IPC | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3250     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3251   cat >> confdefs.h <<EOF
3252 #define $ac_tr_lib 1
3253 EOF
3254
3255   LIBS="-lIPC $LIBS"
3256
3257 else
3258   echo "$ac_t""no" 1>&6
3259 fi
3260
3261 echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
3262 echo "configure:3263: checking for main in -llc" >&5
3263 ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
3264 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3265   echo $ac_n "(cached) $ac_c" 1>&6
3266 else
3267   ac_save_LIBS="$LIBS"
3268 LIBS="-llc  $LIBS"
3269 cat > conftest.$ac_ext <<EOF
3270 #line 3271 "configure"
3271 #include "confdefs.h"
3272
3273 int main() {
3274 main()
3275 ; return 0; }
3276 EOF
3277 if { (eval echo configure:3278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3278   rm -rf conftest*
3279   eval "ac_cv_lib_$ac_lib_var=yes"
3280 else
3281   echo "configure: failed program was:" >&5
3282   cat conftest.$ac_ext >&5
3283   rm -rf conftest*
3284   eval "ac_cv_lib_$ac_lib_var=no"
3285 fi
3286 rm -f conftest*
3287 LIBS="$ac_save_LIBS"
3288
3289 fi
3290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3291   echo "$ac_t""yes" 1>&6
3292     ac_tr_lib=HAVE_LIB`echo lc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3293     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3294   cat >> confdefs.h <<EOF
3295 #define $ac_tr_lib 1
3296 EOF
3297
3298   LIBS="-llc $LIBS"
3299
3300 else
3301   echo "$ac_t""no" 1>&6
3302 fi
3303
3304 echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
3305 echo "configure:3306: checking for main in -ldld" >&5
3306 ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
3307 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3308   echo $ac_n "(cached) $ac_c" 1>&6
3309 else
3310   ac_save_LIBS="$LIBS"
3311 LIBS="-ldld  $LIBS"
3312 cat > conftest.$ac_ext <<EOF
3313 #line 3314 "configure"
3314 #include "confdefs.h"
3315
3316 int main() {
3317 main()
3318 ; return 0; }
3319 EOF
3320 if { (eval echo configure:3321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3321   rm -rf conftest*
3322   eval "ac_cv_lib_$ac_lib_var=yes"
3323 else
3324   echo "configure: failed program was:" >&5
3325   cat conftest.$ac_ext >&5
3326   rm -rf conftest*
3327   eval "ac_cv_lib_$ac_lib_var=no"
3328 fi
3329 rm -f conftest*
3330 LIBS="$ac_save_LIBS"
3331
3332 fi
3333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3334   echo "$ac_t""yes" 1>&6
3335     ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3336     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3337   cat >> confdefs.h <<EOF
3338 #define $ac_tr_lib 1
3339 EOF
3340
3341   LIBS="-ldld $LIBS"
3342
3343 else
3344   echo "$ac_t""no" 1>&6
3345 fi
3346
3347 echo $ac_n "checking for main in -lln""... $ac_c" 1>&6
3348 echo "configure:3349: checking for main in -lln" >&5
3349 ac_lib_var=`echo ln'_'main | sed 'y%./+-%__p_%'`
3350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3351   echo $ac_n "(cached) $ac_c" 1>&6
3352 else
3353   ac_save_LIBS="$LIBS"
3354 LIBS="-lln  $LIBS"
3355 cat > conftest.$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3358
3359 int main() {
3360 main()
3361 ; return 0; }
3362 EOF
3363 if { (eval echo configure:3364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3364   rm -rf conftest*
3365   eval "ac_cv_lib_$ac_lib_var=yes"
3366 else
3367   echo "configure: failed program was:" >&5
3368   cat conftest.$ac_ext >&5
3369   rm -rf conftest*
3370   eval "ac_cv_lib_$ac_lib_var=no"
3371 fi
3372 rm -f conftest*
3373 LIBS="$ac_save_LIBS"
3374
3375 fi
3376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3377   echo "$ac_t""yes" 1>&6
3378     ac_tr_lib=HAVE_LIB`echo ln | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3379     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3380   cat >> confdefs.h <<EOF
3381 #define $ac_tr_lib 1
3382 EOF
3383
3384   LIBS="-lln $LIBS"
3385
3386 else
3387   echo "$ac_t""no" 1>&6
3388 fi
3389
3390 echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
3391 echo "configure:3392: checking for main in -lld" >&5
3392 ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
3393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3394   echo $ac_n "(cached) $ac_c" 1>&6
3395 else
3396   ac_save_LIBS="$LIBS"
3397 LIBS="-lld  $LIBS"
3398 cat > conftest.$ac_ext <<EOF
3399 #line 3400 "configure"
3400 #include "confdefs.h"
3401
3402 int main() {
3403 main()
3404 ; return 0; }
3405 EOF
3406 if { (eval echo configure:3407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3407   rm -rf conftest*
3408   eval "ac_cv_lib_$ac_lib_var=yes"
3409 else
3410   echo "configure: failed program was:" >&5
3411   cat conftest.$ac_ext >&5
3412   rm -rf conftest*
3413   eval "ac_cv_lib_$ac_lib_var=no"
3414 fi
3415 rm -f conftest*
3416 LIBS="$ac_save_LIBS"
3417
3418 fi
3419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3420   echo "$ac_t""yes" 1>&6
3421     ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3422     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3423   cat >> confdefs.h <<EOF
3424 #define $ac_tr_lib 1
3425 EOF
3426
3427   LIBS="-lld $LIBS"
3428
3429 else
3430   echo "$ac_t""no" 1>&6
3431 fi
3432
3433 echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
3434 echo "configure:3435: checking for main in -lcompat" >&5
3435 ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
3436 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3437   echo $ac_n "(cached) $ac_c" 1>&6
3438 else
3439   ac_save_LIBS="$LIBS"
3440 LIBS="-lcompat  $LIBS"
3441 cat > conftest.$ac_ext <<EOF
3442 #line 3443 "configure"
3443 #include "confdefs.h"
3444
3445 int main() {
3446 main()
3447 ; return 0; }
3448 EOF
3449 if { (eval echo configure:3450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3450   rm -rf conftest*
3451   eval "ac_cv_lib_$ac_lib_var=yes"
3452 else
3453   echo "configure: failed program was:" >&5
3454   cat conftest.$ac_ext >&5
3455   rm -rf conftest*
3456   eval "ac_cv_lib_$ac_lib_var=no"
3457 fi
3458 rm -f conftest*
3459 LIBS="$ac_save_LIBS"
3460
3461 fi
3462 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3463   echo "$ac_t""yes" 1>&6
3464     ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3465     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3466   cat >> confdefs.h <<EOF
3467 #define $ac_tr_lib 1
3468 EOF
3469
3470   LIBS="-lcompat $LIBS"
3471
3472 else
3473   echo "$ac_t""no" 1>&6
3474 fi
3475
3476 echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
3477 echo "configure:3478: checking for main in -lBSD" >&5
3478 ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
3479 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3480   echo $ac_n "(cached) $ac_c" 1>&6
3481 else
3482   ac_save_LIBS="$LIBS"
3483 LIBS="-lBSD  $LIBS"
3484 cat > conftest.$ac_ext <<EOF
3485 #line 3486 "configure"
3486 #include "confdefs.h"
3487
3488 int main() {
3489 main()
3490 ; return 0; }
3491 EOF
3492 if { (eval echo configure:3493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3493   rm -rf conftest*
3494   eval "ac_cv_lib_$ac_lib_var=yes"
3495 else
3496   echo "configure: failed program was:" >&5
3497   cat conftest.$ac_ext >&5
3498   rm -rf conftest*
3499   eval "ac_cv_lib_$ac_lib_var=no"
3500 fi
3501 rm -f conftest*
3502 LIBS="$ac_save_LIBS"
3503
3504 fi
3505 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3506   echo "$ac_t""yes" 1>&6
3507     ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3508     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3509   cat >> confdefs.h <<EOF
3510 #define $ac_tr_lib 1
3511 EOF
3512
3513   LIBS="-lBSD $LIBS"
3514
3515 else
3516   echo "$ac_t""no" 1>&6
3517 fi
3518
3519 echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6
3520 echo "configure:3521: checking for main in -lcrypt" >&5
3521 ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'`
3522 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3523   echo $ac_n "(cached) $ac_c" 1>&6
3524 else
3525   ac_save_LIBS="$LIBS"
3526 LIBS="-lcrypt  $LIBS"
3527 cat > conftest.$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3530
3531 int main() {
3532 main()
3533 ; return 0; }
3534 EOF
3535 if { (eval echo configure:3536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3536   rm -rf conftest*
3537   eval "ac_cv_lib_$ac_lib_var=yes"
3538 else
3539   echo "configure: failed program was:" >&5
3540   cat conftest.$ac_ext >&5
3541   rm -rf conftest*
3542   eval "ac_cv_lib_$ac_lib_var=no"
3543 fi
3544 rm -f conftest*
3545 LIBS="$ac_save_LIBS"
3546
3547 fi
3548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3549   echo "$ac_t""yes" 1>&6
3550     ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3551     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3552   cat >> confdefs.h <<EOF
3553 #define $ac_tr_lib 1
3554 EOF
3555
3556   LIBS="-lcrypt $LIBS"
3557
3558 else
3559   echo "$ac_t""no" 1>&6
3560 fi
3561
3562 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3563 echo "configure:3564: checking for main in -lgen" >&5
3564 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3565 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3566   echo $ac_n "(cached) $ac_c" 1>&6
3567 else
3568   ac_save_LIBS="$LIBS"
3569 LIBS="-lgen  $LIBS"
3570 cat > conftest.$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3573
3574 int main() {
3575 main()
3576 ; return 0; }
3577 EOF
3578 if { (eval echo configure:3579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3579   rm -rf conftest*
3580   eval "ac_cv_lib_$ac_lib_var=yes"
3581 else
3582   echo "configure: failed program was:" >&5
3583   cat conftest.$ac_ext >&5
3584   rm -rf conftest*
3585   eval "ac_cv_lib_$ac_lib_var=no"
3586 fi
3587 rm -f conftest*
3588 LIBS="$ac_save_LIBS"
3589
3590 fi
3591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3592   echo "$ac_t""yes" 1>&6
3593     ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3594     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3595   cat >> confdefs.h <<EOF
3596 #define $ac_tr_lib 1
3597 EOF
3598
3599   LIBS="-lgen $LIBS"
3600
3601 else
3602   echo "$ac_t""no" 1>&6
3603 fi
3604
3605 echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
3606 echo "configure:3607: checking for main in -lPW" >&5
3607 ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
3608 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3609   echo $ac_n "(cached) $ac_c" 1>&6
3610 else
3611   ac_save_LIBS="$LIBS"
3612 LIBS="-lPW  $LIBS"
3613 cat > conftest.$ac_ext <<EOF
3614 #line 3615 "configure"
3615 #include "confdefs.h"
3616
3617 int main() {
3618 main()
3619 ; return 0; }
3620 EOF
3621 if { (eval echo configure:3622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3622   rm -rf conftest*
3623   eval "ac_cv_lib_$ac_lib_var=yes"
3624 else
3625   echo "configure: failed program was:" >&5
3626   cat conftest.$ac_ext >&5
3627   rm -rf conftest*
3628   eval "ac_cv_lib_$ac_lib_var=no"
3629 fi
3630 rm -f conftest*
3631 LIBS="$ac_save_LIBS"
3632
3633 fi
3634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3635   echo "$ac_t""yes" 1>&6
3636     ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3637     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3638   cat >> confdefs.h <<EOF
3639 #define $ac_tr_lib 1
3640 EOF
3641
3642   LIBS="-lPW $LIBS"
3643
3644 else
3645   echo "$ac_t""no" 1>&6
3646 fi
3647
3648
3649 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3650 echo "configure:3651: checking for ANSI C header files" >&5
3651 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3652   echo $ac_n "(cached) $ac_c" 1>&6
3653 else
3654   cat > conftest.$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3657 #include <stdlib.h>
3658 #include <stdarg.h>
3659 #include <string.h>
3660 #include <float.h>
3661 EOF
3662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3663 { (eval echo configure:3664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3665 if test -z "$ac_err"; then
3666   rm -rf conftest*
3667   ac_cv_header_stdc=yes
3668 else
3669   echo "$ac_err" >&5
3670   echo "configure: failed program was:" >&5
3671   cat conftest.$ac_ext >&5
3672   rm -rf conftest*
3673   ac_cv_header_stdc=no
3674 fi
3675 rm -f conftest*
3676
3677 if test $ac_cv_header_stdc = yes; then
3678   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3679 cat > conftest.$ac_ext <<EOF
3680 #line 3681 "configure"
3681 #include "confdefs.h"
3682 #include <string.h>
3683 EOF
3684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3685   egrep "memchr" >/dev/null 2>&1; then
3686   :
3687 else
3688   rm -rf conftest*
3689   ac_cv_header_stdc=no
3690 fi
3691 rm -f conftest*
3692
3693 fi
3694
3695 if test $ac_cv_header_stdc = yes; then
3696   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3697 cat > conftest.$ac_ext <<EOF
3698 #line 3699 "configure"
3699 #include "confdefs.h"
3700 #include <stdlib.h>
3701 EOF
3702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3703   egrep "free" >/dev/null 2>&1; then
3704   :
3705 else
3706   rm -rf conftest*
3707   ac_cv_header_stdc=no
3708 fi
3709 rm -f conftest*
3710
3711 fi
3712
3713 if test $ac_cv_header_stdc = yes; then
3714   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3715 if test "$cross_compiling" = yes; then
3716   :
3717 else
3718   cat > conftest.$ac_ext <<EOF
3719 #line 3720 "configure"
3720 #include "confdefs.h"
3721 #include <ctype.h>
3722 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3723 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3724 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3725 int main () { int i; for (i = 0; i < 256; i++)
3726 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3727 exit (0); }
3728
3729 EOF
3730 if { (eval echo configure:3731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3731 then
3732   :
3733 else
3734   echo "configure: failed program was:" >&5
3735   cat conftest.$ac_ext >&5
3736   rm -fr conftest*
3737   ac_cv_header_stdc=no
3738 fi
3739 rm -fr conftest*
3740 fi
3741
3742 fi
3743 fi
3744
3745 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3746 if test $ac_cv_header_stdc = yes; then
3747   cat >> confdefs.h <<\EOF
3748 #define STDC_HEADERS 1
3749 EOF
3750
3751 fi
3752
3753 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3754 echo "configure:3755: checking for sys/wait.h that is POSIX.1 compatible" >&5
3755 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
3756   echo $ac_n "(cached) $ac_c" 1>&6
3757 else
3758   cat > conftest.$ac_ext <<EOF
3759 #line 3760 "configure"
3760 #include "confdefs.h"
3761 #include <sys/types.h>
3762 #include <sys/wait.h>
3763 #ifndef WEXITSTATUS
3764 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3765 #endif
3766 #ifndef WIFEXITED
3767 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3768 #endif
3769 int main() {
3770 int s;
3771 wait (&s);
3772 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3773 ; return 0; }
3774 EOF
3775 if { (eval echo configure:3776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3776   rm -rf conftest*
3777   ac_cv_header_sys_wait_h=yes
3778 else
3779   echo "configure: failed program was:" >&5
3780   cat conftest.$ac_ext >&5
3781   rm -rf conftest*
3782   ac_cv_header_sys_wait_h=no
3783 fi
3784 rm -f conftest*
3785 fi
3786
3787 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3788 if test $ac_cv_header_sys_wait_h = yes; then
3789   cat >> confdefs.h <<\EOF
3790 #define HAVE_SYS_WAIT_H 1
3791 EOF
3792
3793 fi
3794
3795 for ac_hdr in arpa/inet.h
3796 do
3797 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3798 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3799 echo "configure:3800: checking for $ac_hdr" >&5
3800 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3801   echo $ac_n "(cached) $ac_c" 1>&6
3802 else
3803   cat > conftest.$ac_ext <<EOF
3804 #line 3805 "configure"
3805 #include "confdefs.h"
3806 #include <$ac_hdr>
3807 EOF
3808 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3809 { (eval echo configure:3810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3810 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3811 if test -z "$ac_err"; then
3812   rm -rf conftest*
3813   eval "ac_cv_header_$ac_safe=yes"
3814 else
3815   echo "$ac_err" >&5
3816   echo "configure: failed program was:" >&5
3817   cat conftest.$ac_ext >&5
3818   rm -rf conftest*
3819   eval "ac_cv_header_$ac_safe=no"
3820 fi
3821 rm -f conftest*
3822 fi
3823 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3824   echo "$ac_t""yes" 1>&6
3825     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3826   cat >> confdefs.h <<EOF
3827 #define $ac_tr_hdr 1
3828 EOF
3829  
3830 else
3831   echo "$ac_t""no" 1>&6
3832 fi
3833 done
3834
3835 for ac_hdr in crypt.h
3836 do
3837 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3838 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3839 echo "configure:3840: checking for $ac_hdr" >&5
3840 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3841   echo $ac_n "(cached) $ac_c" 1>&6
3842 else
3843   cat > conftest.$ac_ext <<EOF
3844 #line 3845 "configure"
3845 #include "confdefs.h"
3846 #include <$ac_hdr>
3847 EOF
3848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3849 { (eval echo configure:3850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3851 if test -z "$ac_err"; then
3852   rm -rf conftest*
3853   eval "ac_cv_header_$ac_safe=yes"
3854 else
3855   echo "$ac_err" >&5
3856   echo "configure: failed program was:" >&5
3857   cat conftest.$ac_ext >&5
3858   rm -rf conftest*
3859   eval "ac_cv_header_$ac_safe=no"
3860 fi
3861 rm -f conftest*
3862 fi
3863 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3864   echo "$ac_t""yes" 1>&6
3865     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3866   cat >> confdefs.h <<EOF
3867 #define $ac_tr_hdr 1
3868 EOF
3869  
3870 else
3871   echo "$ac_t""no" 1>&6
3872 fi
3873 done
3874
3875 for ac_hdr in dld.h
3876 do
3877 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3878 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3879 echo "configure:3880: checking for $ac_hdr" >&5
3880 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3881   echo $ac_n "(cached) $ac_c" 1>&6
3882 else
3883   cat > conftest.$ac_ext <<EOF
3884 #line 3885 "configure"
3885 #include "confdefs.h"
3886 #include <$ac_hdr>
3887 EOF
3888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3889 { (eval echo configure:3890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3890 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3891 if test -z "$ac_err"; then
3892   rm -rf conftest*
3893   eval "ac_cv_header_$ac_safe=yes"
3894 else
3895   echo "$ac_err" >&5
3896   echo "configure: failed program was:" >&5
3897   cat conftest.$ac_ext >&5
3898   rm -rf conftest*
3899   eval "ac_cv_header_$ac_safe=no"
3900 fi
3901 rm -f conftest*
3902 fi
3903 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3904   echo "$ac_t""yes" 1>&6
3905     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3906   cat >> confdefs.h <<EOF
3907 #define $ac_tr_hdr 1
3908 EOF
3909  
3910 else
3911   echo "$ac_t""no" 1>&6
3912 fi
3913 done
3914
3915 for ac_hdr in endian.h
3916 do
3917 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3918 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3919 echo "configure:3920: checking for $ac_hdr" >&5
3920 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3921   echo $ac_n "(cached) $ac_c" 1>&6
3922 else
3923   cat > conftest.$ac_ext <<EOF
3924 #line 3925 "configure"
3925 #include "confdefs.h"
3926 #include <$ac_hdr>
3927 EOF
3928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3929 { (eval echo configure:3930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3931 if test -z "$ac_err"; then
3932   rm -rf conftest*
3933   eval "ac_cv_header_$ac_safe=yes"
3934 else
3935   echo "$ac_err" >&5
3936   echo "configure: failed program was:" >&5
3937   cat conftest.$ac_ext >&5
3938   rm -rf conftest*
3939   eval "ac_cv_header_$ac_safe=no"
3940 fi
3941 rm -f conftest*
3942 fi
3943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3944   echo "$ac_t""yes" 1>&6
3945     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3946   cat >> confdefs.h <<EOF
3947 #define $ac_tr_hdr 1
3948 EOF
3949  
3950 else
3951   echo "$ac_t""no" 1>&6
3952 fi
3953 done
3954
3955 for ac_hdr in float.h
3956 do
3957 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3958 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3959 echo "configure:3960: checking for $ac_hdr" >&5
3960 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3961   echo $ac_n "(cached) $ac_c" 1>&6
3962 else
3963   cat > conftest.$ac_ext <<EOF
3964 #line 3965 "configure"
3965 #include "confdefs.h"
3966 #include <$ac_hdr>
3967 EOF
3968 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3969 { (eval echo configure:3970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3970 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3971 if test -z "$ac_err"; then
3972   rm -rf conftest*
3973   eval "ac_cv_header_$ac_safe=yes"
3974 else
3975   echo "$ac_err" >&5
3976   echo "configure: failed program was:" >&5
3977   cat conftest.$ac_ext >&5
3978   rm -rf conftest*
3979   eval "ac_cv_header_$ac_safe=no"
3980 fi
3981 rm -f conftest*
3982 fi
3983 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3984   echo "$ac_t""yes" 1>&6
3985     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3986   cat >> confdefs.h <<EOF
3987 #define $ac_tr_hdr 1
3988 EOF
3989  
3990 else
3991   echo "$ac_t""no" 1>&6
3992 fi
3993 done
3994
3995 for ac_hdr in fp_class.h
3996 do
3997 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3998 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3999 echo "configure:4000: checking for $ac_hdr" >&5
4000 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4001   echo $ac_n "(cached) $ac_c" 1>&6
4002 else
4003   cat > conftest.$ac_ext <<EOF
4004 #line 4005 "configure"
4005 #include "confdefs.h"
4006 #include <$ac_hdr>
4007 EOF
4008 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4009 { (eval echo configure:4010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4010 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4011 if test -z "$ac_err"; then
4012   rm -rf conftest*
4013   eval "ac_cv_header_$ac_safe=yes"
4014 else
4015   echo "$ac_err" >&5
4016   echo "configure: failed program was:" >&5
4017   cat conftest.$ac_ext >&5
4018   rm -rf conftest*
4019   eval "ac_cv_header_$ac_safe=no"
4020 fi
4021 rm -f conftest*
4022 fi
4023 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4024   echo "$ac_t""yes" 1>&6
4025     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4026   cat >> confdefs.h <<EOF
4027 #define $ac_tr_hdr 1
4028 EOF
4029  
4030 else
4031   echo "$ac_t""no" 1>&6
4032 fi
4033 done
4034
4035 for ac_hdr in getopt.h
4036 do
4037 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4038 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4039 echo "configure:4040: checking for $ac_hdr" >&5
4040 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4041   echo $ac_n "(cached) $ac_c" 1>&6
4042 else
4043   cat > conftest.$ac_ext <<EOF
4044 #line 4045 "configure"
4045 #include "confdefs.h"
4046 #include <$ac_hdr>
4047 EOF
4048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4049 { (eval echo configure:4050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4050 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4051 if test -z "$ac_err"; then
4052   rm -rf conftest*
4053   eval "ac_cv_header_$ac_safe=yes"
4054 else
4055   echo "$ac_err" >&5
4056   echo "configure: failed program was:" >&5
4057   cat conftest.$ac_ext >&5
4058   rm -rf conftest*
4059   eval "ac_cv_header_$ac_safe=no"
4060 fi
4061 rm -f conftest*
4062 fi
4063 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4064   echo "$ac_t""yes" 1>&6
4065     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4066   cat >> confdefs.h <<EOF
4067 #define $ac_tr_hdr 1
4068 EOF
4069  
4070 else
4071   echo "$ac_t""no" 1>&6
4072 fi
4073 done
4074
4075 for ac_hdr in history.h
4076 do
4077 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4078 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4079 echo "configure:4080: checking for $ac_hdr" >&5
4080 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4081   echo $ac_n "(cached) $ac_c" 1>&6
4082 else
4083   cat > conftest.$ac_ext <<EOF
4084 #line 4085 "configure"
4085 #include "confdefs.h"
4086 #include <$ac_hdr>
4087 EOF
4088 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4089 { (eval echo configure:4090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4090 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4091 if test -z "$ac_err"; then
4092   rm -rf conftest*
4093   eval "ac_cv_header_$ac_safe=yes"
4094 else
4095   echo "$ac_err" >&5
4096   echo "configure: failed program was:" >&5
4097   cat conftest.$ac_ext >&5
4098   rm -rf conftest*
4099   eval "ac_cv_header_$ac_safe=no"
4100 fi
4101 rm -f conftest*
4102 fi
4103 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4104   echo "$ac_t""yes" 1>&6
4105     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4106   cat >> confdefs.h <<EOF
4107 #define $ac_tr_hdr 1
4108 EOF
4109  
4110 else
4111   echo "$ac_t""no" 1>&6
4112 fi
4113 done
4114
4115 for ac_hdr in ieeefp.h
4116 do
4117 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4118 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4119 echo "configure:4120: checking for $ac_hdr" >&5
4120 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4121   echo $ac_n "(cached) $ac_c" 1>&6
4122 else
4123   cat > conftest.$ac_ext <<EOF
4124 #line 4125 "configure"
4125 #include "confdefs.h"
4126 #include <$ac_hdr>
4127 EOF
4128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4129 { (eval echo configure:4130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4131 if test -z "$ac_err"; then
4132   rm -rf conftest*
4133   eval "ac_cv_header_$ac_safe=yes"
4134 else
4135   echo "$ac_err" >&5
4136   echo "configure: failed program was:" >&5
4137   cat conftest.$ac_ext >&5
4138   rm -rf conftest*
4139   eval "ac_cv_header_$ac_safe=no"
4140 fi
4141 rm -f conftest*
4142 fi
4143 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4144   echo "$ac_t""yes" 1>&6
4145     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4146   cat >> confdefs.h <<EOF
4147 #define $ac_tr_hdr 1
4148 EOF
4149  
4150 else
4151   echo "$ac_t""no" 1>&6
4152 fi
4153 done
4154
4155 for ac_hdr in limits.h
4156 do
4157 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4158 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4159 echo "configure:4160: checking for $ac_hdr" >&5
4160 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4161   echo $ac_n "(cached) $ac_c" 1>&6
4162 else
4163   cat > conftest.$ac_ext <<EOF
4164 #line 4165 "configure"
4165 #include "confdefs.h"
4166 #include <$ac_hdr>
4167 EOF
4168 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4169 { (eval echo configure:4170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4170 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4171 if test -z "$ac_err"; then
4172   rm -rf conftest*
4173   eval "ac_cv_header_$ac_safe=yes"
4174 else
4175   echo "$ac_err" >&5
4176   echo "configure: failed program was:" >&5
4177   cat conftest.$ac_ext >&5
4178   rm -rf conftest*
4179   eval "ac_cv_header_$ac_safe=no"
4180 fi
4181 rm -f conftest*
4182 fi
4183 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4184   echo "$ac_t""yes" 1>&6
4185     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4186   cat >> confdefs.h <<EOF
4187 #define $ac_tr_hdr 1
4188 EOF
4189  
4190 else
4191   echo "$ac_t""no" 1>&6
4192 fi
4193 done
4194
4195 for ac_hdr in netdb.h
4196 do
4197 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4198 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4199 echo "configure:4200: checking for $ac_hdr" >&5
4200 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4201   echo $ac_n "(cached) $ac_c" 1>&6
4202 else
4203   cat > conftest.$ac_ext <<EOF
4204 #line 4205 "configure"
4205 #include "confdefs.h"
4206 #include <$ac_hdr>
4207 EOF
4208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4209 { (eval echo configure:4210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4211 if test -z "$ac_err"; then
4212   rm -rf conftest*
4213   eval "ac_cv_header_$ac_safe=yes"
4214 else
4215   echo "$ac_err" >&5
4216   echo "configure: failed program was:" >&5
4217   cat conftest.$ac_ext >&5
4218   rm -rf conftest*
4219   eval "ac_cv_header_$ac_safe=no"
4220 fi
4221 rm -f conftest*
4222 fi
4223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4224   echo "$ac_t""yes" 1>&6
4225     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4226   cat >> confdefs.h <<EOF
4227 #define $ac_tr_hdr 1
4228 EOF
4229  
4230 else
4231   echo "$ac_t""no" 1>&6
4232 fi
4233 done
4234
4235 for ac_hdr in netinet/in.h
4236 do
4237 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4238 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4239 echo "configure:4240: checking for $ac_hdr" >&5
4240 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4241   echo $ac_n "(cached) $ac_c" 1>&6
4242 else
4243   cat > conftest.$ac_ext <<EOF
4244 #line 4245 "configure"
4245 #include "confdefs.h"
4246 #include <$ac_hdr>
4247 EOF
4248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4249 { (eval echo configure:4250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4250 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4251 if test -z "$ac_err"; then
4252   rm -rf conftest*
4253   eval "ac_cv_header_$ac_safe=yes"
4254 else
4255   echo "$ac_err" >&5
4256   echo "configure: failed program was:" >&5
4257   cat conftest.$ac_ext >&5
4258   rm -rf conftest*
4259   eval "ac_cv_header_$ac_safe=no"
4260 fi
4261 rm -f conftest*
4262 fi
4263 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4264   echo "$ac_t""yes" 1>&6
4265     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4266   cat >> confdefs.h <<EOF
4267 #define $ac_tr_hdr 1
4268 EOF
4269  
4270 else
4271   echo "$ac_t""no" 1>&6
4272 fi
4273 done
4274
4275 for ac_hdr in readline.h
4276 do
4277 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4278 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4279 echo "configure:4280: checking for $ac_hdr" >&5
4280 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4281   echo $ac_n "(cached) $ac_c" 1>&6
4282 else
4283   cat > conftest.$ac_ext <<EOF
4284 #line 4285 "configure"
4285 #include "confdefs.h"
4286 #include <$ac_hdr>
4287 EOF
4288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4289 { (eval echo configure:4290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4291 if test -z "$ac_err"; then
4292   rm -rf conftest*
4293   eval "ac_cv_header_$ac_safe=yes"
4294 else
4295   echo "$ac_err" >&5
4296   echo "configure: failed program was:" >&5
4297   cat conftest.$ac_ext >&5
4298   rm -rf conftest*
4299   eval "ac_cv_header_$ac_safe=no"
4300 fi
4301 rm -f conftest*
4302 fi
4303 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4304   echo "$ac_t""yes" 1>&6
4305     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4306   cat >> confdefs.h <<EOF
4307 #define $ac_tr_hdr 1
4308 EOF
4309  
4310 else
4311   echo "$ac_t""no" 1>&6
4312 fi
4313 done
4314
4315 for ac_hdr in readline/history.h
4316 do
4317 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4318 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4319 echo "configure:4320: checking for $ac_hdr" >&5
4320 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4321   echo $ac_n "(cached) $ac_c" 1>&6
4322 else
4323   cat > conftest.$ac_ext <<EOF
4324 #line 4325 "configure"
4325 #include "confdefs.h"
4326 #include <$ac_hdr>
4327 EOF
4328 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4329 { (eval echo configure:4330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4330 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4331 if test -z "$ac_err"; then
4332   rm -rf conftest*
4333   eval "ac_cv_header_$ac_safe=yes"
4334 else
4335   echo "$ac_err" >&5
4336   echo "configure: failed program was:" >&5
4337   cat conftest.$ac_ext >&5
4338   rm -rf conftest*
4339   eval "ac_cv_header_$ac_safe=no"
4340 fi
4341 rm -f conftest*
4342 fi
4343 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4344   echo "$ac_t""yes" 1>&6
4345     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4346   cat >> confdefs.h <<EOF
4347 #define $ac_tr_hdr 1
4348 EOF
4349  
4350 else
4351   echo "$ac_t""no" 1>&6
4352 fi
4353 done
4354
4355 for ac_hdr in readline/readline.h
4356 do
4357 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4358 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4359 echo "configure:4360: checking for $ac_hdr" >&5
4360 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4361   echo $ac_n "(cached) $ac_c" 1>&6
4362 else
4363   cat > conftest.$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4366 #include <$ac_hdr>
4367 EOF
4368 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4369 { (eval echo configure:4370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4370 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4371 if test -z "$ac_err"; then
4372   rm -rf conftest*
4373   eval "ac_cv_header_$ac_safe=yes"
4374 else
4375   echo "$ac_err" >&5
4376   echo "configure: failed program was:" >&5
4377   cat conftest.$ac_ext >&5
4378   rm -rf conftest*
4379   eval "ac_cv_header_$ac_safe=no"
4380 fi
4381 rm -f conftest*
4382 fi
4383 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4384   echo "$ac_t""yes" 1>&6
4385     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4386   cat >> confdefs.h <<EOF
4387 #define $ac_tr_hdr 1
4388 EOF
4389  
4390 else
4391   echo "$ac_t""no" 1>&6
4392 fi
4393 done
4394
4395 for ac_hdr in sys/select.h
4396 do
4397 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4398 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4399 echo "configure:4400: checking for $ac_hdr" >&5
4400 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4401   echo $ac_n "(cached) $ac_c" 1>&6
4402 else
4403   cat > conftest.$ac_ext <<EOF
4404 #line 4405 "configure"
4405 #include "confdefs.h"
4406 #include <$ac_hdr>
4407 EOF
4408 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4409 { (eval echo configure:4410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4410 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4411 if test -z "$ac_err"; then
4412   rm -rf conftest*
4413   eval "ac_cv_header_$ac_safe=yes"
4414 else
4415   echo "$ac_err" >&5
4416   echo "configure: failed program was:" >&5
4417   cat conftest.$ac_ext >&5
4418   rm -rf conftest*
4419   eval "ac_cv_header_$ac_safe=no"
4420 fi
4421 rm -f conftest*
4422 fi
4423 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4424   echo "$ac_t""yes" 1>&6
4425     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4426   cat >> confdefs.h <<EOF
4427 #define $ac_tr_hdr 1
4428 EOF
4429  
4430 else
4431   echo "$ac_t""no" 1>&6
4432 fi
4433 done
4434
4435 for ac_hdr in termios.h
4436 do
4437 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4438 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4439 echo "configure:4440: checking for $ac_hdr" >&5
4440 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4441   echo $ac_n "(cached) $ac_c" 1>&6
4442 else
4443   cat > conftest.$ac_ext <<EOF
4444 #line 4445 "configure"
4445 #include "confdefs.h"
4446 #include <$ac_hdr>
4447 EOF
4448 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4449 { (eval echo configure:4450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4450 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4451 if test -z "$ac_err"; then
4452   rm -rf conftest*
4453   eval "ac_cv_header_$ac_safe=yes"
4454 else
4455   echo "$ac_err" >&5
4456   echo "configure: failed program was:" >&5
4457   cat conftest.$ac_ext >&5
4458   rm -rf conftest*
4459   eval "ac_cv_header_$ac_safe=no"
4460 fi
4461 rm -f conftest*
4462 fi
4463 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4464   echo "$ac_t""yes" 1>&6
4465     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4466   cat >> confdefs.h <<EOF
4467 #define $ac_tr_hdr 1
4468 EOF
4469  
4470 else
4471   echo "$ac_t""no" 1>&6
4472 fi
4473 done
4474
4475 for ac_hdr in unistd.h
4476 do
4477 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4478 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4479 echo "configure:4480: checking for $ac_hdr" >&5
4480 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4481   echo $ac_n "(cached) $ac_c" 1>&6
4482 else
4483   cat > conftest.$ac_ext <<EOF
4484 #line 4485 "configure"
4485 #include "confdefs.h"
4486 #include <$ac_hdr>
4487 EOF
4488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4489 { (eval echo configure:4490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4490 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4491 if test -z "$ac_err"; then
4492   rm -rf conftest*
4493   eval "ac_cv_header_$ac_safe=yes"
4494 else
4495   echo "$ac_err" >&5
4496   echo "configure: failed program was:" >&5
4497   cat conftest.$ac_ext >&5
4498   rm -rf conftest*
4499   eval "ac_cv_header_$ac_safe=no"
4500 fi
4501 rm -f conftest*
4502 fi
4503 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4504   echo "$ac_t""yes" 1>&6
4505     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4506   cat >> confdefs.h <<EOF
4507 #define $ac_tr_hdr 1
4508 EOF
4509  
4510 else
4511   echo "$ac_t""no" 1>&6
4512 fi
4513 done
4514
4515 for ac_hdr in values.h
4516 do
4517 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4518 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4519 echo "configure:4520: checking for $ac_hdr" >&5
4520 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4521   echo $ac_n "(cached) $ac_c" 1>&6
4522 else
4523   cat > conftest.$ac_ext <<EOF
4524 #line 4525 "configure"
4525 #include "confdefs.h"
4526 #include <$ac_hdr>
4527 EOF
4528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4529 { (eval echo configure:4530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4531 if test -z "$ac_err"; then
4532   rm -rf conftest*
4533   eval "ac_cv_header_$ac_safe=yes"
4534 else
4535   echo "$ac_err" >&5
4536   echo "configure: failed program was:" >&5
4537   cat conftest.$ac_ext >&5
4538   rm -rf conftest*
4539   eval "ac_cv_header_$ac_safe=no"
4540 fi
4541 rm -f conftest*
4542 fi
4543 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4544   echo "$ac_t""yes" 1>&6
4545     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4546   cat >> confdefs.h <<EOF
4547 #define $ac_tr_hdr 1
4548 EOF
4549  
4550 else
4551   echo "$ac_t""no" 1>&6
4552 fi
4553 done
4554
4555 for ac_hdr in sys/exec.h sys/pstat.h machine/vmparam.h
4556 do
4557 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4558 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4559 echo "configure:4560: checking for $ac_hdr" >&5
4560 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4561   echo $ac_n "(cached) $ac_c" 1>&6
4562 else
4563   cat > conftest.$ac_ext <<EOF
4564 #line 4565 "configure"
4565 #include "confdefs.h"
4566 #include <$ac_hdr>
4567 EOF
4568 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4569 { (eval echo configure:4570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4570 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4571 if test -z "$ac_err"; then
4572   rm -rf conftest*
4573   eval "ac_cv_header_$ac_safe=yes"
4574 else
4575   echo "$ac_err" >&5
4576   echo "configure: failed program was:" >&5
4577   cat conftest.$ac_ext >&5
4578   rm -rf conftest*
4579   eval "ac_cv_header_$ac_safe=no"
4580 fi
4581 rm -f conftest*
4582 fi
4583 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4584   echo "$ac_t""yes" 1>&6
4585     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4586   cat >> confdefs.h <<EOF
4587 #define $ac_tr_hdr 1
4588 EOF
4589  
4590 else
4591   echo "$ac_t""no" 1>&6
4592 fi
4593 done
4594
4595 for ac_hdr in sys/types.h sys/socket.h
4596 do
4597 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4598 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4599 echo "configure:4600: checking for $ac_hdr" >&5
4600 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4601   echo $ac_n "(cached) $ac_c" 1>&6
4602 else
4603   cat > conftest.$ac_ext <<EOF
4604 #line 4605 "configure"
4605 #include "confdefs.h"
4606 #include <$ac_hdr>
4607 EOF
4608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4609 { (eval echo configure:4610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4611 if test -z "$ac_err"; then
4612   rm -rf conftest*
4613   eval "ac_cv_header_$ac_safe=yes"
4614 else
4615   echo "$ac_err" >&5
4616   echo "configure: failed program was:" >&5
4617   cat conftest.$ac_ext >&5
4618   rm -rf conftest*
4619   eval "ac_cv_header_$ac_safe=no"
4620 fi
4621 rm -f conftest*
4622 fi
4623 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4624   echo "$ac_t""yes" 1>&6
4625     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4626   cat >> confdefs.h <<EOF
4627 #define $ac_tr_hdr 1
4628 EOF
4629  
4630 else
4631   echo "$ac_t""no" 1>&6
4632 fi
4633 done
4634
4635 for ac_hdr in sys/param.h pwd.h
4636 do
4637 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4638 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4639 echo "configure:4640: checking for $ac_hdr" >&5
4640 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4641   echo $ac_n "(cached) $ac_c" 1>&6
4642 else
4643   cat > conftest.$ac_ext <<EOF
4644 #line 4645 "configure"
4645 #include "confdefs.h"
4646 #include <$ac_hdr>
4647 EOF
4648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4649 { (eval echo configure:4650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4650 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4651 if test -z "$ac_err"; then
4652   rm -rf conftest*
4653   eval "ac_cv_header_$ac_safe=yes"
4654 else
4655   echo "$ac_err" >&5
4656   echo "configure: failed program was:" >&5
4657   cat conftest.$ac_ext >&5
4658   rm -rf conftest*
4659   eval "ac_cv_header_$ac_safe=no"
4660 fi
4661 rm -f conftest*
4662 fi
4663 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4664   echo "$ac_t""yes" 1>&6
4665     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4666   cat >> confdefs.h <<EOF
4667 #define $ac_tr_hdr 1
4668 EOF
4669  
4670 else
4671   echo "$ac_t""no" 1>&6
4672 fi
4673 done
4674
4675
4676 echo $ac_n "checking for working const""... $ac_c" 1>&6
4677 echo "configure:4678: checking for working const" >&5
4678 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4679   echo $ac_n "(cached) $ac_c" 1>&6
4680 else
4681   cat > conftest.$ac_ext <<EOF
4682 #line 4683 "configure"
4683 #include "confdefs.h"
4684
4685 int main() {
4686
4687 /* Ultrix mips cc rejects this.  */
4688 typedef int charset[2]; const charset x;
4689 /* SunOS 4.1.1 cc rejects this.  */
4690 char const *const *ccp;
4691 char **p;
4692 /* NEC SVR4.0.2 mips cc rejects this.  */
4693 struct point {int x, y;};
4694 static struct point const zero = {0,0};
4695 /* AIX XL C 1.02.0.0 rejects this.
4696    It does not let you subtract one const X* pointer from another in an arm
4697    of an if-expression whose if-part is not a constant expression */
4698 const char *g = "string";
4699 ccp = &g + (g ? g-g : 0);
4700 /* HPUX 7.0 cc rejects these. */
4701 ++ccp;
4702 p = (char**) ccp;
4703 ccp = (char const *const *) p;
4704 { /* SCO 3.2v4 cc rejects this.  */
4705   char *t;
4706   char const *s = 0 ? (char *) 0 : (char const *) 0;
4707
4708   *t++ = 0;
4709 }
4710 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4711   int x[] = {25, 17};
4712   const int *foo = &x[0];
4713   ++foo;
4714 }
4715 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4716   typedef const int *iptr;
4717   iptr p = 0;
4718   ++p;
4719 }
4720 { /* AIX XL C 1.02.0.0 rejects this saying
4721      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4722   struct s { int j; const int *ap[3]; };
4723   struct s *b; b->j = 5;
4724 }
4725 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4726   const int foo = 10;
4727 }
4728
4729 ; return 0; }
4730 EOF
4731 if { (eval echo configure:4732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4732   rm -rf conftest*
4733   ac_cv_c_const=yes
4734 else
4735   echo "configure: failed program was:" >&5
4736   cat conftest.$ac_ext >&5
4737   rm -rf conftest*
4738   ac_cv_c_const=no
4739 fi
4740 rm -f conftest*
4741 fi
4742
4743 echo "$ac_t""$ac_cv_c_const" 1>&6
4744 if test $ac_cv_c_const = no; then
4745   cat >> confdefs.h <<\EOF
4746 #define const 
4747 EOF
4748
4749 fi
4750
4751 echo $ac_n "checking for inline""... $ac_c" 1>&6
4752 echo "configure:4753: checking for inline" >&5
4753 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4754   echo $ac_n "(cached) $ac_c" 1>&6
4755 else
4756   ac_cv_c_inline=no
4757 for ac_kw in inline __inline__ __inline; do
4758   cat > conftest.$ac_ext <<EOF
4759 #line 4760 "configure"
4760 #include "confdefs.h"
4761
4762 int main() {
4763 } $ac_kw foo() {
4764 ; return 0; }
4765 EOF
4766 if { (eval echo configure:4767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4767   rm -rf conftest*
4768   ac_cv_c_inline=$ac_kw; break
4769 else
4770   echo "configure: failed program was:" >&5
4771   cat conftest.$ac_ext >&5
4772 fi
4773 rm -f conftest*
4774 done
4775
4776 fi
4777
4778 echo "$ac_t""$ac_cv_c_inline" 1>&6
4779 case "$ac_cv_c_inline" in
4780   inline | yes) ;;
4781   no) cat >> confdefs.h <<\EOF
4782 #define inline 
4783 EOF
4784  ;;
4785   *)  cat >> confdefs.h <<EOF
4786 #define inline $ac_cv_c_inline
4787 EOF
4788  ;;
4789 esac
4790
4791
4792
4793 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
4794 echo "configure:4795: checking for preprocessor stringizing operator" >&5
4795 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
4796   echo $ac_n "(cached) $ac_c" 1>&6
4797 else
4798   cat > conftest.$ac_ext <<EOF
4799 #line 4800 "configure"
4800 #include "confdefs.h"
4801
4802 #define x(y) #y
4803
4804 char *s = x(teststring);
4805
4806 EOF
4807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4808   egrep "#teststring" >/dev/null 2>&1; then
4809   rm -rf conftest*
4810   ac_cv_c_stringize=no
4811 else
4812   rm -rf conftest*
4813   ac_cv_c_stringize=yes
4814 fi
4815 rm -f conftest*
4816
4817 fi
4818
4819 if test "${ac_cv_c_stringize}" = yes
4820 then
4821         cat >> confdefs.h <<\EOF
4822 #define HAVE_STRINGIZE 1
4823 EOF
4824
4825 fi
4826 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
4827
4828 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4829 echo "configure:4830: checking for uid_t in sys/types.h" >&5
4830 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
4831   echo $ac_n "(cached) $ac_c" 1>&6
4832 else
4833   cat > conftest.$ac_ext <<EOF
4834 #line 4835 "configure"
4835 #include "confdefs.h"
4836 #include <sys/types.h>
4837 EOF
4838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4839   egrep "uid_t" >/dev/null 2>&1; then
4840   rm -rf conftest*
4841   ac_cv_type_uid_t=yes
4842 else
4843   rm -rf conftest*
4844   ac_cv_type_uid_t=no
4845 fi
4846 rm -f conftest*
4847
4848 fi
4849
4850 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
4851 if test $ac_cv_type_uid_t = no; then
4852   cat >> confdefs.h <<\EOF
4853 #define uid_t int
4854 EOF
4855
4856   cat >> confdefs.h <<\EOF
4857 #define gid_t int
4858 EOF
4859
4860 fi
4861
4862 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4863 echo "configure:4864: checking for mode_t" >&5
4864 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
4865   echo $ac_n "(cached) $ac_c" 1>&6
4866 else
4867   cat > conftest.$ac_ext <<EOF
4868 #line 4869 "configure"
4869 #include "confdefs.h"
4870 #include <sys/types.h>
4871 #if STDC_HEADERS
4872 #include <stdlib.h>
4873 #include <stddef.h>
4874 #endif
4875 EOF
4876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4877   egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4878   rm -rf conftest*
4879   ac_cv_type_mode_t=yes
4880 else
4881   rm -rf conftest*
4882   ac_cv_type_mode_t=no
4883 fi
4884 rm -f conftest*
4885
4886 fi
4887 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4888 if test $ac_cv_type_mode_t = no; then
4889   cat >> confdefs.h <<\EOF
4890 #define mode_t int
4891 EOF
4892
4893 fi
4894
4895 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4896 echo "configure:4897: checking for off_t" >&5
4897 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4898   echo $ac_n "(cached) $ac_c" 1>&6
4899 else
4900   cat > conftest.$ac_ext <<EOF
4901 #line 4902 "configure"
4902 #include "confdefs.h"
4903 #include <sys/types.h>
4904 #if STDC_HEADERS
4905 #include <stdlib.h>
4906 #include <stddef.h>
4907 #endif
4908 EOF
4909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4910   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4911   rm -rf conftest*
4912   ac_cv_type_off_t=yes
4913 else
4914   rm -rf conftest*
4915   ac_cv_type_off_t=no
4916 fi
4917 rm -f conftest*
4918
4919 fi
4920 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4921 if test $ac_cv_type_off_t = no; then
4922   cat >> confdefs.h <<\EOF
4923 #define off_t long
4924 EOF
4925
4926 fi
4927
4928 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4929 echo "configure:4930: checking for size_t" >&5
4930 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4931   echo $ac_n "(cached) $ac_c" 1>&6
4932 else
4933   cat > conftest.$ac_ext <<EOF
4934 #line 4935 "configure"
4935 #include "confdefs.h"
4936 #include <sys/types.h>
4937 #if STDC_HEADERS
4938 #include <stdlib.h>
4939 #include <stddef.h>
4940 #endif
4941 EOF
4942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4943   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4944   rm -rf conftest*
4945   ac_cv_type_size_t=yes
4946 else
4947   rm -rf conftest*
4948   ac_cv_type_size_t=no
4949 fi
4950 rm -f conftest*
4951
4952 fi
4953 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4954 if test $ac_cv_type_size_t = no; then
4955   cat >> confdefs.h <<\EOF
4956 #define size_t unsigned
4957 EOF
4958
4959 fi
4960
4961 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4962 echo "configure:4963: checking whether struct tm is in sys/time.h or time.h" >&5
4963 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4964   echo $ac_n "(cached) $ac_c" 1>&6
4965 else
4966   cat > conftest.$ac_ext <<EOF
4967 #line 4968 "configure"
4968 #include "confdefs.h"
4969 #include <sys/types.h>
4970 #include <time.h>
4971 int main() {
4972 struct tm *tp; tp->tm_sec;
4973 ; return 0; }
4974 EOF
4975 if { (eval echo configure:4976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4976   rm -rf conftest*
4977   ac_cv_struct_tm=time.h
4978 else
4979   echo "configure: failed program was:" >&5
4980   cat conftest.$ac_ext >&5
4981   rm -rf conftest*
4982   ac_cv_struct_tm=sys/time.h
4983 fi
4984 rm -f conftest*
4985 fi
4986
4987 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4988 if test $ac_cv_struct_tm = sys/time.h; then
4989   cat >> confdefs.h <<\EOF
4990 #define TM_IN_SYS_TIME 1
4991 EOF
4992
4993 fi
4994
4995 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4996 echo "configure:4997: checking for tm_zone in struct tm" >&5
4997 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4998   echo $ac_n "(cached) $ac_c" 1>&6
4999 else
5000   cat > conftest.$ac_ext <<EOF
5001 #line 5002 "configure"
5002 #include "confdefs.h"
5003 #include <sys/types.h>
5004 #include <$ac_cv_struct_tm>
5005 int main() {
5006 struct tm tm; tm.tm_zone;
5007 ; return 0; }
5008 EOF
5009 if { (eval echo configure:5010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5010   rm -rf conftest*
5011   ac_cv_struct_tm_zone=yes
5012 else
5013   echo "configure: failed program was:" >&5
5014   cat conftest.$ac_ext >&5
5015   rm -rf conftest*
5016   ac_cv_struct_tm_zone=no
5017 fi
5018 rm -f conftest*
5019 fi
5020
5021 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5022 if test "$ac_cv_struct_tm_zone" = yes; then
5023   cat >> confdefs.h <<\EOF
5024 #define HAVE_TM_ZONE 1
5025 EOF
5026
5027 else
5028   echo $ac_n "checking for tzname""... $ac_c" 1>&6
5029 echo "configure:5030: checking for tzname" >&5
5030 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5031   echo $ac_n "(cached) $ac_c" 1>&6
5032 else
5033   cat > conftest.$ac_ext <<EOF
5034 #line 5035 "configure"
5035 #include "confdefs.h"
5036 #include <time.h>
5037 #ifndef tzname /* For SGI.  */
5038 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
5039 #endif
5040 int main() {
5041 atoi(*tzname);
5042 ; return 0; }
5043 EOF
5044 if { (eval echo configure:5045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5045   rm -rf conftest*
5046   ac_cv_var_tzname=yes
5047 else
5048   echo "configure: failed program was:" >&5
5049   cat conftest.$ac_ext >&5
5050   rm -rf conftest*
5051   ac_cv_var_tzname=no
5052 fi
5053 rm -f conftest*
5054 fi
5055
5056 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5057   if test $ac_cv_var_tzname = yes; then
5058     cat >> confdefs.h <<\EOF
5059 #define HAVE_TZNAME 1
5060 EOF
5061
5062   fi
5063 fi
5064
5065 echo $ac_n "checking for signed types""... $ac_c" 1>&6
5066 echo "configure:5067: checking for signed types" >&5
5067 if eval "test \"`echo '$''{'pgac_cv_c_signed'+set}'`\" = set"; then
5068   echo $ac_n "(cached) $ac_c" 1>&6
5069 else
5070   cat > conftest.$ac_ext <<EOF
5071 #line 5072 "configure"
5072 #include "confdefs.h"
5073
5074 int main() {
5075 signed char c; signed short s; signed int i;
5076 ; return 0; }
5077 EOF
5078 if { (eval echo configure:5079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5079   rm -rf conftest*
5080   pgac_cv_c_signed=yes
5081 else
5082   echo "configure: failed program was:" >&5
5083   cat conftest.$ac_ext >&5
5084   rm -rf conftest*
5085   pgac_cv_c_signed=no
5086 fi
5087 rm -f conftest*
5088 fi
5089
5090 echo "$ac_t""$pgac_cv_c_signed" 1>&6
5091 if test x"$pgac_cv_c_signed" = xno ; then
5092   cat >> confdefs.h <<\EOF
5093 #define signed 
5094 EOF
5095
5096 fi
5097 echo $ac_n "checking for volatile""... $ac_c" 1>&6
5098 echo "configure:5099: checking for volatile" >&5
5099 if eval "test \"`echo '$''{'pgac_cv_c_volatile'+set}'`\" = set"; then
5100   echo $ac_n "(cached) $ac_c" 1>&6
5101 else
5102   cat > conftest.$ac_ext <<EOF
5103 #line 5104 "configure"
5104 #include "confdefs.h"
5105
5106 int main() {
5107 extern volatile int i;
5108 ; return 0; }
5109 EOF
5110 if { (eval echo configure:5111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5111   rm -rf conftest*
5112   pgac_cv_c_volatile=yes
5113 else
5114   echo "configure: failed program was:" >&5
5115   cat conftest.$ac_ext >&5
5116   rm -rf conftest*
5117   pgac_cv_c_volatile=no
5118 fi
5119 rm -f conftest*
5120 fi
5121
5122 echo "$ac_t""$pgac_cv_c_volatile" 1>&6
5123 if test x"$pgac_cv_c_volatile" = xno ; then
5124   cat >> confdefs.h <<\EOF
5125 #define volatile 
5126 EOF
5127
5128 fi
5129 echo $ac_n "checking types of arguments for accept()""... $ac_c" 1>&6
5130 echo "configure:5131: checking types of arguments for accept()" >&5
5131  if eval "test \"`echo '$''{'ac_cv_func_accept_arg1'+set}'`\" = set"; then
5132   echo $ac_n "(cached) $ac_c" 1>&6
5133 else
5134    if eval "test \"`echo '$''{'ac_cv_func_accept_arg2'+set}'`\" = set"; then
5135   echo $ac_n "(cached) $ac_c" 1>&6
5136 else
5137     if eval "test \"`echo '$''{'ac_cv_func_accept_arg3'+set}'`\" = set"; then
5138   echo $ac_n "(cached) $ac_c" 1>&6
5139 else
5140      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
5141      for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'void *'; do
5142       for ac_cv_func_accept_arg3 in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
5143        cat > conftest.$ac_ext <<EOF
5144 #line 5145 "configure"
5145 #include "confdefs.h"
5146 #ifdef HAVE_SYS_TYPES_H
5147 #include <sys/types.h>
5148 #endif
5149 #ifdef HAVE_SYS_SOCKET_H
5150 #include <sys/socket.h>
5151 #endif
5152 extern accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
5153 int main() {
5154
5155 ; return 0; }
5156 EOF
5157 if { (eval echo configure:5158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5158   rm -rf conftest*
5159           ac_not_found=no ; break 3
5160 else
5161   echo "configure: failed program was:" >&5
5162   cat conftest.$ac_ext >&5
5163   rm -rf conftest*
5164   ac_not_found=yes
5165 fi
5166 rm -f conftest*
5167       done
5168      done
5169     done
5170    
5171 fi
5172   
5173 fi
5174  
5175 fi
5176  if test "$ac_not_found" = yes; then
5177   ac_cv_func_accept_arg1=int
5178   ac_cv_func_accept_arg2='struct sockaddr *'
5179   ac_cv_func_accept_arg3='socklen_t'
5180  fi
5181  echo "$ac_t""$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" 1>&6
5182  cat >> confdefs.h <<EOF
5183 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
5184 EOF
5185
5186  cat >> confdefs.h <<EOF
5187 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
5188 EOF
5189
5190  cat >> confdefs.h <<EOF
5191 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
5192 EOF
5193
5194
5195
5196
5197 echo $ac_n "checking for int timezone""... $ac_c" 1>&6
5198 echo "configure:5199: checking for int timezone" >&5
5199 if eval "test \"`echo '$''{'pgac_cv_var_int_timezone'+set}'`\" = set"; then
5200   echo $ac_n "(cached) $ac_c" 1>&6
5201 else
5202   cat > conftest.$ac_ext <<EOF
5203 #line 5204 "configure"
5204 #include "confdefs.h"
5205 #include <time.h>
5206 int main() {
5207 int res = timezone / 60;
5208 ; return 0; }
5209 EOF
5210 if { (eval echo configure:5211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5211   rm -rf conftest*
5212   pgac_cv_var_int_timezone=yes
5213 else
5214   echo "configure: failed program was:" >&5
5215   cat conftest.$ac_ext >&5
5216   rm -rf conftest*
5217   pgac_cv_var_int_timezone=no
5218 fi
5219 rm -f conftest*
5220 fi
5221
5222 echo "$ac_t""$pgac_cv_var_int_timezone" 1>&6
5223 if test x"$pgac_cv_var_int_timezone" = xyes ; then
5224   cat >> confdefs.h <<\EOF
5225 #define HAVE_INT_TIMEZONE 
5226 EOF
5227
5228 fi
5229 echo $ac_n "checking whether gettimeofday takes only one argument""... $ac_c" 1>&6
5230 echo "configure:5231: checking whether gettimeofday takes only one argument" >&5
5231 if eval "test \"`echo '$''{'pgac_cv_func_gettimeofday_1arg'+set}'`\" = set"; then
5232   echo $ac_n "(cached) $ac_c" 1>&6
5233 else
5234   cat > conftest.$ac_ext <<EOF
5235 #line 5236 "configure"
5236 #include "confdefs.h"
5237 #include <sys/time.h>
5238 int main() {
5239 struct timeval *tp;
5240 struct timezone *tzp;
5241 gettimeofday(tp,tzp);
5242 ; return 0; }
5243 EOF
5244 if { (eval echo configure:5245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5245   rm -rf conftest*
5246   pgac_cv_func_gettimeofday_1arg=no
5247 else
5248   echo "configure: failed program was:" >&5
5249   cat conftest.$ac_ext >&5
5250   rm -rf conftest*
5251   pgac_cv_func_gettimeofday_1arg=yes
5252 fi
5253 rm -f conftest*
5254 fi
5255
5256 echo "$ac_t""$pgac_cv_func_gettimeofday_1arg" 1>&6
5257 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
5258   cat >> confdefs.h <<\EOF
5259 #define GETTIMEOFDAY_1ARG 
5260 EOF
5261
5262 fi
5263 echo $ac_n "checking for union semun""... $ac_c" 1>&6
5264 echo "configure:5265: checking for union semun" >&5
5265 if eval "test \"`echo '$''{'pgac_cv_union_semun'+set}'`\" = set"; then
5266   echo $ac_n "(cached) $ac_c" 1>&6
5267 else
5268   cat > conftest.$ac_ext <<EOF
5269 #line 5270 "configure"
5270 #include "confdefs.h"
5271 #include <sys/types.h>
5272 #include <sys/ipc.h>
5273 #include <sys/sem.h>
5274 int main() {
5275 union semun semun;
5276 ; return 0; }
5277 EOF
5278 if { (eval echo configure:5279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5279   rm -rf conftest*
5280   pgac_cv_union_semun=yes
5281 else
5282   echo "configure: failed program was:" >&5
5283   cat conftest.$ac_ext >&5
5284   rm -rf conftest*
5285   pgac_cv_union_semun=no
5286 fi
5287 rm -f conftest*
5288 fi
5289
5290 echo "$ac_t""$pgac_cv_union_semun" 1>&6
5291 if test x"$pgac_cv_union_semun" = xyes ; then
5292   cat >> confdefs.h <<\EOF
5293 #define HAVE_UNION_SEMUN 
5294 EOF
5295
5296 fi
5297
5298
5299 echo $ac_n "checking for fcntl(F_SETLK)""... $ac_c" 1>&6
5300 echo "configure:5301: checking for fcntl(F_SETLK)" >&5
5301 cat > conftest.$ac_ext <<EOF
5302 #line 5303 "configure"
5303 #include "confdefs.h"
5304 #include <fcntl.h>
5305 int main() {
5306 struct flock lck;
5307              lck.l_whence = SEEK_SET; lck.l_start = lck.l_len = 0;
5308              lck.l_type = F_WRLCK;
5309              fcntl(0, F_SETLK, &lck);
5310 ; return 0; }
5311 EOF
5312 if { (eval echo configure:5313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5313   rm -rf conftest*
5314   cat >> confdefs.h <<\EOF
5315 #define HAVE_FCNTL_SETLK 1
5316 EOF
5317  echo "$ac_t""yes" 1>&6
5318 else
5319   echo "configure: failed program was:" >&5
5320   cat conftest.$ac_ext >&5
5321   rm -rf conftest*
5322   echo "$ac_t""no" 1>&6
5323 fi
5324 rm -f conftest*
5325
5326 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
5327 echo "configure:5328: checking for 8-bit clean memcmp" >&5
5328 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
5329   echo $ac_n "(cached) $ac_c" 1>&6
5330 else
5331   if test "$cross_compiling" = yes; then
5332   ac_cv_func_memcmp_clean=no
5333 else
5334   cat > conftest.$ac_ext <<EOF
5335 #line 5336 "configure"
5336 #include "confdefs.h"
5337
5338 main()
5339 {
5340   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5341   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
5342 }
5343
5344 EOF
5345 if { (eval echo configure:5346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5346 then
5347   ac_cv_func_memcmp_clean=yes
5348 else
5349   echo "configure: failed program was:" >&5
5350   cat conftest.$ac_ext >&5
5351   rm -fr conftest*
5352   ac_cv_func_memcmp_clean=no
5353 fi
5354 rm -fr conftest*
5355 fi
5356
5357 fi
5358
5359 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
5360 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
5361
5362 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5363 echo "configure:5364: checking return type of signal handlers" >&5
5364 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5365   echo $ac_n "(cached) $ac_c" 1>&6
5366 else
5367   cat > conftest.$ac_ext <<EOF
5368 #line 5369 "configure"
5369 #include "confdefs.h"
5370 #include <sys/types.h>
5371 #include <signal.h>
5372 #ifdef signal
5373 #undef signal
5374 #endif
5375 #ifdef __cplusplus
5376 extern "C" void (*signal (int, void (*)(int)))(int);
5377 #else
5378 void (*signal ()) ();
5379 #endif
5380
5381 int main() {
5382 int i;
5383 ; return 0; }
5384 EOF
5385 if { (eval echo configure:5386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5386   rm -rf conftest*
5387   ac_cv_type_signal=void
5388 else
5389   echo "configure: failed program was:" >&5
5390   cat conftest.$ac_ext >&5
5391   rm -rf conftest*
5392   ac_cv_type_signal=int
5393 fi
5394 rm -f conftest*
5395 fi
5396
5397 echo "$ac_t""$ac_cv_type_signal" 1>&6
5398 cat >> confdefs.h <<EOF
5399 #define RETSIGTYPE $ac_cv_type_signal
5400 EOF
5401
5402
5403 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
5404 echo "configure:5405: checking for vprintf" >&5
5405 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
5406   echo $ac_n "(cached) $ac_c" 1>&6
5407 else
5408   cat > conftest.$ac_ext <<EOF
5409 #line 5410 "configure"
5410 #include "confdefs.h"
5411 /* System header to define __stub macros and hopefully few prototypes,
5412     which can conflict with char vprintf(); below.  */
5413 #include <assert.h>
5414 /* Override any gcc2 internal prototype to avoid an error.  */
5415 /* We use char because int might match the return type of a gcc2
5416     builtin and then its argument prototype would still apply.  */
5417 char vprintf();
5418
5419 int main() {
5420
5421 /* The GNU C library defines this for functions which it implements
5422     to always fail with ENOSYS.  Some functions are actually named
5423     something starting with __ and the normal name is an alias.  */
5424 #if defined (__stub_vprintf) || defined (__stub___vprintf)
5425 choke me
5426 #else
5427 vprintf();
5428 #endif
5429
5430 ; return 0; }
5431 EOF
5432 if { (eval echo configure:5433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5433   rm -rf conftest*
5434   eval "ac_cv_func_vprintf=yes"
5435 else
5436   echo "configure: failed program was:" >&5
5437   cat conftest.$ac_ext >&5
5438   rm -rf conftest*
5439   eval "ac_cv_func_vprintf=no"
5440 fi
5441 rm -f conftest*
5442 fi
5443
5444 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
5445   echo "$ac_t""yes" 1>&6
5446   cat >> confdefs.h <<\EOF
5447 #define HAVE_VPRINTF 1
5448 EOF
5449
5450 else
5451   echo "$ac_t""no" 1>&6
5452 fi
5453
5454 if test "$ac_cv_func_vprintf" != yes; then
5455 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
5456 echo "configure:5457: checking for _doprnt" >&5
5457 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
5458   echo $ac_n "(cached) $ac_c" 1>&6
5459 else
5460   cat > conftest.$ac_ext <<EOF
5461 #line 5462 "configure"
5462 #include "confdefs.h"
5463 /* System header to define __stub macros and hopefully few prototypes,
5464     which can conflict with char _doprnt(); below.  */
5465 #include <assert.h>
5466 /* Override any gcc2 internal prototype to avoid an error.  */
5467 /* We use char because int might match the return type of a gcc2
5468     builtin and then its argument prototype would still apply.  */
5469 char _doprnt();
5470
5471 int main() {
5472
5473 /* The GNU C library defines this for functions which it implements
5474     to always fail with ENOSYS.  Some functions are actually named
5475     something starting with __ and the normal name is an alias.  */
5476 #if defined (__stub__doprnt) || defined (__stub____doprnt)
5477 choke me
5478 #else
5479 _doprnt();
5480 #endif
5481
5482 ; return 0; }
5483 EOF
5484 if { (eval echo configure:5485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5485   rm -rf conftest*
5486   eval "ac_cv_func__doprnt=yes"
5487 else
5488   echo "configure: failed program was:" >&5
5489   cat conftest.$ac_ext >&5
5490   rm -rf conftest*
5491   eval "ac_cv_func__doprnt=no"
5492 fi
5493 rm -f conftest*
5494 fi
5495
5496 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
5497   echo "$ac_t""yes" 1>&6
5498   cat >> confdefs.h <<\EOF
5499 #define HAVE_DOPRNT 1
5500 EOF
5501
5502 else
5503   echo "$ac_t""no" 1>&6
5504 fi
5505
5506 fi
5507
5508 for ac_func in memmove sysconf
5509 do
5510 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5511 echo "configure:5512: checking for $ac_func" >&5
5512 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5513   echo $ac_n "(cached) $ac_c" 1>&6
5514 else
5515   cat > conftest.$ac_ext <<EOF
5516 #line 5517 "configure"
5517 #include "confdefs.h"
5518 /* System header to define __stub macros and hopefully few prototypes,
5519     which can conflict with char $ac_func(); below.  */
5520 #include <assert.h>
5521 /* Override any gcc2 internal prototype to avoid an error.  */
5522 /* We use char because int might match the return type of a gcc2
5523     builtin and then its argument prototype would still apply.  */
5524 char $ac_func();
5525
5526 int main() {
5527
5528 /* The GNU C library defines this for functions which it implements
5529     to always fail with ENOSYS.  Some functions are actually named
5530     something starting with __ and the normal name is an alias.  */
5531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5532 choke me
5533 #else
5534 $ac_func();
5535 #endif
5536
5537 ; return 0; }
5538 EOF
5539 if { (eval echo configure:5540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5540   rm -rf conftest*
5541   eval "ac_cv_func_$ac_func=yes"
5542 else
5543   echo "configure: failed program was:" >&5
5544   cat conftest.$ac_ext >&5
5545   rm -rf conftest*
5546   eval "ac_cv_func_$ac_func=no"
5547 fi
5548 rm -f conftest*
5549 fi
5550
5551 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5552   echo "$ac_t""yes" 1>&6
5553     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5554   cat >> confdefs.h <<EOF
5555 #define $ac_tr_func 1
5556 EOF
5557  
5558 else
5559   echo "$ac_t""no" 1>&6
5560 fi
5561 done
5562
5563 for ac_func in sigprocmask waitpid setsid fcvt
5564 do
5565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5566 echo "configure:5567: checking for $ac_func" >&5
5567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5568   echo $ac_n "(cached) $ac_c" 1>&6
5569 else
5570   cat > conftest.$ac_ext <<EOF
5571 #line 5572 "configure"
5572 #include "confdefs.h"
5573 /* System header to define __stub macros and hopefully few prototypes,
5574     which can conflict with char $ac_func(); below.  */
5575 #include <assert.h>
5576 /* Override any gcc2 internal prototype to avoid an error.  */
5577 /* We use char because int might match the return type of a gcc2
5578     builtin and then its argument prototype would still apply.  */
5579 char $ac_func();
5580
5581 int main() {
5582
5583 /* The GNU C library defines this for functions which it implements
5584     to always fail with ENOSYS.  Some functions are actually named
5585     something starting with __ and the normal name is an alias.  */
5586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5587 choke me
5588 #else
5589 $ac_func();
5590 #endif
5591
5592 ; return 0; }
5593 EOF
5594 if { (eval echo configure:5595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5595   rm -rf conftest*
5596   eval "ac_cv_func_$ac_func=yes"
5597 else
5598   echo "configure: failed program was:" >&5
5599   cat conftest.$ac_ext >&5
5600   rm -rf conftest*
5601   eval "ac_cv_func_$ac_func=no"
5602 fi
5603 rm -f conftest*
5604 fi
5605
5606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5607   echo "$ac_t""yes" 1>&6
5608     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5609   cat >> confdefs.h <<EOF
5610 #define $ac_tr_func 1
5611 EOF
5612  
5613 else
5614   echo "$ac_t""no" 1>&6
5615 fi
5616 done
5617
5618 for ac_func in setproctitle pstat
5619 do
5620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5621 echo "configure:5622: checking for $ac_func" >&5
5622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5623   echo $ac_n "(cached) $ac_c" 1>&6
5624 else
5625   cat > conftest.$ac_ext <<EOF
5626 #line 5627 "configure"
5627 #include "confdefs.h"
5628 /* System header to define __stub macros and hopefully few prototypes,
5629     which can conflict with char $ac_func(); below.  */
5630 #include <assert.h>
5631 /* Override any gcc2 internal prototype to avoid an error.  */
5632 /* We use char because int might match the return type of a gcc2
5633     builtin and then its argument prototype would still apply.  */
5634 char $ac_func();
5635
5636 int main() {
5637
5638 /* The GNU C library defines this for functions which it implements
5639     to always fail with ENOSYS.  Some functions are actually named
5640     something starting with __ and the normal name is an alias.  */
5641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5642 choke me
5643 #else
5644 $ac_func();
5645 #endif
5646
5647 ; return 0; }
5648 EOF
5649 if { (eval echo configure:5650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5650   rm -rf conftest*
5651   eval "ac_cv_func_$ac_func=yes"
5652 else
5653   echo "configure: failed program was:" >&5
5654   cat conftest.$ac_ext >&5
5655   rm -rf conftest*
5656   eval "ac_cv_func_$ac_func=no"
5657 fi
5658 rm -f conftest*
5659 fi
5660
5661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5662   echo "$ac_t""yes" 1>&6
5663     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5664   cat >> confdefs.h <<EOF
5665 #define $ac_tr_func 1
5666 EOF
5667  
5668 else
5669   echo "$ac_t""no" 1>&6
5670 fi
5671 done
5672
5673
5674 echo $ac_n "checking for PS_STRINGS""... $ac_c" 1>&6
5675 echo "configure:5676: checking for PS_STRINGS" >&5
5676 cat > conftest.$ac_ext <<EOF
5677 #line 5678 "configure"
5678 #include "confdefs.h"
5679 #ifdef HAVE_MACHINE_VMPARAM_H
5680 # include <machine/vmparam.h>
5681 #endif
5682 #ifdef HAVE_SYS_EXEC_H
5683 # include <sys/exec.h>
5684 #endif
5685 int main() {
5686 PS_STRINGS->ps_nargvstr = 1;
5687 PS_STRINGS->ps_argvstr = "foo";
5688 ; return 0; }
5689 EOF
5690 if { (eval echo configure:5691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5691   rm -rf conftest*
5692   echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF
5693 #define HAVE_PS_STRINGS 1
5694 EOF
5695
5696 else
5697   echo "configure: failed program was:" >&5
5698   cat conftest.$ac_ext >&5
5699   rm -rf conftest*
5700   echo "$ac_t""no" 1>&6
5701 fi
5702 rm -f conftest*
5703
5704 for ac_func in fpclass fp_class fp_class_d class
5705 do
5706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5707 echo "configure:5708: checking for $ac_func" >&5
5708 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5709   echo $ac_n "(cached) $ac_c" 1>&6
5710 else
5711   cat > conftest.$ac_ext <<EOF
5712 #line 5713 "configure"
5713 #include "confdefs.h"
5714 /* System header to define __stub macros and hopefully few prototypes,
5715     which can conflict with char $ac_func(); below.  */
5716 #include <assert.h>
5717 /* Override any gcc2 internal prototype to avoid an error.  */
5718 /* We use char because int might match the return type of a gcc2
5719     builtin and then its argument prototype would still apply.  */
5720 char $ac_func();
5721
5722 int main() {
5723
5724 /* The GNU C library defines this for functions which it implements
5725     to always fail with ENOSYS.  Some functions are actually named
5726     something starting with __ and the normal name is an alias.  */
5727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5728 choke me
5729 #else
5730 $ac_func();
5731 #endif
5732
5733 ; return 0; }
5734 EOF
5735 if { (eval echo configure:5736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5736   rm -rf conftest*
5737   eval "ac_cv_func_$ac_func=yes"
5738 else
5739   echo "configure: failed program was:" >&5
5740   cat conftest.$ac_ext >&5
5741   rm -rf conftest*
5742   eval "ac_cv_func_$ac_func=no"
5743 fi
5744 rm -f conftest*
5745 fi
5746
5747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5748   echo "$ac_t""yes" 1>&6
5749     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5750   cat >> confdefs.h <<EOF
5751 #define $ac_tr_func 1
5752 EOF
5753  
5754 else
5755   echo "$ac_t""no" 1>&6
5756 fi
5757 done
5758
5759 SNPRINTF=''
5760 echo $ac_n "checking for snprintf""... $ac_c" 1>&6
5761 echo "configure:5762: checking for snprintf" >&5
5762 if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
5763   echo $ac_n "(cached) $ac_c" 1>&6
5764 else
5765   cat > conftest.$ac_ext <<EOF
5766 #line 5767 "configure"
5767 #include "confdefs.h"
5768 /* System header to define __stub macros and hopefully few prototypes,
5769     which can conflict with char snprintf(); below.  */
5770 #include <assert.h>
5771 /* Override any gcc2 internal prototype to avoid an error.  */
5772 /* We use char because int might match the return type of a gcc2
5773     builtin and then its argument prototype would still apply.  */
5774 char snprintf();
5775
5776 int main() {
5777
5778 /* The GNU C library defines this for functions which it implements
5779     to always fail with ENOSYS.  Some functions are actually named
5780     something starting with __ and the normal name is an alias.  */
5781 #if defined (__stub_snprintf) || defined (__stub___snprintf)
5782 choke me
5783 #else
5784 snprintf();
5785 #endif
5786
5787 ; return 0; }
5788 EOF
5789 if { (eval echo configure:5790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5790   rm -rf conftest*
5791   eval "ac_cv_func_snprintf=yes"
5792 else
5793   echo "configure: failed program was:" >&5
5794   cat conftest.$ac_ext >&5
5795   rm -rf conftest*
5796   eval "ac_cv_func_snprintf=no"
5797 fi
5798 rm -f conftest*
5799 fi
5800
5801 if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
5802   echo "$ac_t""yes" 1>&6
5803   cat >> confdefs.h <<\EOF
5804 #define HAVE_SNPRINTF 1
5805 EOF
5806
5807 else
5808   echo "$ac_t""no" 1>&6
5809 SNPRINTF='snprintf.o'
5810 fi
5811
5812 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
5813 echo "configure:5814: checking for vsnprintf" >&5
5814 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
5815   echo $ac_n "(cached) $ac_c" 1>&6
5816 else
5817   cat > conftest.$ac_ext <<EOF
5818 #line 5819 "configure"
5819 #include "confdefs.h"
5820 /* System header to define __stub macros and hopefully few prototypes,
5821     which can conflict with char vsnprintf(); below.  */
5822 #include <assert.h>
5823 /* Override any gcc2 internal prototype to avoid an error.  */
5824 /* We use char because int might match the return type of a gcc2
5825     builtin and then its argument prototype would still apply.  */
5826 char vsnprintf();
5827
5828 int main() {
5829
5830 /* The GNU C library defines this for functions which it implements
5831     to always fail with ENOSYS.  Some functions are actually named
5832     something starting with __ and the normal name is an alias.  */
5833 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
5834 choke me
5835 #else
5836 vsnprintf();
5837 #endif
5838
5839 ; return 0; }
5840 EOF
5841 if { (eval echo configure:5842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5842   rm -rf conftest*
5843   eval "ac_cv_func_vsnprintf=yes"
5844 else
5845   echo "configure: failed program was:" >&5
5846   cat conftest.$ac_ext >&5
5847   rm -rf conftest*
5848   eval "ac_cv_func_vsnprintf=no"
5849 fi
5850 rm -f conftest*
5851 fi
5852
5853 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
5854   echo "$ac_t""yes" 1>&6
5855   cat >> confdefs.h <<\EOF
5856 #define HAVE_VSNPRINTF 1
5857 EOF
5858
5859 else
5860   echo "$ac_t""no" 1>&6
5861 SNPRINTF='snprintf.o'
5862 fi
5863
5864
5865 cat > conftest.$ac_ext <<EOF
5866 #line 5867 "configure"
5867 #include "confdefs.h"
5868 #include <stdio.h>
5869 EOF
5870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5871   egrep "snprintf" >/dev/null 2>&1; then
5872   rm -rf conftest*
5873   cat >> confdefs.h <<\EOF
5874 #define HAVE_SNPRINTF_DECL 1
5875 EOF
5876
5877 fi
5878 rm -f conftest*
5879
5880 cat > conftest.$ac_ext <<EOF
5881 #line 5882 "configure"
5882 #include "confdefs.h"
5883 #include <stdio.h>
5884 EOF
5885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5886   egrep "vsnprintf" >/dev/null 2>&1; then
5887   rm -rf conftest*
5888   cat >> confdefs.h <<\EOF
5889 #define HAVE_VSNPRINTF_DECL 1
5890 EOF
5891
5892 fi
5893 rm -f conftest*
5894
5895 echo $ac_n "checking for isinf""... $ac_c" 1>&6
5896 echo "configure:5897: checking for isinf" >&5
5897 if eval "test \"`echo '$''{'ac_cv_func_or_macro_isinf'+set}'`\" = set"; then
5898   echo $ac_n "(cached) $ac_c" 1>&6
5899 else
5900   cat > conftest.$ac_ext <<EOF
5901 #line 5902 "configure"
5902 #include "confdefs.h"
5903 #include <math.h>
5904 int main() {
5905 double x = 0.0; int res = isinf(x);
5906 ; return 0; }
5907 EOF
5908 if { (eval echo configure:5909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5909   rm -rf conftest*
5910   ac_cv_func_or_macro_isinf=yes
5911 else
5912   echo "configure: failed program was:" >&5
5913   cat conftest.$ac_ext >&5
5914   rm -rf conftest*
5915   ac_cv_func_or_macro_isinf=no
5916 fi
5917 rm -f conftest*
5918 fi
5919
5920 if [ $ac_cv_func_or_macro_isinf = yes ]; then
5921   echo "$ac_t""yes" 1>&6
5922   cat >> confdefs.h <<\EOF
5923 #define HAVE_ISINF 1
5924 EOF
5925
5926   ISINF=''
5927 else
5928   echo "$ac_t""no" 1>&6
5929   ISINF='isinf.o'
5930 fi
5931
5932 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
5933 echo "configure:5934: checking for getrusage" >&5
5934 if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
5935   echo $ac_n "(cached) $ac_c" 1>&6
5936 else
5937   cat > conftest.$ac_ext <<EOF
5938 #line 5939 "configure"
5939 #include "confdefs.h"
5940 /* System header to define __stub macros and hopefully few prototypes,
5941     which can conflict with char getrusage(); below.  */
5942 #include <assert.h>
5943 /* Override any gcc2 internal prototype to avoid an error.  */
5944 /* We use char because int might match the return type of a gcc2
5945     builtin and then its argument prototype would still apply.  */
5946 char getrusage();
5947
5948 int main() {
5949
5950 /* The GNU C library defines this for functions which it implements
5951     to always fail with ENOSYS.  Some functions are actually named
5952     something starting with __ and the normal name is an alias.  */
5953 #if defined (__stub_getrusage) || defined (__stub___getrusage)
5954 choke me
5955 #else
5956 getrusage();
5957 #endif
5958
5959 ; return 0; }
5960 EOF
5961 if { (eval echo configure:5962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5962   rm -rf conftest*
5963   eval "ac_cv_func_getrusage=yes"
5964 else
5965   echo "configure: failed program was:" >&5
5966   cat conftest.$ac_ext >&5
5967   rm -rf conftest*
5968   eval "ac_cv_func_getrusage=no"
5969 fi
5970 rm -f conftest*
5971 fi
5972
5973 if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
5974   echo "$ac_t""yes" 1>&6
5975   cat >> confdefs.h <<\EOF
5976 #define HAVE_GETRUSAGE 1
5977 EOF
5978
5979 else
5980   echo "$ac_t""no" 1>&6
5981 GETRUSAGE='getrusage.o'
5982 fi
5983
5984
5985 echo $ac_n "checking for srandom""... $ac_c" 1>&6
5986 echo "configure:5987: checking for srandom" >&5
5987 if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
5988   echo $ac_n "(cached) $ac_c" 1>&6
5989 else
5990   cat > conftest.$ac_ext <<EOF
5991 #line 5992 "configure"
5992 #include "confdefs.h"
5993 /* System header to define __stub macros and hopefully few prototypes,
5994     which can conflict with char srandom(); below.  */
5995 #include <assert.h>
5996 /* Override any gcc2 internal prototype to avoid an error.  */
5997 /* We use char because int might match the return type of a gcc2
5998     builtin and then its argument prototype would still apply.  */
5999 char srandom();
6000
6001 int main() {
6002
6003 /* The GNU C library defines this for functions which it implements
6004     to always fail with ENOSYS.  Some functions are actually named
6005     something starting with __ and the normal name is an alias.  */
6006 #if defined (__stub_srandom) || defined (__stub___srandom)
6007 choke me
6008 #else
6009 srandom();
6010 #endif
6011
6012 ; return 0; }
6013 EOF
6014 if { (eval echo configure:6015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6015   rm -rf conftest*
6016   eval "ac_cv_func_srandom=yes"
6017 else
6018   echo "configure: failed program was:" >&5
6019   cat conftest.$ac_ext >&5
6020   rm -rf conftest*
6021   eval "ac_cv_func_srandom=no"
6022 fi
6023 rm -f conftest*
6024 fi
6025
6026 if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
6027   echo "$ac_t""yes" 1>&6
6028   cat >> confdefs.h <<\EOF
6029 #define HAVE_SRANDOM 1
6030 EOF
6031
6032 else
6033   echo "$ac_t""no" 1>&6
6034 SRANDOM='srandom.o'
6035 fi
6036
6037
6038 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
6039 echo "configure:6040: checking for gethostname" >&5
6040 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
6041   echo $ac_n "(cached) $ac_c" 1>&6
6042 else
6043   cat > conftest.$ac_ext <<EOF
6044 #line 6045 "configure"
6045 #include "confdefs.h"
6046 /* System header to define __stub macros and hopefully few prototypes,
6047     which can conflict with char gethostname(); below.  */
6048 #include <assert.h>
6049 /* Override any gcc2 internal prototype to avoid an error.  */
6050 /* We use char because int might match the return type of a gcc2
6051     builtin and then its argument prototype would still apply.  */
6052 char gethostname();
6053
6054 int main() {
6055
6056 /* The GNU C library defines this for functions which it implements
6057     to always fail with ENOSYS.  Some functions are actually named
6058     something starting with __ and the normal name is an alias.  */
6059 #if defined (__stub_gethostname) || defined (__stub___gethostname)
6060 choke me
6061 #else
6062 gethostname();
6063 #endif
6064
6065 ; return 0; }
6066 EOF
6067 if { (eval echo configure:6068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6068   rm -rf conftest*
6069   eval "ac_cv_func_gethostname=yes"
6070 else
6071   echo "configure: failed program was:" >&5
6072   cat conftest.$ac_ext >&5
6073   rm -rf conftest*
6074   eval "ac_cv_func_gethostname=no"
6075 fi
6076 rm -f conftest*
6077 fi
6078
6079 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
6080   echo "$ac_t""yes" 1>&6
6081   cat >> confdefs.h <<\EOF
6082 #define HAVE_GETHOSTNAME 1
6083 EOF
6084
6085 else
6086   echo "$ac_t""no" 1>&6
6087 GETHOSTNAME='gethostname.o'
6088 fi
6089
6090
6091 echo $ac_n "checking for random""... $ac_c" 1>&6
6092 echo "configure:6093: checking for random" >&5
6093 if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
6094   echo $ac_n "(cached) $ac_c" 1>&6
6095 else
6096   cat > conftest.$ac_ext <<EOF
6097 #line 6098 "configure"
6098 #include "confdefs.h"
6099 /* System header to define __stub macros and hopefully few prototypes,
6100     which can conflict with char random(); below.  */
6101 #include <assert.h>
6102 /* Override any gcc2 internal prototype to avoid an error.  */
6103 /* We use char because int might match the return type of a gcc2
6104     builtin and then its argument prototype would still apply.  */
6105 char random();
6106
6107 int main() {
6108
6109 /* The GNU C library defines this for functions which it implements
6110     to always fail with ENOSYS.  Some functions are actually named
6111     something starting with __ and the normal name is an alias.  */
6112 #if defined (__stub_random) || defined (__stub___random)
6113 choke me
6114 #else
6115 random();
6116 #endif
6117
6118 ; return 0; }
6119 EOF
6120 if { (eval echo configure:6121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6121   rm -rf conftest*
6122   eval "ac_cv_func_random=yes"
6123 else
6124   echo "configure: failed program was:" >&5
6125   cat conftest.$ac_ext >&5
6126   rm -rf conftest*
6127   eval "ac_cv_func_random=no"
6128 fi
6129 rm -f conftest*
6130 fi
6131
6132 if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
6133   echo "$ac_t""yes" 1>&6
6134   cat >> confdefs.h <<\EOF
6135 #define HAVE_RANDOM 1
6136 EOF
6137
6138 else
6139   echo "$ac_t""no" 1>&6
6140 MISSING_RANDOM='random.o'
6141 fi
6142
6143
6144 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
6145 echo "configure:6146: checking for inet_aton" >&5
6146 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
6147   echo $ac_n "(cached) $ac_c" 1>&6
6148 else
6149   cat > conftest.$ac_ext <<EOF
6150 #line 6151 "configure"
6151 #include "confdefs.h"
6152 /* System header to define __stub macros and hopefully few prototypes,
6153     which can conflict with char inet_aton(); below.  */
6154 #include <assert.h>
6155 /* Override any gcc2 internal prototype to avoid an error.  */
6156 /* We use char because int might match the return type of a gcc2
6157     builtin and then its argument prototype would still apply.  */
6158 char inet_aton();
6159
6160 int main() {
6161
6162 /* The GNU C library defines this for functions which it implements
6163     to always fail with ENOSYS.  Some functions are actually named
6164     something starting with __ and the normal name is an alias.  */
6165 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
6166 choke me
6167 #else
6168 inet_aton();
6169 #endif
6170
6171 ; return 0; }
6172 EOF
6173 if { (eval echo configure:6174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6174   rm -rf conftest*
6175   eval "ac_cv_func_inet_aton=yes"
6176 else
6177   echo "configure: failed program was:" >&5
6178   cat conftest.$ac_ext >&5
6179   rm -rf conftest*
6180   eval "ac_cv_func_inet_aton=no"
6181 fi
6182 rm -f conftest*
6183 fi
6184
6185 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
6186   echo "$ac_t""yes" 1>&6
6187   cat >> confdefs.h <<\EOF
6188 #define HAVE_INET_ATON 1
6189 EOF
6190
6191 else
6192   echo "$ac_t""no" 1>&6
6193 INET_ATON='inet_aton.o'
6194 fi
6195
6196
6197 echo $ac_n "checking for strerror""... $ac_c" 1>&6
6198 echo "configure:6199: checking for strerror" >&5
6199 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
6200   echo $ac_n "(cached) $ac_c" 1>&6
6201 else
6202   cat > conftest.$ac_ext <<EOF
6203 #line 6204 "configure"
6204 #include "confdefs.h"
6205 /* System header to define __stub macros and hopefully few prototypes,
6206     which can conflict with char strerror(); below.  */
6207 #include <assert.h>
6208 /* Override any gcc2 internal prototype to avoid an error.  */
6209 /* We use char because int might match the return type of a gcc2
6210     builtin and then its argument prototype would still apply.  */
6211 char strerror();
6212
6213 int main() {
6214
6215 /* The GNU C library defines this for functions which it implements
6216     to always fail with ENOSYS.  Some functions are actually named
6217     something starting with __ and the normal name is an alias.  */
6218 #if defined (__stub_strerror) || defined (__stub___strerror)
6219 choke me
6220 #else
6221 strerror();
6222 #endif
6223
6224 ; return 0; }
6225 EOF
6226 if { (eval echo configure:6227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6227   rm -rf conftest*
6228   eval "ac_cv_func_strerror=yes"
6229 else
6230   echo "configure: failed program was:" >&5
6231   cat conftest.$ac_ext >&5
6232   rm -rf conftest*
6233   eval "ac_cv_func_strerror=no"
6234 fi
6235 rm -f conftest*
6236 fi
6237
6238 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
6239   echo "$ac_t""yes" 1>&6
6240   cat >> confdefs.h <<\EOF
6241 #define HAVE_STRERROR 1
6242 EOF
6243
6244 else
6245   echo "$ac_t""no" 1>&6
6246 STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o'
6247 fi
6248
6249
6250
6251 echo $ac_n "checking for strdup""... $ac_c" 1>&6
6252 echo "configure:6253: checking for strdup" >&5
6253 if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
6254   echo $ac_n "(cached) $ac_c" 1>&6
6255 else
6256   cat > conftest.$ac_ext <<EOF
6257 #line 6258 "configure"
6258 #include "confdefs.h"
6259 /* System header to define __stub macros and hopefully few prototypes,
6260     which can conflict with char strdup(); below.  */
6261 #include <assert.h>
6262 /* Override any gcc2 internal prototype to avoid an error.  */
6263 /* We use char because int might match the return type of a gcc2
6264     builtin and then its argument prototype would still apply.  */
6265 char strdup();
6266
6267 int main() {
6268
6269 /* The GNU C library defines this for functions which it implements
6270     to always fail with ENOSYS.  Some functions are actually named
6271     something starting with __ and the normal name is an alias.  */
6272 #if defined (__stub_strdup) || defined (__stub___strdup)
6273 choke me
6274 #else
6275 strdup();
6276 #endif
6277
6278 ; return 0; }
6279 EOF
6280 if { (eval echo configure:6281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6281   rm -rf conftest*
6282   eval "ac_cv_func_strdup=yes"
6283 else
6284   echo "configure: failed program was:" >&5
6285   cat conftest.$ac_ext >&5
6286   rm -rf conftest*
6287   eval "ac_cv_func_strdup=no"
6288 fi
6289 rm -f conftest*
6290 fi
6291
6292 if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
6293   echo "$ac_t""yes" 1>&6
6294   cat >> confdefs.h <<\EOF
6295 #define HAVE_STRDUP 1
6296 EOF
6297
6298 else
6299   echo "$ac_t""no" 1>&6
6300 STRDUP='../../utils/strdup.o'
6301 fi
6302
6303
6304 echo $ac_n "checking for strtol""... $ac_c" 1>&6
6305 echo "configure:6306: checking for strtol" >&5
6306 if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
6307   echo $ac_n "(cached) $ac_c" 1>&6
6308 else
6309   cat > conftest.$ac_ext <<EOF
6310 #line 6311 "configure"
6311 #include "confdefs.h"
6312 /* System header to define __stub macros and hopefully few prototypes,
6313     which can conflict with char strtol(); below.  */
6314 #include <assert.h>
6315 /* Override any gcc2 internal prototype to avoid an error.  */
6316 /* We use char because int might match the return type of a gcc2
6317     builtin and then its argument prototype would still apply.  */
6318 char strtol();
6319
6320 int main() {
6321
6322 /* The GNU C library defines this for functions which it implements
6323     to always fail with ENOSYS.  Some functions are actually named
6324     something starting with __ and the normal name is an alias.  */
6325 #if defined (__stub_strtol) || defined (__stub___strtol)
6326 choke me
6327 #else
6328 strtol();
6329 #endif
6330
6331 ; return 0; }
6332 EOF
6333 if { (eval echo configure:6334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6334   rm -rf conftest*
6335   eval "ac_cv_func_strtol=yes"
6336 else
6337   echo "configure: failed program was:" >&5
6338   cat conftest.$ac_ext >&5
6339   rm -rf conftest*
6340   eval "ac_cv_func_strtol=no"
6341 fi
6342 rm -f conftest*
6343 fi
6344
6345 if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
6346   echo "$ac_t""yes" 1>&6
6347   cat >> confdefs.h <<\EOF
6348 #define HAVE_STRTOL 1
6349 EOF
6350
6351 else
6352   echo "$ac_t""no" 1>&6
6353 STRTOL='strtol.o'
6354 fi
6355
6356
6357 echo $ac_n "checking for strtoul""... $ac_c" 1>&6
6358 echo "configure:6359: checking for strtoul" >&5
6359 if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
6360   echo $ac_n "(cached) $ac_c" 1>&6
6361 else
6362   cat > conftest.$ac_ext <<EOF
6363 #line 6364 "configure"
6364 #include "confdefs.h"
6365 /* System header to define __stub macros and hopefully few prototypes,
6366     which can conflict with char strtoul(); below.  */
6367 #include <assert.h>
6368 /* Override any gcc2 internal prototype to avoid an error.  */
6369 /* We use char because int might match the return type of a gcc2
6370     builtin and then its argument prototype would still apply.  */
6371 char strtoul();
6372
6373 int main() {
6374
6375 /* The GNU C library defines this for functions which it implements
6376     to always fail with ENOSYS.  Some functions are actually named
6377     something starting with __ and the normal name is an alias.  */
6378 #if defined (__stub_strtoul) || defined (__stub___strtoul)
6379 choke me
6380 #else
6381 strtoul();
6382 #endif
6383
6384 ; return 0; }
6385 EOF
6386 if { (eval echo configure:6387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6387   rm -rf conftest*
6388   eval "ac_cv_func_strtoul=yes"
6389 else
6390   echo "configure: failed program was:" >&5
6391   cat conftest.$ac_ext >&5
6392   rm -rf conftest*
6393   eval "ac_cv_func_strtoul=no"
6394 fi
6395 rm -f conftest*
6396 fi
6397
6398 if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
6399   echo "$ac_t""yes" 1>&6
6400   cat >> confdefs.h <<\EOF
6401 #define HAVE_STRTOUL 1
6402 EOF
6403
6404 else
6405   echo "$ac_t""no" 1>&6
6406 STRTOL='strtoul.o'
6407 fi
6408
6409
6410 echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
6411 echo "configure:6412: checking for strcasecmp" >&5
6412 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
6413   echo $ac_n "(cached) $ac_c" 1>&6
6414 else
6415   cat > conftest.$ac_ext <<EOF
6416 #line 6417 "configure"
6417 #include "confdefs.h"
6418 /* System header to define __stub macros and hopefully few prototypes,
6419     which can conflict with char strcasecmp(); below.  */
6420 #include <assert.h>
6421 /* Override any gcc2 internal prototype to avoid an error.  */
6422 /* We use char because int might match the return type of a gcc2
6423     builtin and then its argument prototype would still apply.  */
6424 char strcasecmp();
6425
6426 int main() {
6427
6428 /* The GNU C library defines this for functions which it implements
6429     to always fail with ENOSYS.  Some functions are actually named
6430     something starting with __ and the normal name is an alias.  */
6431 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
6432 choke me
6433 #else
6434 strcasecmp();
6435 #endif
6436
6437 ; return 0; }
6438 EOF
6439 if { (eval echo configure:6440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6440   rm -rf conftest*
6441   eval "ac_cv_func_strcasecmp=yes"
6442 else
6443   echo "configure: failed program was:" >&5
6444   cat conftest.$ac_ext >&5
6445   rm -rf conftest*
6446   eval "ac_cv_func_strcasecmp=no"
6447 fi
6448 rm -f conftest*
6449 fi
6450
6451 if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
6452   echo "$ac_t""yes" 1>&6
6453   cat >> confdefs.h <<\EOF
6454 #define HAVE_STRCASECMP 1
6455 EOF
6456
6457 else
6458   echo "$ac_t""no" 1>&6
6459 STRCASECMP='strcasecmp.o'
6460 fi
6461
6462
6463 echo $ac_n "checking for cbrt""... $ac_c" 1>&6
6464 echo "configure:6465: checking for cbrt" >&5
6465 if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
6466   echo $ac_n "(cached) $ac_c" 1>&6
6467 else
6468   cat > conftest.$ac_ext <<EOF
6469 #line 6470 "configure"
6470 #include "confdefs.h"
6471 /* System header to define __stub macros and hopefully few prototypes,
6472     which can conflict with char cbrt(); below.  */
6473 #include <assert.h>
6474 /* Override any gcc2 internal prototype to avoid an error.  */
6475 /* We use char because int might match the return type of a gcc2
6476     builtin and then its argument prototype would still apply.  */
6477 char cbrt();
6478
6479 int main() {
6480
6481 /* The GNU C library defines this for functions which it implements
6482     to always fail with ENOSYS.  Some functions are actually named
6483     something starting with __ and the normal name is an alias.  */
6484 #if defined (__stub_cbrt) || defined (__stub___cbrt)
6485 choke me
6486 #else
6487 cbrt();
6488 #endif
6489
6490 ; return 0; }
6491 EOF
6492 if { (eval echo configure:6493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6493   rm -rf conftest*
6494   eval "ac_cv_func_cbrt=yes"
6495 else
6496   echo "configure: failed program was:" >&5
6497   cat conftest.$ac_ext >&5
6498   rm -rf conftest*
6499   eval "ac_cv_func_cbrt=no"
6500 fi
6501 rm -f conftest*
6502 fi
6503
6504 if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
6505   echo "$ac_t""yes" 1>&6
6506   cat >> confdefs.h <<\EOF
6507 #define HAVE_CBRT 1
6508 EOF
6509
6510 else
6511   echo "$ac_t""no" 1>&6
6512 echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
6513 echo "configure:6514: checking for cbrt in -lm" >&5
6514 ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
6515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6516   echo $ac_n "(cached) $ac_c" 1>&6
6517 else
6518   ac_save_LIBS="$LIBS"
6519 LIBS="-lm  $LIBS"
6520 cat > conftest.$ac_ext <<EOF
6521 #line 6522 "configure"
6522 #include "confdefs.h"
6523 /* Override any gcc2 internal prototype to avoid an error.  */
6524 /* We use char because int might match the return type of a gcc2
6525     builtin and then its argument prototype would still apply.  */
6526 char cbrt();
6527
6528 int main() {
6529 cbrt()
6530 ; return 0; }
6531 EOF
6532 if { (eval echo configure:6533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6533   rm -rf conftest*
6534   eval "ac_cv_lib_$ac_lib_var=yes"
6535 else
6536   echo "configure: failed program was:" >&5
6537   cat conftest.$ac_ext >&5
6538   rm -rf conftest*
6539   eval "ac_cv_lib_$ac_lib_var=no"
6540 fi
6541 rm -f conftest*
6542 LIBS="$ac_save_LIBS"
6543
6544 fi
6545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6546   echo "$ac_t""yes" 1>&6
6547   cat >> confdefs.h <<\EOF
6548 #define HAVE_CBRT 1
6549 EOF
6550
6551 else
6552   echo "$ac_t""no" 1>&6
6553 fi
6554
6555 fi
6556
6557
6558 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
6559 # this hackery with HPUXMATHLIB allows us to cope.
6560 HPUXMATHLIB=""
6561 case "$host_cpu" in
6562   hppa1.1) 
6563         if [ -r /lib/pa1.1/libm.a ] ; then
6564             HPUXMATHLIB="-L /lib/pa1.1 -lm"
6565         fi ;;
6566 esac
6567
6568
6569 echo $ac_n "checking for rint""... $ac_c" 1>&6
6570 echo "configure:6571: checking for rint" >&5
6571 if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
6572   echo $ac_n "(cached) $ac_c" 1>&6
6573 else
6574   cat > conftest.$ac_ext <<EOF
6575 #line 6576 "configure"
6576 #include "confdefs.h"
6577 /* System header to define __stub macros and hopefully few prototypes,
6578     which can conflict with char rint(); below.  */
6579 #include <assert.h>
6580 /* Override any gcc2 internal prototype to avoid an error.  */
6581 /* We use char because int might match the return type of a gcc2
6582     builtin and then its argument prototype would still apply.  */
6583 char rint();
6584
6585 int main() {
6586
6587 /* The GNU C library defines this for functions which it implements
6588     to always fail with ENOSYS.  Some functions are actually named
6589     something starting with __ and the normal name is an alias.  */
6590 #if defined (__stub_rint) || defined (__stub___rint)
6591 choke me
6592 #else
6593 rint();
6594 #endif
6595
6596 ; return 0; }
6597 EOF
6598 if { (eval echo configure:6599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6599   rm -rf conftest*
6600   eval "ac_cv_func_rint=yes"
6601 else
6602   echo "configure: failed program was:" >&5
6603   cat conftest.$ac_ext >&5
6604   rm -rf conftest*
6605   eval "ac_cv_func_rint=no"
6606 fi
6607 rm -f conftest*
6608 fi
6609
6610 if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
6611   echo "$ac_t""yes" 1>&6
6612   cat >> confdefs.h <<\EOF
6613 #define HAVE_RINT 1
6614 EOF
6615
6616 else
6617   echo "$ac_t""no" 1>&6
6618 echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
6619 echo "configure:6620: checking for rint in -lm" >&5
6620 ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
6621 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6622   echo $ac_n "(cached) $ac_c" 1>&6
6623 else
6624   ac_save_LIBS="$LIBS"
6625 LIBS="-lm $HPUXMATHLIB $LIBS"
6626 cat > conftest.$ac_ext <<EOF
6627 #line 6628 "configure"
6628 #include "confdefs.h"
6629 /* Override any gcc2 internal prototype to avoid an error.  */
6630 /* We use char because int might match the return type of a gcc2
6631     builtin and then its argument prototype would still apply.  */
6632 char rint();
6633
6634 int main() {
6635 rint()
6636 ; return 0; }
6637 EOF
6638 if { (eval echo configure:6639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6639   rm -rf conftest*
6640   eval "ac_cv_lib_$ac_lib_var=yes"
6641 else
6642   echo "configure: failed program was:" >&5
6643   cat conftest.$ac_ext >&5
6644   rm -rf conftest*
6645   eval "ac_cv_lib_$ac_lib_var=no"
6646 fi
6647 rm -f conftest*
6648 LIBS="$ac_save_LIBS"
6649
6650 fi
6651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6652   echo "$ac_t""yes" 1>&6
6653   cat >> confdefs.h <<\EOF
6654 #define HAVE_RINT 1
6655 EOF
6656
6657 else
6658   echo "$ac_t""no" 1>&6
6659 fi
6660
6661 fi
6662
6663
6664 cat > conftest.$ac_ext <<EOF
6665 #line 6666 "configure"
6666 #include "confdefs.h"
6667 #include <readline.h>
6668 EOF
6669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6670   egrep "rl_completion_append_character" >/dev/null 2>&1; then
6671   rm -rf conftest*
6672   cat >> confdefs.h <<\EOF
6673 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
6674 EOF
6675
6676 else
6677   rm -rf conftest*
6678   cat > conftest.$ac_ext <<EOF
6679 #line 6680 "configure"
6680 #include "confdefs.h"
6681 #include <readline/readline.h>
6682 EOF
6683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6684   egrep "rl_completion_append_character" >/dev/null 2>&1; then
6685   rm -rf conftest*
6686   cat >> confdefs.h <<\EOF
6687 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
6688 EOF
6689
6690 fi
6691 rm -f conftest*
6692
6693 fi
6694 rm -f conftest*
6695
6696
6697
6698 for ac_func in filename_completion_function
6699 do
6700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6701 echo "configure:6702: checking for $ac_func" >&5
6702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6703   echo $ac_n "(cached) $ac_c" 1>&6
6704 else
6705   cat > conftest.$ac_ext <<EOF
6706 #line 6707 "configure"
6707 #include "confdefs.h"
6708 /* System header to define __stub macros and hopefully few prototypes,
6709     which can conflict with char $ac_func(); below.  */
6710 #include <assert.h>
6711 /* Override any gcc2 internal prototype to avoid an error.  */
6712 /* We use char because int might match the return type of a gcc2
6713     builtin and then its argument prototype would still apply.  */
6714 char $ac_func();
6715
6716 int main() {
6717
6718 /* The GNU C library defines this for functions which it implements
6719     to always fail with ENOSYS.  Some functions are actually named
6720     something starting with __ and the normal name is an alias.  */
6721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6722 choke me
6723 #else
6724 $ac_func();
6725 #endif
6726
6727 ; return 0; }
6728 EOF
6729 if { (eval echo configure:6730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6730   rm -rf conftest*
6731   eval "ac_cv_func_$ac_func=yes"
6732 else
6733   echo "configure: failed program was:" >&5
6734   cat conftest.$ac_ext >&5
6735   rm -rf conftest*
6736   eval "ac_cv_func_$ac_func=no"
6737 fi
6738 rm -f conftest*
6739 fi
6740
6741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6742   echo "$ac_t""yes" 1>&6
6743     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6744   cat >> confdefs.h <<EOF
6745 #define $ac_tr_func 1
6746 EOF
6747  cat > conftest.$ac_ext <<EOF
6748 #line 6749 "configure"
6749 #include "confdefs.h"
6750 #include <readline.h>
6751 EOF
6752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6753   egrep "filename_completion_function" >/dev/null 2>&1; then
6754   rm -rf conftest*
6755   cat >> confdefs.h <<\EOF
6756 #define HAVE_FILENAME_COMPLETION_FUNCTION_DECL 1
6757 EOF
6758
6759 else
6760   rm -rf conftest*
6761   cat > conftest.$ac_ext <<EOF
6762 #line 6763 "configure"
6763 #include "confdefs.h"
6764 #include <readline/readline.h>
6765 EOF
6766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6767   egrep "filename_completion_function" >/dev/null 2>&1; then
6768   rm -rf conftest*
6769   cat >> confdefs.h <<\EOF
6770 #define HAVE_FILENAME_COMPLETION_FUNCTION_DECL 1
6771 EOF
6772
6773 fi
6774 rm -f conftest*
6775
6776 fi
6777 rm -f conftest*
6778
6779
6780 else
6781   echo "$ac_t""no" 1>&6
6782 fi
6783 done
6784
6785
6786
6787
6788 for ac_func in getopt_long
6789 do
6790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6791 echo "configure:6792: checking for $ac_func" >&5
6792 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6793   echo $ac_n "(cached) $ac_c" 1>&6
6794 else
6795   cat > conftest.$ac_ext <<EOF
6796 #line 6797 "configure"
6797 #include "confdefs.h"
6798 /* System header to define __stub macros and hopefully few prototypes,
6799     which can conflict with char $ac_func(); below.  */
6800 #include <assert.h>
6801 /* Override any gcc2 internal prototype to avoid an error.  */
6802 /* We use char because int might match the return type of a gcc2
6803     builtin and then its argument prototype would still apply.  */
6804 char $ac_func();
6805
6806 int main() {
6807
6808 /* The GNU C library defines this for functions which it implements
6809     to always fail with ENOSYS.  Some functions are actually named
6810     something starting with __ and the normal name is an alias.  */
6811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6812 choke me
6813 #else
6814 $ac_func();
6815 #endif
6816
6817 ; return 0; }
6818 EOF
6819 if { (eval echo configure:6820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6820   rm -rf conftest*
6821   eval "ac_cv_func_$ac_func=yes"
6822 else
6823   echo "configure: failed program was:" >&5
6824   cat conftest.$ac_ext >&5
6825   rm -rf conftest*
6826   eval "ac_cv_func_$ac_func=no"
6827 fi
6828 rm -f conftest*
6829 fi
6830
6831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6832   echo "$ac_t""yes" 1>&6
6833     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6834   cat >> confdefs.h <<EOF
6835 #define $ac_tr_func 1
6836 EOF
6837  
6838 else
6839   echo "$ac_t""no" 1>&6
6840 fi
6841 done
6842
6843
6844 echo $ac_n "checking for finite""... $ac_c" 1>&6
6845 echo "configure:6846: checking for finite" >&5
6846 cat > conftest.$ac_ext <<EOF
6847 #line 6848 "configure"
6848 #include "confdefs.h"
6849 #include <math.h>
6850 int main() {
6851 int dummy=finite(1.0);
6852 ; return 0; }
6853 EOF
6854 if { (eval echo configure:6855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6855   rm -rf conftest*
6856   cat >> confdefs.h <<\EOF
6857 #define HAVE_FINITE 1
6858 EOF
6859  echo "$ac_t""yes" 1>&6
6860 else
6861   echo "configure: failed program was:" >&5
6862   cat conftest.$ac_ext >&5
6863   rm -rf conftest*
6864   echo "$ac_t""no" 1>&6
6865 fi
6866 rm -f conftest*
6867
6868 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
6869 echo "configure:6870: checking for sigsetjmp" >&5
6870 cat > conftest.$ac_ext <<EOF
6871 #line 6872 "configure"
6872 #include "confdefs.h"
6873 #include <setjmp.h>
6874 int main() {
6875 sigjmp_buf x; sigsetjmp(x, 1);
6876 ; return 0; }
6877 EOF
6878 if { (eval echo configure:6879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6879   rm -rf conftest*
6880   cat >> confdefs.h <<\EOF
6881 #define HAVE_SIGSETJMP 1
6882 EOF
6883  echo "$ac_t""yes" 1>&6
6884 else
6885   echo "configure: failed program was:" >&5
6886   cat conftest.$ac_ext >&5
6887   rm -rf conftest*
6888   echo "$ac_t""no" 1>&6
6889 fi
6890 rm -f conftest*
6891
6892 # Check whether --enable-syslog or --disable-syslog was given.
6893 if test "${enable_syslog+set}" = set; then
6894   enableval="$enable_syslog"
6895   case $enableval in y|ye|yes)
6896         echo $ac_n "checking for syslog""... $ac_c" 1>&6
6897 echo "configure:6898: checking for syslog" >&5
6898 if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
6899   echo $ac_n "(cached) $ac_c" 1>&6
6900 else
6901   cat > conftest.$ac_ext <<EOF
6902 #line 6903 "configure"
6903 #include "confdefs.h"
6904 /* System header to define __stub macros and hopefully few prototypes,
6905     which can conflict with char syslog(); below.  */
6906 #include <assert.h>
6907 /* Override any gcc2 internal prototype to avoid an error.  */
6908 /* We use char because int might match the return type of a gcc2
6909     builtin and then its argument prototype would still apply.  */
6910 char syslog();
6911
6912 int main() {
6913
6914 /* The GNU C library defines this for functions which it implements
6915     to always fail with ENOSYS.  Some functions are actually named
6916     something starting with __ and the normal name is an alias.  */
6917 #if defined (__stub_syslog) || defined (__stub___syslog)
6918 choke me
6919 #else
6920 syslog();
6921 #endif
6922
6923 ; return 0; }
6924 EOF
6925 if { (eval echo configure:6926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6926   rm -rf conftest*
6927   eval "ac_cv_func_syslog=yes"
6928 else
6929   echo "configure: failed program was:" >&5
6930   cat conftest.$ac_ext >&5
6931   rm -rf conftest*
6932   eval "ac_cv_func_syslog=no"
6933 fi
6934 rm -f conftest*
6935 fi
6936
6937 if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
6938   echo "$ac_t""yes" 1>&6
6939   cat >> confdefs.h <<\EOF
6940 #define ENABLE_SYSLOG 1
6941 EOF
6942
6943 else
6944   echo "$ac_t""no" 1>&6
6945 { echo "configure: error: no syslog interface found" 1>&2; exit 1; }
6946 fi
6947
6948         ;;
6949      esac
6950
6951 fi
6952
6953
6954
6955 echo $ac_n "checking whether long int is 64 bits""... $ac_c" 1>&6
6956 echo "configure:6957: checking whether long int is 64 bits" >&5
6957 if eval "test \"`echo '$''{'pgac_cv_type_long_int_64'+set}'`\" = set"; then
6958   echo $ac_n "(cached) $ac_c" 1>&6
6959 else
6960   if test "$cross_compiling" = yes; then
6961   pgac_cv_type_long_int_64=no
6962 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
6963 else
6964   cat > conftest.$ac_ext <<EOF
6965 #line 6966 "configure"
6966 #include "confdefs.h"
6967 typedef long int int64;
6968
6969 /*
6970  * These are globals to discourage the compiler from folding all the
6971  * arithmetic tests down to compile-time constants.
6972  */
6973 int64 a = 20000001;
6974 int64 b = 40000005;
6975
6976 int does_int64_work()
6977 {
6978   int64 c,d;
6979
6980   if (sizeof(int64) != 8)
6981     return 0;                   /* definitely not the right size */
6982
6983   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6984   c = a * b;
6985   d = (c + b) / b;
6986   if (d != a+1)
6987     return 0;
6988   return 1;
6989 }
6990 main() {
6991   exit(! does_int64_work());
6992 }
6993 EOF
6994 if { (eval echo configure:6995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6995 then
6996   pgac_cv_type_long_int_64=yes
6997 else
6998   echo "configure: failed program was:" >&5
6999   cat conftest.$ac_ext >&5
7000   rm -fr conftest*
7001   pgac_cv_type_long_int_64=no
7002 fi
7003 rm -fr conftest*
7004 fi
7005
7006 fi
7007
7008 echo "$ac_t""$pgac_cv_type_long_int_64" 1>&6
7009
7010 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
7011 if test x"$pgac_cv_type_long_int_64" = xyes ; then
7012   cat >> confdefs.h <<\EOF
7013 #define HAVE_LONG_INT_64 
7014 EOF
7015
7016 fi
7017
7018
7019 if test x"$HAVE_LONG_INT_64" = x"no" ; then
7020   echo $ac_n "checking whether long long int is 64 bits""... $ac_c" 1>&6
7021 echo "configure:7022: checking whether long long int is 64 bits" >&5
7022 if eval "test \"`echo '$''{'pgac_cv_type_long_long_int_64'+set}'`\" = set"; then
7023   echo $ac_n "(cached) $ac_c" 1>&6
7024 else
7025   if test "$cross_compiling" = yes; then
7026   pgac_cv_type_long_long_int_64=no
7027 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
7028 else
7029   cat > conftest.$ac_ext <<EOF
7030 #line 7031 "configure"
7031 #include "confdefs.h"
7032 typedef long long int int64;
7033
7034 /*
7035  * These are globals to discourage the compiler from folding all the
7036  * arithmetic tests down to compile-time constants.
7037  */
7038 int64 a = 20000001;
7039 int64 b = 40000005;
7040
7041 int does_int64_work()
7042 {
7043   int64 c,d;
7044
7045   if (sizeof(int64) != 8)
7046     return 0;                   /* definitely not the right size */
7047
7048   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
7049   c = a * b;
7050   d = (c + b) / b;
7051   if (d != a+1)
7052     return 0;
7053   return 1;
7054 }
7055 main() {
7056   exit(! does_int64_work());
7057 }
7058 EOF
7059 if { (eval echo configure:7060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7060 then
7061   pgac_cv_type_long_long_int_64=yes
7062 else
7063   echo "configure: failed program was:" >&5
7064   cat conftest.$ac_ext >&5
7065   rm -fr conftest*
7066   pgac_cv_type_long_long_int_64=no
7067 fi
7068 rm -fr conftest*
7069 fi
7070
7071 fi
7072
7073 echo "$ac_t""$pgac_cv_type_long_long_int_64" 1>&6
7074
7075 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
7076 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
7077   cat >> confdefs.h <<\EOF
7078 #define HAVE_LONG_LONG_INT_64 
7079 EOF
7080
7081 fi
7082
7083 fi
7084
7085
7086
7087 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7088   if [ x$SNPRINTF = x ] ; then
7089     echo $ac_n "checking whether snprintf handles 'long long int' as %lld""... $ac_c" 1>&6
7090 echo "configure:7091: checking whether snprintf handles 'long long int' as %lld" >&5
7091     if test "$cross_compiling" = yes; then
7092    echo "$ac_t""assuming not on target machine" 1>&6
7093         # Force usage of our own snprintf, since we cannot test foreign snprintf
7094         SNPRINTF='snprintf.o'
7095         INT64_FORMAT='"%lld"'
7096   
7097 else
7098   cat > conftest.$ac_ext <<EOF
7099 #line 7100 "configure"
7100 #include "confdefs.h"
7101 #include <stdio.h>
7102 typedef long long int int64;
7103 #define INT64_FORMAT "%lld"
7104
7105 int64 a = 20000001;
7106 int64 b = 40000005;
7107
7108 int does_int64_snprintf_work()
7109 {
7110   int64 c;
7111   char buf[100];
7112
7113   if (sizeof(int64) != 8)
7114     return 0;                   /* doesn't look like the right size */
7115
7116   c = a * b;
7117   snprintf(buf, 100, INT64_FORMAT, c);
7118   if (strcmp(buf, "800000140000005") != 0)
7119     return 0;                   /* either multiply or snprintf is busted */
7120   return 1;
7121 }
7122 main() {
7123   exit(! does_int64_snprintf_work());
7124 }
7125 EOF
7126 if { (eval echo configure:7127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7127 then
7128    echo "$ac_t""yes" 1>&6
7129           INT64_FORMAT='"%lld"'
7130         
7131 else
7132   echo "configure: failed program was:" >&5
7133   cat conftest.$ac_ext >&5
7134   rm -fr conftest*
7135    echo "$ac_t""no" 1>&6
7136     echo $ac_n "checking whether snprintf handles 'long long int' as %qd""... $ac_c" 1>&6
7137 echo "configure:7138: checking whether snprintf handles 'long long int' as %qd" >&5 
7138     if test "$cross_compiling" = yes; then
7139    echo "$ac_t""assuming not on target machine" 1>&6
7140         # Force usage of our own snprintf, since we cannot test foreign snprintf
7141         SNPRINTF='snprintf.o'
7142         INT64_FORMAT='"%lld"'
7143   
7144 else
7145   cat > conftest.$ac_ext <<EOF
7146 #line 7147 "configure"
7147 #include "confdefs.h"
7148 #include <stdio.h>
7149 typedef long long int int64;
7150 #define INT64_FORMAT "%qd"
7151    
7152 int64 a = 20000001;
7153 int64 b = 40000005;
7154    
7155 int does_int64_snprintf_work()
7156 {  
7157   int64 c;
7158   char buf[100];
7159
7160   if (sizeof(int64) != 8)
7161     return 0;     /* doesn't look like the right size */
7162
7163   c = a * b;
7164   snprintf(buf, 100, INT64_FORMAT, c);
7165   if (strcmp(buf, "800000140000005") != 0)
7166     return 0;     /* either multiply or snprintf is busted */
7167   return 1;
7168 }
7169 main() {
7170   exit(! does_int64_snprintf_work());
7171 }
7172 EOF
7173 if { (eval echo configure:7174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7174 then
7175    echo "$ac_t""yes" 1>&6
7176     INT64_FORMAT='"%qd"'
7177   
7178 else
7179   echo "configure: failed program was:" >&5
7180   cat conftest.$ac_ext >&5
7181   rm -fr conftest*
7182    echo "$ac_t""no" 1>&6
7183         # Force usage of our own snprintf, since system snprintf is broken
7184         SNPRINTF='snprintf.o'
7185         INT64_FORMAT='"%lld"'
7186   
7187 fi
7188 rm -fr conftest*
7189 fi
7190  
7191 fi
7192 rm -fr conftest*
7193 fi
7194
7195   else
7196     # here if we previously decided we needed to use our own snprintf
7197     INT64_FORMAT='"%lld"'
7198   fi
7199 else
7200   # Here if we are not using 'long long int' at all
7201   INT64_FORMAT='"%ld"'
7202 fi
7203
7204 cat >> confdefs.h <<EOF
7205 #define INT64_FORMAT $INT64_FORMAT
7206 EOF
7207
7208
7209
7210
7211 echo $ac_n "checking alignment of short""... $ac_c" 1>&6
7212 echo "configure:7213: checking alignment of short" >&5
7213 if eval "test \"`echo '$''{'pgac_cv_alignof_short'+set}'`\" = set"; then
7214   echo $ac_n "(cached) $ac_c" 1>&6
7215 else
7216   if test "$cross_compiling" = yes; then
7217   pgac_cv_alignof_short='sizeof(short)'
7218 else
7219   cat > conftest.$ac_ext <<EOF
7220 #line 7221 "configure"
7221 #include "confdefs.h"
7222 #include <stdio.h>
7223 struct { char filler; short field; } mystruct;
7224 main()
7225 {
7226   FILE *f=fopen("conftestval", "w");
7227   if (!f) exit(1);
7228   fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7229   exit(0);
7230 }
7231 EOF
7232 if { (eval echo configure:7233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7233 then
7234   pgac_cv_alignof_short=`cat conftestval`
7235 else
7236   echo "configure: failed program was:" >&5
7237   cat conftest.$ac_ext >&5
7238   rm -fr conftest*
7239   pgac_cv_alignof_short='sizeof(short)'
7240 fi
7241 rm -fr conftest*
7242 fi
7243
7244 fi
7245 echo "$ac_t""$pgac_cv_alignof_short" 1>&6
7246 cat >> confdefs.h <<EOF
7247 #define ALIGNOF_SHORT $pgac_cv_alignof_short
7248 EOF
7249
7250
7251 echo $ac_n "checking alignment of int""... $ac_c" 1>&6
7252 echo "configure:7253: checking alignment of int" >&5
7253 if eval "test \"`echo '$''{'pgac_cv_alignof_int'+set}'`\" = set"; then
7254   echo $ac_n "(cached) $ac_c" 1>&6
7255 else
7256   if test "$cross_compiling" = yes; then
7257   pgac_cv_alignof_int='sizeof(int)'
7258 else
7259   cat > conftest.$ac_ext <<EOF
7260 #line 7261 "configure"
7261 #include "confdefs.h"
7262 #include <stdio.h>
7263 struct { char filler; int field; } mystruct;
7264 main()
7265 {
7266   FILE *f=fopen("conftestval", "w");
7267   if (!f) exit(1);
7268   fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7269   exit(0);
7270 }
7271 EOF
7272 if { (eval echo configure:7273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7273 then
7274   pgac_cv_alignof_int=`cat conftestval`
7275 else
7276   echo "configure: failed program was:" >&5
7277   cat conftest.$ac_ext >&5
7278   rm -fr conftest*
7279   pgac_cv_alignof_int='sizeof(int)'
7280 fi
7281 rm -fr conftest*
7282 fi
7283
7284 fi
7285 echo "$ac_t""$pgac_cv_alignof_int" 1>&6
7286 cat >> confdefs.h <<EOF
7287 #define ALIGNOF_INT $pgac_cv_alignof_int
7288 EOF
7289
7290
7291 echo $ac_n "checking alignment of long""... $ac_c" 1>&6
7292 echo "configure:7293: checking alignment of long" >&5
7293 if eval "test \"`echo '$''{'pgac_cv_alignof_long'+set}'`\" = set"; then
7294   echo $ac_n "(cached) $ac_c" 1>&6
7295 else
7296   if test "$cross_compiling" = yes; then
7297   pgac_cv_alignof_long='sizeof(long)'
7298 else
7299   cat > conftest.$ac_ext <<EOF
7300 #line 7301 "configure"
7301 #include "confdefs.h"
7302 #include <stdio.h>
7303 struct { char filler; long field; } mystruct;
7304 main()
7305 {
7306   FILE *f=fopen("conftestval", "w");
7307   if (!f) exit(1);
7308   fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7309   exit(0);
7310 }
7311 EOF
7312 if { (eval echo configure:7313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7313 then
7314   pgac_cv_alignof_long=`cat conftestval`
7315 else
7316   echo "configure: failed program was:" >&5
7317   cat conftest.$ac_ext >&5
7318   rm -fr conftest*
7319   pgac_cv_alignof_long='sizeof(long)'
7320 fi
7321 rm -fr conftest*
7322 fi
7323
7324 fi
7325 echo "$ac_t""$pgac_cv_alignof_long" 1>&6
7326 cat >> confdefs.h <<EOF
7327 #define ALIGNOF_LONG $pgac_cv_alignof_long
7328 EOF
7329
7330
7331 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7332   echo $ac_n "checking alignment of long long int""... $ac_c" 1>&6
7333 echo "configure:7334: checking alignment of long long int" >&5
7334 if eval "test \"`echo '$''{'pgac_cv_alignof_long_long_int'+set}'`\" = set"; then
7335   echo $ac_n "(cached) $ac_c" 1>&6
7336 else
7337   if test "$cross_compiling" = yes; then
7338   pgac_cv_alignof_long_long_int='sizeof(long long int)'
7339 else
7340   cat > conftest.$ac_ext <<EOF
7341 #line 7342 "configure"
7342 #include "confdefs.h"
7343 #include <stdio.h>
7344 struct { char filler; long long int field; } mystruct;
7345 main()
7346 {
7347   FILE *f=fopen("conftestval", "w");
7348   if (!f) exit(1);
7349   fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7350   exit(0);
7351 }
7352 EOF
7353 if { (eval echo configure:7354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7354 then
7355   pgac_cv_alignof_long_long_int=`cat conftestval`
7356 else
7357   echo "configure: failed program was:" >&5
7358   cat conftest.$ac_ext >&5
7359   rm -fr conftest*
7360   pgac_cv_alignof_long_long_int='sizeof(long long int)'
7361 fi
7362 rm -fr conftest*
7363 fi
7364
7365 fi
7366 echo "$ac_t""$pgac_cv_alignof_long_long_int" 1>&6
7367 cat >> confdefs.h <<EOF
7368 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
7369 EOF
7370
7371
7372 fi
7373 echo $ac_n "checking alignment of double""... $ac_c" 1>&6
7374 echo "configure:7375: checking alignment of double" >&5
7375 if eval "test \"`echo '$''{'pgac_cv_alignof_double'+set}'`\" = set"; then
7376   echo $ac_n "(cached) $ac_c" 1>&6
7377 else
7378   if test "$cross_compiling" = yes; then
7379   pgac_cv_alignof_double='sizeof(double)'
7380 else
7381   cat > conftest.$ac_ext <<EOF
7382 #line 7383 "configure"
7383 #include "confdefs.h"
7384 #include <stdio.h>
7385 struct { char filler; double field; } mystruct;
7386 main()
7387 {
7388   FILE *f=fopen("conftestval", "w");
7389   if (!f) exit(1);
7390   fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7391   exit(0);
7392 }
7393 EOF
7394 if { (eval echo configure:7395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7395 then
7396   pgac_cv_alignof_double=`cat conftestval`
7397 else
7398   echo "configure: failed program was:" >&5
7399   cat conftest.$ac_ext >&5
7400   rm -fr conftest*
7401   pgac_cv_alignof_double='sizeof(double)'
7402 fi
7403 rm -fr conftest*
7404 fi
7405
7406 fi
7407 echo "$ac_t""$pgac_cv_alignof_double" 1>&6
7408 cat >> confdefs.h <<EOF
7409 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
7410 EOF
7411
7412
7413
7414
7415 if test $pgac_cv_alignof_double != 'sizeof(double)' ; then
7416   MAX_ALIGNOF=$pgac_cv_alignof_long
7417   if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
7418     MAX_ALIGNOF=$pgac_cv_alignof_double
7419   fi
7420   if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
7421     MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
7422   fi
7423 else
7424     MAX_ALIGNOF="$pgac_cv_alignof_double"
7425 fi
7426 cat >> confdefs.h <<EOF
7427 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
7428 EOF
7429
7430
7431 echo $ac_n "checking for POSIX signal interface""... $ac_c" 1>&6
7432 echo "configure:7433: checking for POSIX signal interface" >&5
7433 if eval "test \"`echo '$''{'pgac_cv_func_posix_signals'+set}'`\" = set"; then
7434   echo $ac_n "(cached) $ac_c" 1>&6
7435 else
7436   cat > conftest.$ac_ext <<EOF
7437 #line 7438 "configure"
7438 #include "confdefs.h"
7439 #include <signal.h>
7440
7441 int main() {
7442 struct sigaction act, oact;
7443 sigemptyset(&act.sa_mask);
7444 act.sa_flags = SA_RESTART;
7445 sigaction(0, &act, &oact);
7446 ; return 0; }
7447 EOF
7448 if { (eval echo configure:7449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7449   rm -rf conftest*
7450   pgac_cv_func_posix_signals=yes
7451 else
7452   echo "configure: failed program was:" >&5
7453   cat conftest.$ac_ext >&5
7454   rm -rf conftest*
7455   pgac_cv_func_posix_signals=no
7456 fi
7457 rm -f conftest*
7458 fi
7459
7460 echo "$ac_t""$pgac_cv_func_posix_signals" 1>&6
7461 if test x"$pgac_cv_func_posix_signals" = xyes ; then
7462   cat >> confdefs.h <<\EOF
7463 #define HAVE_POSIX_SIGNALS 
7464 EOF
7465
7466 fi
7467 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
7468
7469
7470
7471
7472 if test -z "$TCL_DIRS"
7473 then
7474         # Extract the first word of "tclsh", so it can be a program name with args.
7475 set dummy tclsh; ac_word=$2
7476 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7477 echo "configure:7478: checking for $ac_word" >&5
7478 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
7479   echo $ac_n "(cached) $ac_c" 1>&6
7480 else
7481   case "$TCLSH" in
7482   /*)
7483   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7484   ;;
7485   ?:/*)                  
7486   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
7487   ;;
7488   *)
7489   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7490   ac_dummy="$PATH"
7491   for ac_dir in $ac_dummy; do 
7492     test -z "$ac_dir" && ac_dir=.
7493     if test -f $ac_dir/$ac_word; then
7494       ac_cv_path_TCLSH="$ac_dir/$ac_word"
7495       break
7496     fi
7497   done
7498   IFS="$ac_save_ifs"
7499   ;;
7500 esac
7501 fi
7502 TCLSH="$ac_cv_path_TCLSH"
7503 if test -n "$TCLSH"; then
7504   echo "$ac_t""$TCLSH" 1>&6
7505 else
7506   echo "$ac_t""no" 1>&6
7507 fi
7508
7509         if test -z "$TCLSH"
7510         then
7511                 # Extract the first word of "tcl", so it can be a program name with args.
7512 set dummy tcl; ac_word=$2
7513 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7514 echo "configure:7515: checking for $ac_word" >&5
7515 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
7516   echo $ac_n "(cached) $ac_c" 1>&6
7517 else
7518   case "$TCLSH" in
7519   /*)
7520   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7521   ;;
7522   ?:/*)                  
7523   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
7524   ;;
7525   *)
7526   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7527   ac_dummy="$PATH"
7528   for ac_dir in $ac_dummy; do 
7529     test -z "$ac_dir" && ac_dir=.
7530     if test -f $ac_dir/$ac_word; then
7531       ac_cv_path_TCLSH="$ac_dir/$ac_word"
7532       break
7533     fi
7534   done
7535   IFS="$ac_save_ifs"
7536   ;;
7537 esac
7538 fi
7539 TCLSH="$ac_cv_path_TCLSH"
7540 if test -n "$TCLSH"; then
7541   echo "$ac_t""$TCLSH" 1>&6
7542 else
7543   echo "$ac_t""no" 1>&6
7544 fi
7545
7546                 if test -z "$TCLSH"
7547                 then
7548                         echo "configure: warning: TCL/TK support disabled; tcl shell is not in your path" 1>&2
7549                         USE_TCL=
7550                 fi
7551         fi
7552 fi
7553         
7554 if test "$USE_TCL" = true
7555 then
7556         echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
7557 echo "configure:7558: checking for tclConfig.sh" >&5
7558         TCL_CONFIG_SH=
7559         library_dirs=
7560         if test -z "$TCL_DIRS"
7561         then
7562                 library_dirs=`echo 'puts $auto_path' | $TCLSH`
7563         fi
7564         library_dirs="$TCL_DIRS $TK_DIRS $library_dirs"
7565         for dir in $library_dirs; do
7566                 if test -d "$dir" -a -r "$dir/tclConfig.sh"; then
7567                         TCL_CONFIG_SH=$dir/tclConfig.sh
7568                         break
7569                 fi
7570         done
7571         if test -z "$TCL_CONFIG_SH"; then
7572                 echo "$ac_t""no" 1>&6
7573                 echo "configure: warning: TCL/TK support disabled; Tcl configuration script missing" 1>&2
7574                 USE_TCL=
7575         else
7576                 echo "$ac_t""$TCL_CONFIG_SH" 1>&6
7577                 
7578         fi
7579 fi
7580
7581 USE_TK=$USE_TCL         # If TCL is disabled, disable TK
7582
7583 if test "$USE_TK" = true
7584 then
7585         echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
7586 echo "configure:7587: checking for tkConfig.sh" >&5
7587         TK_CONFIG_SH=
7588         # library_dirs are set in the check for TCL
7589         for dir in $library_dirs
7590         do
7591                 if test -d "$dir" -a -r "$dir/tkConfig.sh"
7592                 then
7593                         TK_CONFIG_SH=$dir/tkConfig.sh
7594                         break
7595                 fi
7596         done
7597         if test -z "$TK_CONFIG_SH"
7598         then
7599                 echo "$ac_t""no" 1>&6
7600                 echo "configure: warning: TK support disabled; Tk configuration script missing" 1>&2
7601                 USE_TK=
7602         else
7603                 echo "$ac_t""$TK_CONFIG_SH" 1>&6
7604                 
7605                 # Extract the first word of "wish", so it can be a program name with args.
7606 set dummy wish; ac_word=$2
7607 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7608 echo "configure:7609: checking for $ac_word" >&5
7609 if eval "test \"`echo '$''{'ac_cv_path_WISH'+set}'`\" = set"; then
7610   echo $ac_n "(cached) $ac_c" 1>&6
7611 else
7612   case "$WISH" in
7613   /*)
7614   ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
7615   ;;
7616   ?:/*)                  
7617   ac_cv_path_WISH="$WISH" # Let the user override the test with a dos path.
7618   ;;
7619   *)
7620   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7621   ac_dummy="$PATH"
7622   for ac_dir in $ac_dummy; do 
7623     test -z "$ac_dir" && ac_dir=.
7624     if test -f $ac_dir/$ac_word; then
7625       ac_cv_path_WISH="$ac_dir/$ac_word"
7626       break
7627     fi
7628   done
7629   IFS="$ac_save_ifs"
7630   ;;
7631 esac
7632 fi
7633 WISH="$ac_cv_path_WISH"
7634 if test -n "$WISH"; then
7635   echo "$ac_t""$WISH" 1>&6
7636 else
7637   echo "$ac_t""no" 1>&6
7638 fi
7639
7640         fi
7641 fi
7642
7643 USE_X=$USE_TK
7644
7645
7646 if test "$USE_X" = true; then
7647
7648         ice_save_LIBS="$LIBS"
7649         ice_save_CFLAGS="$CFLAGS"
7650         ice_save_CPPFLAGS="$CPPFLAGS"
7651         ice_save_LDFLAGS="$LDFLAGS"
7652
7653         # If we find X, set shell vars x_includes and x_libraries to the
7654 # paths, otherwise set no_x=yes.
7655 # Uses ac_ vars as temps to allow command line to override cache and checks.
7656 # --without-x overrides everything else, but does not touch the cache.
7657 echo $ac_n "checking for X""... $ac_c" 1>&6
7658 echo "configure:7659: checking for X" >&5
7659
7660 # Check whether --with-x or --without-x was given.
7661 if test "${with_x+set}" = set; then
7662   withval="$with_x"
7663   :
7664 fi
7665
7666 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7667 if test "x$with_x" = xno; then
7668   # The user explicitly disabled X.
7669   have_x=disabled
7670 else
7671   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7672     # Both variables are already set.
7673     have_x=yes
7674   else
7675 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7676   echo $ac_n "(cached) $ac_c" 1>&6
7677 else
7678   # One or both of the vars are not set, and there is no cached value.
7679 ac_x_includes=NO ac_x_libraries=NO
7680 rm -fr conftestdir
7681 if mkdir conftestdir; then
7682   cd conftestdir
7683   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7684   cat > Imakefile <<'EOF'
7685 acfindx:
7686         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7687 EOF
7688   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7689     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7690     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7691     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7692     for ac_extension in a so sl; do
7693       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7694         test -f $ac_im_libdir/libX11.$ac_extension; then
7695         ac_im_usrlibdir=$ac_im_libdir; break
7696       fi
7697     done
7698     # Screen out bogus values from the imake configuration.  They are
7699     # bogus both because they are the default anyway, and because
7700     # using them would break gcc on systems where it needs fixed includes.
7701     case "$ac_im_incroot" in
7702         /usr/include) ;;
7703         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7704     esac
7705     case "$ac_im_usrlibdir" in
7706         /usr/lib | /lib) ;;
7707         *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7708     esac
7709   fi
7710   cd ..
7711   rm -fr conftestdir
7712 fi
7713
7714 if test "$ac_x_includes" = NO; then
7715   # Guess where to find include files, by looking for this one X11 .h file.
7716   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
7717
7718   # First, try using that file with no special directory specified.
7719 cat > conftest.$ac_ext <<EOF
7720 #line 7721 "configure"
7721 #include "confdefs.h"
7722 #include <$x_direct_test_include>
7723 EOF
7724 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7725 { (eval echo configure:7726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7726 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7727 if test -z "$ac_err"; then
7728   rm -rf conftest*
7729   # We can compile using X headers with no special include directory.
7730 ac_x_includes=
7731 else
7732   echo "$ac_err" >&5
7733   echo "configure: failed program was:" >&5
7734   cat conftest.$ac_ext >&5
7735   rm -rf conftest*
7736   # Look for the header file in a standard set of common directories.
7737 # Check X11 before X11Rn because it is often a symlink to the current release.
7738   for ac_dir in               \
7739     /usr/X11/include          \
7740     /usr/X11R6/include        \
7741     /usr/X11R5/include        \
7742     /usr/X11R4/include        \
7743                               \
7744     /usr/include/X11          \
7745     /usr/include/X11R6        \
7746     /usr/include/X11R5        \
7747     /usr/include/X11R4        \
7748                               \
7749     /usr/local/X11/include    \
7750     /usr/local/X11R6/include  \
7751     /usr/local/X11R5/include  \
7752     /usr/local/X11R4/include  \
7753                               \
7754     /usr/local/include/X11    \
7755     /usr/local/include/X11R6  \
7756     /usr/local/include/X11R5  \
7757     /usr/local/include/X11R4  \
7758                               \
7759     /usr/X386/include         \
7760     /usr/x386/include         \
7761     /usr/XFree86/include/X11  \
7762                               \
7763     /usr/include              \
7764     /usr/local/include        \
7765     /usr/unsupported/include  \
7766     /usr/athena/include       \
7767     /usr/local/x11r5/include  \
7768     /usr/lpp/Xamples/include  \
7769                               \
7770     /usr/openwin/include      \
7771     /usr/openwin/share/include \
7772     ; \
7773   do
7774     if test -r "$ac_dir/$x_direct_test_include"; then
7775       ac_x_includes=$ac_dir
7776       break
7777     fi
7778   done
7779 fi
7780 rm -f conftest*
7781 fi # $ac_x_includes = NO
7782
7783 if test "$ac_x_libraries" = NO; then
7784   # Check for the libraries.
7785
7786   test -z "$x_direct_test_library" && x_direct_test_library=Xt
7787   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
7788
7789   # See if we find them without any special options.
7790   # Don't add to $LIBS permanently.
7791   ac_save_LIBS="$LIBS"
7792   LIBS="-l$x_direct_test_library $LIBS"
7793 cat > conftest.$ac_ext <<EOF
7794 #line 7795 "configure"
7795 #include "confdefs.h"
7796
7797 int main() {
7798 ${x_direct_test_function}()
7799 ; return 0; }
7800 EOF
7801 if { (eval echo configure:7802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7802   rm -rf conftest*
7803   LIBS="$ac_save_LIBS"
7804 # We can link X programs with no special library path.
7805 ac_x_libraries=
7806 else
7807   echo "configure: failed program was:" >&5
7808   cat conftest.$ac_ext >&5
7809   rm -rf conftest*
7810   LIBS="$ac_save_LIBS"
7811 # First see if replacing the include by lib works.
7812 # Check X11 before X11Rn because it is often a symlink to the current release.
7813 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7814     /usr/X11/lib          \
7815     /usr/X11R6/lib        \
7816     /usr/X11R5/lib        \
7817     /usr/X11R4/lib        \
7818                           \
7819     /usr/lib/X11          \
7820     /usr/lib/X11R6        \
7821     /usr/lib/X11R5        \
7822     /usr/lib/X11R4        \
7823                           \
7824     /usr/local/X11/lib    \
7825     /usr/local/X11R6/lib  \
7826     /usr/local/X11R5/lib  \
7827     /usr/local/X11R4/lib  \
7828                           \
7829     /usr/local/lib/X11    \
7830     /usr/local/lib/X11R6  \
7831     /usr/local/lib/X11R5  \
7832     /usr/local/lib/X11R4  \
7833                           \
7834     /usr/X386/lib         \
7835     /usr/x386/lib         \
7836     /usr/XFree86/lib/X11  \
7837                           \
7838     /usr/lib              \
7839     /usr/local/lib        \
7840     /usr/unsupported/lib  \
7841     /usr/athena/lib       \
7842     /usr/local/x11r5/lib  \
7843     /usr/lpp/Xamples/lib  \
7844     /lib/usr/lib/X11      \
7845                           \
7846     /usr/openwin/lib      \
7847     /usr/openwin/share/lib \
7848     ; \
7849 do
7850   for ac_extension in a so sl; do
7851     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7852       ac_x_libraries=$ac_dir
7853       break 2
7854     fi
7855   done
7856 done
7857 fi
7858 rm -f conftest*
7859 fi # $ac_x_libraries = NO
7860
7861 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7862   # Didn't find X anywhere.  Cache the known absence of X.
7863   ac_cv_have_x="have_x=no"
7864 else
7865   # Record where we found X for the cache.
7866   ac_cv_have_x="have_x=yes \
7867                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7868 fi
7869 fi
7870   fi
7871   eval "$ac_cv_have_x"
7872 fi # $with_x != no
7873
7874 if test "$have_x" != yes; then
7875   echo "$ac_t""$have_x" 1>&6
7876   no_x=yes
7877 else
7878   # If each of the values was on the command line, it overrides each guess.
7879   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7880   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7881   # Update the cache value to reflect the command line values.
7882   ac_cv_have_x="have_x=yes \
7883                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7884   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7885 fi
7886
7887 if test "$no_x" = yes; then
7888   # Not all programs may use this symbol, but it does not hurt to define it.
7889   cat >> confdefs.h <<\EOF
7890 #define X_DISPLAY_MISSING 1
7891 EOF
7892
7893   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7894 else
7895   if test -n "$x_includes"; then
7896     X_CFLAGS="$X_CFLAGS -I$x_includes"
7897   fi
7898
7899   # It would also be nice to do this for all -L options, not just this one.
7900   if test -n "$x_libraries"; then
7901     X_LIBS="$X_LIBS -L$x_libraries"
7902     # For Solaris; some versions of Sun CC require a space after -R and
7903     # others require no space.  Words are not sufficient . . . .
7904     case "`(uname -sr) 2>/dev/null`" in
7905     "SunOS 5"*)
7906       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
7907 echo "configure:7908: checking whether -R must be followed by a space" >&5
7908       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7909       cat > conftest.$ac_ext <<EOF
7910 #line 7911 "configure"
7911 #include "confdefs.h"
7912
7913 int main() {
7914
7915 ; return 0; }
7916 EOF
7917 if { (eval echo configure:7918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7918   rm -rf conftest*
7919   ac_R_nospace=yes
7920 else
7921   echo "configure: failed program was:" >&5
7922   cat conftest.$ac_ext >&5
7923   rm -rf conftest*
7924   ac_R_nospace=no
7925 fi
7926 rm -f conftest*
7927       if test $ac_R_nospace = yes; then
7928         echo "$ac_t""no" 1>&6
7929         X_LIBS="$X_LIBS -R$x_libraries"
7930       else
7931         LIBS="$ac_xsave_LIBS -R $x_libraries"
7932         cat > conftest.$ac_ext <<EOF
7933 #line 7934 "configure"
7934 #include "confdefs.h"
7935
7936 int main() {
7937
7938 ; return 0; }
7939 EOF
7940 if { (eval echo configure:7941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7941   rm -rf conftest*
7942   ac_R_space=yes
7943 else
7944   echo "configure: failed program was:" >&5
7945   cat conftest.$ac_ext >&5
7946   rm -rf conftest*
7947   ac_R_space=no
7948 fi
7949 rm -f conftest*
7950         if test $ac_R_space = yes; then
7951           echo "$ac_t""yes" 1>&6
7952           X_LIBS="$X_LIBS -R $x_libraries"
7953         else
7954           echo "$ac_t""neither works" 1>&6
7955         fi
7956       fi
7957       LIBS="$ac_xsave_LIBS"
7958     esac
7959   fi
7960
7961   # Check for system-dependent libraries X programs must link with.
7962   # Do this before checking for the system-independent R6 libraries
7963   # (-lICE), since we may need -lsocket or whatever for X linking.
7964
7965   if test "$ISC" = yes; then
7966     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7967   else
7968     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7969     # libraries were built with DECnet support.  And karl@cs.umb.edu says
7970     # the Alpha needs dnet_stub (dnet does not exist).
7971     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
7972 echo "configure:7973: checking for dnet_ntoa in -ldnet" >&5
7973 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7974 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7975   echo $ac_n "(cached) $ac_c" 1>&6
7976 else
7977   ac_save_LIBS="$LIBS"
7978 LIBS="-ldnet  $LIBS"
7979 cat > conftest.$ac_ext <<EOF
7980 #line 7981 "configure"
7981 #include "confdefs.h"
7982 /* Override any gcc2 internal prototype to avoid an error.  */
7983 /* We use char because int might match the return type of a gcc2
7984     builtin and then its argument prototype would still apply.  */
7985 char dnet_ntoa();
7986
7987 int main() {
7988 dnet_ntoa()
7989 ; return 0; }
7990 EOF
7991 if { (eval echo configure:7992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7992   rm -rf conftest*
7993   eval "ac_cv_lib_$ac_lib_var=yes"
7994 else
7995   echo "configure: failed program was:" >&5
7996   cat conftest.$ac_ext >&5
7997   rm -rf conftest*
7998   eval "ac_cv_lib_$ac_lib_var=no"
7999 fi
8000 rm -f conftest*
8001 LIBS="$ac_save_LIBS"
8002
8003 fi
8004 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8005   echo "$ac_t""yes" 1>&6
8006   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8007 else
8008   echo "$ac_t""no" 1>&6
8009 fi
8010
8011     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8012       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
8013 echo "configure:8014: checking for dnet_ntoa in -ldnet_stub" >&5
8014 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
8015 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8016   echo $ac_n "(cached) $ac_c" 1>&6
8017 else
8018   ac_save_LIBS="$LIBS"
8019 LIBS="-ldnet_stub  $LIBS"
8020 cat > conftest.$ac_ext <<EOF
8021 #line 8022 "configure"
8022 #include "confdefs.h"
8023 /* Override any gcc2 internal prototype to avoid an error.  */
8024 /* We use char because int might match the return type of a gcc2
8025     builtin and then its argument prototype would still apply.  */
8026 char dnet_ntoa();
8027
8028 int main() {
8029 dnet_ntoa()
8030 ; return 0; }
8031 EOF
8032 if { (eval echo configure:8033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8033   rm -rf conftest*
8034   eval "ac_cv_lib_$ac_lib_var=yes"
8035 else
8036   echo "configure: failed program was:" >&5
8037   cat conftest.$ac_ext >&5
8038   rm -rf conftest*
8039   eval "ac_cv_lib_$ac_lib_var=no"
8040 fi
8041 rm -f conftest*
8042 LIBS="$ac_save_LIBS"
8043
8044 fi
8045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8046   echo "$ac_t""yes" 1>&6
8047   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8048 else
8049   echo "$ac_t""no" 1>&6
8050 fi
8051
8052     fi
8053
8054     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8055     # to get the SysV transport functions.
8056     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
8057     # needs -lnsl.
8058     # The nsl library prevents programs from opening the X display
8059     # on Irix 5.2, according to dickey@clark.net.
8060     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
8061 echo "configure:8062: checking for gethostbyname" >&5
8062 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
8063   echo $ac_n "(cached) $ac_c" 1>&6
8064 else
8065   cat > conftest.$ac_ext <<EOF
8066 #line 8067 "configure"
8067 #include "confdefs.h"
8068 /* System header to define __stub macros and hopefully few prototypes,
8069     which can conflict with char gethostbyname(); below.  */
8070 #include <assert.h>
8071 /* Override any gcc2 internal prototype to avoid an error.  */
8072 /* We use char because int might match the return type of a gcc2
8073     builtin and then its argument prototype would still apply.  */
8074 char gethostbyname();
8075
8076 int main() {
8077
8078 /* The GNU C library defines this for functions which it implements
8079     to always fail with ENOSYS.  Some functions are actually named
8080     something starting with __ and the normal name is an alias.  */
8081 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8082 choke me
8083 #else
8084 gethostbyname();
8085 #endif
8086
8087 ; return 0; }
8088 EOF
8089 if { (eval echo configure:8090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8090   rm -rf conftest*
8091   eval "ac_cv_func_gethostbyname=yes"
8092 else
8093   echo "configure: failed program was:" >&5
8094   cat conftest.$ac_ext >&5
8095   rm -rf conftest*
8096   eval "ac_cv_func_gethostbyname=no"
8097 fi
8098 rm -f conftest*
8099 fi
8100
8101 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
8102   echo "$ac_t""yes" 1>&6
8103   :
8104 else
8105   echo "$ac_t""no" 1>&6
8106 fi
8107
8108     if test $ac_cv_func_gethostbyname = no; then
8109       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
8110 echo "configure:8111: checking for gethostbyname in -lnsl" >&5
8111 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
8112 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8113   echo $ac_n "(cached) $ac_c" 1>&6
8114 else
8115   ac_save_LIBS="$LIBS"
8116 LIBS="-lnsl  $LIBS"
8117 cat > conftest.$ac_ext <<EOF
8118 #line 8119 "configure"
8119 #include "confdefs.h"
8120 /* Override any gcc2 internal prototype to avoid an error.  */
8121 /* We use char because int might match the return type of a gcc2
8122     builtin and then its argument prototype would still apply.  */
8123 char gethostbyname();
8124
8125 int main() {
8126 gethostbyname()
8127 ; return 0; }
8128 EOF
8129 if { (eval echo configure:8130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8130   rm -rf conftest*
8131   eval "ac_cv_lib_$ac_lib_var=yes"
8132 else
8133   echo "configure: failed program was:" >&5
8134   cat conftest.$ac_ext >&5
8135   rm -rf conftest*
8136   eval "ac_cv_lib_$ac_lib_var=no"
8137 fi
8138 rm -f conftest*
8139 LIBS="$ac_save_LIBS"
8140
8141 fi
8142 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8143   echo "$ac_t""yes" 1>&6
8144   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8145 else
8146   echo "$ac_t""no" 1>&6
8147 fi
8148
8149     fi
8150
8151     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8152     # socket/setsockopt and other routines are undefined under SCO ODT
8153     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8154     # on later versions), says simon@lia.di.epfl.ch: it contains
8155     # gethostby* variants that don't use the nameserver (or something).
8156     # -lsocket must be given before -lnsl if both are needed.
8157     # We assume that if connect needs -lnsl, so does gethostbyname.
8158     echo $ac_n "checking for connect""... $ac_c" 1>&6
8159 echo "configure:8160: checking for connect" >&5
8160 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
8161   echo $ac_n "(cached) $ac_c" 1>&6
8162 else
8163   cat > conftest.$ac_ext <<EOF
8164 #line 8165 "configure"
8165 #include "confdefs.h"
8166 /* System header to define __stub macros and hopefully few prototypes,
8167     which can conflict with char connect(); below.  */
8168 #include <assert.h>
8169 /* Override any gcc2 internal prototype to avoid an error.  */
8170 /* We use char because int might match the return type of a gcc2
8171     builtin and then its argument prototype would still apply.  */
8172 char connect();
8173
8174 int main() {
8175
8176 /* The GNU C library defines this for functions which it implements
8177     to always fail with ENOSYS.  Some functions are actually named
8178     something starting with __ and the normal name is an alias.  */
8179 #if defined (__stub_connect) || defined (__stub___connect)
8180 choke me
8181 #else
8182 connect();
8183 #endif
8184
8185 ; return 0; }
8186 EOF
8187 if { (eval echo configure:8188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8188   rm -rf conftest*
8189   eval "ac_cv_func_connect=yes"
8190 else
8191   echo "configure: failed program was:" >&5
8192   cat conftest.$ac_ext >&5
8193   rm -rf conftest*
8194   eval "ac_cv_func_connect=no"
8195 fi
8196 rm -f conftest*
8197 fi
8198
8199 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
8200   echo "$ac_t""yes" 1>&6
8201   :
8202 else
8203   echo "$ac_t""no" 1>&6
8204 fi
8205
8206     if test $ac_cv_func_connect = no; then
8207       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
8208 echo "configure:8209: checking for connect in -lsocket" >&5
8209 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
8210 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8211   echo $ac_n "(cached) $ac_c" 1>&6
8212 else
8213   ac_save_LIBS="$LIBS"
8214 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8215 cat > conftest.$ac_ext <<EOF
8216 #line 8217 "configure"
8217 #include "confdefs.h"
8218 /* Override any gcc2 internal prototype to avoid an error.  */
8219 /* We use char because int might match the return type of a gcc2
8220     builtin and then its argument prototype would still apply.  */
8221 char connect();
8222
8223 int main() {
8224 connect()
8225 ; return 0; }
8226 EOF
8227 if { (eval echo configure:8228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8228   rm -rf conftest*
8229   eval "ac_cv_lib_$ac_lib_var=yes"
8230 else
8231   echo "configure: failed program was:" >&5
8232   cat conftest.$ac_ext >&5
8233   rm -rf conftest*
8234   eval "ac_cv_lib_$ac_lib_var=no"
8235 fi
8236 rm -f conftest*
8237 LIBS="$ac_save_LIBS"
8238
8239 fi
8240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8241   echo "$ac_t""yes" 1>&6
8242   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8243 else
8244   echo "$ac_t""no" 1>&6
8245 fi
8246
8247     fi
8248
8249     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
8250     echo $ac_n "checking for remove""... $ac_c" 1>&6
8251 echo "configure:8252: checking for remove" >&5
8252 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
8253   echo $ac_n "(cached) $ac_c" 1>&6
8254 else
8255   cat > conftest.$ac_ext <<EOF
8256 #line 8257 "configure"
8257 #include "confdefs.h"
8258 /* System header to define __stub macros and hopefully few prototypes,
8259     which can conflict with char remove(); below.  */
8260 #include <assert.h>
8261 /* Override any gcc2 internal prototype to avoid an error.  */
8262 /* We use char because int might match the return type of a gcc2
8263     builtin and then its argument prototype would still apply.  */
8264 char remove();
8265
8266 int main() {
8267
8268 /* The GNU C library defines this for functions which it implements
8269     to always fail with ENOSYS.  Some functions are actually named
8270     something starting with __ and the normal name is an alias.  */
8271 #if defined (__stub_remove) || defined (__stub___remove)
8272 choke me
8273 #else
8274 remove();
8275 #endif
8276
8277 ; return 0; }
8278 EOF
8279 if { (eval echo configure:8280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8280   rm -rf conftest*
8281   eval "ac_cv_func_remove=yes"
8282 else
8283   echo "configure: failed program was:" >&5
8284   cat conftest.$ac_ext >&5
8285   rm -rf conftest*
8286   eval "ac_cv_func_remove=no"
8287 fi
8288 rm -f conftest*
8289 fi
8290
8291 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
8292   echo "$ac_t""yes" 1>&6
8293   :
8294 else
8295   echo "$ac_t""no" 1>&6
8296 fi
8297
8298     if test $ac_cv_func_remove = no; then
8299       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
8300 echo "configure:8301: checking for remove in -lposix" >&5
8301 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
8302 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8303   echo $ac_n "(cached) $ac_c" 1>&6
8304 else
8305   ac_save_LIBS="$LIBS"
8306 LIBS="-lposix  $LIBS"
8307 cat > conftest.$ac_ext <<EOF
8308 #line 8309 "configure"
8309 #include "confdefs.h"
8310 /* Override any gcc2 internal prototype to avoid an error.  */
8311 /* We use char because int might match the return type of a gcc2
8312     builtin and then its argument prototype would still apply.  */
8313 char remove();
8314
8315 int main() {
8316 remove()
8317 ; return 0; }
8318 EOF
8319 if { (eval echo configure:8320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8320   rm -rf conftest*
8321   eval "ac_cv_lib_$ac_lib_var=yes"
8322 else
8323   echo "configure: failed program was:" >&5
8324   cat conftest.$ac_ext >&5
8325   rm -rf conftest*
8326   eval "ac_cv_lib_$ac_lib_var=no"
8327 fi
8328 rm -f conftest*
8329 LIBS="$ac_save_LIBS"
8330
8331 fi
8332 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8333   echo "$ac_t""yes" 1>&6
8334   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8335 else
8336   echo "$ac_t""no" 1>&6
8337 fi
8338
8339     fi
8340
8341     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8342     echo $ac_n "checking for shmat""... $ac_c" 1>&6
8343 echo "configure:8344: checking for shmat" >&5
8344 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
8345   echo $ac_n "(cached) $ac_c" 1>&6
8346 else
8347   cat > conftest.$ac_ext <<EOF
8348 #line 8349 "configure"
8349 #include "confdefs.h"
8350 /* System header to define __stub macros and hopefully few prototypes,
8351     which can conflict with char shmat(); below.  */
8352 #include <assert.h>
8353 /* Override any gcc2 internal prototype to avoid an error.  */
8354 /* We use char because int might match the return type of a gcc2
8355     builtin and then its argument prototype would still apply.  */
8356 char shmat();
8357
8358 int main() {
8359
8360 /* The GNU C library defines this for functions which it implements
8361     to always fail with ENOSYS.  Some functions are actually named
8362     something starting with __ and the normal name is an alias.  */
8363 #if defined (__stub_shmat) || defined (__stub___shmat)
8364 choke me
8365 #else
8366 shmat();
8367 #endif
8368
8369 ; return 0; }
8370 EOF
8371 if { (eval echo configure:8372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8372   rm -rf conftest*
8373   eval "ac_cv_func_shmat=yes"
8374 else
8375   echo "configure: failed program was:" >&5
8376   cat conftest.$ac_ext >&5
8377   rm -rf conftest*
8378   eval "ac_cv_func_shmat=no"
8379 fi
8380 rm -f conftest*
8381 fi
8382
8383 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8384   echo "$ac_t""yes" 1>&6
8385   :
8386 else
8387   echo "$ac_t""no" 1>&6
8388 fi
8389
8390     if test $ac_cv_func_shmat = no; then
8391       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
8392 echo "configure:8393: checking for shmat in -lipc" >&5
8393 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8395   echo $ac_n "(cached) $ac_c" 1>&6
8396 else
8397   ac_save_LIBS="$LIBS"
8398 LIBS="-lipc  $LIBS"
8399 cat > conftest.$ac_ext <<EOF
8400 #line 8401 "configure"
8401 #include "confdefs.h"
8402 /* Override any gcc2 internal prototype to avoid an error.  */
8403 /* We use char because int might match the return type of a gcc2
8404     builtin and then its argument prototype would still apply.  */
8405 char shmat();
8406
8407 int main() {
8408 shmat()
8409 ; return 0; }
8410 EOF
8411 if { (eval echo configure:8412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8412   rm -rf conftest*
8413   eval "ac_cv_lib_$ac_lib_var=yes"
8414 else
8415   echo "configure: failed program was:" >&5
8416   cat conftest.$ac_ext >&5
8417   rm -rf conftest*
8418   eval "ac_cv_lib_$ac_lib_var=no"
8419 fi
8420 rm -f conftest*
8421 LIBS="$ac_save_LIBS"
8422
8423 fi
8424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8425   echo "$ac_t""yes" 1>&6
8426   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8427 else
8428   echo "$ac_t""no" 1>&6
8429 fi
8430
8431     fi
8432   fi
8433
8434   # Check for libraries that X11R6 Xt/Xaw programs need.
8435   ac_save_LDFLAGS="$LDFLAGS"
8436   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8437   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8438   # check for ICE first), but we must link in the order -lSM -lICE or
8439   # we get undefined symbols.  So assume we have SM if we have ICE.
8440   # These have to be linked with before -lX11, unlike the other
8441   # libraries we check for below, so use a different variable.
8442   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8443   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
8444 echo "configure:8445: checking for IceConnectionNumber in -lICE" >&5
8445 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8446 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8447   echo $ac_n "(cached) $ac_c" 1>&6
8448 else
8449   ac_save_LIBS="$LIBS"
8450 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8451 cat > conftest.$ac_ext <<EOF
8452 #line 8453 "configure"
8453 #include "confdefs.h"
8454 /* Override any gcc2 internal prototype to avoid an error.  */
8455 /* We use char because int might match the return type of a gcc2
8456     builtin and then its argument prototype would still apply.  */
8457 char IceConnectionNumber();
8458
8459 int main() {
8460 IceConnectionNumber()
8461 ; return 0; }
8462 EOF
8463 if { (eval echo configure:8464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8464   rm -rf conftest*
8465   eval "ac_cv_lib_$ac_lib_var=yes"
8466 else
8467   echo "configure: failed program was:" >&5
8468   cat conftest.$ac_ext >&5
8469   rm -rf conftest*
8470   eval "ac_cv_lib_$ac_lib_var=no"
8471 fi
8472 rm -f conftest*
8473 LIBS="$ac_save_LIBS"
8474
8475 fi
8476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8477   echo "$ac_t""yes" 1>&6
8478   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8479 else
8480   echo "$ac_t""no" 1>&6
8481 fi
8482
8483   LDFLAGS="$ac_save_LDFLAGS"
8484
8485 fi
8486
8487
8488         LIBS="$LIBS $X_EXTRA_LIBS"
8489         CFLAGS="$CFLAGS $X_CFLAGS"
8490         CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8491         LDFLAGS="$LDFLAGS $X_LIBS"
8492
8493         
8494         X11_LIBS=""
8495         echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
8496 echo "configure:8497: checking for XOpenDisplay in -lX11" >&5
8497 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
8498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8499   echo $ac_n "(cached) $ac_c" 1>&6
8500 else
8501   ac_save_LIBS="$LIBS"
8502 LIBS="-lX11 ${X_PRE_LIBS} $LIBS"
8503 cat > conftest.$ac_ext <<EOF
8504 #line 8505 "configure"
8505 #include "confdefs.h"
8506 /* Override any gcc2 internal prototype to avoid an error.  */
8507 /* We use char because int might match the return type of a gcc2
8508     builtin and then its argument prototype would still apply.  */
8509 char XOpenDisplay();
8510
8511 int main() {
8512 XOpenDisplay()
8513 ; return 0; }
8514 EOF
8515 if { (eval echo configure:8516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8516   rm -rf conftest*
8517   eval "ac_cv_lib_$ac_lib_var=yes"
8518 else
8519   echo "configure: failed program was:" >&5
8520   cat conftest.$ac_ext >&5
8521   rm -rf conftest*
8522   eval "ac_cv_lib_$ac_lib_var=no"
8523 fi
8524 rm -f conftest*
8525 LIBS="$ac_save_LIBS"
8526
8527 fi
8528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8529   echo "$ac_t""yes" 1>&6
8530   X11_LIBS="-lX11"
8531 else
8532   echo "$ac_t""no" 1>&6
8533 fi
8534
8535         if test "$X11_LIBS" = ""; then
8536                                 echo "configure: warning: The X11 library '-lX11' could not be found,
8537 so TK support will be disabled.  To enable TK support,
8538 please use the configure options '--x-includes=DIR'
8539 and '--x-libraries=DIR' to specify the X location.
8540 See the file 'config.log' for further diagnostics." 1>&2
8541                 USE_TK=
8542         fi
8543         
8544         
8545         
8546
8547         LIBS="$ice_save_LIBS"
8548         CFLAGS="$ice_save_CFLAGS"
8549         CPPFLAGS="$ice_save_CPPFLAGS"
8550         LDFLAGS="$ice_save_LDFLAGS"
8551 fi
8552
8553 #if test "X$USE_ODBC" = "Xtrue"
8554 #then
8555 #       AC_CONFIG_SUBDIRS(interfaces/odbc)
8556 #fi
8557 if test "$USE_ODBC" = "true"
8558 then
8559         PWD_INCDIR=no
8560         ac_safe=`echo "pwd.h" | sed 'y%./+-%__p_%'`
8561 echo $ac_n "checking for pwd.h""... $ac_c" 1>&6
8562 echo "configure:8563: checking for pwd.h" >&5
8563 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8564   echo $ac_n "(cached) $ac_c" 1>&6
8565 else
8566   cat > conftest.$ac_ext <<EOF
8567 #line 8568 "configure"
8568 #include "confdefs.h"
8569 #include <pwd.h>
8570 EOF
8571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8572 { (eval echo configure:8573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8573 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8574 if test -z "$ac_err"; then
8575   rm -rf conftest*
8576   eval "ac_cv_header_$ac_safe=yes"
8577 else
8578   echo "$ac_err" >&5
8579   echo "configure: failed program was:" >&5
8580   cat conftest.$ac_ext >&5
8581   rm -rf conftest*
8582   eval "ac_cv_header_$ac_safe=no"
8583 fi
8584 rm -f conftest*
8585 fi
8586 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8587   echo "$ac_t""yes" 1>&6
8588   PWD_INCDIR=yes
8589 else
8590   echo "$ac_t""no" 1>&6
8591 fi
8592
8593         if test "$PWD_INCDIR" = "no"; then
8594                 echo "configure: warning: odbc support disabled; pwd.h missing" 1>&2
8595                 USE_ODBC=
8596         fi
8597         
8598 fi
8599
8600
8601 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8602 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8603
8604 eval expanded_libdir="$libdir"
8605 eval expanded_libdir="$expanded_libdir"
8606
8607
8608
8609 trap '' 1 2 15
8610 cat > confcache <<\EOF
8611 # This file is a shell script that caches the results of configure
8612 # tests run on this system so they can be shared between configure
8613 # scripts and configure runs.  It is not useful on other systems.
8614 # If it contains results you don't want to keep, you may remove or edit it.
8615 #
8616 # By default, configure uses ./config.cache as the cache file,
8617 # creating it if it does not exist already.  You can give configure
8618 # the --cache-file=FILE option to use a different cache file; that is
8619 # what configure does when it calls configure scripts in
8620 # subdirectories, so they share the cache.
8621 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8622 # config.status only pays attention to the cache file if you give it the
8623 # --recheck option to rerun configure.
8624 #
8625 EOF
8626 # The following way of writing the cache mishandles newlines in values,
8627 # but we know of no workaround that is simple, portable, and efficient.
8628 # So, don't put newlines in cache variables' values.
8629 # Ultrix sh set writes to stderr and can't be redirected directly,
8630 # and sets the high bit in the cache file unless we assign to the vars.
8631 (set) 2>&1 |
8632   case `(ac_space=' '; set | grep ac_space) 2>&1` in
8633   *ac_space=\ *)
8634     # `set' does not quote correctly, so add quotes (double-quote substitution
8635     # turns \\\\ into \\, and sed turns \\ into \).
8636     sed -n \
8637       -e "s/'/'\\\\''/g" \
8638       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8639     ;;
8640   *)
8641     # `set' quotes correctly as required by POSIX, so do not add quotes.
8642     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8643     ;;
8644   esac >> confcache
8645 if cmp -s $cache_file confcache; then
8646   :
8647 else
8648   if test -w $cache_file; then
8649     echo "updating cache $cache_file"
8650     cat confcache > $cache_file
8651   else
8652     echo "not updating unwritable cache $cache_file"
8653   fi
8654 fi
8655 rm -f confcache
8656
8657 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8658
8659 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8660 # Let make expand exec_prefix.
8661 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8662
8663 # Any assignment to VPATH causes Sun make to only execute
8664 # the first set of double-colon rules, so remove it if not needed.
8665 # If there is a colon in the path, we need to keep it.
8666 if test "x$srcdir" = x.; then
8667   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
8668 fi
8669
8670 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8671
8672 DEFS=-DHAVE_CONFIG_H
8673
8674 # Without the "./", some shells look in PATH for config.status.
8675 : ${CONFIG_STATUS=./config.status}
8676
8677 echo creating $CONFIG_STATUS
8678 rm -f $CONFIG_STATUS
8679 cat > $CONFIG_STATUS <<EOF
8680 #! /bin/sh
8681 # Generated automatically by configure.
8682 # Run this file to recreate the current configuration.
8683 # This directory was configured as follows,
8684 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8685 #
8686 # $0 $ac_configure_args
8687 #
8688 # Compiler output produced by configure, useful for debugging
8689 # configure, is in ./config.log if it exists.
8690
8691 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8692 for ac_option
8693 do
8694   case "\$ac_option" in
8695   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8696     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8697     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8698   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8699     echo "$CONFIG_STATUS generated by autoconf version 2.13"
8700     exit 0 ;;
8701   -help | --help | --hel | --he | --h)
8702     echo "\$ac_cs_usage"; exit 0 ;;
8703   *) echo "\$ac_cs_usage"; exit 1 ;;
8704   esac
8705 done
8706
8707 ac_given_srcdir=$srcdir
8708 ac_given_INSTALL="$INSTALL"
8709
8710 trap 'rm -fr `echo "GNUmakefile
8711         src/GNUmakefile
8712         src/Makefile.global
8713         src/backend/port/Makefile
8714         src/backend/catalog/genbki.sh
8715         src/backend/utils/Gen_fmgrtab.sh
8716         src/bin/pg_dump/Makefile
8717         src/bin/pg_version/Makefile
8718         src/bin/pgtclsh/mkMakefile.tcldefs.sh
8719         src/bin/pgtclsh/mkMakefile.tkdefs.sh
8720         src/bin/psql/Makefile
8721         src/include/version.h
8722         src/interfaces/Makefile
8723         src/interfaces/libpq/Makefile
8724         src/interfaces/ecpg/lib/Makefile
8725         src/interfaces/ecpg/preproc/Makefile
8726         src/interfaces/perl5/GNUmakefile
8727         src/interfaces/libpq++/Makefile
8728         src/interfaces/libpgeasy/Makefile
8729         src/interfaces/libpgtcl/Makefile
8730         src/interfaces/odbc/GNUmakefile
8731         src/interfaces/odbc/Makefile.global
8732         src/interfaces/python/GNUmakefile
8733         src/pl/Makefile
8734         src/pl/plpgsql/src/Makefile
8735         src/pl/plpgsql/src/mklang.sql
8736         src/pl/tcl/mkMakefile.tcldefs.sh
8737         src/pl/plperl/GNUmakefile
8738         src/test/regress/GNUmakefile
8739  src/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8740 EOF
8741 cat >> $CONFIG_STATUS <<EOF
8742
8743 # Protect against being on the right side of a sed subst in config.status.
8744 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8745  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8746 $ac_vpsub
8747 $extrasub
8748 s%@SHELL@%$SHELL%g
8749 s%@CFLAGS@%$CFLAGS%g
8750 s%@CPPFLAGS@%$CPPFLAGS%g
8751 s%@CXXFLAGS@%$CXXFLAGS%g
8752 s%@FFLAGS@%$FFLAGS%g
8753 s%@DEFS@%$DEFS%g
8754 s%@LDFLAGS@%$LDFLAGS%g
8755 s%@LIBS@%$LIBS%g
8756 s%@exec_prefix@%$exec_prefix%g
8757 s%@prefix@%$prefix%g
8758 s%@program_transform_name@%$program_transform_name%g
8759 s%@bindir@%$bindir%g
8760 s%@sbindir@%$sbindir%g
8761 s%@libexecdir@%$libexecdir%g
8762 s%@datadir@%$datadir%g
8763 s%@sysconfdir@%$sysconfdir%g
8764 s%@sharedstatedir@%$sharedstatedir%g
8765 s%@localstatedir@%$localstatedir%g
8766 s%@libdir@%$libdir%g
8767 s%@includedir@%$includedir%g
8768 s%@oldincludedir@%$oldincludedir%g
8769 s%@infodir@%$infodir%g
8770 s%@mandir@%$mandir%g
8771 s%@mkinstalldirs@%$mkinstalldirs%g
8772 s%@host@%$host%g
8773 s%@host_alias@%$host_alias%g
8774 s%@host_cpu@%$host_cpu%g
8775 s%@host_vendor@%$host_vendor%g
8776 s%@host_os@%$host_os%g
8777 s%@TAS@%$TAS%g
8778 s%@CC@%$CC%g
8779 s%@CPP@%$CPP%g
8780 s%@GCC@%$GCC%g
8781 s%@CC_VERSION@%$CC_VERSION%g
8782 s%@with_perl@%$with_perl%g
8783 s%@PYTHON@%$PYTHON%g
8784 s%@python_version@%$python_version%g
8785 s%@python_prefix@%$python_prefix%g
8786 s%@python_execprefix@%$python_execprefix%g
8787 s%@python_configdir@%$python_configdir%g
8788 s%@python_moduledir@%$python_moduledir%g
8789 s%@python_extmakefile@%$python_extmakefile%g
8790 s%@with_python@%$with_python%g
8791 s%@ODBCINSTDIR@%$ODBCINSTDIR%g
8792 s%@ELF_SYS@%$ELF_SYS%g
8793 s%@PORTNAME@%$PORTNAME%g
8794 s%@CPU@%$CPU%g
8795 s%@SRCDIR@%$SRCDIR%g
8796 s%@PGSQL_INCLUDES@%$PGSQL_INCLUDES%g
8797 s%@AROPT@%$AROPT%g
8798 s%@SHARED_LIB@%$SHARED_LIB%g
8799 s%@DLSUFFIX@%$DLSUFFIX%g
8800 s%@DL_LIB@%$DL_LIB%g
8801 s%@USE_TCL@%$USE_TCL%g
8802 s%@USE_TK@%$USE_TK%g
8803 s%@WISH@%$WISH%g
8804 s%@USE_ODBC@%$USE_ODBC%g
8805 s%@MULTIBYTE@%$MULTIBYTE%g
8806 s%@CXX@%$CXX%g
8807 s%@CXXCPP@%$CXXCPP%g
8808 s%@with_CXX@%$with_CXX%g
8809 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8810 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8811 s%@INSTALL_DATA@%$INSTALL_DATA%g
8812 s%@INSTALL@%$INSTALL%g
8813 s%@INSTLOPTS@%$INSTLOPTS%g
8814 s%@INSTL_LIB_OPTS@%$INSTL_LIB_OPTS%g
8815 s%@INSTL_SHLIB_OPTS@%$INSTL_SHLIB_OPTS%g
8816 s%@INSTL_EXE_OPTS@%$INSTL_EXE_OPTS%g
8817 s%@AWK@%$AWK%g
8818 s%@AUTOCONF@%$AUTOCONF%g
8819 s%@ACLOCAL@%$ACLOCAL%g
8820 s%@LEX@%$LEX%g
8821 s%@LEXLIB@%$LEXLIB%g
8822 s%@LN_S@%$LN_S%g
8823 s%@RANLIB@%$RANLIB%g
8824 s%@find@%$find%g
8825 s%@tar@%$tar%g
8826 s%@split@%$split%g
8827 s%@etags@%$etags%g
8828 s%@xargs@%$xargs%g
8829 s%@GZCAT@%$GZCAT%g
8830 s%@PERL@%$PERL%g
8831 s%@YACC@%$YACC%g
8832 s%@YFLAGS@%$YFLAGS%g
8833 s%@LIBOBJS@%$LIBOBJS%g
8834 s%@SNPRINTF@%$SNPRINTF%g
8835 s%@ISINF@%$ISINF%g
8836 s%@GETRUSAGE@%$GETRUSAGE%g
8837 s%@SRANDOM@%$SRANDOM%g
8838 s%@GETHOSTNAME@%$GETHOSTNAME%g
8839 s%@MISSING_RANDOM@%$MISSING_RANDOM%g
8840 s%@INET_ATON@%$INET_ATON%g
8841 s%@STRERROR@%$STRERROR%g
8842 s%@STRERROR2@%$STRERROR2%g
8843 s%@STRDUP@%$STRDUP%g
8844 s%@STRTOL@%$STRTOL%g
8845 s%@STRTOUL@%$STRTOUL%g
8846 s%@STRCASECMP@%$STRCASECMP%g
8847 s%@HPUXMATHLIB@%$HPUXMATHLIB%g
8848 s%@HAVE_RL_COMPLETION_APPEND_CHARACTER@%$HAVE_RL_COMPLETION_APPEND_CHARACTER%g
8849 s%@HAVE_FILENAME_COMPLETION_FUNCTION@%$HAVE_FILENAME_COMPLETION_FUNCTION%g
8850 s%@HAVE_FILENAME_COMPLETION_FUNCTION_DECL@%$HAVE_FILENAME_COMPLETION_FUNCTION_DECL%g
8851 s%@HAVE_POSIX_SIGNALS@%$HAVE_POSIX_SIGNALS%g
8852 s%@TCLSH@%$TCLSH%g
8853 s%@TCL_CONFIG_SH@%$TCL_CONFIG_SH%g
8854 s%@TK_CONFIG_SH@%$TK_CONFIG_SH%g
8855 s%@X_CFLAGS@%$X_CFLAGS%g
8856 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
8857 s%@X_LIBS@%$X_LIBS%g
8858 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
8859 s%@X11_LIBS@%$X11_LIBS%g
8860 s%@expanded_libdir@%$expanded_libdir%g
8861
8862 CEOF
8863 EOF
8864
8865 cat >> $CONFIG_STATUS <<\EOF
8866
8867 # Split the substitutions into bite-sized pieces for seds with
8868 # small command number limits, like on Digital OSF/1 and HP-UX.
8869 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8870 ac_file=1 # Number of current file.
8871 ac_beg=1 # First line for current file.
8872 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8873 ac_more_lines=:
8874 ac_sed_cmds=""
8875 while $ac_more_lines; do
8876   if test $ac_beg -gt 1; then
8877     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8878   else
8879     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8880   fi
8881   if test ! -s conftest.s$ac_file; then
8882     ac_more_lines=false
8883     rm -f conftest.s$ac_file
8884   else
8885     if test -z "$ac_sed_cmds"; then
8886       ac_sed_cmds="sed -f conftest.s$ac_file"
8887     else
8888       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8889     fi
8890     ac_file=`expr $ac_file + 1`
8891     ac_beg=$ac_end
8892     ac_end=`expr $ac_end + $ac_max_sed_cmds`
8893   fi
8894 done
8895 if test -z "$ac_sed_cmds"; then
8896   ac_sed_cmds=cat
8897 fi
8898 EOF
8899
8900 cat >> $CONFIG_STATUS <<EOF
8901
8902 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile
8903         src/GNUmakefile
8904         src/Makefile.global
8905         src/backend/port/Makefile
8906         src/backend/catalog/genbki.sh
8907         src/backend/utils/Gen_fmgrtab.sh
8908         src/bin/pg_dump/Makefile
8909         src/bin/pg_version/Makefile
8910         src/bin/pgtclsh/mkMakefile.tcldefs.sh
8911         src/bin/pgtclsh/mkMakefile.tkdefs.sh
8912         src/bin/psql/Makefile
8913         src/include/version.h
8914         src/interfaces/Makefile
8915         src/interfaces/libpq/Makefile
8916         src/interfaces/ecpg/lib/Makefile
8917         src/interfaces/ecpg/preproc/Makefile
8918         src/interfaces/perl5/GNUmakefile
8919         src/interfaces/libpq++/Makefile
8920         src/interfaces/libpgeasy/Makefile
8921         src/interfaces/libpgtcl/Makefile
8922         src/interfaces/odbc/GNUmakefile
8923         src/interfaces/odbc/Makefile.global
8924         src/interfaces/python/GNUmakefile
8925         src/pl/Makefile
8926         src/pl/plpgsql/src/Makefile
8927         src/pl/plpgsql/src/mklang.sql
8928         src/pl/tcl/mkMakefile.tcldefs.sh
8929         src/pl/plperl/GNUmakefile
8930         src/test/regress/GNUmakefile
8931 "}
8932 EOF
8933 cat >> $CONFIG_STATUS <<\EOF
8934 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8935   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8936   case "$ac_file" in
8937   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8938        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8939   *) ac_file_in="${ac_file}.in" ;;
8940   esac
8941
8942   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8943
8944   # Remove last slash and all that follows it.  Not all systems have dirname.
8945   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8946   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8947     # The file is in a subdirectory.
8948     test ! -d "$ac_dir" && mkdir "$ac_dir"
8949     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8950     # A "../" for each directory in $ac_dir_suffix.
8951     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8952   else
8953     ac_dir_suffix= ac_dots=
8954   fi
8955
8956   case "$ac_given_srcdir" in
8957   .)  srcdir=.
8958       if test -z "$ac_dots"; then top_srcdir=.
8959       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8960   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8961   *) # Relative path.
8962     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8963     top_srcdir="$ac_dots$ac_given_srcdir" ;;
8964   esac
8965
8966   case "$ac_given_INSTALL" in
8967   [/$]*) INSTALL="$ac_given_INSTALL" ;;
8968   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8969   esac
8970
8971   echo creating "$ac_file"
8972   rm -f "$ac_file"
8973   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8974   case "$ac_file" in
8975   *Makefile*) ac_comsub="1i\\
8976 # $configure_input" ;;
8977   *) ac_comsub= ;;
8978   esac
8979
8980   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8981   sed -e "$ac_comsub
8982 s%@configure_input@%$configure_input%g
8983 s%@srcdir@%$srcdir%g
8984 s%@top_srcdir@%$top_srcdir%g
8985 s%@INSTALL@%$INSTALL%g
8986 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8987 fi; done
8988 rm -f conftest.s*
8989
8990 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8991 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8992 #
8993 # ac_d sets the value in "#define NAME VALUE" lines.
8994 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
8995 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
8996 ac_dC='\3'
8997 ac_dD='%g'
8998 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8999 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9000 ac_uB='\([      ]\)%\1#\2define\3'
9001 ac_uC=' '
9002 ac_uD='\4%g'
9003 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9004 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9005 ac_eB='$%\1#\2define\3'
9006 ac_eC=' '
9007 ac_eD='%g'
9008
9009 if test "${CONFIG_HEADERS+set}" != set; then
9010 EOF
9011 cat >> $CONFIG_STATUS <<EOF
9012   CONFIG_HEADERS="src/include/config.h"
9013 EOF
9014 cat >> $CONFIG_STATUS <<\EOF
9015 fi
9016 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9017   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9018   case "$ac_file" in
9019   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9020        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9021   *) ac_file_in="${ac_file}.in" ;;
9022   esac
9023
9024   echo creating $ac_file
9025
9026   rm -f conftest.frag conftest.in conftest.out
9027   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9028   cat $ac_file_inputs > conftest.in
9029
9030 EOF
9031
9032 # Transform confdefs.h into a sed script conftest.vals that substitutes
9033 # the proper values into config.h.in to produce config.h.  And first:
9034 # Protect against being on the right side of a sed subst in config.status.
9035 # Protect against being in an unquoted here document in config.status.
9036 rm -f conftest.vals
9037 cat > conftest.hdr <<\EOF
9038 s/[\\&%]/\\&/g
9039 s%[\\$`]%\\&%g
9040 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9041 s%ac_d%ac_u%gp
9042 s%ac_u%ac_e%gp
9043 EOF
9044 sed -n -f conftest.hdr confdefs.h > conftest.vals
9045 rm -f conftest.hdr
9046
9047 # This sed command replaces #undef with comments.  This is necessary, for
9048 # example, in the case of _POSIX_SOURCE, which is predefined and required
9049 # on some systems where configure will not decide to define it.
9050 cat >> conftest.vals <<\EOF
9051 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9052 EOF
9053
9054 # Break up conftest.vals because some shells have a limit on
9055 # the size of here documents, and old seds have small limits too.
9056
9057 rm -f conftest.tail
9058 while :
9059 do
9060   ac_lines=`grep -c . conftest.vals`
9061   # grep -c gives empty output for an empty file on some AIX systems.
9062   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9063   # Write a limited-size here document to conftest.frag.
9064   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9065   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9066   echo 'CEOF
9067   sed -f conftest.frag conftest.in > conftest.out
9068   rm -f conftest.in
9069   mv conftest.out conftest.in
9070 ' >> $CONFIG_STATUS
9071   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9072   rm -f conftest.vals
9073   mv conftest.tail conftest.vals
9074 done
9075 rm -f conftest.vals
9076
9077 cat >> $CONFIG_STATUS <<\EOF
9078   rm -f conftest.frag conftest.h
9079   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
9080   cat conftest.in >> conftest.h
9081   rm -f conftest.in
9082   if cmp -s $ac_file conftest.h 2>/dev/null; then
9083     echo "$ac_file is unchanged"
9084     rm -f conftest.h
9085   else
9086     # Remove last slash and all that follows it.  Not all systems have dirname.
9087       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9088       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9089       # The file is in a subdirectory.
9090       test ! -d "$ac_dir" && mkdir "$ac_dir"
9091     fi
9092     rm -f $ac_file
9093     mv conftest.h $ac_file
9094   fi
9095 fi; done
9096
9097 EOF
9098
9099 cat >> $CONFIG_STATUS <<EOF
9100 ac_sources="src/backend/port/dynloader/${os}.c src/backend/port/dynloader/${os}.h src/include/port/${os}.h src/makefiles/Makefile.${os} src/backend/port/tas/${tas_file} src/include/port src/makefiles src/template src/include/config.h"
9101 ac_dests="src/backend/port/dynloader.c src/include/dynloader.h src/include/os.h src/Makefile.port src/backend/port/tas.s src/interfaces/odbc/port src/interfaces/odbc/makefiles src/interfaces/odbc/template src/interfaces/odbc/config.h"
9102 EOF
9103
9104 cat >> $CONFIG_STATUS <<\EOF
9105 srcdir=$ac_given_srcdir
9106 while test -n "$ac_sources"; do
9107   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9108   set $ac_sources; ac_source=$1; shift; ac_sources=$*
9109
9110   echo "linking $srcdir/$ac_source to $ac_dest"
9111
9112   if test ! -r $srcdir/$ac_source; then
9113     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9114   fi
9115   rm -f $ac_dest
9116
9117   # Make relative symlinks.
9118   # Remove last slash and all that follows it.  Not all systems have dirname.
9119   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9120   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9121     # The dest file is in a subdirectory.
9122     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9123     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9124     # A "../" for each directory in $ac_dest_dir_suffix.
9125     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9126   else
9127     ac_dest_dir_suffix= ac_dots=
9128   fi
9129
9130   case "$srcdir" in
9131   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9132   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9133   esac
9134
9135   # Make a symlink if possible; otherwise try a hard link.
9136   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9137     ln $srcdir/$ac_source $ac_dest; then :
9138   else
9139     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9140   fi
9141 done
9142 EOF
9143 cat >> $CONFIG_STATUS <<EOF
9144
9145 EOF
9146 cat >> $CONFIG_STATUS <<\EOF
9147
9148 exit 0
9149 EOF
9150 chmod +x $CONFIG_STATUS
9151 rm -fr confdefs* $ac_clean_files
9152 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9153