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