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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/pgsql
16 --with-template=TEMPLATE
17 use operating system template file
18 see template directory"
20 --with-includes=DIRS look for header files for tcl/tk, etc in DIRS"
22 --with-libraries=DIRS look for additional libraries in DIRS"
24 --with-libs=DIRS alternate spelling of --with-libraries"
26 --enable-locale enable locale support "
28 --enable-recode enable cyrillic recode support "
30 --enable-multibyte enable multibyte character support "
32 --with-pgport=PORTNUM change default postmaster port "
34 --with-maxbackends=N set default maximum number of server processes "
36 --with-CC=compiler use specific C compiler"
38 --with-tcl build Tcl interfaces and pgtclsh "
40 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR"
42 --with-tkconfig=DIR tkConfig.sh is in DIR"
44 --with-perl build Perl interface and plperl"
46 --with-python build Python interface module"
48 --with-odbc build ODBC driver package "
50 --with-odbcinst=DIR change default directory for odbcinst.ini"
52 --with-unixODBC[=DIR] Use unixODBC located in DIR"
54 --with-unixODBC-includes=DIR Find unixODBC headers in DIR"
56 --with-unixODBC-libs=DIR Find unixODBC libraries in DIR"
58 --enable-cassert enable assertion checks (for debugging) "
60 --enable-debug build with debugging symbols (-g) "
62 --with-CXX build C++ modules (libpq++)"
64 --enable-syslog enable logging to syslog"
66 --with-x use the X Window System"
68 # Initialize some variables set by options.
69 # The variables have the same names as the options, with
70 # dashes changed to underlines.
72 cache_file=./config.cache
81 program_transform_name=s,x,x,
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'
102 # Initialize some other variables.
105 SHELL=${CONFIG_SHELL-/bin/sh}
106 # Maximum number of lines to put in a shell here document.
113 # If the previous option needs an argument, assign it.
114 if test -n "$ac_prev"; then
115 eval "$ac_prev=\$ac_option"
121 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
125 # Accept the important Cygnus configure options, so we can diagnose typos.
129 -bindir | --bindir | --bindi | --bind | --bin | --bi)
131 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
132 bindir="$ac_optarg" ;;
134 -build | --build | --buil | --bui | --bu)
136 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
137 build="$ac_optarg" ;;
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" ;;
146 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
148 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
150 datadir="$ac_optarg" ;;
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; }
158 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
159 eval "enable_${ac_feature}=no" ;;
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; }
167 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172 eval "enable_${ac_feature}='$ac_optarg'" ;;
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" ;;
183 -gas | --gas | --ga | --g)
184 # Obsolete; use --with-gas.
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.
191 Usage: configure [options] [host]
192 Options: [defaults in brackets after descriptions]
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
202 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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
209 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
210 --sharedstatedir=DIR modifiable architecture-independent data in DIR
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
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
237 if test -n "$ac_help"; then
238 echo "--enable and --with options recognized:$ac_help"
242 -host | --host | --hos | --ho)
244 -host=* | --host=* | --hos=* | --ho=*)
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" ;;
254 -infodir | --infodir | --infodi | --infod | --info | --inf)
256 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
257 infodir="$ac_optarg" ;;
259 -libdir | --libdir | --libdi | --libd)
261 -libdir=* | --libdir=* | --libdi=* | --libd=*)
262 libdir="$ac_optarg" ;;
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" ;;
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" ;;
280 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
282 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
283 mandir="$ac_optarg" ;;
286 # Obsolete; use --without-fp.
289 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
293 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
294 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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" ;;
306 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
308 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
309 prefix="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
343 | -silent | --silent | --silen | --sile | --sil)
346 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
348 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
350 sbindir="$ac_optarg" ;;
352 -sharedstatedir | --sharedstatedir | --sharedstatedi \
353 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
354 | --sharedst | --shareds | --shared | --share | --shar \
356 ac_prev=sharedstatedir ;;
357 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
358 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
359 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
361 sharedstatedir="$ac_optarg" ;;
363 -site | --site | --sit)
365 -site=* | --site=* | --sit=*)
368 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
370 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
371 srcdir="$ac_optarg" ;;
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" ;;
380 -target | --target | --targe | --targ | --tar | --ta | --t)
382 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
383 target="$ac_optarg" ;;
385 -v | -verbose | --verbose | --verbos | --verbo | --verb)
388 -version | --version | --versio | --versi | --vers)
389 echo "configure generated by autoconf version 2.13"
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; }
398 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 eval "with_${ac_package}='$ac_optarg'" ;;
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; }
411 ac_package=`echo $ac_package| sed 's/-/_/g'`
412 eval "with_${ac_package}=no" ;;
415 # Obsolete; use --with-x.
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" ;;
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" ;;
432 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
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
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; }
448 if test -n "$ac_prev"; then
449 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
452 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
454 # File descriptor usage:
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
470 This file contains any messages produced by compilers while
471 running configure, to aid debugging if configure makes a mistake.
474 # Strip out --no-create and --no-recursion so they do not pile up.
475 # Also quote any args containing shell metacharacters.
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" ;;
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
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.
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
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.
514 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
515 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
517 if test ! -r $srcdir/$ac_unique_file; then
521 ac_srcdir_defaulted=no
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; }
527 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
530 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
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"
537 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
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"
547 if test -r "$cache_file"; then
548 echo "loading cache $cache_file"
551 echo "creating cache $cache_file"
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
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
573 ac_n= ac_c='\c' ac_t=
582 for ac_dir in `pwd`/config $srcdir/`pwd`/config; do
583 if test -f $ac_dir/install-sh; then
585 ac_install_sh="$ac_aux_dir/install-sh -c"
587 elif test -f $ac_dir/install.sh; then
589 ac_install_sh="$ac_aux_dir/install.sh -c"
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; }
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.
601 mkinstalldirs="\$(SHELL) \$(top_srcdir)/config/mkinstalldirs"
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; }
610 echo $ac_n "checking host system type""... $ac_c" 1>&6
611 echo "configure:612: checking host system type" >&5
614 case "$host_alias" in
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; }
621 *) host_alias=$nonopt ;;
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
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 ;;
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 ;;
659 case "$host_vendor" in
660 univel) os=univel need_tas=no ;;
661 *) os=unknown need_tas=no ;;
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 ;;
668 echo "*************************************************************"
669 echo "configure does not currently recognize your operating system,"
670 echo "therefore you must do a manual configuration of:"
672 echo "Please contact scrappy@hub.org to see about rectifying this, "
673 echo "including the above 'checking host system type...' line "
674 echo "*************************************************************"
686 if test "X$need_tas" = "Xyes"
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"
704 host="`echo $host | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`"
706 # First, try for a template exactly matching $host
707 if test -f "src/template/$host"
708 then TEMPLATE="$host"
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.
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 :-(
721 cat /dev/null > $TMPFILE
724 SIMHOST=`expr "$LINE" : '\(.*\)='`
725 MATCH=`expr "$host" : "$SIMHOST"`
726 if test "$MATCH" != 0
728 echo "$LINE" | sed 's/^.*=//' > $TMPFILE
730 done <src/template/.similar
734 then TEMPLATE="$GUESS"
736 # Last chance ... maybe uname -s will match an entry.
737 TEMPLATE=`uname -s | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
743 echo "$ac_t""$TEMPLATE" 1>&6
746 if test ! -f "src/template/$TEMPLATE"; then
748 echo "$TEMPLATE does not exist"
750 echo "Available Templates (select one using --with-template):"
760 sed 's/^\([A-Za-z_]*\):\(.*\)$/\1="\2"/' "src/template/$TEMPLATE" >conftest.sh
766 # Check whether --with-includes or --without-includes was given.
767 if test "${with_includes+set}" = set; then
768 withval="$with_includes"
771 "" | y | ye | yes | n | no)
772 { echo "configure: error: *** You must supply an argument to the --with-includes option." 1>&2; exit 1; }
775 INCLUDE_DIRS="$withval"
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"
785 echo "configure: warning: *** Include directory $dir does not exist." 1>&2
790 # Check whether --with-libraries or --without-libraries was given.
791 if test "${with_libraries+set}" = set; then
792 withval="$with_libraries"
795 "" | y | ye | yes | n | no)
796 { echo "configure: error: *** You must supply an argument to the --with-libraries option." 1>&2; exit 1; }
799 LIBRARY_DIRS="$withval"
804 # Check whether --with-libs or --without-libs was given.
805 if test "${with_libs+set}" = set; then
809 "" | y | ye | yes | n | no)
810 { echo "configure: error: *** You must supply an argument to the --with-libs option." 1>&2; exit 1; }
813 LIBRARY_DIRS="$withval"
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"
823 echo "configure: warning: *** Library directory $dir does not exist." 1>&2
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
837 echo "$ac_t""enabled" 1>&6
839 echo "$ac_t""disabled" 1>&6
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
852 echo "$ac_t""enabled" 1>&6
854 echo "$ac_t""disabled" 1>&6
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"
867 if test "$enableval" != "yes"; then
869 SQL_ASCII|EUC_JP|EUC_CN|EUC_KR|EUC_TW|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5|KOI8|WIN|ALT)
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,
878 Or do not specify an argument to the option to use the default." 1>&2; exit 1; }
882 cat >> confdefs.h <<\EOF
886 echo "$ac_t""enabled" 1>&6
889 echo "$ac_t"""disabled"" 1>&6
894 if test "${with_mb}"; then
895 { echo "configure: error: --with-mb is not supported anymore. Use --enable-multibyte instead." 1>&2; exit 1; }
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"
910 cat >> confdefs.h <<EOF
911 #define DEF_PGPORT ${default_port}
914 cat >> confdefs.h <<EOF
915 #define DEF_PGPORT_STR "${default_port}"
918 echo "$ac_t""${default_port}" 1>&6
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}
929 echo "$ac_t""$with_maxbackends" 1>&6
931 cat >> confdefs.h <<EOF
932 #define DEF_MAXBACKENDS 32
934 echo "$ac_t""32" 1>&6
940 # Check whether --with-CC or --without-CC was given.
941 if test "${with_CC+set}" = set; then
945 "" | y | ye | yes | n | no)
946 { echo "configure: error: *** You must supply an argument to the --with-CC option." 1>&2; exit 1; }
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
961 if test -n "$CC"; then
962 ac_cv_prog_CC="$CC" # Let the user override the test.
964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
966 for ac_dir in $ac_dummy; do
967 test -z "$ac_dir" && ac_dir=.
968 if test -f $ac_dir/$ac_word; then
977 if test -n "$CC"; then
978 echo "$ac_t""$CC" 1>&6
980 echo "$ac_t""no" 1>&6
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
991 if test -n "$CC"; then
992 ac_cv_prog_CC="$CC" # Let the user override the test.
994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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
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
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.
1018 set dummy "$ac_dir/$ac_word" "$@"
1026 if test -n "$CC"; then
1027 echo "$ac_t""$CC" 1>&6
1029 echo "$ac_t""no" 1>&6
1032 if test -z "$CC"; then
1033 case "`uname -s`" in
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
1042 if test -n "$CC"; then
1043 ac_cv_prog_CC="$CC" # Let the user override the test.
1045 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1047 for ac_dir in $ac_dummy; do
1048 test -z "$ac_dir" && ac_dir=.
1049 if test -f $ac_dir/$ac_word; then
1058 if test -n "$CC"; then
1059 echo "$ac_t""$CC" 1>&6
1061 echo "$ac_t""no" 1>&6
1066 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
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
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
1079 cat > conftest.$ac_ext << EOF
1081 #line 1082 "configure"
1082 #include "confdefs.h"
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
1092 ac_cv_prog_cc_cross=yes
1095 echo "configure: failed program was:" >&5
1096 cat conftest.$ac_ext >&5
1097 ac_cv_prog_cc_works=no
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
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; }
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
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
1121 cat > conftest.c <<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
1133 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1135 if test $ac_cv_prog_gcc = yes; then
1141 ac_test_CFLAGS="${CFLAGS+set}"
1142 ac_save_CFLAGS="$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
1149 echo 'void f(){}' > conftest.c
1150 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
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
1169 if test "$GCC" = yes; then
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
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
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.
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"
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
1204 echo "configure: failed program was:" >&5
1205 cat conftest.$ac_ext >&5
1207 CPP="${CC-cc} -E -traditional-cpp"
1208 cat > conftest.$ac_ext <<EOF
1209 #line 1210 "configure"
1210 #include "confdefs.h"
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
1221 echo "configure: failed program was:" >&5
1222 cat conftest.$ac_ext >&5
1224 CPP="${CC-cc} -nologo -E"
1225 cat > conftest.$ac_ext <<EOF
1226 #line 1227 "configure"
1227 #include "confdefs.h"
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
1238 echo "configure: failed program was:" >&5
1239 cat conftest.$ac_ext >&5
1248 ac_cv_prog_CPP="$CPP"
1250 CPP="$ac_cv_prog_CPP"
1252 ac_cv_prog_CPP="$CPP"
1254 echo "$ac_t""$CPP" 1>&6
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
1262 ac_pattern="Autoconf.*'x'"
1263 cat > conftest.$ac_ext <<EOF
1264 #line 1265 "configure"
1265 #include "confdefs.h"
1269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1270 egrep "$ac_pattern" >/dev/null 2>&1; then
1272 ac_cv_prog_gcc_traditional=yes
1275 ac_cv_prog_gcc_traditional=no
1280 if test $ac_cv_prog_gcc_traditional = no; then
1281 cat > conftest.$ac_ext <<EOF
1282 #line 1283 "configure"
1283 #include "confdefs.h"
1287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1288 egrep "$ac_pattern" >/dev/null 2>&1; then
1290 ac_cv_prog_gcc_traditional=yes
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"
1305 if test "$CC" = "gcc"
1307 CC_VERSION=`${CC} --version`
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
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 ;;
1326 USE_TCL=; USE_TK=; echo "$ac_t""disabled" 1>&6
1335 # Check whether --with-tclconfig or --without-tclconfig was given.
1336 if test "${with_tclconfig+set}" = set; then
1337 withval="$with_tclconfig"
1340 "" | y | ye | yes | n | no)
1341 { echo "configure: error: *** You must supply an argument to the --with-tclconfig option." 1>&2; exit 1; }
1351 # Check whether --with-tkconfig or --without-tkconfig was given.
1352 if test "${with_tkconfig+set}" = set; then
1353 withval="$with_tkconfig"
1356 "" | y | ye | yes | n | no)
1357 { echo "configure: error: *** You must supply an argument to the --with-tkconfig option." 1>&2; exit 1; }
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
1375 echo "$ac_t""no" 1>&6
1378 echo "$ac_t""no" 1>&6
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
1398 if test -n "$PYTHON"; then
1399 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
1401 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
1413 PYTHON="$ac_cv_prog_PYTHON"
1414 if test -n "$PYTHON"; then
1415 echo "$ac_t""$PYTHON" 1>&6
1417 echo "$ac_t""no" 1>&6
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"
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
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; }
1446 { echo "configure: error: Python not found" 1>&2; exit 1; }
1449 echo "$ac_t""no" 1>&6
1452 echo "$ac_t""no" 1>&6
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"
1464 y | ye | yes) USE_ODBC=true; echo "$ac_t""enabled" 1>&6 ;;
1465 *) USE_ODBC=false; echo "$ac_t""disabled" 1>&6 ;;
1469 USE_ODBC=false; echo "$ac_t""disabled" 1>&6
1476 if test "X$USE_ODBC" = "Xtrue"
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}
1491 echo "$ac_t""$with_odbcinst" 1>&6
1493 cat >> confdefs.h <<EOF
1494 #define ODBCINST ${ODBCINSTDIR}
1496 echo "$ac_t""${ODBCINSTDIR}" 1>&6
1501 if test "X$with_odbcinst" != "X"
1503 ODBCINSTDIR=$with_odbcinst
1507 # check for unixODBC
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"
1519 if test "x$use_unixODBC" = "xyes"
1522 # default to /usr if not specified
1523 if test "x$unixODBC" = "x"
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"
1533 unixODBC_includes="$unixODBC/include"
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"
1542 unixODBC_libs="$unixODBC/lib"
1546 PGSQL_INCLUDES="$PGSQL_INCLUDES -I$unixODBC_includes"
1548 for ac_hdr in sql.h sqlext.h odbcinst.h
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
1556 cat > conftest.$ac_ext <<EOF
1557 #line 1558 "configure"
1558 #include "confdefs.h"
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
1566 eval "ac_cv_header_$ac_safe=yes"
1569 echo "configure: failed program was:" >&5
1570 cat conftest.$ac_ext >&5
1572 eval "ac_cv_header_$ac_safe=no"
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
1582 unixODBC_ok=yes; odbc_headers="$odbc_headers $ac_hdr"
1584 echo "$ac_t""no" 1>&6
1585 unixODBC_ok=no; break
1590 if test "x$unixODBC_ok" != "xyes"
1592 { echo "configure: error: Unable to find the unixODBC headers in $1" 1>&2; exit 1; }
1596 LIBS="$LIBS -L$unixODBC_libs"
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
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();
1615 SQLGetPrivateProfileString()
1618 if { (eval echo configure:1619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1620 eval "ac_cv_lib_$ac_lib_var=yes"
1622 echo "configure: failed program was:" >&5
1623 cat conftest.$ac_ext >&5
1625 eval "ac_cv_lib_$ac_lib_var=no"
1628 LIBS="$ac_save_LIBS"
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
1637 LIBS="$LIBS -lodbcinst"
1639 echo "$ac_t""no" 1>&6
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
1654 echo "$ac_t""enabled" 1>&6
1656 echo "$ac_t""disabled" 1>&6
1661 CPPFLAGS="$CPPFLAGS $PGSQL_INCLUDES"
1662 echo "- setting CPPFLAGS=$CPPFLAGS"
1664 LDFLAGS="$LDFLAGS $PGSQL_LDFLAGS"
1665 echo "- setting LDFLAGS=$LDFLAGS"
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"
1673 case "$enableval" in
1676 echo "$ac_t""enabled" 1>&6
1679 CFLAGS=`echo "$CFLAGS" | sed -e 's/ -g/ /g' | sed -e 's/^-g//'`
1680 echo "$ac_t""disabled" 1>&6
1685 echo "$ac_t""using default" 1>&6
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"
1700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1701 egrep "yes" >/dev/null 2>&1; then
1706 if test "X$elf" = "Xyes"
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
1741 if test "x${withval+set}" = xset; then
1742 echo "$ac_t""yes" 1>&6
1743 if test x"$withval" != xyes ; then
1746 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
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
1755 if test -n "$CXX"; then
1756 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
1770 CXX="$ac_cv_prog_CXX"
1771 if test -n "$CXX"; then
1772 echo "$ac_t""$CXX" 1>&6
1774 echo "$ac_t""no" 1>&6
1777 test -n "$CXX" && break
1779 test -n "$CXX" || CXX="gcc"
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
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
1792 cat > conftest.$ac_ext << EOF
1794 #line 1795 "configure"
1795 #include "confdefs.h"
1797 int main(){return(0);}
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
1805 ac_cv_prog_cxx_cross=yes
1808 echo "configure: failed program was:" >&5
1809 cat conftest.$ac_ext >&5
1810 ac_cv_prog_cxx_works=no
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
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; }
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
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
1834 cat > conftest.C <<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
1846 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1848 if test $ac_cv_prog_gxx = yes; then
1854 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1855 ac_save_CXXFLAGS="$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
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
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
1882 if test "$GXX" = yes; then
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
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"
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
1914 echo "configure: failed program was:" >&5
1915 cat conftest.$ac_ext >&5
1920 ac_cv_prog_CXXCPP="$CXXCPP"
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
1929 CXXCPP="$ac_cv_prog_CXXCPP"
1930 echo "$ac_t""$CXXCPP" 1>&6
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
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
1946 cat > conftest.$ac_ext <<EOF
1947 #line 1948 "configure"
1948 #include "confdefs.h"
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
1956 eval "ac_cv_header_$ac_safe=yes"
1959 echo "configure: failed program was:" >&5
1960 cat conftest.$ac_ext >&5
1962 eval "ac_cv_header_$ac_safe=no"
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
1973 echo "$ac_t""no" 1>&6
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
1983 cat > conftest.$ac_ext <<EOF
1984 #line 1985 "configure"
1985 #include "confdefs.h"
1994 if { (eval echo configure:1995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1996 pgac_cv_class_string_in_string_h=yes
1998 echo "configure: failed program was:" >&5
1999 cat conftest.$ac_ext >&5
2001 pgac_cv_class_string_in_string_h=no
2006 echo "$ac_t""$pgac_cv_class_string_in_string_h" 1>&6
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; }
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
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
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
2034 cat > conftest.$ac_ext <<EOF
2035 #line 2036 "configure"
2036 #include "confdefs.h"
2039 #ifdef HAVE_CXX_STRING_HEADER
2042 using namespace std;
2048 if { (eval echo configure:2049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2050 pgac_cv_cxx_namespace_std=yes
2052 echo "configure: failed program was:" >&5
2053 cat conftest.$ac_ext >&5
2055 pgac_cv_cxx_namespace_std=no
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
2067 echo "$ac_t""$pgac_cv_cxx_namespace_std" 1>&6
2069 if test $pgac_cv_cxx_namespace_std = yes ; then
2070 cat >> confdefs.h <<\EOF
2071 #define HAVE_NAMESPACE_STD 1
2076 echo "$ac_t""no" 1>&6
2079 echo "$ac_t""no" 1>&6
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
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
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.
2108 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
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
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.
2120 ac_cv_path_install="$ac_dir/$ac_prog -c"
2131 if test "${ac_cv_path_install+set}" = set; then
2132 INSTALL="$ac_cv_path_install"
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"
2141 echo "$ac_t""$INSTALL" 1>&6
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}'
2147 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2149 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2153 INSTL_EXE_OPTS="-m 555"
2154 INSTL_LIB_OPTS="-m 644"
2155 INSTL_SHLIB_OPTS="-m 644"
2159 INSTL_SHLIB_OPTS="-m 555" ;;
2168 for ac_prog in gawk mawk nawk awk
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
2177 if test -n "$AWK"; then
2178 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
2192 AWK="$ac_cv_prog_AWK"
2193 if test -n "$AWK"; then
2194 echo "$ac_t""$AWK" 1>&6
2196 echo "$ac_t""no" 1>&6
2199 test -n "$AWK" && break
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
2209 echo "$ac_t""found" 1>&6
2211 AUTOCONF="\${SHELL} \${top_srcdir}/config/missing autoconf"
2212 echo "$ac_t""missing" 1>&6
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
2222 echo "$ac_t""found" 1>&6
2224 ACLOCAL="\${SHELL} \${top_srcdir}/config/missing aclocal"
2225 echo "$ac_t""missing" 1>&6
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
2236 if test -n "$LEX"; then
2237 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
2249 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
2252 LEX="$ac_cv_prog_LEX"
2253 if test -n "$LEX"; then
2254 echo "$ac_t""$LEX" 1>&6
2256 echo "$ac_t""no" 1>&6
2259 if test -z "$LEXLIB"
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
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. */
2285 if { (eval echo configure:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2287 eval "ac_cv_lib_$ac_lib_var=yes"
2289 echo "configure: failed program was:" >&5
2290 cat conftest.$ac_ext >&5
2292 eval "ac_cv_lib_$ac_lib_var=no"
2295 LIBS="$ac_save_LIBS"
2298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2299 echo "$ac_t""yes" 1>&6
2302 echo "$ac_t""no" 1>&6
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:
2312 You have flex version 2.5.3, which is broken. Get version 2.5.4 or
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
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
2327 if ln -s X conftestdata 2>/dev/null
2330 ac_cv_prog_LN_S="ln -s"
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
2339 echo "$ac_t""no" 1>&6
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
2349 if test -n "$RANLIB"; then
2350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
2362 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2365 RANLIB="$ac_cv_prog_RANLIB"
2366 if test -n "$RANLIB"; then
2367 echo "$ac_t""$RANLIB" 1>&6
2369 echo "$ac_t""no" 1>&6
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
2381 ac_cv_path_find="$find" # Let the user override the test with a path.
2384 ac_cv_path_find="$find" # Let the user override the test with a dos path.
2387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
2400 find="$ac_cv_path_find"
2401 if test -n "$find"; then
2402 echo "$ac_t""$find" 1>&6
2404 echo "$ac_t""no" 1>&6
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
2416 ac_cv_path_tar="$tar" # Let the user override the test with a path.
2419 ac_cv_path_tar="$tar" # Let the user override the test with a dos path.
2422 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
2435 tar="$ac_cv_path_tar"
2436 if test -n "$tar"; then
2437 echo "$ac_t""$tar" 1>&6
2439 echo "$ac_t""no" 1>&6
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
2451 ac_cv_path_split="$split" # Let the user override the test with a path.
2454 ac_cv_path_split="$split" # Let the user override the test with a dos path.
2457 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
2470 split="$ac_cv_path_split"
2471 if test -n "$split"; then
2472 echo "$ac_t""$split" 1>&6
2474 echo "$ac_t""no" 1>&6
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
2486 ac_cv_path_etags="$etags" # Let the user override the test with a path.
2489 ac_cv_path_etags="$etags" # Let the user override the test with a dos path.
2492 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
2505 etags="$ac_cv_path_etags"
2506 if test -n "$etags"; then
2507 echo "$ac_t""$etags" 1>&6
2509 echo "$ac_t""no" 1>&6
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
2521 ac_cv_path_xargs="$xargs" # Let the user override the test with a path.
2524 ac_cv_path_xargs="$xargs" # Let the user override the test with a dos path.
2527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
2540 xargs="$ac_cv_path_xargs"
2541 if test -n "$xargs"; then
2542 echo "$ac_t""$xargs" 1>&6
2544 echo "$ac_t""no" 1>&6
2547 for ac_prog in gzcat zcat
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
2558 ac_cv_path_GZCAT="$GZCAT" # Let the user override the test with a path.
2561 ac_cv_path_GZCAT="$GZCAT" # Let the user override the test with a dos path.
2564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
2577 GZCAT="$ac_cv_path_GZCAT"
2578 if test -n "$GZCAT"; then
2579 echo "$ac_t""$GZCAT" 1>&6
2581 echo "$ac_t""no" 1>&6
2584 test -n "$GZCAT" && break
2586 test -n "$GZCAT" || GZCAT="gzcat"
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
2597 if test -n "$PERL"; then
2598 ac_cv_prog_PERL="$PERL" # Let the user override the test.
2600 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
2612 PERL="$ac_cv_prog_PERL"
2613 if test -n "$PERL"; then
2614 echo "$ac_t""$PERL" 1>&6
2616 echo "$ac_t""no" 1>&6
2619 test -n "$PERL" && break
2622 for ac_prog in 'bison -y' byacc
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
2631 if test -n "$YACC"; then
2632 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
2646 YACC="$ac_cv_prog_YACC"
2647 if test -n "$YACC"; then
2648 echo "$ac_t""$YACC" 1>&6
2650 echo "$ac_t""no" 1>&6
2653 test -n "$YACC" && break
2655 test -n "$YACC" || YACC="yacc"
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
2666 ac_save_LIBS="$LIBS"
2668 cat > conftest.$ac_ext <<EOF
2669 #line 2670 "configure"
2670 #include "confdefs.h"
2676 if { (eval echo configure:2677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2678 eval "ac_cv_lib_$ac_lib_var=yes"
2680 echo "configure: failed program was:" >&5
2681 cat conftest.$ac_ext >&5
2683 eval "ac_cv_lib_$ac_lib_var=no"
2686 LIBS="$ac_save_LIBS"
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
2700 echo "$ac_t""no" 1>&6
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
2710 ac_save_LIBS="$LIBS"
2711 LIBS="-l${curses} $LIBS"
2712 cat > conftest.$ac_ext <<EOF
2713 #line 2714 "configure"
2714 #include "confdefs.h"
2720 if { (eval echo configure:2721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2722 eval "ac_cv_lib_$ac_lib_var=yes"
2724 echo "configure: failed program was:" >&5
2725 cat conftest.$ac_ext >&5
2727 eval "ac_cv_lib_$ac_lib_var=no"
2730 LIBS="$ac_save_LIBS"
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
2737 echo "$ac_t""no" 1>&6
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
2747 ac_save_LIBS="$LIBS"
2748 LIBS="-ltermcap $LIBS"
2749 cat > conftest.$ac_ext <<EOF
2750 #line 2751 "configure"
2751 #include "confdefs.h"
2757 if { (eval echo configure:2758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2759 eval "ac_cv_lib_$ac_lib_var=yes"
2761 echo "configure: failed program was:" >&5
2762 cat conftest.$ac_ext >&5
2764 eval "ac_cv_lib_$ac_lib_var=no"
2767 LIBS="$ac_save_LIBS"
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
2778 LIBS="-ltermcap $LIBS"
2781 echo "$ac_t""no" 1>&6
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
2790 ac_save_LIBS="$LIBS"
2791 LIBS="-lreadline $LIBS"
2792 cat > conftest.$ac_ext <<EOF
2793 #line 2794 "configure"
2794 #include "confdefs.h"
2800 if { (eval echo configure:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2802 eval "ac_cv_lib_$ac_lib_var=yes"
2804 echo "configure: failed program was:" >&5
2805 cat conftest.$ac_ext >&5
2807 eval "ac_cv_lib_$ac_lib_var=no"
2810 LIBS="$ac_save_LIBS"
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
2821 LIBS="-lreadline $LIBS"
2824 echo "$ac_t""no" 1>&6
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
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();
2847 if { (eval echo configure:2848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2849 eval "ac_cv_lib_$ac_lib_var=yes"
2851 echo "configure: failed program was:" >&5
2852 cat conftest.$ac_ext >&5
2854 eval "ac_cv_lib_$ac_lib_var=no"
2857 LIBS="$ac_save_LIBS"
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
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
2874 ac_save_LIBS="$LIBS"
2875 LIBS="-lhistory $LIBS"
2876 cat > conftest.$ac_ext <<EOF
2877 #line 2878 "configure"
2878 #include "confdefs.h"
2884 if { (eval echo configure:2885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2886 eval "ac_cv_lib_$ac_lib_var=yes"
2888 echo "configure: failed program was:" >&5
2889 cat conftest.$ac_ext >&5
2891 eval "ac_cv_lib_$ac_lib_var=no"
2894 LIBS="$ac_save_LIBS"
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
2905 LIBS="-lhistory $LIBS"
2908 echo "$ac_t""no" 1>&6
2914 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
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
2922 ac_save_LIBS="$LIBS"
2924 cat > conftest.$ac_ext <<EOF
2925 #line 2926 "configure"
2926 #include "confdefs.h"
2932 if { (eval echo configure:2933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2934 eval "ac_cv_lib_$ac_lib_var=yes"
2936 echo "configure: failed program was:" >&5
2937 cat conftest.$ac_ext >&5
2939 eval "ac_cv_lib_$ac_lib_var=no"
2942 LIBS="$ac_save_LIBS"
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
2956 echo "$ac_t""no" 1>&6
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
2966 ac_save_LIBS="$LIBS"
2968 cat > conftest.$ac_ext <<EOF
2969 #line 2970 "configure"
2970 #include "confdefs.h"
2976 if { (eval echo configure:2977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2978 eval "ac_cv_lib_$ac_lib_var=yes"
2980 echo "configure: failed program was:" >&5
2981 cat conftest.$ac_ext >&5
2983 eval "ac_cv_lib_$ac_lib_var=no"
2986 LIBS="$ac_save_LIBS"
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
3000 echo "$ac_t""no" 1>&6
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
3009 ac_save_LIBS="$LIBS"
3011 cat > conftest.$ac_ext <<EOF
3012 #line 3013 "configure"
3013 #include "confdefs.h"
3019 if { (eval echo configure:3020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3021 eval "ac_cv_lib_$ac_lib_var=yes"
3023 echo "configure: failed program was:" >&5
3024 cat conftest.$ac_ext >&5
3026 eval "ac_cv_lib_$ac_lib_var=no"
3029 LIBS="$ac_save_LIBS"
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
3043 echo "$ac_t""no" 1>&6
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
3052 ac_save_LIBS="$LIBS"
3054 cat > conftest.$ac_ext <<EOF
3055 #line 3056 "configure"
3056 #include "confdefs.h"
3062 if { (eval echo configure:3063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3064 eval "ac_cv_lib_$ac_lib_var=yes"
3066 echo "configure: failed program was:" >&5
3067 cat conftest.$ac_ext >&5
3069 eval "ac_cv_lib_$ac_lib_var=no"
3072 LIBS="$ac_save_LIBS"
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
3086 echo "$ac_t""no" 1>&6
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
3095 ac_save_LIBS="$LIBS"
3096 LIBS="-lsocket $LIBS"
3097 cat > conftest.$ac_ext <<EOF
3098 #line 3099 "configure"
3099 #include "confdefs.h"
3105 if { (eval echo configure:3106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3107 eval "ac_cv_lib_$ac_lib_var=yes"
3109 echo "configure: failed program was:" >&5
3110 cat conftest.$ac_ext >&5
3112 eval "ac_cv_lib_$ac_lib_var=no"
3115 LIBS="$ac_save_LIBS"
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
3126 LIBS="-lsocket $LIBS"
3129 echo "$ac_t""no" 1>&6
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
3138 ac_save_LIBS="$LIBS"
3140 cat > conftest.$ac_ext <<EOF
3141 #line 3142 "configure"
3142 #include "confdefs.h"
3148 if { (eval echo configure:3149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3150 eval "ac_cv_lib_$ac_lib_var=yes"
3152 echo "configure: failed program was:" >&5
3153 cat conftest.$ac_ext >&5
3155 eval "ac_cv_lib_$ac_lib_var=no"
3158 LIBS="$ac_save_LIBS"
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
3172 echo "$ac_t""no" 1>&6
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
3181 ac_save_LIBS="$LIBS"
3183 cat > conftest.$ac_ext <<EOF
3184 #line 3185 "configure"
3185 #include "confdefs.h"
3191 if { (eval echo configure:3192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3193 eval "ac_cv_lib_$ac_lib_var=yes"
3195 echo "configure: failed program was:" >&5
3196 cat conftest.$ac_ext >&5
3198 eval "ac_cv_lib_$ac_lib_var=no"
3201 LIBS="$ac_save_LIBS"
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
3215 echo "$ac_t""no" 1>&6
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
3224 ac_save_LIBS="$LIBS"
3226 cat > conftest.$ac_ext <<EOF
3227 #line 3228 "configure"
3228 #include "confdefs.h"
3234 if { (eval echo configure:3235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3236 eval "ac_cv_lib_$ac_lib_var=yes"
3238 echo "configure: failed program was:" >&5
3239 cat conftest.$ac_ext >&5
3241 eval "ac_cv_lib_$ac_lib_var=no"
3244 LIBS="$ac_save_LIBS"
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
3258 echo "$ac_t""no" 1>&6
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
3267 ac_save_LIBS="$LIBS"
3269 cat > conftest.$ac_ext <<EOF
3270 #line 3271 "configure"
3271 #include "confdefs.h"
3277 if { (eval echo configure:3278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3279 eval "ac_cv_lib_$ac_lib_var=yes"
3281 echo "configure: failed program was:" >&5
3282 cat conftest.$ac_ext >&5
3284 eval "ac_cv_lib_$ac_lib_var=no"
3287 LIBS="$ac_save_LIBS"
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
3301 echo "$ac_t""no" 1>&6
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
3310 ac_save_LIBS="$LIBS"
3312 cat > conftest.$ac_ext <<EOF
3313 #line 3314 "configure"
3314 #include "confdefs.h"
3320 if { (eval echo configure:3321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3322 eval "ac_cv_lib_$ac_lib_var=yes"
3324 echo "configure: failed program was:" >&5
3325 cat conftest.$ac_ext >&5
3327 eval "ac_cv_lib_$ac_lib_var=no"
3330 LIBS="$ac_save_LIBS"
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
3344 echo "$ac_t""no" 1>&6
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
3353 ac_save_LIBS="$LIBS"
3355 cat > conftest.$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3363 if { (eval echo configure:3364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3365 eval "ac_cv_lib_$ac_lib_var=yes"
3367 echo "configure: failed program was:" >&5
3368 cat conftest.$ac_ext >&5
3370 eval "ac_cv_lib_$ac_lib_var=no"
3373 LIBS="$ac_save_LIBS"
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
3387 echo "$ac_t""no" 1>&6
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
3396 ac_save_LIBS="$LIBS"
3398 cat > conftest.$ac_ext <<EOF
3399 #line 3400 "configure"
3400 #include "confdefs.h"
3406 if { (eval echo configure:3407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3408 eval "ac_cv_lib_$ac_lib_var=yes"
3410 echo "configure: failed program was:" >&5
3411 cat conftest.$ac_ext >&5
3413 eval "ac_cv_lib_$ac_lib_var=no"
3416 LIBS="$ac_save_LIBS"
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
3430 echo "$ac_t""no" 1>&6
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
3439 ac_save_LIBS="$LIBS"
3440 LIBS="-lcompat $LIBS"
3441 cat > conftest.$ac_ext <<EOF
3442 #line 3443 "configure"
3443 #include "confdefs.h"
3449 if { (eval echo configure:3450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3451 eval "ac_cv_lib_$ac_lib_var=yes"
3453 echo "configure: failed program was:" >&5
3454 cat conftest.$ac_ext >&5
3456 eval "ac_cv_lib_$ac_lib_var=no"
3459 LIBS="$ac_save_LIBS"
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
3470 LIBS="-lcompat $LIBS"
3473 echo "$ac_t""no" 1>&6
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
3482 ac_save_LIBS="$LIBS"
3484 cat > conftest.$ac_ext <<EOF
3485 #line 3486 "configure"
3486 #include "confdefs.h"
3492 if { (eval echo configure:3493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3494 eval "ac_cv_lib_$ac_lib_var=yes"
3496 echo "configure: failed program was:" >&5
3497 cat conftest.$ac_ext >&5
3499 eval "ac_cv_lib_$ac_lib_var=no"
3502 LIBS="$ac_save_LIBS"
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
3516 echo "$ac_t""no" 1>&6
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
3525 ac_save_LIBS="$LIBS"
3526 LIBS="-lcrypt $LIBS"
3527 cat > conftest.$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3535 if { (eval echo configure:3536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3537 eval "ac_cv_lib_$ac_lib_var=yes"
3539 echo "configure: failed program was:" >&5
3540 cat conftest.$ac_ext >&5
3542 eval "ac_cv_lib_$ac_lib_var=no"
3545 LIBS="$ac_save_LIBS"
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
3556 LIBS="-lcrypt $LIBS"
3559 echo "$ac_t""no" 1>&6
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
3568 ac_save_LIBS="$LIBS"
3570 cat > conftest.$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3578 if { (eval echo configure:3579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3580 eval "ac_cv_lib_$ac_lib_var=yes"
3582 echo "configure: failed program was:" >&5
3583 cat conftest.$ac_ext >&5
3585 eval "ac_cv_lib_$ac_lib_var=no"
3588 LIBS="$ac_save_LIBS"
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
3602 echo "$ac_t""no" 1>&6
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
3611 ac_save_LIBS="$LIBS"
3613 cat > conftest.$ac_ext <<EOF
3614 #line 3615 "configure"
3615 #include "confdefs.h"
3621 if { (eval echo configure:3622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3623 eval "ac_cv_lib_$ac_lib_var=yes"
3625 echo "configure: failed program was:" >&5
3626 cat conftest.$ac_ext >&5
3628 eval "ac_cv_lib_$ac_lib_var=no"
3631 LIBS="$ac_save_LIBS"
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
3645 echo "$ac_t""no" 1>&6
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
3654 cat > conftest.$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
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
3667 ac_cv_header_stdc=yes
3670 echo "configure: failed program was:" >&5
3671 cat conftest.$ac_ext >&5
3673 ac_cv_header_stdc=no
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"
3684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3685 egrep "memchr" >/dev/null 2>&1; then
3689 ac_cv_header_stdc=no
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"
3702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3703 egrep "free" >/dev/null 2>&1; then
3707 ac_cv_header_stdc=no
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
3718 cat > conftest.$ac_ext <<EOF
3719 #line 3720 "configure"
3720 #include "confdefs.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);
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
3734 echo "configure: failed program was:" >&5
3735 cat conftest.$ac_ext >&5
3737 ac_cv_header_stdc=no
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
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
3758 cat > conftest.$ac_ext <<EOF
3759 #line 3760 "configure"
3760 #include "confdefs.h"
3761 #include <sys/types.h>
3762 #include <sys/wait.h>
3764 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3767 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3772 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3775 if { (eval echo configure:3776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3777 ac_cv_header_sys_wait_h=yes
3779 echo "configure: failed program was:" >&5
3780 cat conftest.$ac_ext >&5
3782 ac_cv_header_sys_wait_h=no
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
3795 for ac_hdr in arpa/inet.h
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
3803 cat > conftest.$ac_ext <<EOF
3804 #line 3805 "configure"
3805 #include "confdefs.h"
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
3813 eval "ac_cv_header_$ac_safe=yes"
3816 echo "configure: failed program was:" >&5
3817 cat conftest.$ac_ext >&5
3819 eval "ac_cv_header_$ac_safe=no"
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
3831 echo "$ac_t""no" 1>&6
3835 for ac_hdr in crypt.h
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
3843 cat > conftest.$ac_ext <<EOF
3844 #line 3845 "configure"
3845 #include "confdefs.h"
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
3853 eval "ac_cv_header_$ac_safe=yes"
3856 echo "configure: failed program was:" >&5
3857 cat conftest.$ac_ext >&5
3859 eval "ac_cv_header_$ac_safe=no"
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
3871 echo "$ac_t""no" 1>&6
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
3883 cat > conftest.$ac_ext <<EOF
3884 #line 3885 "configure"
3885 #include "confdefs.h"
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
3893 eval "ac_cv_header_$ac_safe=yes"
3896 echo "configure: failed program was:" >&5
3897 cat conftest.$ac_ext >&5
3899 eval "ac_cv_header_$ac_safe=no"
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
3911 echo "$ac_t""no" 1>&6
3915 for ac_hdr in endian.h
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
3923 cat > conftest.$ac_ext <<EOF
3924 #line 3925 "configure"
3925 #include "confdefs.h"
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
3933 eval "ac_cv_header_$ac_safe=yes"
3936 echo "configure: failed program was:" >&5
3937 cat conftest.$ac_ext >&5
3939 eval "ac_cv_header_$ac_safe=no"
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
3951 echo "$ac_t""no" 1>&6
3955 for ac_hdr in float.h
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
3963 cat > conftest.$ac_ext <<EOF
3964 #line 3965 "configure"
3965 #include "confdefs.h"
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
3973 eval "ac_cv_header_$ac_safe=yes"
3976 echo "configure: failed program was:" >&5
3977 cat conftest.$ac_ext >&5
3979 eval "ac_cv_header_$ac_safe=no"
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
3991 echo "$ac_t""no" 1>&6
3995 for ac_hdr in fp_class.h
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
4003 cat > conftest.$ac_ext <<EOF
4004 #line 4005 "configure"
4005 #include "confdefs.h"
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
4013 eval "ac_cv_header_$ac_safe=yes"
4016 echo "configure: failed program was:" >&5
4017 cat conftest.$ac_ext >&5
4019 eval "ac_cv_header_$ac_safe=no"
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
4031 echo "$ac_t""no" 1>&6
4035 for ac_hdr in getopt.h
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
4043 cat > conftest.$ac_ext <<EOF
4044 #line 4045 "configure"
4045 #include "confdefs.h"
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
4053 eval "ac_cv_header_$ac_safe=yes"
4056 echo "configure: failed program was:" >&5
4057 cat conftest.$ac_ext >&5
4059 eval "ac_cv_header_$ac_safe=no"
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
4071 echo "$ac_t""no" 1>&6
4075 for ac_hdr in history.h
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
4083 cat > conftest.$ac_ext <<EOF
4084 #line 4085 "configure"
4085 #include "confdefs.h"
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
4093 eval "ac_cv_header_$ac_safe=yes"
4096 echo "configure: failed program was:" >&5
4097 cat conftest.$ac_ext >&5
4099 eval "ac_cv_header_$ac_safe=no"
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
4111 echo "$ac_t""no" 1>&6
4115 for ac_hdr in ieeefp.h
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
4123 cat > conftest.$ac_ext <<EOF
4124 #line 4125 "configure"
4125 #include "confdefs.h"
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
4133 eval "ac_cv_header_$ac_safe=yes"
4136 echo "configure: failed program was:" >&5
4137 cat conftest.$ac_ext >&5
4139 eval "ac_cv_header_$ac_safe=no"
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
4151 echo "$ac_t""no" 1>&6
4155 for ac_hdr in limits.h
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
4163 cat > conftest.$ac_ext <<EOF
4164 #line 4165 "configure"
4165 #include "confdefs.h"
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
4173 eval "ac_cv_header_$ac_safe=yes"
4176 echo "configure: failed program was:" >&5
4177 cat conftest.$ac_ext >&5
4179 eval "ac_cv_header_$ac_safe=no"
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
4191 echo "$ac_t""no" 1>&6
4195 for ac_hdr in netdb.h
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
4203 cat > conftest.$ac_ext <<EOF
4204 #line 4205 "configure"
4205 #include "confdefs.h"
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
4213 eval "ac_cv_header_$ac_safe=yes"
4216 echo "configure: failed program was:" >&5
4217 cat conftest.$ac_ext >&5
4219 eval "ac_cv_header_$ac_safe=no"
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
4231 echo "$ac_t""no" 1>&6
4235 for ac_hdr in netinet/in.h
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
4243 cat > conftest.$ac_ext <<EOF
4244 #line 4245 "configure"
4245 #include "confdefs.h"
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
4253 eval "ac_cv_header_$ac_safe=yes"
4256 echo "configure: failed program was:" >&5
4257 cat conftest.$ac_ext >&5
4259 eval "ac_cv_header_$ac_safe=no"
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
4271 echo "$ac_t""no" 1>&6
4275 for ac_hdr in readline.h
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
4283 cat > conftest.$ac_ext <<EOF
4284 #line 4285 "configure"
4285 #include "confdefs.h"
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
4293 eval "ac_cv_header_$ac_safe=yes"
4296 echo "configure: failed program was:" >&5
4297 cat conftest.$ac_ext >&5
4299 eval "ac_cv_header_$ac_safe=no"
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
4311 echo "$ac_t""no" 1>&6
4315 for ac_hdr in readline/history.h
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
4323 cat > conftest.$ac_ext <<EOF
4324 #line 4325 "configure"
4325 #include "confdefs.h"
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
4333 eval "ac_cv_header_$ac_safe=yes"
4336 echo "configure: failed program was:" >&5
4337 cat conftest.$ac_ext >&5
4339 eval "ac_cv_header_$ac_safe=no"
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
4351 echo "$ac_t""no" 1>&6
4355 for ac_hdr in readline/readline.h
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
4363 cat > conftest.$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
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
4373 eval "ac_cv_header_$ac_safe=yes"
4376 echo "configure: failed program was:" >&5
4377 cat conftest.$ac_ext >&5
4379 eval "ac_cv_header_$ac_safe=no"
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
4391 echo "$ac_t""no" 1>&6
4395 for ac_hdr in sys/select.h
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
4403 cat > conftest.$ac_ext <<EOF
4404 #line 4405 "configure"
4405 #include "confdefs.h"
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
4413 eval "ac_cv_header_$ac_safe=yes"
4416 echo "configure: failed program was:" >&5
4417 cat conftest.$ac_ext >&5
4419 eval "ac_cv_header_$ac_safe=no"
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
4431 echo "$ac_t""no" 1>&6
4435 for ac_hdr in termios.h
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
4443 cat > conftest.$ac_ext <<EOF
4444 #line 4445 "configure"
4445 #include "confdefs.h"
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
4453 eval "ac_cv_header_$ac_safe=yes"
4456 echo "configure: failed program was:" >&5
4457 cat conftest.$ac_ext >&5
4459 eval "ac_cv_header_$ac_safe=no"
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
4471 echo "$ac_t""no" 1>&6
4475 for ac_hdr in unistd.h
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
4483 cat > conftest.$ac_ext <<EOF
4484 #line 4485 "configure"
4485 #include "confdefs.h"
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
4493 eval "ac_cv_header_$ac_safe=yes"
4496 echo "configure: failed program was:" >&5
4497 cat conftest.$ac_ext >&5
4499 eval "ac_cv_header_$ac_safe=no"
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
4511 echo "$ac_t""no" 1>&6
4515 for ac_hdr in values.h
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
4523 cat > conftest.$ac_ext <<EOF
4524 #line 4525 "configure"
4525 #include "confdefs.h"
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
4533 eval "ac_cv_header_$ac_safe=yes"
4536 echo "configure: failed program was:" >&5
4537 cat conftest.$ac_ext >&5
4539 eval "ac_cv_header_$ac_safe=no"
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
4551 echo "$ac_t""no" 1>&6
4555 for ac_hdr in sys/exec.h sys/pstat.h machine/vmparam.h
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
4563 cat > conftest.$ac_ext <<EOF
4564 #line 4565 "configure"
4565 #include "confdefs.h"
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
4573 eval "ac_cv_header_$ac_safe=yes"
4576 echo "configure: failed program was:" >&5
4577 cat conftest.$ac_ext >&5
4579 eval "ac_cv_header_$ac_safe=no"
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
4591 echo "$ac_t""no" 1>&6
4595 for ac_hdr in sys/types.h sys/socket.h
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
4603 cat > conftest.$ac_ext <<EOF
4604 #line 4605 "configure"
4605 #include "confdefs.h"
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
4613 eval "ac_cv_header_$ac_safe=yes"
4616 echo "configure: failed program was:" >&5
4617 cat conftest.$ac_ext >&5
4619 eval "ac_cv_header_$ac_safe=no"
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
4631 echo "$ac_t""no" 1>&6
4635 for ac_hdr in sys/param.h pwd.h
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
4643 cat > conftest.$ac_ext <<EOF
4644 #line 4645 "configure"
4645 #include "confdefs.h"
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
4653 eval "ac_cv_header_$ac_safe=yes"
4656 echo "configure: failed program was:" >&5
4657 cat conftest.$ac_ext >&5
4659 eval "ac_cv_header_$ac_safe=no"
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
4671 echo "$ac_t""no" 1>&6
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
4681 cat > conftest.$ac_ext <<EOF
4682 #line 4683 "configure"
4683 #include "confdefs.h"
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;
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. */
4703 ccp = (char const *const *) p;
4704 { /* SCO 3.2v4 cc rejects this. */
4706 char const *s = 0 ? (char *) 0 : (char const *) 0;
4710 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4712 const int *foo = &x[0];
4715 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4716 typedef const int *iptr;
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;
4725 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4731 if { (eval echo configure:4732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4735 echo "configure: failed program was:" >&5
4736 cat conftest.$ac_ext >&5
4743 echo "$ac_t""$ac_cv_c_const" 1>&6
4744 if test $ac_cv_c_const = no; then
4745 cat >> confdefs.h <<\EOF
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
4757 for ac_kw in inline __inline__ __inline; do
4758 cat > conftest.$ac_ext <<EOF
4759 #line 4760 "configure"
4760 #include "confdefs.h"
4766 if { (eval echo configure:4767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4768 ac_cv_c_inline=$ac_kw; break
4770 echo "configure: failed program was:" >&5
4771 cat conftest.$ac_ext >&5
4778 echo "$ac_t""$ac_cv_c_inline" 1>&6
4779 case "$ac_cv_c_inline" in
4781 no) cat >> confdefs.h <<\EOF
4785 *) cat >> confdefs.h <<EOF
4786 #define inline $ac_cv_c_inline
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
4798 cat > conftest.$ac_ext <<EOF
4799 #line 4800 "configure"
4800 #include "confdefs.h"
4804 char *s = x(teststring);
4807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4808 egrep "#teststring" >/dev/null 2>&1; then
4810 ac_cv_c_stringize=no
4813 ac_cv_c_stringize=yes
4819 if test "${ac_cv_c_stringize}" = yes
4821 cat >> confdefs.h <<\EOF
4822 #define HAVE_STRINGIZE 1
4826 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
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
4833 cat > conftest.$ac_ext <<EOF
4834 #line 4835 "configure"
4835 #include "confdefs.h"
4836 #include <sys/types.h>
4838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4839 egrep "uid_t" >/dev/null 2>&1; then
4841 ac_cv_type_uid_t=yes
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
4856 cat >> confdefs.h <<\EOF
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
4867 cat > conftest.$ac_ext <<EOF
4868 #line 4869 "configure"
4869 #include "confdefs.h"
4870 #include <sys/types.h>
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
4879 ac_cv_type_mode_t=yes
4882 ac_cv_type_mode_t=no
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
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
4900 cat > conftest.$ac_ext <<EOF
4901 #line 4902 "configure"
4902 #include "confdefs.h"
4903 #include <sys/types.h>
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
4912 ac_cv_type_off_t=yes
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
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
4933 cat > conftest.$ac_ext <<EOF
4934 #line 4935 "configure"
4935 #include "confdefs.h"
4936 #include <sys/types.h>
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
4945 ac_cv_type_size_t=yes
4948 ac_cv_type_size_t=no
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
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
4966 cat > conftest.$ac_ext <<EOF
4967 #line 4968 "configure"
4968 #include "confdefs.h"
4969 #include <sys/types.h>
4972 struct tm *tp; tp->tm_sec;
4975 if { (eval echo configure:4976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4977 ac_cv_struct_tm=time.h
4979 echo "configure: failed program was:" >&5
4980 cat conftest.$ac_ext >&5
4982 ac_cv_struct_tm=sys/time.h
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
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
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>
5006 struct tm tm; tm.tm_zone;
5009 if { (eval echo configure:5010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5011 ac_cv_struct_tm_zone=yes
5013 echo "configure: failed program was:" >&5
5014 cat conftest.$ac_ext >&5
5016 ac_cv_struct_tm_zone=no
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
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
5033 cat > conftest.$ac_ext <<EOF
5034 #line 5035 "configure"
5035 #include "confdefs.h"
5037 #ifndef tzname /* For SGI. */
5038 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5044 if { (eval echo configure:5045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5046 ac_cv_var_tzname=yes
5048 echo "configure: failed program was:" >&5
5049 cat conftest.$ac_ext >&5
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
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
5070 cat > conftest.$ac_ext <<EOF
5071 #line 5072 "configure"
5072 #include "confdefs.h"
5075 signed char c; signed short s; signed int i;
5078 if { (eval echo configure:5079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5080 pgac_cv_c_signed=yes
5082 echo "configure: failed program was:" >&5
5083 cat conftest.$ac_ext >&5
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
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
5102 cat > conftest.$ac_ext <<EOF
5103 #line 5104 "configure"
5104 #include "confdefs.h"
5107 extern volatile int i;
5110 if { (eval echo configure:5111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5112 pgac_cv_c_volatile=yes
5114 echo "configure: failed program was:" >&5
5115 cat conftest.$ac_ext >&5
5117 pgac_cv_c_volatile=no
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
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
5134 if eval "test \"`echo '$''{'ac_cv_func_accept_arg2'+set}'`\" = set"; then
5135 echo $ac_n "(cached) $ac_c" 1>&6
5137 if eval "test \"`echo '$''{'ac_cv_func_accept_arg3'+set}'`\" = set"; then
5138 echo $ac_n "(cached) $ac_c" 1>&6
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>
5149 #ifdef HAVE_SYS_SOCKET_H
5150 #include <sys/socket.h>
5152 extern accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
5157 if { (eval echo configure:5158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5159 ac_not_found=no ; break 3
5161 echo "configure: failed program was:" >&5
5162 cat conftest.$ac_ext >&5
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'
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
5186 cat >> confdefs.h <<EOF
5187 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
5190 cat >> confdefs.h <<EOF
5191 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
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
5202 cat > conftest.$ac_ext <<EOF
5203 #line 5204 "configure"
5204 #include "confdefs.h"
5207 int res = timezone / 60;
5210 if { (eval echo configure:5211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5212 pgac_cv_var_int_timezone=yes
5214 echo "configure: failed program was:" >&5
5215 cat conftest.$ac_ext >&5
5217 pgac_cv_var_int_timezone=no
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
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
5234 cat > conftest.$ac_ext <<EOF
5235 #line 5236 "configure"
5236 #include "confdefs.h"
5237 #include <sys/time.h>
5240 struct timezone *tzp;
5241 gettimeofday(tp,tzp);
5244 if { (eval echo configure:5245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5246 pgac_cv_func_gettimeofday_1arg=no
5248 echo "configure: failed program was:" >&5
5249 cat conftest.$ac_ext >&5
5251 pgac_cv_func_gettimeofday_1arg=yes
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
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
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>
5278 if { (eval echo configure:5279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5280 pgac_cv_union_semun=yes
5282 echo "configure: failed program was:" >&5
5283 cat conftest.$ac_ext >&5
5285 pgac_cv_union_semun=no
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
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"
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);
5312 if { (eval echo configure:5313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5314 cat >> confdefs.h <<\EOF
5315 #define HAVE_FCNTL_SETLK 1
5317 echo "$ac_t""yes" 1>&6
5319 echo "configure: failed program was:" >&5
5320 cat conftest.$ac_ext >&5
5322 echo "$ac_t""no" 1>&6
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
5331 if test "$cross_compiling" = yes; then
5332 ac_cv_func_memcmp_clean=no
5334 cat > conftest.$ac_ext <<EOF
5335 #line 5336 "configure"
5336 #include "confdefs.h"
5340 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5341 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
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
5347 ac_cv_func_memcmp_clean=yes
5349 echo "configure: failed program was:" >&5
5350 cat conftest.$ac_ext >&5
5352 ac_cv_func_memcmp_clean=no
5359 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
5360 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
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
5367 cat > conftest.$ac_ext <<EOF
5368 #line 5369 "configure"
5369 #include "confdefs.h"
5370 #include <sys/types.h>
5376 extern "C" void (*signal (int, void (*)(int)))(int);
5378 void (*signal ()) ();
5385 if { (eval echo configure:5386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5387 ac_cv_type_signal=void
5389 echo "configure: failed program was:" >&5
5390 cat conftest.$ac_ext >&5
5392 ac_cv_type_signal=int
5397 echo "$ac_t""$ac_cv_type_signal" 1>&6
5398 cat >> confdefs.h <<EOF
5399 #define RETSIGTYPE $ac_cv_type_signal
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
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. */
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. */
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)
5432 if { (eval echo configure:5433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5434 eval "ac_cv_func_vprintf=yes"
5436 echo "configure: failed program was:" >&5
5437 cat conftest.$ac_ext >&5
5439 eval "ac_cv_func_vprintf=no"
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
5451 echo "$ac_t""no" 1>&6
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
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. */
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. */
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)
5484 if { (eval echo configure:5485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5486 eval "ac_cv_func__doprnt=yes"
5488 echo "configure: failed program was:" >&5
5489 cat conftest.$ac_ext >&5
5491 eval "ac_cv_func__doprnt=no"
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
5503 echo "$ac_t""no" 1>&6
5508 for ac_func in memmove sysconf
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
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. */
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. */
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)
5539 if { (eval echo configure:5540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5541 eval "ac_cv_func_$ac_func=yes"
5543 echo "configure: failed program was:" >&5
5544 cat conftest.$ac_ext >&5
5546 eval "ac_cv_func_$ac_func=no"
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
5559 echo "$ac_t""no" 1>&6
5563 for ac_func in sigprocmask waitpid setsid fcvt
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
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. */
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. */
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)
5594 if { (eval echo configure:5595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5596 eval "ac_cv_func_$ac_func=yes"
5598 echo "configure: failed program was:" >&5
5599 cat conftest.$ac_ext >&5
5601 eval "ac_cv_func_$ac_func=no"
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
5614 echo "$ac_t""no" 1>&6
5618 for ac_func in setproctitle pstat
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
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. */
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. */
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)
5649 if { (eval echo configure:5650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5651 eval "ac_cv_func_$ac_func=yes"
5653 echo "configure: failed program was:" >&5
5654 cat conftest.$ac_ext >&5
5656 eval "ac_cv_func_$ac_func=no"
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
5669 echo "$ac_t""no" 1>&6
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>
5682 #ifdef HAVE_SYS_EXEC_H
5683 # include <sys/exec.h>
5686 PS_STRINGS->ps_nargvstr = 1;
5687 PS_STRINGS->ps_argvstr = "foo";
5690 if { (eval echo configure:5691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5692 echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF
5693 #define HAVE_PS_STRINGS 1
5697 echo "configure: failed program was:" >&5
5698 cat conftest.$ac_ext >&5
5700 echo "$ac_t""no" 1>&6
5704 for ac_func in fpclass fp_class fp_class_d class
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
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. */
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. */
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)
5735 if { (eval echo configure:5736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5737 eval "ac_cv_func_$ac_func=yes"
5739 echo "configure: failed program was:" >&5
5740 cat conftest.$ac_ext >&5
5742 eval "ac_cv_func_$ac_func=no"
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
5755 echo "$ac_t""no" 1>&6
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
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. */
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. */
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)
5789 if { (eval echo configure:5790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5791 eval "ac_cv_func_snprintf=yes"
5793 echo "configure: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5796 eval "ac_cv_func_snprintf=no"
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
5808 echo "$ac_t""no" 1>&6
5809 SNPRINTF='snprintf.o'
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
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. */
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. */
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)
5841 if { (eval echo configure:5842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5843 eval "ac_cv_func_vsnprintf=yes"
5845 echo "configure: failed program was:" >&5
5846 cat conftest.$ac_ext >&5
5848 eval "ac_cv_func_vsnprintf=no"
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
5860 echo "$ac_t""no" 1>&6
5861 SNPRINTF='snprintf.o'
5865 cat > conftest.$ac_ext <<EOF
5866 #line 5867 "configure"
5867 #include "confdefs.h"
5870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5871 egrep "snprintf" >/dev/null 2>&1; then
5873 cat >> confdefs.h <<\EOF
5874 #define HAVE_SNPRINTF_DECL 1
5880 cat > conftest.$ac_ext <<EOF
5881 #line 5882 "configure"
5882 #include "confdefs.h"
5885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5886 egrep "vsnprintf" >/dev/null 2>&1; then
5888 cat >> confdefs.h <<\EOF
5889 #define HAVE_VSNPRINTF_DECL 1
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
5900 cat > conftest.$ac_ext <<EOF
5901 #line 5902 "configure"
5902 #include "confdefs.h"
5905 double x = 0.0; int res = isinf(x);
5908 if { (eval echo configure:5909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5910 ac_cv_func_or_macro_isinf=yes
5912 echo "configure: failed program was:" >&5
5913 cat conftest.$ac_ext >&5
5915 ac_cv_func_or_macro_isinf=no
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
5928 echo "$ac_t""no" 1>&6
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
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. */
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. */
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)
5961 if { (eval echo configure:5962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5963 eval "ac_cv_func_getrusage=yes"
5965 echo "configure: failed program was:" >&5
5966 cat conftest.$ac_ext >&5
5968 eval "ac_cv_func_getrusage=no"
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
5980 echo "$ac_t""no" 1>&6
5981 GETRUSAGE='getrusage.o'
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
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. */
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. */
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)
6014 if { (eval echo configure:6015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6016 eval "ac_cv_func_srandom=yes"
6018 echo "configure: failed program was:" >&5
6019 cat conftest.$ac_ext >&5
6021 eval "ac_cv_func_srandom=no"
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
6033 echo "$ac_t""no" 1>&6
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
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. */
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. */
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)
6067 if { (eval echo configure:6068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6069 eval "ac_cv_func_gethostname=yes"
6071 echo "configure: failed program was:" >&5
6072 cat conftest.$ac_ext >&5
6074 eval "ac_cv_func_gethostname=no"
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
6086 echo "$ac_t""no" 1>&6
6087 GETHOSTNAME='gethostname.o'
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
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. */
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. */
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)
6120 if { (eval echo configure:6121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6122 eval "ac_cv_func_random=yes"
6124 echo "configure: failed program was:" >&5
6125 cat conftest.$ac_ext >&5
6127 eval "ac_cv_func_random=no"
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
6139 echo "$ac_t""no" 1>&6
6140 MISSING_RANDOM='random.o'
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
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. */
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. */
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)
6173 if { (eval echo configure:6174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6175 eval "ac_cv_func_inet_aton=yes"
6177 echo "configure: failed program was:" >&5
6178 cat conftest.$ac_ext >&5
6180 eval "ac_cv_func_inet_aton=no"
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
6192 echo "$ac_t""no" 1>&6
6193 INET_ATON='inet_aton.o'
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
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. */
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. */
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)
6226 if { (eval echo configure:6227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6228 eval "ac_cv_func_strerror=yes"
6230 echo "configure: failed program was:" >&5
6231 cat conftest.$ac_ext >&5
6233 eval "ac_cv_func_strerror=no"
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
6245 echo "$ac_t""no" 1>&6
6246 STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o'
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
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. */
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. */
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)
6280 if { (eval echo configure:6281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6282 eval "ac_cv_func_strdup=yes"
6284 echo "configure: failed program was:" >&5
6285 cat conftest.$ac_ext >&5
6287 eval "ac_cv_func_strdup=no"
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
6299 echo "$ac_t""no" 1>&6
6300 STRDUP='../../utils/strdup.o'
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
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. */
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. */
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)
6333 if { (eval echo configure:6334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6335 eval "ac_cv_func_strtol=yes"
6337 echo "configure: failed program was:" >&5
6338 cat conftest.$ac_ext >&5
6340 eval "ac_cv_func_strtol=no"
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
6352 echo "$ac_t""no" 1>&6
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
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. */
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. */
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)
6386 if { (eval echo configure:6387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6388 eval "ac_cv_func_strtoul=yes"
6390 echo "configure: failed program was:" >&5
6391 cat conftest.$ac_ext >&5
6393 eval "ac_cv_func_strtoul=no"
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
6405 echo "$ac_t""no" 1>&6
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
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. */
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. */
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)
6439 if { (eval echo configure:6440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6441 eval "ac_cv_func_strcasecmp=yes"
6443 echo "configure: failed program was:" >&5
6444 cat conftest.$ac_ext >&5
6446 eval "ac_cv_func_strcasecmp=no"
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
6458 echo "$ac_t""no" 1>&6
6459 STRCASECMP='strcasecmp.o'
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
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. */
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. */
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)
6492 if { (eval echo configure:6493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6494 eval "ac_cv_func_cbrt=yes"
6496 echo "configure: failed program was:" >&5
6497 cat conftest.$ac_ext >&5
6499 eval "ac_cv_func_cbrt=no"
6504 if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
6505 echo "$ac_t""yes" 1>&6
6506 cat >> confdefs.h <<\EOF
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
6518 ac_save_LIBS="$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. */
6532 if { (eval echo configure:6533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6534 eval "ac_cv_lib_$ac_lib_var=yes"
6536 echo "configure: failed program was:" >&5
6537 cat conftest.$ac_ext >&5
6539 eval "ac_cv_lib_$ac_lib_var=no"
6542 LIBS="$ac_save_LIBS"
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
6552 echo "$ac_t""no" 1>&6
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.
6563 if [ -r /lib/pa1.1/libm.a ] ; then
6564 HPUXMATHLIB="-L /lib/pa1.1 -lm"
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
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. */
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. */
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)
6598 if { (eval echo configure:6599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6600 eval "ac_cv_func_rint=yes"
6602 echo "configure: failed program was:" >&5
6603 cat conftest.$ac_ext >&5
6605 eval "ac_cv_func_rint=no"
6610 if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
6611 echo "$ac_t""yes" 1>&6
6612 cat >> confdefs.h <<\EOF
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
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. */
6638 if { (eval echo configure:6639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6640 eval "ac_cv_lib_$ac_lib_var=yes"
6642 echo "configure: failed program was:" >&5
6643 cat conftest.$ac_ext >&5
6645 eval "ac_cv_lib_$ac_lib_var=no"
6648 LIBS="$ac_save_LIBS"
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
6658 echo "$ac_t""no" 1>&6
6664 cat > conftest.$ac_ext <<EOF
6665 #line 6666 "configure"
6666 #include "confdefs.h"
6667 #include <readline.h>
6669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6670 egrep "rl_completion_append_character" >/dev/null 2>&1; then
6672 cat >> confdefs.h <<\EOF
6673 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
6678 cat > conftest.$ac_ext <<EOF
6679 #line 6680 "configure"
6680 #include "confdefs.h"
6681 #include <readline/readline.h>
6683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6684 egrep "rl_completion_append_character" >/dev/null 2>&1; then
6686 cat >> confdefs.h <<\EOF
6687 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
6698 for ac_func in filename_completion_function
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
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. */
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. */
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)
6729 if { (eval echo configure:6730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6731 eval "ac_cv_func_$ac_func=yes"
6733 echo "configure: failed program was:" >&5
6734 cat conftest.$ac_ext >&5
6736 eval "ac_cv_func_$ac_func=no"
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
6747 cat > conftest.$ac_ext <<EOF
6748 #line 6749 "configure"
6749 #include "confdefs.h"
6750 #include <readline.h>
6752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6753 egrep "filename_completion_function" >/dev/null 2>&1; then
6755 cat >> confdefs.h <<\EOF
6756 #define HAVE_FILENAME_COMPLETION_FUNCTION_DECL 1
6761 cat > conftest.$ac_ext <<EOF
6762 #line 6763 "configure"
6763 #include "confdefs.h"
6764 #include <readline/readline.h>
6766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6767 egrep "filename_completion_function" >/dev/null 2>&1; then
6769 cat >> confdefs.h <<\EOF
6770 #define HAVE_FILENAME_COMPLETION_FUNCTION_DECL 1
6781 echo "$ac_t""no" 1>&6
6788 for ac_func in getopt_long
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
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. */
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. */
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)
6819 if { (eval echo configure:6820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6821 eval "ac_cv_func_$ac_func=yes"
6823 echo "configure: failed program was:" >&5
6824 cat conftest.$ac_ext >&5
6826 eval "ac_cv_func_$ac_func=no"
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
6839 echo "$ac_t""no" 1>&6
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"
6851 int dummy=finite(1.0);
6854 if { (eval echo configure:6855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6856 cat >> confdefs.h <<\EOF
6857 #define HAVE_FINITE 1
6859 echo "$ac_t""yes" 1>&6
6861 echo "configure: failed program was:" >&5
6862 cat conftest.$ac_ext >&5
6864 echo "$ac_t""no" 1>&6
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"
6875 sigjmp_buf x; sigsetjmp(x, 1);
6878 if { (eval echo configure:6879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6880 cat >> confdefs.h <<\EOF
6881 #define HAVE_SIGSETJMP 1
6883 echo "$ac_t""yes" 1>&6
6885 echo "configure: failed program was:" >&5
6886 cat conftest.$ac_ext >&5
6888 echo "$ac_t""no" 1>&6
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
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. */
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. */
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)
6925 if { (eval echo configure:6926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6927 eval "ac_cv_func_syslog=yes"
6929 echo "configure: failed program was:" >&5
6930 cat conftest.$ac_ext >&5
6932 eval "ac_cv_func_syslog=no"
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
6944 echo "$ac_t""no" 1>&6
6945 { echo "configure: error: no syslog interface found" 1>&2; exit 1; }
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
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
6964 cat > conftest.$ac_ext <<EOF
6965 #line 6966 "configure"
6966 #include "confdefs.h"
6967 typedef long int int64;
6970 * These are globals to discourage the compiler from folding all the
6971 * arithmetic tests down to compile-time constants.
6976 int does_int64_work()
6980 if (sizeof(int64) != 8)
6981 return 0; /* definitely not the right size */
6983 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6991 exit(! does_int64_work());
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
6996 pgac_cv_type_long_int_64=yes
6998 echo "configure: failed program was:" >&5
6999 cat conftest.$ac_ext >&5
7001 pgac_cv_type_long_int_64=no
7008 echo "$ac_t""$pgac_cv_type_long_int_64" 1>&6
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
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
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
7029 cat > conftest.$ac_ext <<EOF
7030 #line 7031 "configure"
7031 #include "confdefs.h"
7032 typedef long long int int64;
7035 * These are globals to discourage the compiler from folding all the
7036 * arithmetic tests down to compile-time constants.
7041 int does_int64_work()
7045 if (sizeof(int64) != 8)
7046 return 0; /* definitely not the right size */
7048 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
7056 exit(! does_int64_work());
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
7061 pgac_cv_type_long_long_int_64=yes
7063 echo "configure: failed program was:" >&5
7064 cat conftest.$ac_ext >&5
7066 pgac_cv_type_long_long_int_64=no
7073 echo "$ac_t""$pgac_cv_type_long_long_int_64" 1>&6
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
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"'
7098 cat > conftest.$ac_ext <<EOF
7099 #line 7100 "configure"
7100 #include "confdefs.h"
7102 typedef long long int int64;
7103 #define INT64_FORMAT "%lld"
7108 int does_int64_snprintf_work()
7113 if (sizeof(int64) != 8)
7114 return 0; /* doesn't look like the right size */
7117 snprintf(buf, 100, INT64_FORMAT, c);
7118 if (strcmp(buf, "800000140000005") != 0)
7119 return 0; /* either multiply or snprintf is busted */
7123 exit(! does_int64_snprintf_work());
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
7128 echo "$ac_t""yes" 1>&6
7129 INT64_FORMAT='"%lld"'
7132 echo "configure: failed program was:" >&5
7133 cat conftest.$ac_ext >&5
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"'
7145 cat > conftest.$ac_ext <<EOF
7146 #line 7147 "configure"
7147 #include "confdefs.h"
7149 typedef long long int int64;
7150 #define INT64_FORMAT "%qd"
7155 int does_int64_snprintf_work()
7160 if (sizeof(int64) != 8)
7161 return 0; /* doesn't look like the right size */
7164 snprintf(buf, 100, INT64_FORMAT, c);
7165 if (strcmp(buf, "800000140000005") != 0)
7166 return 0; /* either multiply or snprintf is busted */
7170 exit(! does_int64_snprintf_work());
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
7175 echo "$ac_t""yes" 1>&6
7176 INT64_FORMAT='"%qd"'
7179 echo "configure: failed program was:" >&5
7180 cat conftest.$ac_ext >&5
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"'
7196 # here if we previously decided we needed to use our own snprintf
7197 INT64_FORMAT='"%lld"'
7200 # Here if we are not using 'long long int' at all
7201 INT64_FORMAT='"%ld"'
7204 cat >> confdefs.h <<EOF
7205 #define INT64_FORMAT $INT64_FORMAT
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
7216 if test "$cross_compiling" = yes; then
7217 pgac_cv_alignof_short='sizeof(short)'
7219 cat > conftest.$ac_ext <<EOF
7220 #line 7221 "configure"
7221 #include "confdefs.h"
7223 struct { char filler; short field; } mystruct;
7226 FILE *f=fopen("conftestval", "w");
7228 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
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
7234 pgac_cv_alignof_short=`cat conftestval`
7236 echo "configure: failed program was:" >&5
7237 cat conftest.$ac_ext >&5
7239 pgac_cv_alignof_short='sizeof(short)'
7245 echo "$ac_t""$pgac_cv_alignof_short" 1>&6
7246 cat >> confdefs.h <<EOF
7247 #define ALIGNOF_SHORT $pgac_cv_alignof_short
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
7256 if test "$cross_compiling" = yes; then
7257 pgac_cv_alignof_int='sizeof(int)'
7259 cat > conftest.$ac_ext <<EOF
7260 #line 7261 "configure"
7261 #include "confdefs.h"
7263 struct { char filler; int field; } mystruct;
7266 FILE *f=fopen("conftestval", "w");
7268 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
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
7274 pgac_cv_alignof_int=`cat conftestval`
7276 echo "configure: failed program was:" >&5
7277 cat conftest.$ac_ext >&5
7279 pgac_cv_alignof_int='sizeof(int)'
7285 echo "$ac_t""$pgac_cv_alignof_int" 1>&6
7286 cat >> confdefs.h <<EOF
7287 #define ALIGNOF_INT $pgac_cv_alignof_int
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
7296 if test "$cross_compiling" = yes; then
7297 pgac_cv_alignof_long='sizeof(long)'
7299 cat > conftest.$ac_ext <<EOF
7300 #line 7301 "configure"
7301 #include "confdefs.h"
7303 struct { char filler; long field; } mystruct;
7306 FILE *f=fopen("conftestval", "w");
7308 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
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
7314 pgac_cv_alignof_long=`cat conftestval`
7316 echo "configure: failed program was:" >&5
7317 cat conftest.$ac_ext >&5
7319 pgac_cv_alignof_long='sizeof(long)'
7325 echo "$ac_t""$pgac_cv_alignof_long" 1>&6
7326 cat >> confdefs.h <<EOF
7327 #define ALIGNOF_LONG $pgac_cv_alignof_long
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
7337 if test "$cross_compiling" = yes; then
7338 pgac_cv_alignof_long_long_int='sizeof(long long int)'
7340 cat > conftest.$ac_ext <<EOF
7341 #line 7342 "configure"
7342 #include "confdefs.h"
7344 struct { char filler; long long int field; } mystruct;
7347 FILE *f=fopen("conftestval", "w");
7349 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
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
7355 pgac_cv_alignof_long_long_int=`cat conftestval`
7357 echo "configure: failed program was:" >&5
7358 cat conftest.$ac_ext >&5
7360 pgac_cv_alignof_long_long_int='sizeof(long long int)'
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
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
7378 if test "$cross_compiling" = yes; then
7379 pgac_cv_alignof_double='sizeof(double)'
7381 cat > conftest.$ac_ext <<EOF
7382 #line 7383 "configure"
7383 #include "confdefs.h"
7385 struct { char filler; double field; } mystruct;
7388 FILE *f=fopen("conftestval", "w");
7390 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
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
7396 pgac_cv_alignof_double=`cat conftestval`
7398 echo "configure: failed program was:" >&5
7399 cat conftest.$ac_ext >&5
7401 pgac_cv_alignof_double='sizeof(double)'
7407 echo "$ac_t""$pgac_cv_alignof_double" 1>&6
7408 cat >> confdefs.h <<EOF
7409 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
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
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"
7424 MAX_ALIGNOF="$pgac_cv_alignof_double"
7426 cat >> confdefs.h <<EOF
7427 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
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
7436 cat > conftest.$ac_ext <<EOF
7437 #line 7438 "configure"
7438 #include "confdefs.h"
7442 struct sigaction act, oact;
7443 sigemptyset(&act.sa_mask);
7444 act.sa_flags = SA_RESTART;
7445 sigaction(0, &act, &oact);
7448 if { (eval echo configure:7449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7450 pgac_cv_func_posix_signals=yes
7452 echo "configure: failed program was:" >&5
7453 cat conftest.$ac_ext >&5
7455 pgac_cv_func_posix_signals=no
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
7467 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
7472 if test -z "$TCL_DIRS"
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
7483 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7486 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
7489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
7502 TCLSH="$ac_cv_path_TCLSH"
7503 if test -n "$TCLSH"; then
7504 echo "$ac_t""$TCLSH" 1>&6
7506 echo "$ac_t""no" 1>&6
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
7520 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7523 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
7526 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
7539 TCLSH="$ac_cv_path_TCLSH"
7540 if test -n "$TCLSH"; then
7541 echo "$ac_t""$TCLSH" 1>&6
7543 echo "$ac_t""no" 1>&6
7548 echo "configure: warning: TCL/TK support disabled; tcl shell is not in your path" 1>&2
7554 if test "$USE_TCL" = true
7556 echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
7557 echo "configure:7558: checking for tclConfig.sh" >&5
7560 if test -z "$TCL_DIRS"
7562 library_dirs=`echo 'puts $auto_path' | $TCLSH`
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
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
7576 echo "$ac_t""$TCL_CONFIG_SH" 1>&6
7581 USE_TK=$USE_TCL # If TCL is disabled, disable TK
7583 if test "$USE_TK" = true
7585 echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
7586 echo "configure:7587: checking for tkConfig.sh" >&5
7588 # library_dirs are set in the check for TCL
7589 for dir in $library_dirs
7591 if test -d "$dir" -a -r "$dir/tkConfig.sh"
7593 TK_CONFIG_SH=$dir/tkConfig.sh
7597 if test -z "$TK_CONFIG_SH"
7599 echo "$ac_t""no" 1>&6
7600 echo "configure: warning: TK support disabled; Tk configuration script missing" 1>&2
7603 echo "$ac_t""$TK_CONFIG_SH" 1>&6
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
7614 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
7617 ac_cv_path_WISH="$WISH" # Let the user override the test with a dos path.
7620 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
7633 WISH="$ac_cv_path_WISH"
7634 if test -n "$WISH"; then
7635 echo "$ac_t""$WISH" 1>&6
7637 echo "$ac_t""no" 1>&6
7646 if test "$USE_X" = true; then
7648 ice_save_LIBS="$LIBS"
7649 ice_save_CFLAGS="$CFLAGS"
7650 ice_save_CPPFLAGS="$CPPFLAGS"
7651 ice_save_LDFLAGS="$LDFLAGS"
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
7660 # Check whether --with-x or --without-x was given.
7661 if test "${with_x+set}" = set; then
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.
7671 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7672 # Both variables are already set.
7675 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7676 echo $ac_n "(cached) $ac_c" 1>&6
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
7681 if mkdir conftestdir; then
7683 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7684 cat > Imakefile <<'EOF'
7686 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
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
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
7703 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7705 case "$ac_im_usrlibdir" in
7707 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
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
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>
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
7729 # We can compile using X headers with no special include directory.
7733 echo "configure: failed program was:" >&5
7734 cat conftest.$ac_ext >&5
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.
7740 /usr/X11R6/include \
7741 /usr/X11R5/include \
7742 /usr/X11R4/include \
7745 /usr/include/X11R6 \
7746 /usr/include/X11R5 \
7747 /usr/include/X11R4 \
7749 /usr/local/X11/include \
7750 /usr/local/X11R6/include \
7751 /usr/local/X11R5/include \
7752 /usr/local/X11R4/include \
7754 /usr/local/include/X11 \
7755 /usr/local/include/X11R6 \
7756 /usr/local/include/X11R5 \
7757 /usr/local/include/X11R4 \
7761 /usr/XFree86/include/X11 \
7764 /usr/local/include \
7765 /usr/unsupported/include \
7766 /usr/athena/include \
7767 /usr/local/x11r5/include \
7768 /usr/lpp/Xamples/include \
7770 /usr/openwin/include \
7771 /usr/openwin/share/include \
7774 if test -r "$ac_dir/$x_direct_test_include"; then
7775 ac_x_includes=$ac_dir
7781 fi # $ac_x_includes = NO
7783 if test "$ac_x_libraries" = NO; then
7784 # Check for the libraries.
7786 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7787 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
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"
7798 ${x_direct_test_function}()
7801 if { (eval echo configure:7802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7803 LIBS="$ac_save_LIBS"
7804 # We can link X programs with no special library path.
7807 echo "configure: failed program was:" >&5
7808 cat conftest.$ac_ext >&5
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/` \
7824 /usr/local/X11/lib \
7825 /usr/local/X11R6/lib \
7826 /usr/local/X11R5/lib \
7827 /usr/local/X11R4/lib \
7829 /usr/local/lib/X11 \
7830 /usr/local/lib/X11R6 \
7831 /usr/local/lib/X11R5 \
7832 /usr/local/lib/X11R4 \
7836 /usr/XFree86/lib/X11 \
7840 /usr/unsupported/lib \
7842 /usr/local/x11r5/lib \
7843 /usr/lpp/Xamples/lib \
7847 /usr/openwin/share/lib \
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
7859 fi # $ac_x_libraries = NO
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"
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"
7871 eval "$ac_cv_have_x"
7874 if test "$have_x" != yes; then
7875 echo "$ac_t""$have_x" 1>&6
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
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
7893 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7895 if test -n "$x_includes"; then
7896 X_CFLAGS="$X_CFLAGS -I$x_includes"
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
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"
7917 if { (eval echo configure:7918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7921 echo "configure: failed program was:" >&5
7922 cat conftest.$ac_ext >&5
7927 if test $ac_R_nospace = yes; then
7928 echo "$ac_t""no" 1>&6
7929 X_LIBS="$X_LIBS -R$x_libraries"
7931 LIBS="$ac_xsave_LIBS -R $x_libraries"
7932 cat > conftest.$ac_ext <<EOF
7933 #line 7934 "configure"
7934 #include "confdefs.h"
7940 if { (eval echo configure:7941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7944 echo "configure: failed program was:" >&5
7945 cat conftest.$ac_ext >&5
7950 if test $ac_R_space = yes; then
7951 echo "$ac_t""yes" 1>&6
7952 X_LIBS="$X_LIBS -R $x_libraries"
7954 echo "$ac_t""neither works" 1>&6
7957 LIBS="$ac_xsave_LIBS"
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.
7965 if test "$ISC" = yes; then
7966 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
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
7977 ac_save_LIBS="$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. */
7991 if { (eval echo configure:7992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7993 eval "ac_cv_lib_$ac_lib_var=yes"
7995 echo "configure: failed program was:" >&5
7996 cat conftest.$ac_ext >&5
7998 eval "ac_cv_lib_$ac_lib_var=no"
8001 LIBS="$ac_save_LIBS"
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"
8008 echo "$ac_t""no" 1>&6
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
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. */
8032 if { (eval echo configure:8033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8034 eval "ac_cv_lib_$ac_lib_var=yes"
8036 echo "configure: failed program was:" >&5
8037 cat conftest.$ac_ext >&5
8039 eval "ac_cv_lib_$ac_lib_var=no"
8042 LIBS="$ac_save_LIBS"
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"
8049 echo "$ac_t""no" 1>&6
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)
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
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. */
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();
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)
8089 if { (eval echo configure:8090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8091 eval "ac_cv_func_gethostbyname=yes"
8093 echo "configure: failed program was:" >&5
8094 cat conftest.$ac_ext >&5
8096 eval "ac_cv_func_gethostbyname=no"
8101 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
8102 echo "$ac_t""yes" 1>&6
8105 echo "$ac_t""no" 1>&6
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
8115 ac_save_LIBS="$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();
8129 if { (eval echo configure:8130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8131 eval "ac_cv_lib_$ac_lib_var=yes"
8133 echo "configure: failed program was:" >&5
8134 cat conftest.$ac_ext >&5
8136 eval "ac_cv_lib_$ac_lib_var=no"
8139 LIBS="$ac_save_LIBS"
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"
8146 echo "$ac_t""no" 1>&6
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
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. */
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. */
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)
8187 if { (eval echo configure:8188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8189 eval "ac_cv_func_connect=yes"
8191 echo "configure: failed program was:" >&5
8192 cat conftest.$ac_ext >&5
8194 eval "ac_cv_func_connect=no"
8199 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
8200 echo "$ac_t""yes" 1>&6
8203 echo "$ac_t""no" 1>&6
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
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. */
8227 if { (eval echo configure:8228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8229 eval "ac_cv_lib_$ac_lib_var=yes"
8231 echo "configure: failed program was:" >&5
8232 cat conftest.$ac_ext >&5
8234 eval "ac_cv_lib_$ac_lib_var=no"
8237 LIBS="$ac_save_LIBS"
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"
8244 echo "$ac_t""no" 1>&6
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
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. */
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. */
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)
8279 if { (eval echo configure:8280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8281 eval "ac_cv_func_remove=yes"
8283 echo "configure: failed program was:" >&5
8284 cat conftest.$ac_ext >&5
8286 eval "ac_cv_func_remove=no"
8291 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
8292 echo "$ac_t""yes" 1>&6
8295 echo "$ac_t""no" 1>&6
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
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. */
8319 if { (eval echo configure:8320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8321 eval "ac_cv_lib_$ac_lib_var=yes"
8323 echo "configure: failed program was:" >&5
8324 cat conftest.$ac_ext >&5
8326 eval "ac_cv_lib_$ac_lib_var=no"
8329 LIBS="$ac_save_LIBS"
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"
8336 echo "$ac_t""no" 1>&6
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
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. */
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. */
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)
8371 if { (eval echo configure:8372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8373 eval "ac_cv_func_shmat=yes"
8375 echo "configure: failed program was:" >&5
8376 cat conftest.$ac_ext >&5
8378 eval "ac_cv_func_shmat=no"
8383 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8384 echo "$ac_t""yes" 1>&6
8387 echo "$ac_t""no" 1>&6
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
8397 ac_save_LIBS="$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. */
8411 if { (eval echo configure:8412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8413 eval "ac_cv_lib_$ac_lib_var=yes"
8415 echo "configure: failed program was:" >&5
8416 cat conftest.$ac_ext >&5
8418 eval "ac_cv_lib_$ac_lib_var=no"
8421 LIBS="$ac_save_LIBS"
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"
8428 echo "$ac_t""no" 1>&6
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
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();
8460 IceConnectionNumber()
8463 if { (eval echo configure:8464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8465 eval "ac_cv_lib_$ac_lib_var=yes"
8467 echo "configure: failed program was:" >&5
8468 cat conftest.$ac_ext >&5
8470 eval "ac_cv_lib_$ac_lib_var=no"
8473 LIBS="$ac_save_LIBS"
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"
8480 echo "$ac_t""no" 1>&6
8483 LDFLAGS="$ac_save_LDFLAGS"
8488 LIBS="$LIBS $X_EXTRA_LIBS"
8489 CFLAGS="$CFLAGS $X_CFLAGS"
8490 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8491 LDFLAGS="$LDFLAGS $X_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
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();
8515 if { (eval echo configure:8516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8517 eval "ac_cv_lib_$ac_lib_var=yes"
8519 echo "configure: failed program was:" >&5
8520 cat conftest.$ac_ext >&5
8522 eval "ac_cv_lib_$ac_lib_var=no"
8525 LIBS="$ac_save_LIBS"
8528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8529 echo "$ac_t""yes" 1>&6
8532 echo "$ac_t""no" 1>&6
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
8547 LIBS="$ice_save_LIBS"
8548 CFLAGS="$ice_save_CFLAGS"
8549 CPPFLAGS="$ice_save_CPPFLAGS"
8550 LDFLAGS="$ice_save_LDFLAGS"
8553 #if test "X$USE_ODBC" = "Xtrue"
8555 # AC_CONFIG_SUBDIRS(interfaces/odbc)
8557 if test "$USE_ODBC" = "true"
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
8566 cat > conftest.$ac_ext <<EOF
8567 #line 8568 "configure"
8568 #include "confdefs.h"
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
8576 eval "ac_cv_header_$ac_safe=yes"
8579 echo "configure: failed program was:" >&5
8580 cat conftest.$ac_ext >&5
8582 eval "ac_cv_header_$ac_safe=no"
8586 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8587 echo "$ac_t""yes" 1>&6
8590 echo "$ac_t""no" 1>&6
8593 if test "$PWD_INCDIR" = "no"; then
8594 echo "configure: warning: odbc support disabled; pwd.h missing" 1>&2
8601 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8602 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8604 eval expanded_libdir="$libdir"
8605 eval expanded_libdir="$expanded_libdir"
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.
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.
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.
8632 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8634 # `set' does not quote correctly, so add quotes (double-quote substitution
8635 # turns \\\\ into \\, and sed turns \\ into \).
8637 -e "s/'/'\\\\''/g" \
8638 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
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'
8645 if cmp -s $cache_file confcache; then
8648 if test -w $cache_file; then
8649 echo "updating cache $cache_file"
8650 cat confcache > $cache_file
8652 echo "not updating unwritable cache $cache_file"
8657 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8659 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8660 # Let make expand exec_prefix.
8661 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
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'
8670 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8672 DEFS=-DHAVE_CONFIG_H
8674 # Without the "./", some shells look in PATH for config.status.
8675 : ${CONFIG_STATUS=./config.status}
8677 echo creating $CONFIG_STATUS
8678 rm -f $CONFIG_STATUS
8679 cat > $CONFIG_STATUS <<EOF
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`:
8686 # $0 $ac_configure_args
8688 # Compiler output produced by configure, useful for debugging
8689 # configure, is in ./config.log if it exists.
8691 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
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"
8701 -help | --help | --hel | --he | --h)
8702 echo "\$ac_cs_usage"; exit 0 ;;
8703 *) echo "\$ac_cs_usage"; exit 1 ;;
8707 ac_given_srcdir=$srcdir
8708 ac_given_INSTALL="$INSTALL"
8710 trap 'rm -fr `echo "GNUmakefile
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
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
8741 cat >> $CONFIG_STATUS <<EOF
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
8749 s%@CFLAGS@%$CFLAGS%g
8750 s%@CPPFLAGS@%$CPPFLAGS%g
8751 s%@CXXFLAGS@%$CXXFLAGS%g
8752 s%@FFLAGS@%$FFLAGS%g
8754 s%@LDFLAGS@%$LDFLAGS%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
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
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
8795 s%@SRCDIR@%$SRCDIR%g
8796 s%@PGSQL_INCLUDES@%$PGSQL_INCLUDES%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
8804 s%@USE_ODBC@%$USE_ODBC%g
8805 s%@MULTIBYTE@%$MULTIBYTE%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
8818 s%@AUTOCONF@%$AUTOCONF%g
8819 s%@ACLOCAL@%$ACLOCAL%g
8821 s%@LEXLIB@%$LEXLIB%g
8823 s%@RANLIB@%$RANLIB%g
8832 s%@YFLAGS@%$YFLAGS%g
8833 s%@LIBOBJS@%$LIBOBJS%g
8834 s%@SNPRINTF@%$SNPRINTF%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
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
8865 cat >> $CONFIG_STATUS <<\EOF
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.
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
8879 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8881 if test ! -s conftest.s$ac_file; then
8883 rm -f conftest.s$ac_file
8885 if test -z "$ac_sed_cmds"; then
8886 ac_sed_cmds="sed -f conftest.s$ac_file"
8888 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8890 ac_file=`expr $ac_file + 1`
8892 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8895 if test -z "$ac_sed_cmds"; then
8900 cat >> $CONFIG_STATUS <<EOF
8902 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile
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
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
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".
8937 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8938 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8939 *) ac_file_in="${ac_file}.in" ;;
8942 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
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'`
8953 ac_dir_suffix= ac_dots=
8956 case "$ac_given_srcdir" in
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" ;;
8962 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8963 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8966 case "$ac_given_INSTALL" in
8967 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8968 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8971 echo creating "$ac_file"
8973 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8975 *Makefile*) ac_comsub="1i\\
8976 # $configure_input" ;;
8980 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
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
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.
8993 # ac_d sets the value in "#define NAME VALUE" lines.
8994 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8995 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8998 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8999 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9000 ac_uB='\([ ]\)%\1#\2define\3'
9003 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9004 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9005 ac_eB='$%\1#\2define\3'
9009 if test "${CONFIG_HEADERS+set}" != set; then
9011 cat >> $CONFIG_STATUS <<EOF
9012 CONFIG_HEADERS="src/include/config.h"
9014 cat >> $CONFIG_STATUS <<\EOF
9016 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9017 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.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" ;;
9024 echo creating $ac_file
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
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.
9037 cat > conftest.hdr <<\EOF
9040 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9044 sed -n -f conftest.hdr confdefs.h > conftest.vals
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]*%/* & */%
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.
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
9067 sed -f conftest.frag conftest.in > conftest.out
9069 mv conftest.out conftest.in
9071 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9073 mv conftest.tail conftest.vals
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
9082 if cmp -s $ac_file conftest.h 2>/dev/null; then
9083 echo "$ac_file is unchanged"
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"
9093 mv conftest.h $ac_file
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"
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=$*
9110 echo "linking $srcdir/$ac_source to $ac_dest"
9112 if test ! -r $srcdir/$ac_source; then
9113 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
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'`
9127 ac_dest_dir_suffix= ac_dots=
9131 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9132 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
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 :
9139 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9143 cat >> $CONFIG_STATUS <<EOF
9146 cat >> $CONFIG_STATUS <<\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