Annotation of parser3/configure, revision 1.51
1.1 paf 1: #! /bin/sh
2:
3: # Guess values for system-dependent variables and create Makefiles.
4: # Generated automatically using autoconf version 2.13
5: # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6: #
7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
9:
10: # Defaults:
11: ac_help=
12: ac_default_prefix=/usr/local
13: # Any additions from configure.in:
14: ac_help="$ac_help
1.15 paf 15: --disable-link-libstdcpp to disable libstdc++ linkage,
16: if you belive you do not need one"
17: ac_help="$ac_help
1.1 paf 18: --disable-string-origins to switch off string origin tracking"
19: ac_help="$ac_help
1.13 paf 20: --disable-execs to disable any execs
21: (file::exec, file::cgi, unix mail:send)"
22: ac_help="$ac_help
1.16 paf 23: --disable-foreign-group-files to disable read and executing
24: files belonging to group other then effective"
1.14 paf 25: ac_help="$ac_help
1.17 paf 26: --with-charsets=CHARSET[,CHARSET,...] Enables charsets in root config (windows-1251,
27: windows-1250 windows-1257 koi8-r; Default is windows-1251)"
28: ac_help="$ac_help
29: --with-mysql-client=mysqlclientlib?withparams
30: MySQL client dynamic library to root config"
31: ac_help="$ac_help
32: --with-pgsql-client=pgsqlclientlib?withparams
33: PgSQL client dynamic library to root config"
34: ac_help="$ac_help
35: --with-oracle-client=oracleclientlib?withparams
36: Oracle client dynamic library"
37: ac_help="$ac_help
1.7 paf 38: --with-pathlink=LKEY put dynamic libraries paths to binary
1.1 paf 39: using linker key (-R, -rpath-link)"
40: ac_help="$ac_help
1.38 paf 41: --with-sjlj-exceptions enable simple 'throw' from dynamic library"
1.37 paf 42: ac_help="$ac_help
1.7 paf 43: --with-glib-config=FILE FILE is glib library
44: configuration file (search for glib*-config)"
45: ac_help="$ac_help
1.10 paf 46: --with-shared-xml=D D is the directory where
47: Gnome XML libraries are installed (shared libs)"
48: ac_help="$ac_help
49: --with-static-xml=D D is the directory where
50: Gnome XML libraries are installed (static libs)"
1.12 paf 51: ac_help="$ac_help
1.29 paf 52: --with-shared-mailreceive=D is the directory where
53: Gnome MIME library is installed (shared lib)"
54: ac_help="$ac_help
55: --with-static-mailreceive=D is the directory where
56: Gnome MIME library is installed (static lib)"
57: ac_help="$ac_help
1.16 paf 58: \"--with-sendmail=COMMAND\" forces this command to send mail.
59: example: \"--with-sendmail=/usr/sbin/sendmail -t\"
60: (makes parser ignore user-defined sendmail commands)"
61: ac_help="$ac_help
1.12 paf 62: --with-apache13=D D is the Apache13 source distribution directory
63: builds library for apache_module using that dir
64: (do not add /src)"
1.1 paf 65:
66: # Initialize some variables set by options.
67: # The variables have the same names as the options, with
68: # dashes changed to underlines.
69: build=NONE
70: cache_file=./config.cache
71: exec_prefix=NONE
72: host=NONE
73: no_create=
74: nonopt=NONE
75: no_recursion=
76: prefix=NONE
77: program_prefix=NONE
78: program_suffix=NONE
79: program_transform_name=s,x,x,
80: silent=
81: site=
82: srcdir=
83: target=NONE
84: verbose=
85: x_includes=NONE
86: x_libraries=NONE
87: bindir='${exec_prefix}/bin'
88: sbindir='${exec_prefix}/sbin'
89: libexecdir='${exec_prefix}/libexec'
90: datadir='${prefix}/share'
91: sysconfdir='${prefix}/etc'
92: sharedstatedir='${prefix}/com'
93: localstatedir='${prefix}/var'
94: libdir='${exec_prefix}/lib'
95: includedir='${prefix}/include'
96: oldincludedir='/usr/include'
97: infodir='${prefix}/info'
98: mandir='${prefix}/man'
99:
100: # Initialize some other variables.
101: subdirs=
102: MFLAGS= MAKEFLAGS=
103: SHELL=${CONFIG_SHELL-/bin/sh}
104: # Maximum number of lines to put in a shell here document.
105: ac_max_here_lines=12
106:
107: ac_prev=
108: for ac_option
109: do
110:
111: # If the previous option needs an argument, assign it.
112: if test -n "$ac_prev"; then
113: eval "$ac_prev=\$ac_option"
114: ac_prev=
115: continue
116: fi
117:
118: case "$ac_option" in
119: -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
120: *) ac_optarg= ;;
121: esac
122:
123: # Accept the important Cygnus configure options, so we can diagnose typos.
124:
125: case "$ac_option" in
126:
127: -bindir | --bindir | --bindi | --bind | --bin | --bi)
128: ac_prev=bindir ;;
129: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
130: bindir="$ac_optarg" ;;
131:
132: -build | --build | --buil | --bui | --bu)
133: ac_prev=build ;;
134: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
135: build="$ac_optarg" ;;
136:
137: -cache-file | --cache-file | --cache-fil | --cache-fi \
138: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
139: ac_prev=cache_file ;;
140: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
141: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
142: cache_file="$ac_optarg" ;;
143:
144: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
145: ac_prev=datadir ;;
146: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
147: | --da=*)
148: datadir="$ac_optarg" ;;
149:
150: -disable-* | --disable-*)
151: ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
152: # Reject names that are not valid shell variable names.
153: if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
154: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155: fi
156: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
157: eval "enable_${ac_feature}=no" ;;
158:
159: -enable-* | --enable-*)
160: ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
161: # Reject names that are not valid shell variable names.
162: if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
163: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164: fi
165: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
166: case "$ac_option" in
167: *=*) ;;
168: *) ac_optarg=yes ;;
169: esac
170: eval "enable_${ac_feature}='$ac_optarg'" ;;
171:
172: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
173: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
174: | --exec | --exe | --ex)
175: ac_prev=exec_prefix ;;
176: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
177: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
178: | --exec=* | --exe=* | --ex=*)
179: exec_prefix="$ac_optarg" ;;
180:
181: -gas | --gas | --ga | --g)
182: # Obsolete; use --with-gas.
183: with_gas=yes ;;
184:
185: -help | --help | --hel | --he)
186: # Omit some internal or obsolete options to make the list less imposing.
187: # This message is too long to be a string in the A/UX 3.1 sh.
188: cat << EOF
189: Usage: configure [options] [host]
190: Options: [defaults in brackets after descriptions]
191: Configuration:
192: --cache-file=FILE cache test results in FILE
193: --help print this message
194: --no-create do not create output files
195: --quiet, --silent do not print \`checking...' messages
196: --version print the version of autoconf that created configure
197: Directory and file names:
198: --prefix=PREFIX install architecture-independent files in PREFIX
199: [$ac_default_prefix]
200: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
201: [same as prefix]
202: --bindir=DIR user executables in DIR [EPREFIX/bin]
203: --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
204: --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
205: --datadir=DIR read-only architecture-independent data in DIR
206: [PREFIX/share]
207: --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
208: --sharedstatedir=DIR modifiable architecture-independent data in DIR
209: [PREFIX/com]
210: --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
211: --libdir=DIR object code libraries in DIR [EPREFIX/lib]
212: --includedir=DIR C header files in DIR [PREFIX/include]
213: --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
214: --infodir=DIR info documentation in DIR [PREFIX/info]
215: --mandir=DIR man documentation in DIR [PREFIX/man]
216: --srcdir=DIR find the sources in DIR [configure dir or ..]
217: --program-prefix=PREFIX prepend PREFIX to installed program names
218: --program-suffix=SUFFIX append SUFFIX to installed program names
219: --program-transform-name=PROGRAM
220: run sed PROGRAM on installed program names
221: EOF
222: cat << EOF
223: Host type:
224: --build=BUILD configure for building on BUILD [BUILD=HOST]
225: --host=HOST configure for HOST [guessed]
226: --target=TARGET configure for TARGET [TARGET=HOST]
227: Features and packages:
228: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
229: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
230: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
231: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
232: --x-includes=DIR X include files are in DIR
233: --x-libraries=DIR X library files are in DIR
234: EOF
235: if test -n "$ac_help"; then
236: echo "--enable and --with options recognized:$ac_help"
237: fi
238: exit 0 ;;
239:
240: -host | --host | --hos | --ho)
241: ac_prev=host ;;
242: -host=* | --host=* | --hos=* | --ho=*)
243: host="$ac_optarg" ;;
244:
245: -includedir | --includedir | --includedi | --included | --include \
246: | --includ | --inclu | --incl | --inc)
247: ac_prev=includedir ;;
248: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
249: | --includ=* | --inclu=* | --incl=* | --inc=*)
250: includedir="$ac_optarg" ;;
251:
252: -infodir | --infodir | --infodi | --infod | --info | --inf)
253: ac_prev=infodir ;;
254: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
255: infodir="$ac_optarg" ;;
256:
257: -libdir | --libdir | --libdi | --libd)
258: ac_prev=libdir ;;
259: -libdir=* | --libdir=* | --libdi=* | --libd=*)
260: libdir="$ac_optarg" ;;
261:
262: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
263: | --libexe | --libex | --libe)
264: ac_prev=libexecdir ;;
265: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
266: | --libexe=* | --libex=* | --libe=*)
267: libexecdir="$ac_optarg" ;;
268:
269: -localstatedir | --localstatedir | --localstatedi | --localstated \
270: | --localstate | --localstat | --localsta | --localst \
271: | --locals | --local | --loca | --loc | --lo)
272: ac_prev=localstatedir ;;
273: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
274: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
275: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
276: localstatedir="$ac_optarg" ;;
277:
278: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279: ac_prev=mandir ;;
280: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
281: mandir="$ac_optarg" ;;
282:
283: -nfp | --nfp | --nf)
284: # Obsolete; use --without-fp.
285: with_fp=no ;;
286:
287: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
288: | --no-cr | --no-c)
289: no_create=yes ;;
290:
291: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
292: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
293: no_recursion=yes ;;
294:
295: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
296: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
297: | --oldin | --oldi | --old | --ol | --o)
298: ac_prev=oldincludedir ;;
299: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
300: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
301: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
302: oldincludedir="$ac_optarg" ;;
303:
304: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305: ac_prev=prefix ;;
306: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
307: prefix="$ac_optarg" ;;
308:
309: -program-prefix | --program-prefix | --program-prefi | --program-pref \
310: | --program-pre | --program-pr | --program-p)
311: ac_prev=program_prefix ;;
312: -program-prefix=* | --program-prefix=* | --program-prefi=* \
313: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
314: program_prefix="$ac_optarg" ;;
315:
316: -program-suffix | --program-suffix | --program-suffi | --program-suff \
317: | --program-suf | --program-su | --program-s)
318: ac_prev=program_suffix ;;
319: -program-suffix=* | --program-suffix=* | --program-suffi=* \
320: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
321: program_suffix="$ac_optarg" ;;
322:
323: -program-transform-name | --program-transform-name \
324: | --program-transform-nam | --program-transform-na \
325: | --program-transform-n | --program-transform- \
326: | --program-transform | --program-transfor \
327: | --program-transfo | --program-transf \
328: | --program-trans | --program-tran \
329: | --progr-tra | --program-tr | --program-t)
330: ac_prev=program_transform_name ;;
331: -program-transform-name=* | --program-transform-name=* \
332: | --program-transform-nam=* | --program-transform-na=* \
333: | --program-transform-n=* | --program-transform-=* \
334: | --program-transform=* | --program-transfor=* \
335: | --program-transfo=* | --program-transf=* \
336: | --program-trans=* | --program-tran=* \
337: | --progr-tra=* | --program-tr=* | --program-t=*)
338: program_transform_name="$ac_optarg" ;;
339:
340: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
341: | -silent | --silent | --silen | --sile | --sil)
342: silent=yes ;;
343:
344: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345: ac_prev=sbindir ;;
346: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347: | --sbi=* | --sb=*)
348: sbindir="$ac_optarg" ;;
349:
350: -sharedstatedir | --sharedstatedir | --sharedstatedi \
351: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
352: | --sharedst | --shareds | --shared | --share | --shar \
353: | --sha | --sh)
354: ac_prev=sharedstatedir ;;
355: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
356: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
357: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358: | --sha=* | --sh=*)
359: sharedstatedir="$ac_optarg" ;;
360:
361: -site | --site | --sit)
362: ac_prev=site ;;
363: -site=* | --site=* | --sit=*)
364: site="$ac_optarg" ;;
365:
366: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
367: ac_prev=srcdir ;;
368: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
369: srcdir="$ac_optarg" ;;
370:
371: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
372: | --syscon | --sysco | --sysc | --sys | --sy)
373: ac_prev=sysconfdir ;;
374: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
375: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
376: sysconfdir="$ac_optarg" ;;
377:
378: -target | --target | --targe | --targ | --tar | --ta | --t)
379: ac_prev=target ;;
380: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
381: target="$ac_optarg" ;;
382:
383: -v | -verbose | --verbose | --verbos | --verbo | --verb)
384: verbose=yes ;;
385:
386: -version | --version | --versio | --versi | --vers)
387: echo "configure generated by autoconf version 2.13"
388: exit 0 ;;
389:
390: -with-* | --with-*)
391: ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
392: # Reject names that are not valid shell variable names.
393: if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
394: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
395: fi
396: ac_package=`echo $ac_package| sed 's/-/_/g'`
397: case "$ac_option" in
398: *=*) ;;
399: *) ac_optarg=yes ;;
400: esac
401: eval "with_${ac_package}='$ac_optarg'" ;;
402:
403: -without-* | --without-*)
404: ac_package=`echo $ac_option|sed -e 's/-*without-//'`
405: # Reject names that are not valid shell variable names.
406: if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
407: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408: fi
409: ac_package=`echo $ac_package| sed 's/-/_/g'`
410: eval "with_${ac_package}=no" ;;
411:
412: --x)
413: # Obsolete; use --with-x.
414: with_x=yes ;;
415:
416: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
417: | --x-incl | --x-inc | --x-in | --x-i)
418: ac_prev=x_includes ;;
419: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
420: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
421: x_includes="$ac_optarg" ;;
422:
423: -x-libraries | --x-libraries | --x-librarie | --x-librari \
424: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
425: ac_prev=x_libraries ;;
426: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
427: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
428: x_libraries="$ac_optarg" ;;
429:
430: -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
431: ;;
432:
433: *)
434: if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
435: echo "configure: warning: $ac_option: invalid host type" 1>&2
436: fi
437: if test "x$nonopt" != xNONE; then
438: { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
439: fi
440: nonopt="$ac_option"
441: ;;
442:
443: esac
444: done
445:
446: if test -n "$ac_prev"; then
447: { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
448: fi
449:
450: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
451:
452: # File descriptor usage:
453: # 0 standard input
454: # 1 file creation
455: # 2 errors and warnings
456: # 3 some systems may open it to /dev/tty
457: # 4 used on the Kubota Titan
458: # 6 checking for... messages and results
459: # 5 compiler messages saved in config.log
460: if test "$silent" = yes; then
461: exec 6>/dev/null
462: else
463: exec 6>&1
464: fi
465: exec 5>./config.log
466:
467: echo "\
468: This file contains any messages produced by compilers while
469: running configure, to aid debugging if configure makes a mistake.
470: " 1>&5
471:
472: # Strip out --no-create and --no-recursion so they do not pile up.
473: # Also quote any args containing shell metacharacters.
474: ac_configure_args=
475: for ac_arg
476: do
477: case "$ac_arg" in
478: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
479: | --no-cr | --no-c) ;;
480: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
481: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
482: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
483: ac_configure_args="$ac_configure_args '$ac_arg'" ;;
484: *) ac_configure_args="$ac_configure_args $ac_arg" ;;
485: esac
486: done
487:
488: # NLS nuisances.
489: # Only set these to C if already set. These must not be set unconditionally
490: # because not all systems understand e.g. LANG=C (notably SCO).
491: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
492: # Non-C LC_CTYPE values break the ctype check.
493: if test "${LANG+set}" = set; then LANG=C; export LANG; fi
494: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
495: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
496: if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
497:
498: # confdefs.h avoids OS command line length limits that DEFS can exceed.
499: rm -rf conftest* confdefs.h
500: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
501: echo > confdefs.h
502:
503: # A filename unique to this package, relative to the directory that
504: # configure is in, which we can look for to find out if srcdir is correct.
505: ac_unique_file=README
506:
507: # Find the source files, if location was not specified.
508: if test -z "$srcdir"; then
509: ac_srcdir_defaulted=yes
510: # Try the directory containing this script, then its parent.
511: ac_prog=$0
512: ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
513: test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
514: srcdir=$ac_confdir
515: if test ! -r $srcdir/$ac_unique_file; then
516: srcdir=..
517: fi
518: else
519: ac_srcdir_defaulted=no
520: fi
521: if test ! -r $srcdir/$ac_unique_file; then
522: if test "$ac_srcdir_defaulted" = yes; then
523: { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
524: else
525: { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
526: fi
527: fi
528: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
529:
530: # Prefer explicitly selected file to automatically selected ones.
531: if test -z "$CONFIG_SITE"; then
532: if test "x$prefix" != xNONE; then
533: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
534: else
535: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
536: fi
537: fi
538: for ac_site_file in $CONFIG_SITE; do
539: if test -r "$ac_site_file"; then
540: echo "loading site script $ac_site_file"
541: . "$ac_site_file"
542: fi
543: done
544:
545: if test -r "$cache_file"; then
546: echo "loading cache $cache_file"
547: . $cache_file
548: else
549: echo "creating cache $cache_file"
550: > $cache_file
551: fi
552:
553: ac_ext=c
554: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
555: ac_cpp='$CPP $CPPFLAGS'
556: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
557: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
558: cross_compiling=$ac_cv_prog_cc_cross
559:
560: ac_exeext=
561: ac_objext=o
562: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
563: # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
564: if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
565: ac_n= ac_c='
566: ' ac_t=' '
567: else
568: ac_n=-n ac_c= ac_t=
569: fi
570: else
571: ac_n= ac_c='\c' ac_t=
572: fi
573:
574:
575: ac_aux_dir=
576: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
577: if test -f $ac_dir/install-sh; then
578: ac_aux_dir=$ac_dir
579: ac_install_sh="$ac_aux_dir/install-sh -c"
580: break
581: elif test -f $ac_dir/install.sh; then
582: ac_aux_dir=$ac_dir
583: ac_install_sh="$ac_aux_dir/install.sh -c"
584: break
585: fi
586: done
587: if test -z "$ac_aux_dir"; then
588: { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
589: fi
590: ac_config_guess=$ac_aux_dir/config.guess
591: ac_config_sub=$ac_aux_dir/config.sub
592: ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
593:
594: # Find a good install program. We prefer a C program (faster),
595: # so one script is as good as another. But avoid the broken or
596: # incompatible versions:
597: # SysV /etc/install, /usr/sbin/install
598: # SunOS /usr/etc/install
599: # IRIX /sbin/install
600: # AIX /bin/install
601: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
602: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
603: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
604: # ./install, which can be erroneously created by make from ./install.sh.
605: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1.37 paf 606: echo "configure:607: checking for a BSD compatible install" >&5
1.1 paf 607: if test -z "$INSTALL"; then
608: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
609: echo $ac_n "(cached) $ac_c" 1>&6
610: else
611: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
612: for ac_dir in $PATH; do
613: # Account for people who put trailing slashes in PATH elements.
614: case "$ac_dir/" in
615: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
616: *)
617: # OSF1 and SCO ODT 3.0 have their own names for install.
618: # Don't use installbsd from OSF since it installs stuff as root
619: # by default.
620: for ac_prog in ginstall scoinst install; do
621: if test -f $ac_dir/$ac_prog; then
622: if test $ac_prog = install &&
623: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
624: # AIX install. It has an incompatible calling convention.
625: :
626: else
627: ac_cv_path_install="$ac_dir/$ac_prog -c"
628: break 2
629: fi
630: fi
631: done
632: ;;
633: esac
634: done
635: IFS="$ac_save_IFS"
636:
637: fi
638: if test "${ac_cv_path_install+set}" = set; then
639: INSTALL="$ac_cv_path_install"
640: else
641: # As a last resort, use the slow shell script. We don't cache a
642: # path for INSTALL within a source directory, because that will
643: # break other packages using the cache if that directory is
644: # removed, or if the path is relative.
645: INSTALL="$ac_install_sh"
646: fi
647: fi
648: echo "$ac_t""$INSTALL" 1>&6
649:
650: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
651: # It thinks the first close brace ends the variable substitution.
652: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
653:
654: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
655:
656: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
657:
658: echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1.37 paf 659: echo "configure:660: checking whether build environment is sane" >&5
1.1 paf 660: # Just in case
661: sleep 1
662: echo timestamp > conftestfile
663: # Do `set' in a subshell so we don't clobber the current shell's
664: # arguments. Must try -L first in case configure is actually a
665: # symlink; some systems play weird games with the mod time of symlinks
666: # (eg FreeBSD returns the mod time of the symlink's containing
667: # directory).
668: if (
669: set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
670: if test "$*" = "X"; then
671: # -L didn't work.
672: set X `ls -t $srcdir/configure conftestfile`
673: fi
674: if test "$*" != "X $srcdir/configure conftestfile" \
675: && test "$*" != "X conftestfile $srcdir/configure"; then
676:
677: # If neither matched, then we have a broken ls. This can happen
678: # if, for instance, CONFIG_SHELL is bash and it inherits a
679: # broken ls alias from the environment. This has actually
680: # happened. Such a system could not be considered "sane".
681: { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
682: alias in your environment" 1>&2; exit 1; }
683: fi
684:
685: test "$2" = conftestfile
686: )
687: then
688: # Ok.
689: :
690: else
691: { echo "configure: error: newly created file is older than distributed files!
692: Check your system clock" 1>&2; exit 1; }
693: fi
694: rm -f conftest*
695: echo "$ac_t""yes" 1>&6
696: if test "$program_transform_name" = s,x,x,; then
697: program_transform_name=
698: else
699: # Double any \ or $. echo might interpret backslashes.
700: cat <<\EOF_SED > conftestsed
701: s,\\,\\\\,g; s,\$,$$,g
702: EOF_SED
703: program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
704: rm -f conftestsed
705: fi
706: test "$program_prefix" != NONE &&
707: program_transform_name="s,^,${program_prefix},; $program_transform_name"
708: # Use a double $ so make ignores it.
709: test "$program_suffix" != NONE &&
710: program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
711:
712: # sed with no file args requires a program.
713: test "$program_transform_name" = "" && program_transform_name="s,x,x,"
714:
715: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1.37 paf 716: echo "configure:717: checking whether ${MAKE-make} sets \${MAKE}" >&5
1.1 paf 717: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
718: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
719: echo $ac_n "(cached) $ac_c" 1>&6
720: else
721: cat > conftestmake <<\EOF
722: all:
723: @echo 'ac_maketemp="${MAKE}"'
724: EOF
725: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
726: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
727: if test -n "$ac_maketemp"; then
728: eval ac_cv_prog_make_${ac_make}_set=yes
729: else
730: eval ac_cv_prog_make_${ac_make}_set=no
731: fi
732: rm -f conftestmake
733: fi
734: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
735: echo "$ac_t""yes" 1>&6
736: SET_MAKE=
737: else
738: echo "$ac_t""no" 1>&6
739: SET_MAKE="MAKE=${MAKE-make}"
740: fi
741:
742:
743: PACKAGE=parser
744:
1.35 paf 745: VERSION=3.0.HEAD
1.1 paf 746:
747: if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
748: { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
749: fi
750:
751:
752:
753: missing_dir=`cd $ac_aux_dir && pwd`
754: echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1.37 paf 755: echo "configure:756: checking for working aclocal" >&5
1.1 paf 756: # Run test in a subshell; some versions of sh will print an error if
757: # an executable is not found, even if stderr is redirected.
758: # Redirect stdin to placate older versions of autoconf. Sigh.
759: if (aclocal --version) < /dev/null > /dev/null 2>&1; then
760: ACLOCAL=aclocal
761: echo "$ac_t""found" 1>&6
762: else
763: ACLOCAL="$missing_dir/missing aclocal"
764: echo "$ac_t""missing" 1>&6
765: fi
766:
767: echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1.37 paf 768: echo "configure:769: checking for working autoconf" >&5
1.1 paf 769: # Run test in a subshell; some versions of sh will print an error if
770: # an executable is not found, even if stderr is redirected.
771: # Redirect stdin to placate older versions of autoconf. Sigh.
772: if (autoconf --version) < /dev/null > /dev/null 2>&1; then
773: AUTOCONF=autoconf
774: echo "$ac_t""found" 1>&6
775: else
776: AUTOCONF="$missing_dir/missing autoconf"
777: echo "$ac_t""missing" 1>&6
778: fi
779:
780: echo $ac_n "checking for working automake""... $ac_c" 1>&6
1.37 paf 781: echo "configure:782: checking for working automake" >&5
1.1 paf 782: # Run test in a subshell; some versions of sh will print an error if
783: # an executable is not found, even if stderr is redirected.
784: # Redirect stdin to placate older versions of autoconf. Sigh.
785: if (automake --version) < /dev/null > /dev/null 2>&1; then
786: AUTOMAKE=automake
787: echo "$ac_t""found" 1>&6
788: else
789: AUTOMAKE="$missing_dir/missing automake"
790: echo "$ac_t""missing" 1>&6
791: fi
792:
793: echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1.37 paf 794: echo "configure:795: checking for working autoheader" >&5
1.1 paf 795: # Run test in a subshell; some versions of sh will print an error if
796: # an executable is not found, even if stderr is redirected.
797: # Redirect stdin to placate older versions of autoconf. Sigh.
798: if (autoheader --version) < /dev/null > /dev/null 2>&1; then
799: AUTOHEADER=autoheader
800: echo "$ac_t""found" 1>&6
801: else
802: AUTOHEADER="$missing_dir/missing autoheader"
803: echo "$ac_t""missing" 1>&6
804: fi
805:
806: echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1.37 paf 807: echo "configure:808: checking for working makeinfo" >&5
1.1 paf 808: # Run test in a subshell; some versions of sh will print an error if
809: # an executable is not found, even if stderr is redirected.
810: # Redirect stdin to placate older versions of autoconf. Sigh.
811: if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
812: MAKEINFO=makeinfo
813: echo "$ac_t""found" 1>&6
814: else
815: MAKEINFO="$missing_dir/missing makeinfo"
816: echo "$ac_t""missing" 1>&6
817: fi
818:
819:
820:
1.12 paf 821: P3S=`cd $srcdir/src ; pwd`
1.1 paf 822:
823:
824: PARSER_VERSION=$VERSION
1.6 paf 825: echo "/* automatically generated by configure */" > $srcdir/src/include/pa_version.h.new
826: echo "/* edit configure.in to change version number */" >> $srcdir/src/include/pa_version.h.new
827: echo "#define PARSER_VERSION \"$PARSER_VERSION\"" >> $srcdir/src/include/pa_version.h.new
828: cmp $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h >/dev/null 2>&1
1.1 paf 829: if test $? -ne 0 ; then
1.6 paf 830: rm -f $srcdir/src/include/pa_version.h && mv $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h && \
831: echo Updated $srcdir/src/include/pa_version.h
1.1 paf 832: else
1.6 paf 833: rm -f $srcdir/src/include/pa_version.h.new
1.1 paf 834: fi
835:
1.41 paf 836:
837: # Make sure we can run config.sub.
838: if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
839: else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
840: fi
841:
842: echo $ac_n "checking host system type""... $ac_c" 1>&6
843: echo "configure:844: checking host system type" >&5
844:
845: host_alias=$host
846: case "$host_alias" in
847: NONE)
848: case $nonopt in
849: NONE)
850: if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
851: else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
852: fi ;;
853: *) host_alias=$nonopt ;;
854: esac ;;
855: esac
856:
857: host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
858: host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
859: host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
860: host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
861: echo "$ac_t""$host" 1>&6
862:
863:
864:
1.1 paf 865: # Find a good install program. We prefer a C program (faster),
866: # so one script is as good as another. But avoid the broken or
867: # incompatible versions:
868: # SysV /etc/install, /usr/sbin/install
869: # SunOS /usr/etc/install
870: # IRIX /sbin/install
871: # AIX /bin/install
872: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
873: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
874: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
875: # ./install, which can be erroneously created by make from ./install.sh.
876: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1.41 paf 877: echo "configure:878: checking for a BSD compatible install" >&5
1.1 paf 878: if test -z "$INSTALL"; then
879: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
880: echo $ac_n "(cached) $ac_c" 1>&6
881: else
882: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
883: for ac_dir in $PATH; do
884: # Account for people who put trailing slashes in PATH elements.
885: case "$ac_dir/" in
886: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
887: *)
888: # OSF1 and SCO ODT 3.0 have their own names for install.
889: # Don't use installbsd from OSF since it installs stuff as root
890: # by default.
891: for ac_prog in ginstall scoinst install; do
892: if test -f $ac_dir/$ac_prog; then
893: if test $ac_prog = install &&
894: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
895: # AIX install. It has an incompatible calling convention.
896: :
897: else
898: ac_cv_path_install="$ac_dir/$ac_prog -c"
899: break 2
900: fi
901: fi
902: done
903: ;;
904: esac
905: done
906: IFS="$ac_save_IFS"
907:
908: fi
909: if test "${ac_cv_path_install+set}" = set; then
910: INSTALL="$ac_cv_path_install"
911: else
912: # As a last resort, use the slow shell script. We don't cache a
913: # path for INSTALL within a source directory, because that will
914: # break other packages using the cache if that directory is
915: # removed, or if the path is relative.
916: INSTALL="$ac_install_sh"
917: fi
918: fi
919: echo "$ac_t""$INSTALL" 1>&6
920:
921: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
922: # It thinks the first close brace ends the variable substitution.
923: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
924:
925: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
926:
927: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
928:
1.41 paf 929: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
930: echo "configure:931: checking whether ${MAKE-make} sets \${MAKE}" >&5
931: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
932: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
933: echo $ac_n "(cached) $ac_c" 1>&6
934: else
935: cat > conftestmake <<\EOF
936: all:
937: @echo 'ac_maketemp="${MAKE}"'
938: EOF
939: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
940: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
941: if test -n "$ac_maketemp"; then
942: eval ac_cv_prog_make_${ac_make}_set=yes
943: else
944: eval ac_cv_prog_make_${ac_make}_set=no
945: fi
946: rm -f conftestmake
947: fi
948: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
949: echo "$ac_t""yes" 1>&6
950: SET_MAKE=
951: else
952: echo "$ac_t""no" 1>&6
953: SET_MAKE="MAKE=${MAKE-make}"
954: fi
955:
956: # Extract the first word of "ranlib", so it can be a program name with args.
957: set dummy ranlib; ac_word=$2
958: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
959: echo "configure:960: checking for $ac_word" >&5
960: if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
961: echo $ac_n "(cached) $ac_c" 1>&6
962: else
963: if test -n "$RANLIB"; then
964: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
965: else
966: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
967: ac_dummy="$PATH"
968: for ac_dir in $ac_dummy; do
969: test -z "$ac_dir" && ac_dir=.
970: if test -f $ac_dir/$ac_word; then
971: ac_cv_prog_RANLIB="ranlib"
972: break
973: fi
974: done
975: IFS="$ac_save_ifs"
976: test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
977: fi
978: fi
979: RANLIB="$ac_cv_prog_RANLIB"
980: if test -n "$RANLIB"; then
981: echo "$ac_t""$RANLIB" 1>&6
982: else
983: echo "$ac_t""no" 1>&6
984: fi
985:
986: for ac_prog in mawk gawk nawk awk
987: do
988: # Extract the first word of "$ac_prog", so it can be a program name with args.
989: set dummy $ac_prog; ac_word=$2
990: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
991: echo "configure:992: checking for $ac_word" >&5
992: if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
993: echo $ac_n "(cached) $ac_c" 1>&6
994: else
995: if test -n "$AWK"; then
996: ac_cv_prog_AWK="$AWK" # Let the user override the test.
997: else
998: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
999: ac_dummy="$PATH"
1000: for ac_dir in $ac_dummy; do
1001: test -z "$ac_dir" && ac_dir=.
1002: if test -f $ac_dir/$ac_word; then
1003: ac_cv_prog_AWK="$ac_prog"
1004: break
1005: fi
1006: done
1007: IFS="$ac_save_ifs"
1008: fi
1009: fi
1010: AWK="$ac_cv_prog_AWK"
1011: if test -n "$AWK"; then
1012: echo "$ac_t""$AWK" 1>&6
1013: else
1014: echo "$ac_t""no" 1>&6
1015: fi
1016:
1017: test -n "$AWK" && break
1018: done
1019:
1020:
1021: for ac_prog in 'bison -y' byacc
1022: do
1023: # Extract the first word of "$ac_prog", so it can be a program name with args.
1024: set dummy $ac_prog; ac_word=$2
1025: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1026: echo "configure:1027: checking for $ac_word" >&5
1027: if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1028: echo $ac_n "(cached) $ac_c" 1>&6
1029: else
1030: if test -n "$YACC"; then
1031: ac_cv_prog_YACC="$YACC" # Let the user override the test.
1032: else
1033: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1034: ac_dummy="$PATH"
1035: for ac_dir in $ac_dummy; do
1036: test -z "$ac_dir" && ac_dir=.
1037: if test -f $ac_dir/$ac_word; then
1038: ac_cv_prog_YACC="$ac_prog"
1039: break
1040: fi
1041: done
1042: IFS="$ac_save_ifs"
1043: fi
1044: fi
1045: YACC="$ac_cv_prog_YACC"
1046: if test -n "$YACC"; then
1047: echo "$ac_t""$YACC" 1>&6
1048: else
1049: echo "$ac_t""no" 1>&6
1050: fi
1051:
1052: test -n "$YACC" && break
1053: done
1054: test -n "$YACC" || YACC="yacc"
1055:
1056: if test "$YACC" != "bison -y"; then
1057: echo "configure: warning: to regenerate Parser grammar YOU WOULD NEED BISON" 1>&2
1058: else
1059: echo $ac_n "checking bison version""... $ac_c" 1>&6
1060: echo "configure:1061: checking bison version" >&5
1061: oldIFS=$IFS; IFS=.
1062: set `bison -V | sed -e 's/^GNU Bison version //'`
1063: IFS=$oldIFS
1064: if test "$1" = "1" -a "$2" -lt "25"; then
1065: echo "configure: warning: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." 1>&2
1066: fi
1067: echo "$ac_t""$1.$2 (ok)" 1>&6
1068: fi
1069:
1.1 paf 1070: # Extract the first word of "gcc", so it can be a program name with args.
1071: set dummy gcc; ac_word=$2
1072: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.41 paf 1073: echo "configure:1074: checking for $ac_word" >&5
1.1 paf 1074: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1075: echo $ac_n "(cached) $ac_c" 1>&6
1076: else
1077: if test -n "$CC"; then
1078: ac_cv_prog_CC="$CC" # Let the user override the test.
1079: else
1080: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1081: ac_dummy="$PATH"
1082: for ac_dir in $ac_dummy; do
1083: test -z "$ac_dir" && ac_dir=.
1084: if test -f $ac_dir/$ac_word; then
1085: ac_cv_prog_CC="gcc"
1086: break
1087: fi
1088: done
1089: IFS="$ac_save_ifs"
1090: fi
1091: fi
1092: CC="$ac_cv_prog_CC"
1093: if test -n "$CC"; then
1094: echo "$ac_t""$CC" 1>&6
1095: else
1096: echo "$ac_t""no" 1>&6
1097: fi
1098:
1099: if test -z "$CC"; then
1100: # Extract the first word of "cc", so it can be a program name with args.
1101: set dummy cc; ac_word=$2
1102: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.41 paf 1103: echo "configure:1104: checking for $ac_word" >&5
1.1 paf 1104: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1105: echo $ac_n "(cached) $ac_c" 1>&6
1106: else
1107: if test -n "$CC"; then
1108: ac_cv_prog_CC="$CC" # Let the user override the test.
1109: else
1110: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1111: ac_prog_rejected=no
1112: ac_dummy="$PATH"
1113: for ac_dir in $ac_dummy; do
1114: test -z "$ac_dir" && ac_dir=.
1115: if test -f $ac_dir/$ac_word; then
1116: if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1117: ac_prog_rejected=yes
1118: continue
1119: fi
1120: ac_cv_prog_CC="cc"
1121: break
1122: fi
1123: done
1124: IFS="$ac_save_ifs"
1125: if test $ac_prog_rejected = yes; then
1126: # We found a bogon in the path, so make sure we never use it.
1127: set dummy $ac_cv_prog_CC
1128: shift
1129: if test $# -gt 0; then
1130: # We chose a different compiler from the bogus one.
1131: # However, it has the same basename, so the bogon will be chosen
1132: # first if we set CC to just the basename; use the full file name.
1133: shift
1134: set dummy "$ac_dir/$ac_word" "$@"
1135: shift
1136: ac_cv_prog_CC="$@"
1137: fi
1138: fi
1139: fi
1140: fi
1141: CC="$ac_cv_prog_CC"
1142: if test -n "$CC"; then
1143: echo "$ac_t""$CC" 1>&6
1144: else
1145: echo "$ac_t""no" 1>&6
1146: fi
1147:
1148: if test -z "$CC"; then
1149: case "`uname -s`" in
1150: *win32* | *WIN32*)
1151: # Extract the first word of "cl", so it can be a program name with args.
1152: set dummy cl; ac_word=$2
1153: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.41 paf 1154: echo "configure:1155: checking for $ac_word" >&5
1.1 paf 1155: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1156: echo $ac_n "(cached) $ac_c" 1>&6
1157: else
1158: if test -n "$CC"; then
1159: ac_cv_prog_CC="$CC" # Let the user override the test.
1160: else
1161: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1162: ac_dummy="$PATH"
1163: for ac_dir in $ac_dummy; do
1164: test -z "$ac_dir" && ac_dir=.
1165: if test -f $ac_dir/$ac_word; then
1166: ac_cv_prog_CC="cl"
1167: break
1168: fi
1169: done
1170: IFS="$ac_save_ifs"
1171: fi
1172: fi
1173: CC="$ac_cv_prog_CC"
1174: if test -n "$CC"; then
1175: echo "$ac_t""$CC" 1>&6
1176: else
1177: echo "$ac_t""no" 1>&6
1178: fi
1179: ;;
1180: esac
1181: fi
1182: test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1183: fi
1184:
1185: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.41 paf 1186: echo "configure:1187: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1.1 paf 1187:
1188: ac_ext=c
1189: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1190: ac_cpp='$CPP $CPPFLAGS'
1191: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1192: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1193: cross_compiling=$ac_cv_prog_cc_cross
1194:
1195: cat > conftest.$ac_ext << EOF
1196:
1.41 paf 1197: #line 1198 "configure"
1.1 paf 1198: #include "confdefs.h"
1199:
1200: main(){return(0);}
1201: EOF
1.41 paf 1202: if { (eval echo configure:1203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 1203: ac_cv_prog_cc_works=yes
1204: # If we can't run a trivial program, we are probably using a cross compiler.
1205: if (./conftest; exit) 2>/dev/null; then
1206: ac_cv_prog_cc_cross=no
1207: else
1208: ac_cv_prog_cc_cross=yes
1209: fi
1210: else
1211: echo "configure: failed program was:" >&5
1212: cat conftest.$ac_ext >&5
1213: ac_cv_prog_cc_works=no
1214: fi
1215: rm -fr conftest*
1216: ac_ext=c
1217: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1218: ac_cpp='$CPP $CPPFLAGS'
1219: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1220: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1221: cross_compiling=$ac_cv_prog_cc_cross
1222:
1223: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1224: if test $ac_cv_prog_cc_works = no; then
1225: { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1226: fi
1227: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.41 paf 1228: echo "configure:1229: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1 paf 1229: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1230: cross_compiling=$ac_cv_prog_cc_cross
1231:
1232: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1.41 paf 1233: echo "configure:1234: checking whether we are using GNU C" >&5
1.1 paf 1234: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1235: echo $ac_n "(cached) $ac_c" 1>&6
1236: else
1237: cat > conftest.c <<EOF
1238: #ifdef __GNUC__
1239: yes;
1240: #endif
1241: EOF
1.41 paf 1242: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1 paf 1243: ac_cv_prog_gcc=yes
1244: else
1245: ac_cv_prog_gcc=no
1246: fi
1247: fi
1248:
1249: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1250:
1251: if test $ac_cv_prog_gcc = yes; then
1252: GCC=yes
1253: else
1254: GCC=
1255: fi
1256:
1257: ac_test_CFLAGS="${CFLAGS+set}"
1258: ac_save_CFLAGS="$CFLAGS"
1259: CFLAGS=
1260: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1.41 paf 1261: echo "configure:1262: checking whether ${CC-cc} accepts -g" >&5
1.1 paf 1262: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1263: echo $ac_n "(cached) $ac_c" 1>&6
1264: else
1265: echo 'void f(){}' > conftest.c
1266: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1267: ac_cv_prog_cc_g=yes
1268: else
1269: ac_cv_prog_cc_g=no
1270: fi
1271: rm -f conftest*
1272:
1273: fi
1274:
1275: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1276: if test "$ac_test_CFLAGS" = set; then
1277: CFLAGS="$ac_save_CFLAGS"
1278: elif test $ac_cv_prog_cc_g = yes; then
1279: if test "$GCC" = yes; then
1280: CFLAGS="-g -O2"
1281: else
1282: CFLAGS="-g"
1283: fi
1284: else
1285: if test "$GCC" = yes; then
1286: CFLAGS="-O2"
1287: else
1288: CFLAGS=
1289: fi
1290: fi
1291:
1292: ac_ext=c
1293: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1294: ac_cpp='$CPP $CPPFLAGS'
1295: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1296: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1297: cross_compiling=$ac_cv_prog_cc_cross
1298: echo $ac_n "checking for inline""... $ac_c" 1>&6
1.41 paf 1299: echo "configure:1300: checking for inline" >&5
1.1 paf 1300: if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1301: echo $ac_n "(cached) $ac_c" 1>&6
1302: else
1303: ac_cv_c_inline=no
1304: for ac_kw in inline __inline__ __inline; do
1305: cat > conftest.$ac_ext <<EOF
1.41 paf 1306: #line 1307 "configure"
1.1 paf 1307: #include "confdefs.h"
1308:
1309: int main() {
1310: } $ac_kw foo() {
1311: ; return 0; }
1312: EOF
1.41 paf 1313: if { (eval echo configure:1314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 paf 1314: rm -rf conftest*
1315: ac_cv_c_inline=$ac_kw; break
1316: else
1317: echo "configure: failed program was:" >&5
1318: cat conftest.$ac_ext >&5
1319: fi
1320: rm -f conftest*
1321: done
1322:
1323: fi
1324:
1325: echo "$ac_t""$ac_cv_c_inline" 1>&6
1326: case "$ac_cv_c_inline" in
1327: inline | yes) ;;
1328: no) cat >> confdefs.h <<\EOF
1329: #define inline
1330: EOF
1331: ;;
1332: *) cat >> confdefs.h <<EOF
1333: #define inline $ac_cv_c_inline
1334: EOF
1335: ;;
1336: esac
1337:
1338: for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1339: do
1340: # Extract the first word of "$ac_prog", so it can be a program name with args.
1341: set dummy $ac_prog; ac_word=$2
1342: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.41 paf 1343: echo "configure:1344: checking for $ac_word" >&5
1.1 paf 1344: if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1345: echo $ac_n "(cached) $ac_c" 1>&6
1346: else
1347: if test -n "$CXX"; then
1348: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1349: else
1350: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1351: ac_dummy="$PATH"
1352: for ac_dir in $ac_dummy; do
1353: test -z "$ac_dir" && ac_dir=.
1354: if test -f $ac_dir/$ac_word; then
1355: ac_cv_prog_CXX="$ac_prog"
1356: break
1357: fi
1358: done
1359: IFS="$ac_save_ifs"
1360: fi
1361: fi
1362: CXX="$ac_cv_prog_CXX"
1363: if test -n "$CXX"; then
1364: echo "$ac_t""$CXX" 1>&6
1365: else
1366: echo "$ac_t""no" 1>&6
1367: fi
1368:
1369: test -n "$CXX" && break
1370: done
1371: test -n "$CXX" || CXX="gcc"
1372:
1373:
1374: echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.41 paf 1375: echo "configure:1376: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1.1 paf 1376:
1377: ac_ext=C
1378: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1379: ac_cpp='$CXXCPP $CPPFLAGS'
1380: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1381: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1382: cross_compiling=$ac_cv_prog_cxx_cross
1383:
1384: cat > conftest.$ac_ext << EOF
1385:
1.41 paf 1386: #line 1387 "configure"
1.1 paf 1387: #include "confdefs.h"
1388:
1389: int main(){return(0);}
1390: EOF
1.41 paf 1391: if { (eval echo configure:1392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 1392: ac_cv_prog_cxx_works=yes
1393: # If we can't run a trivial program, we are probably using a cross compiler.
1394: if (./conftest; exit) 2>/dev/null; then
1395: ac_cv_prog_cxx_cross=no
1396: else
1397: ac_cv_prog_cxx_cross=yes
1398: fi
1399: else
1400: echo "configure: failed program was:" >&5
1401: cat conftest.$ac_ext >&5
1402: ac_cv_prog_cxx_works=no
1403: fi
1404: rm -fr conftest*
1405: ac_ext=c
1406: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1407: ac_cpp='$CPP $CPPFLAGS'
1408: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1409: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1410: cross_compiling=$ac_cv_prog_cc_cross
1411:
1412: echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1413: if test $ac_cv_prog_cxx_works = no; then
1414: { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1415: fi
1416: echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.41 paf 1417: echo "configure:1418: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1 paf 1418: echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1419: cross_compiling=$ac_cv_prog_cxx_cross
1420:
1421: echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1.41 paf 1422: echo "configure:1423: checking whether we are using GNU C++" >&5
1.1 paf 1423: if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1424: echo $ac_n "(cached) $ac_c" 1>&6
1425: else
1426: cat > conftest.C <<EOF
1427: #ifdef __GNUC__
1428: yes;
1429: #endif
1430: EOF
1.41 paf 1431: if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1 paf 1432: ac_cv_prog_gxx=yes
1433: else
1434: ac_cv_prog_gxx=no
1435: fi
1436: fi
1437:
1438: echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1439:
1440: if test $ac_cv_prog_gxx = yes; then
1441: GXX=yes
1442: else
1443: GXX=
1444: fi
1445:
1446: ac_test_CXXFLAGS="${CXXFLAGS+set}"
1447: ac_save_CXXFLAGS="$CXXFLAGS"
1448: CXXFLAGS=
1449: echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1.41 paf 1450: echo "configure:1451: checking whether ${CXX-g++} accepts -g" >&5
1.1 paf 1451: if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1452: echo $ac_n "(cached) $ac_c" 1>&6
1453: else
1454: echo 'void f(){}' > conftest.cc
1455: if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1456: ac_cv_prog_cxx_g=yes
1457: else
1458: ac_cv_prog_cxx_g=no
1459: fi
1460: rm -f conftest*
1461:
1462: fi
1463:
1464: echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1465: if test "$ac_test_CXXFLAGS" = set; then
1466: CXXFLAGS="$ac_save_CXXFLAGS"
1467: elif test $ac_cv_prog_cxx_g = yes; then
1468: if test "$GXX" = yes; then
1469: CXXFLAGS="-g -O2"
1470: else
1471: CXXFLAGS="-g"
1472: fi
1473: else
1474: if test "$GXX" = yes; then
1475: CXXFLAGS="-O2"
1476: else
1477: CXXFLAGS=
1478: fi
1479: fi
1480:
1481: ac_ext=C
1482: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1483: ac_cpp='$CXXCPP $CPPFLAGS'
1484: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1485: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1486: cross_compiling=$ac_cv_prog_cxx_cross
1487:
1488:
1489:
1.15 paf 1490: # Check whether --enable-link-libstdcpp or --disable-link-libstdcpp was given.
1491: if test "${enable_link_libstdcpp+set}" = set; then
1492: enableval="$enable_link_libstdcpp"
1493:
1494: LINK_LIBSTDCPP_FLAG=$enableval
1495: if test "$enableval" = "no"; then
1496: echo "configure: warning: disabling libstdc++ linkage" 1>&2
1497: fi
1498:
1499:
1500: fi
1501:
1502:
1503:
1504: if test "$LINK_LIBSTDCPP_FLAG" = "no"; then
1505: DO_NOT_LINK_LIBSTDCPP_TRUE=
1506: DO_NOT_LINK_LIBSTDCPP_FALSE='#'
1507: else
1508: DO_NOT_LINK_LIBSTDCPP_TRUE='#'
1509: DO_NOT_LINK_LIBSTDCPP_FALSE=
1510: fi
1511:
1.1 paf 1512: # Check whether --enable-string-origins or --disable-string-origins was given.
1513: if test "${enable_string_origins+set}" = set; then
1514: enableval="$enable_string_origins"
1515:
1516: if test "$enableval" = "no"; then
1.14 paf 1517: echo "configure: warning: disabling string origin tracking" 1>&2
1.1 paf 1518: cat >> confdefs.h <<\EOF
1519: #define NO_STRING_ORIGIN
1520: EOF
1521:
1522: fi
1523:
1524:
1525: fi
1526:
1527:
1.13 paf 1528: # Check whether --enable-execs or --disable-execs was given.
1529: if test "${enable_execs+set}" = set; then
1530: enableval="$enable_execs"
1531:
1532: if test "$enableval" = "no"; then
1.14 paf 1533: echo "configure: warning: disabling file execs" 1>&2
1.13 paf 1534: cat >> confdefs.h <<\EOF
1535: #define NO_PA_EXECS
1536: EOF
1537:
1538: fi
1539:
1540:
1541: fi
1542:
1543:
1.14 paf 1544: # Check whether --enable-foreign-group-files or --disable-foreign-group-files was given.
1545: if test "${enable_foreign_group_files+set}" = set; then
1546: enableval="$enable_foreign_group_files"
1547:
1548: if test "$enableval" = "no"; then
1549: echo "configure: warning: disabling reading of files belonging to group other then effective" 1>&2
1550: cat >> confdefs.h <<\EOF
1551: #define NO_FOREIGN_GROUP_FILES
1552: EOF
1553:
1554: fi
1555:
1556:
1557: fi
1558:
1.18 paf 1559: srccharsetsdir=$srcdir/etc/parser3.charsets
1.17 paf 1560: CHARSETS_REQUESTED="windows-1251"
1561: # Check whether --with-charsets or --without-charsets was given.
1562: if test "${with_charsets+set}" = set; then
1563: withval="$with_charsets"
1564: CHARSETS_REQUESTED=`echo $withval | sed -e 's/,/ /g'`
1565: fi
1566:
1567:
1.18 paf 1568: # Checking whether all requested charsets have corresponding .cfg files
1569: for c in $CHARSETS_REQUESTED; do
1570: if test \! -f $srccharsetsdir/$c.cfg; then
1571: { echo "configure: error: bad charset requested "$c" - file $srccharsetsdir/$c.cfg not found" 1>&2; exit 1; }
1572: fi
1573: done
1.17 paf 1574:
1.18 paf 1575: # Switching on commentcharset_XXX='#'
1.17 paf 1576:
1577:
1578: commentcharset_windows1251='#'
1.18 paf 1579: for c in $CHARSETS_REQUESTED; do
1.17 paf 1580: if test "windows-1251" = "$c"; then
1.18 paf 1581: echo "configure: warning: Enabling charset windows-1251" 1>&2
1582: commentcharset_windows1251=
1.17 paf 1583: fi
1584: done
1585:
1586:
1587:
1588: commentcharset_windows1250='#'
1.18 paf 1589: for c in $CHARSETS_REQUESTED; do
1.17 paf 1590: if test "windows-1250" = "$c"; then
1.18 paf 1591: echo "configure: warning: Enabling charset windows-1250" 1>&2
1592: commentcharset_windows1250=
1.17 paf 1593: fi
1594: done
1595:
1596:
1597:
1598: commentcharset_windows1257='#'
1.18 paf 1599: for c in $CHARSETS_REQUESTED; do
1.17 paf 1600: if test "windows-1257" = "$c"; then
1.18 paf 1601: echo "configure: warning: Enabling charset windows-1257" 1>&2
1602: commentcharset_windows1257=
1.17 paf 1603: fi
1604: done
1605:
1606:
1607:
1608: commentcharset_koi8r='#'
1.18 paf 1609: for c in $CHARSETS_REQUESTED; do
1.17 paf 1610: if test "koi8-r" = "$c"; then
1.18 paf 1611: echo "configure: warning: Enabling charset koi8-r" 1>&2
1612: commentcharset_koi8r=
1.17 paf 1613: fi
1614: done
1615:
1616:
1617:
1618:
1.40 paf 1619: echo $ac_n "checking for dynamic-link library extension""... $ac_c" 1>&6
1.41 paf 1620: echo "configure:1621: checking for dynamic-link library extension" >&5
1.40 paf 1621: case "$host_os" in
1622: hpux9* | hpux10* | hpux11*)
1623: dll_extension=sl
1624: ;;
1625: cygwin)
1626: dll_extension=dll
1627: ;;
1628: *)
1629: dll_extension=so
1630: esac
1631: echo "$ac_t""$dll_extension" 1>&6
1632:
1633:
1.17 paf 1634: # Check whether --with-mysql-client or --without-mysql-client was given.
1635: if test "${with_mysql_client+set}" = set; then
1636: withval="$with_mysql_client"
1637: mysql_client=$withval
1638:
1639: else
1640: echo $ac_n "checking for mysql client""... $ac_c" 1>&6
1.41 paf 1641: echo "configure:1642: checking for mysql client" >&5
1.17 paf 1642: for lib in \
1.40 paf 1643: /usr/local/lib/mysql/libmysqlclient.$dll_extension \
1644: /usr/local/lib/libmysqlclient.$dll_extension \
1645: /usr/lib/libmysqlclient.$dll_extension; do
1.17 paf 1646: if test -f $lib; then mysql_client=$lib; fi
1647: done
1648:
1649: if test -z "$mysql_client"; then
1650: mysql_client="-configure could not guess-"
1651: echo "configure: warning: could not guess mysql client" 1>&2
1652: else
1653: echo "$ac_t""$mysql_client" 1>&6
1654: fi
1655:
1656:
1657: fi
1658:
1659:
1660:
1661: # Check whether --with-pgsql-client or --without-pgsql-client was given.
1662: if test "${with_pgsql_client+set}" = set; then
1663: withval="$with_pgsql_client"
1664: mysql_client=$withval
1665:
1666: else
1667: echo $ac_n "checking for pgsql client""... $ac_c" 1>&6
1.41 paf 1668: echo "configure:1669: checking for pgsql client" >&5
1.17 paf 1669: for lib in \
1.40 paf 1670: /usr/local/pgsql/lib/libpq.$dll_extension \
1671: /usr/local/lib/libpq.$dll_extension \
1672: /usr/lib/libpq.$dll_extension; do
1.17 paf 1673: if test -f $lib; then pgsql_client=$lib; fi
1674: done
1675:
1676: if test -z "$pgsql_client"; then
1677: pgsql_client="-configure could not guess-"
1678: echo "configure: warning: could not guess pgsql client" 1>&2
1679: else
1680: echo "$ac_t""$pgsql_client" 1>&6
1681: fi
1682:
1683:
1684: fi
1685:
1686:
1687:
1688: # Check whether --with-oracle-client or --without-oracle-client was given.
1689: if test "${with_oracle_client+set}" = set; then
1690: withval="$with_oracle_client"
1691: oracle_client=$withval
1692:
1693: else
1694: echo $ac_n "checking for oracle client""... $ac_c" 1>&6
1.41 paf 1695: echo "configure:1696: checking for oracle client" >&5
1.40 paf 1696: lib=$ORACLE_HOME/lib/libclntsh.$dll_extension
1.17 paf 1697: if test -f $lib; then oracle_client=$lib; fi
1698:
1699: if test -z "$oracle_client"; then
1700: oracle_client="-configure could not guess-"
1701: echo "configure: warning: could not guess oracle client" 1>&2
1702: else
1703: oracle_client="$oracle_client?ORACLE_HOME=$ORACLE_HOME&ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data"
1704: echo "$ac_t""$oracle_client" 1>&6
1705: fi
1706:
1707:
1708: fi
1709:
1710:
1711:
1712:
1.14 paf 1713:
1.1 paf 1714: # Check whether --with-pathlink or --without-pathlink was given.
1715: if test "${with_pathlink+set}" = set; then
1716: withval="$with_pathlink"
1717: LD_PATHLINK=$withval
1718:
1719: fi
1720:
1.37 paf 1721: # Check whether --with-sjlj-exceptions or --without-sjlj-exceptions was given.
1722: if test "${with_sjlj_exceptions+set}" = set; then
1723: withval="$with_sjlj_exceptions"
1724: cat >> confdefs.h <<\EOF
1725: #define PA_WITH_SJLJ_EXCEPTIONS
1726: EOF
1727:
1728:
1729: fi
1730:
1.1 paf 1731:
1.15 paf 1732:
1.7 paf 1733: # Check whether --with-glib-config or --without-glib-config was given.
1734: if test "${with_glib_config+set}" = set; then
1735: withval="$with_glib_config"
1736: GLIB_CONFIG=$withval
1737:
1738: fi
1739:
1740:
1.10 paf 1741: # Check whether --with-shared-xml or --without-shared-xml was given.
1742: if test "${with_shared_xml+set}" = set; then
1743: withval="$with_shared_xml"
1.1 paf 1744:
1745: GNOME_XML=$withval
1.11 paf 1746: XMLBIN="$GNOME_XML/bin"
1747: XMLINC="$GNOME_XML/include"
1748: XMLLIB="$GNOME_XML/lib"
1.1 paf 1749:
1.11 paf 1750: if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
1.1 paf 1751: { echo "configure: error: $GNOME_XML does not seem to be valid Gnome installation directory" 1>&2; exit 1; }
1752: fi
1753:
1754: cat >> confdefs.h <<\EOF
1755: #define XML
1756: EOF
1757:
1758:
1.11 paf 1759: LIBXML2_SO_NAME=`cd $XMLLIB ; ls libxml2.?? libxml2.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1760: LIBGDOME_SO_NAME=`cd $XMLLIB ; ls libgdome.?? libgdome.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1761: LIBXSLT_SO_NAME=`cd $XMLLIB ; ls libxslt.?? libxslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1762: LIBEXSLT_SO_NAME=`cd $XMLLIB ; ls libexslt.?? libexslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1.7 paf 1763:
1764: if test -z "$GLIB_CONFIG"; then
1.11 paf 1765: GLIB_CONFIG=$XMLBIN/glib-config
1.7 paf 1766: if test \! -x $GLIB_CONFIG; then
1767: GLIB_CONFIG=glib-config
1768: fi
1.1 paf 1769: fi
1770: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
1771: GLIB_LIBS=`$GLIB_CONFIG --libs`
1772:
1.11 paf 1773: XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libgdome -I$XMLINC/libxml2"
1774: XML_LIBS="$GLIB_LIBS -L$XMLLIB -l$LIBXML2_SO_NAME -l$LIBGDOME_SO_NAME -l$LIBXSLT_SO_NAME -l$LIBEXSLT_SO_NAME"
1.1 paf 1775: if test \! -z "$LD_PATHLINK"; then
1.11 paf 1776: XML_LIBS="$XML_LIBS -Wl,$LD_PATHLINK -Wl,$XMLLIB"
1.1 paf 1777: fi
1778:
1779: fi
1780:
1.10 paf 1781: # Check whether --with-static-xml or --without-static-xml was given.
1782: if test "${with_static_xml+set}" = set; then
1783: withval="$with_static_xml"
1784:
1785: GNOME_XML=$withval
1.11 paf 1786: XMLBIN="$GNOME_XML/bin"
1787: XMLINC="$GNOME_XML/include"
1788: XMLLIB="$GNOME_XML/lib"
1.10 paf 1789:
1.11 paf 1790: if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
1.10 paf 1791: { echo "configure: error: $GNOME_XML does not seem to be valid Gnome installation directory" 1>&2; exit 1; }
1792: fi
1793:
1794: cat >> confdefs.h <<\EOF
1795: #define XML
1796: EOF
1797:
1798:
1799: if test -z "$GLIB_CONFIG"; then
1.11 paf 1800: GLIB_CONFIG=$XMLBIN/glib-config
1.10 paf 1801: if test \! -x $GLIB_CONFIG; then
1802: GLIB_CONFIG=glib-config
1803: fi
1804: fi
1805: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
1806:
1.11 paf 1807: GLIB_DIR=`$GLIB_CONFIG --libs | sed 's/.*-L\([^ ]*\).*/\1/'`
1808: GLIB_NAME=`$GLIB_CONFIG --libs | sed 's/.*-l\([^ ]*\).*/\1/'`
1809: XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libgdome -I$XMLINC/libxml2"
1810: XML_LIBS="$XMLLIB/libgdome.a $XMLLIB/libxslt.a $XMLLIB/libexslt.a $XMLLIB/libxml2.a $GLIB_DIR/lib$GLIB_NAME.a"
1.10 paf 1811:
1812: fi
1813:
1814:
1.1 paf 1815:
1816:
1.29 paf 1817: # Check whether --with-shared-mailreceive or --without-shared-mailreceive was given.
1818: if test "${with_shared_mailreceive+set}" = set; then
1819: withval="$with_shared_mailreceive"
1820:
1821: GNOME_MIME=$withval
1822: MIMEBIN="$GNOME_MIME/bin"
1823: MIMEINC="$GNOME_MIME/include"
1824: MIMELIB="$GNOME_MIME/lib"
1825:
1826: if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then
1827: { echo "configure: error: $GNOME_MIME does not seem to be valid Gnome installation directory" 1>&2; exit 1; }
1828: fi
1829:
1830: cat >> confdefs.h <<\EOF
1831: #define WITH_MAILRECEIVE
1832: EOF
1833:
1834:
1835: LIBMIME_SO_NAME=`cd $MIMELIB ; ls libgmime.?? libgmime.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1836:
1837: if test -z "$GLIB_CONFIG"; then
1838: GLIB_CONFIG=$MIMEBIN/glib-config
1839: if test \! -x $GLIB_CONFIG; then
1840: GLIB_CONFIG=glib-config
1841: fi
1842: fi
1843: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
1844: GLIB_LIBS=`$GLIB_CONFIG --libs`
1845:
1846: MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime"
1847: MIME_LIBS="$GLIB_LIBS -L$MIMELIB -l$LIBMIME_SO_NAME"
1848: if test \! -z "$LD_PATHLINK"; then
1849: MIME_LIBS="$MIME_LIBS -Wl,$LD_PATHLINK -Wl,$MIMELIB"
1850: fi
1851:
1852: fi
1853:
1854: # Check whether --with-static-mailreceive or --without-static-mailreceive was given.
1855: if test "${with_static_mailreceive+set}" = set; then
1856: withval="$with_static_mailreceive"
1857:
1858: GNOME_MIME=$withval
1859: MIMEBIN="$GNOME_MIME/bin"
1860: MIMEINC="$GNOME_MIME/include"
1861: MIMELIB="$GNOME_MIME/lib"
1862:
1863: if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then
1864: { echo "configure: error: $GNOME_MIME does not seem to be valid Gnome installation directory" 1>&2; exit 1; }
1865: fi
1866:
1867: cat >> confdefs.h <<\EOF
1868: #define WITH_MAILRECEIVE
1869: EOF
1870:
1871:
1872: if test -z "$GLIB_CONFIG"; then
1873: GLIB_CONFIG=$MIMEBIN/glib-config
1874: if test \! -x $GLIB_CONFIG; then
1875: GLIB_CONFIG=glib-config
1876: fi
1877: fi
1878: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
1879:
1880: GLIB_DIR=`$GLIB_CONFIG --libs | sed 's/.*-L\([^ ]*\).*/\1/'`
1881: GLIB_NAME=`$GLIB_CONFIG --libs | sed 's/.*-l\([^ ]*\).*/\1/'`
1882: MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime"
1883: MIME_LIBS="$MIMELIB/libgmime.a $GLIB_DIR/lib$GLIB_NAME.a"
1884:
1885: fi
1886:
1887:
1888:
1889:
1.16 paf 1890:
1891: # Check whether --with-sendmail or --without-sendmail was given.
1892: if test "${with_sendmail+set}" = set; then
1893: withval="$with_sendmail"
1894: cat >> confdefs.h <<EOF
1895: #define PA_FORCED_SENDMAIL "$withval"
1896: EOF
1897:
1898:
1899: fi
1900:
1901:
1902:
1.12 paf 1903: # Check whether --with-apache13 or --without-apache13 was given.
1904: if test "${with_apache13+set}" = set; then
1905: withval="$with_apache13"
1906: APACHE13=$withval
1907: if test \! -f "$APACHE13/src/include/httpd.h"; then
1908: { echo "configure: error: $APACHE13 does not seem to be valid Apache13 source distribution directory" 1>&2; exit 1; }
1909: fi
1910:
1911: fi
1912:
1913:
1914:
1915:
1916: if test -n "$APACHE13"; then
1917: COMPILE_APACHE13_MODULE_TRUE=
1918: COMPILE_APACHE13_MODULE_FALSE='#'
1919: else
1920: COMPILE_APACHE13_MODULE_TRUE='#'
1921: COMPILE_APACHE13_MODULE_FALSE=
1922: fi
1923:
1924:
1.28 paf 1925: LIBLTDL='${top_builddir}/'src/lib/libltdl/libltdlc.a
1926: INCLTDL='-I${top_srcdir}/'src/lib/libltdl
1.1 paf 1927:
1928:
1929:
1930:
1.28 paf 1931: subdirs="src/lib/libltdl"
1.8 paf 1932:
1933: LIBADD_DL=
1934: echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1.41 paf 1935: echo "configure:1936: checking for dlopen in -ldl" >&5
1.8 paf 1936: ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1937: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1938: echo $ac_n "(cached) $ac_c" 1>&6
1.1 paf 1939: else
1.8 paf 1940: ac_save_LIBS="$LIBS"
1941: LIBS="-ldl $LIBS"
1942: cat > conftest.$ac_ext <<EOF
1.41 paf 1943: #line 1944 "configure"
1.8 paf 1944: #include "confdefs.h"
1945: /* Override any gcc2 internal prototype to avoid an error. */
1946: #ifdef __cplusplus
1947: extern "C"
1948: #endif
1949: /* We use char because int might match the return type of a gcc2
1950: builtin and then its argument prototype would still apply. */
1951: char dlopen();
1.1 paf 1952:
1.8 paf 1953: int main() {
1954: dlopen()
1955: ; return 0; }
1956: EOF
1.41 paf 1957: if { (eval echo configure:1958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 1958: rm -rf conftest*
1959: eval "ac_cv_lib_$ac_lib_var=yes"
1.1 paf 1960: else
1.8 paf 1961: echo "configure: failed program was:" >&5
1962: cat conftest.$ac_ext >&5
1963: rm -rf conftest*
1964: eval "ac_cv_lib_$ac_lib_var=no"
1.1 paf 1965: fi
1.8 paf 1966: rm -f conftest*
1967: LIBS="$ac_save_LIBS"
1.1 paf 1968:
1.8 paf 1969: fi
1970: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1971: echo "$ac_t""yes" 1>&6
1972: cat >> confdefs.h <<\EOF
1973: #define HAVE_LIBDL 1
1974: EOF
1975: LIBADD_DL="-ldl"
1976: else
1977: echo "$ac_t""no" 1>&6
1978: echo $ac_n "checking for dlopen""... $ac_c" 1>&6
1.41 paf 1979: echo "configure:1980: checking for dlopen" >&5
1.8 paf 1980: if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
1981: echo $ac_n "(cached) $ac_c" 1>&6
1.1 paf 1982: else
1.8 paf 1983: cat > conftest.$ac_ext <<EOF
1.41 paf 1984: #line 1985 "configure"
1.8 paf 1985: #include "confdefs.h"
1986: /* System header to define __stub macros and hopefully few prototypes,
1987: which can conflict with char dlopen(); below. */
1988: #include <assert.h>
1989: /* Override any gcc2 internal prototype to avoid an error. */
1990: #ifdef __cplusplus
1991: extern "C"
1992: #endif
1993: /* We use char because int might match the return type of a gcc2
1994: builtin and then its argument prototype would still apply. */
1995: char dlopen();
1.1 paf 1996:
1.8 paf 1997: int main() {
1.1 paf 1998:
1.8 paf 1999: /* The GNU C library defines this for functions which it implements
2000: to always fail with ENOSYS. Some functions are actually named
2001: something starting with __ and the normal name is an alias. */
2002: #if defined (__stub_dlopen) || defined (__stub___dlopen)
2003: choke me
2004: #else
2005: dlopen();
2006: #endif
1.1 paf 2007:
1.8 paf 2008: ; return 0; }
2009: EOF
1.41 paf 2010: if { (eval echo configure:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 2011: rm -rf conftest*
2012: eval "ac_cv_func_dlopen=yes"
1.1 paf 2013: else
1.8 paf 2014: echo "configure: failed program was:" >&5
2015: cat conftest.$ac_ext >&5
2016: rm -rf conftest*
2017: eval "ac_cv_func_dlopen=no"
1.1 paf 2018: fi
1.8 paf 2019: rm -f conftest*
1.1 paf 2020: fi
2021:
1.8 paf 2022: if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
2023: echo "$ac_t""yes" 1>&6
2024: cat >> confdefs.h <<\EOF
2025: #define HAVE_LIBDL 1
2026: EOF
2027:
1.1 paf 2028: else
2029: echo "$ac_t""no" 1>&6
2030: fi
1.8 paf 2031:
2032: fi
2033:
2034: echo $ac_n "checking for shl_load""... $ac_c" 1>&6
1.41 paf 2035: echo "configure:2036: checking for shl_load" >&5
1.8 paf 2036: if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
1.1 paf 2037: echo $ac_n "(cached) $ac_c" 1>&6
2038: else
1.8 paf 2039: cat > conftest.$ac_ext <<EOF
1.41 paf 2040: #line 2041 "configure"
1.8 paf 2041: #include "confdefs.h"
2042: /* System header to define __stub macros and hopefully few prototypes,
2043: which can conflict with char shl_load(); below. */
2044: #include <assert.h>
2045: /* Override any gcc2 internal prototype to avoid an error. */
2046: #ifdef __cplusplus
2047: extern "C"
2048: #endif
2049: /* We use char because int might match the return type of a gcc2
2050: builtin and then its argument prototype would still apply. */
2051: char shl_load();
1.1 paf 2052:
1.8 paf 2053: int main() {
1.1 paf 2054:
1.8 paf 2055: /* The GNU C library defines this for functions which it implements
2056: to always fail with ENOSYS. Some functions are actually named
2057: something starting with __ and the normal name is an alias. */
2058: #if defined (__stub_shl_load) || defined (__stub___shl_load)
2059: choke me
2060: #else
2061: shl_load();
2062: #endif
1.1 paf 2063:
1.8 paf 2064: ; return 0; }
2065: EOF
1.41 paf 2066: if { (eval echo configure:2067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 2067: rm -rf conftest*
2068: eval "ac_cv_func_shl_load=yes"
1.1 paf 2069: else
1.8 paf 2070: echo "configure: failed program was:" >&5
2071: cat conftest.$ac_ext >&5
2072: rm -rf conftest*
2073: eval "ac_cv_func_shl_load=no"
1.1 paf 2074: fi
1.8 paf 2075: rm -f conftest*
1.1 paf 2076: fi
2077:
1.8 paf 2078: if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
2079: echo "$ac_t""yes" 1>&6
2080: cat >> confdefs.h <<\EOF
2081: #define HAVE_SHL_LOAD 1
2082: EOF
1.1 paf 2083:
1.8 paf 2084: else
2085: echo "$ac_t""no" 1>&6
2086: echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
1.41 paf 2087: echo "configure:2088: checking for shl_load in -ldld" >&5
1.8 paf 2088: ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
2089: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1.1 paf 2090: echo $ac_n "(cached) $ac_c" 1>&6
2091: else
1.8 paf 2092: ac_save_LIBS="$LIBS"
2093: LIBS="-ldld $LIBS"
2094: cat > conftest.$ac_ext <<EOF
1.41 paf 2095: #line 2096 "configure"
1.8 paf 2096: #include "confdefs.h"
2097: /* Override any gcc2 internal prototype to avoid an error. */
2098: #ifdef __cplusplus
2099: extern "C"
2100: #endif
2101: /* We use char because int might match the return type of a gcc2
2102: builtin and then its argument prototype would still apply. */
2103: char shl_load();
2104:
2105: int main() {
2106: shl_load()
2107: ; return 0; }
2108: EOF
1.41 paf 2109: if { (eval echo configure:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 2110: rm -rf conftest*
2111: eval "ac_cv_lib_$ac_lib_var=yes"
1.1 paf 2112: else
1.8 paf 2113: echo "configure: failed program was:" >&5
2114: cat conftest.$ac_ext >&5
2115: rm -rf conftest*
2116: eval "ac_cv_lib_$ac_lib_var=no"
1.1 paf 2117: fi
1.8 paf 2118: rm -f conftest*
2119: LIBS="$ac_save_LIBS"
2120:
1.1 paf 2121: fi
1.8 paf 2122: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1.1 paf 2123: echo "$ac_t""yes" 1>&6
1.8 paf 2124: cat >> confdefs.h <<\EOF
2125: #define HAVE_SHL_LOAD 1
2126: EOF
2127: LIBADD_DL="$LIBADD_DL -ldld"
1.1 paf 2128: else
2129: echo "$ac_t""no" 1>&6
2130: fi
2131:
1.8 paf 2132: fi
1.1 paf 2133:
1.8 paf 2134: echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
1.41 paf 2135: echo "configure:2136: checking for dld_link in -ldld" >&5
1.8 paf 2136: ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
2137: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2138: echo $ac_n "(cached) $ac_c" 1>&6
2139: else
2140: ac_save_LIBS="$LIBS"
2141: LIBS="-ldld $LIBS"
2142: cat > conftest.$ac_ext <<EOF
1.41 paf 2143: #line 2144 "configure"
1.8 paf 2144: #include "confdefs.h"
2145: /* Override any gcc2 internal prototype to avoid an error. */
2146: #ifdef __cplusplus
2147: extern "C"
2148: #endif
2149: /* We use char because int might match the return type of a gcc2
2150: builtin and then its argument prototype would still apply. */
2151: char dld_link();
1.1 paf 2152:
1.8 paf 2153: int main() {
2154: dld_link()
2155: ; return 0; }
2156: EOF
1.41 paf 2157: if { (eval echo configure:2158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 2158: rm -rf conftest*
2159: eval "ac_cv_lib_$ac_lib_var=yes"
2160: else
2161: echo "configure: failed program was:" >&5
2162: cat conftest.$ac_ext >&5
2163: rm -rf conftest*
2164: eval "ac_cv_lib_$ac_lib_var=no"
2165: fi
2166: rm -f conftest*
2167: LIBS="$ac_save_LIBS"
1.1 paf 2168:
1.8 paf 2169: fi
2170: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2171: echo "$ac_t""yes" 1>&6
2172: cat >> confdefs.h <<\EOF
2173: #define HAVE_DLD 1
2174: EOF
2175: test "x$ac_cv_lib_dld_shl_load" = yes || LIBADD_DL="$LIBADD_DL -ldld"
2176: else
2177: echo "$ac_t""no" 1>&6
1.1 paf 2178: fi
2179:
2180:
2181:
1.8 paf 2182: if test "x$ac_cv_func_dlopen" = xyes || test "x$ac_cv_lib_dl_dlopen" = xyes; then
2183: LIBS_SAVE="$LIBS"
2184: LIBS="$LIBS $LIBADD_DL"
2185: for ac_func in dlerror
2186: do
2187: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.41 paf 2188: echo "configure:2189: checking for $ac_func" >&5
1.8 paf 2189: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1.1 paf 2190: echo $ac_n "(cached) $ac_c" 1>&6
2191: else
2192: cat > conftest.$ac_ext <<EOF
1.41 paf 2193: #line 2194 "configure"
1.1 paf 2194: #include "confdefs.h"
1.8 paf 2195: /* System header to define __stub macros and hopefully few prototypes,
2196: which can conflict with char $ac_func(); below. */
2197: #include <assert.h>
2198: /* Override any gcc2 internal prototype to avoid an error. */
2199: #ifdef __cplusplus
2200: extern "C"
2201: #endif
2202: /* We use char because int might match the return type of a gcc2
2203: builtin and then its argument prototype would still apply. */
2204: char $ac_func();
1.1 paf 2205:
2206: int main() {
2207:
1.8 paf 2208: /* The GNU C library defines this for functions which it implements
2209: to always fail with ENOSYS. Some functions are actually named
2210: something starting with __ and the normal name is an alias. */
2211: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2212: choke me
2213: #else
2214: $ac_func();
2215: #endif
2216:
1.1 paf 2217: ; return 0; }
2218: EOF
1.41 paf 2219: if { (eval echo configure:2220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2220: rm -rf conftest*
1.8 paf 2221: eval "ac_cv_func_$ac_func=yes"
1.1 paf 2222: else
2223: echo "configure: failed program was:" >&5
2224: cat conftest.$ac_ext >&5
2225: rm -rf conftest*
1.8 paf 2226: eval "ac_cv_func_$ac_func=no"
1.1 paf 2227: fi
2228: rm -f conftest*
2229: fi
2230:
1.8 paf 2231: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2232: echo "$ac_t""yes" 1>&6
2233: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2234: cat >> confdefs.h <<EOF
2235: #define $ac_tr_func 1
1.1 paf 2236: EOF
1.8 paf 2237:
1.1 paf 2238: else
1.8 paf 2239: echo "$ac_t""no" 1>&6
1.1 paf 2240: fi
1.8 paf 2241: done
1.1 paf 2242:
1.8 paf 2243: LIBS="$LIBS_SAVE"
1.1 paf 2244: fi
2245:
2246:
2247: echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1.41 paf 2248: echo "configure:2249: checking how to run the C++ preprocessor" >&5
1.1 paf 2249: if test -z "$CXXCPP"; then
2250: if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2251: echo $ac_n "(cached) $ac_c" 1>&6
2252: else
2253: ac_ext=C
2254: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2255: ac_cpp='$CXXCPP $CPPFLAGS'
2256: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2257: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2258: cross_compiling=$ac_cv_prog_cxx_cross
2259: CXXCPP="${CXX-g++} -E"
2260: cat > conftest.$ac_ext <<EOF
1.41 paf 2261: #line 2262 "configure"
1.1 paf 2262: #include "confdefs.h"
2263: #include <stdlib.h>
2264: EOF
2265: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.41 paf 2266: { (eval echo configure:2267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 paf 2267: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2268: if test -z "$ac_err"; then
2269: :
2270: else
2271: echo "$ac_err" >&5
2272: echo "configure: failed program was:" >&5
2273: cat conftest.$ac_ext >&5
2274: rm -rf conftest*
2275: CXXCPP=/lib/cpp
2276: fi
2277: rm -f conftest*
2278: ac_cv_prog_CXXCPP="$CXXCPP"
2279: ac_ext=C
2280: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2281: ac_cpp='$CXXCPP $CPPFLAGS'
2282: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2283: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2284: cross_compiling=$ac_cv_prog_cxx_cross
2285: fi
2286: fi
2287: CXXCPP="$ac_cv_prog_CXXCPP"
2288: echo "$ac_t""$CXXCPP" 1>&6
2289:
2290: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1.41 paf 2291: echo "configure:2292: checking for ANSI C header files" >&5
1.1 paf 2292: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2293: echo $ac_n "(cached) $ac_c" 1>&6
2294: else
2295: cat > conftest.$ac_ext <<EOF
1.41 paf 2296: #line 2297 "configure"
1.1 paf 2297: #include "confdefs.h"
2298: #include <stdlib.h>
2299: #include <stdarg.h>
2300: #include <string.h>
2301: #include <float.h>
2302: EOF
2303: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.41 paf 2304: { (eval echo configure:2305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 paf 2305: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2306: if test -z "$ac_err"; then
2307: rm -rf conftest*
2308: ac_cv_header_stdc=yes
2309: else
2310: echo "$ac_err" >&5
2311: echo "configure: failed program was:" >&5
2312: cat conftest.$ac_ext >&5
2313: rm -rf conftest*
2314: ac_cv_header_stdc=no
2315: fi
2316: rm -f conftest*
2317:
2318: if test $ac_cv_header_stdc = yes; then
2319: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2320: cat > conftest.$ac_ext <<EOF
1.41 paf 2321: #line 2322 "configure"
1.1 paf 2322: #include "confdefs.h"
2323: #include <string.h>
2324: EOF
2325: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2326: egrep "memchr" >/dev/null 2>&1; then
2327: :
2328: else
2329: rm -rf conftest*
2330: ac_cv_header_stdc=no
2331: fi
2332: rm -f conftest*
2333:
2334: fi
2335:
2336: if test $ac_cv_header_stdc = yes; then
2337: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2338: cat > conftest.$ac_ext <<EOF
1.41 paf 2339: #line 2340 "configure"
1.1 paf 2340: #include "confdefs.h"
2341: #include <stdlib.h>
2342: EOF
2343: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2344: egrep "free" >/dev/null 2>&1; then
2345: :
2346: else
2347: rm -rf conftest*
2348: ac_cv_header_stdc=no
2349: fi
2350: rm -f conftest*
2351:
2352: fi
2353:
2354: if test $ac_cv_header_stdc = yes; then
2355: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2356: if test "$cross_compiling" = yes; then
2357: :
2358: else
2359: cat > conftest.$ac_ext <<EOF
1.41 paf 2360: #line 2361 "configure"
1.1 paf 2361: #include "confdefs.h"
2362: #ifdef __cplusplus
2363: extern "C" void exit(int);
2364: #endif
2365: #include <ctype.h>
2366: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2367: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2368: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2369: int main () { int i; for (i = 0; i < 256; i++)
2370: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2371: exit (0); }
2372:
2373: EOF
1.41 paf 2374: if { (eval echo configure:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1 paf 2375: then
2376: :
2377: else
2378: echo "configure: failed program was:" >&5
2379: cat conftest.$ac_ext >&5
2380: rm -fr conftest*
2381: ac_cv_header_stdc=no
2382: fi
2383: rm -fr conftest*
2384: fi
2385:
2386: fi
2387: fi
2388:
2389: echo "$ac_t""$ac_cv_header_stdc" 1>&6
2390: if test $ac_cv_header_stdc = yes; then
2391: cat >> confdefs.h <<\EOF
2392: #define STDC_HEADERS 1
2393: EOF
2394:
2395: fi
2396:
2397: echo $ac_n "checking for size_t""... $ac_c" 1>&6
1.41 paf 2398: echo "configure:2399: checking for size_t" >&5
1.1 paf 2399: if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2400: echo $ac_n "(cached) $ac_c" 1>&6
2401: else
2402: cat > conftest.$ac_ext <<EOF
1.41 paf 2403: #line 2404 "configure"
1.1 paf 2404: #include "confdefs.h"
2405: #include <sys/types.h>
2406: #if STDC_HEADERS
2407: #include <stdlib.h>
2408: #include <stddef.h>
2409: #endif
2410: EOF
2411: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2412: egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2413: rm -rf conftest*
2414: ac_cv_type_size_t=yes
2415: else
2416: rm -rf conftest*
2417: ac_cv_type_size_t=no
2418: fi
2419: rm -f conftest*
2420:
2421: fi
2422: echo "$ac_t""$ac_cv_type_size_t" 1>&6
2423: if test $ac_cv_type_size_t = no; then
2424: cat >> confdefs.h <<\EOF
2425: #define size_t unsigned
2426: EOF
2427:
2428: fi
2429:
1.30 paf 2430: echo $ac_n "checking for off_t""... $ac_c" 1>&6
1.41 paf 2431: echo "configure:2432: checking for off_t" >&5
1.30 paf 2432: if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2433: echo $ac_n "(cached) $ac_c" 1>&6
2434: else
2435: cat > conftest.$ac_ext <<EOF
1.41 paf 2436: #line 2437 "configure"
1.30 paf 2437: #include "confdefs.h"
2438: #include <sys/types.h>
2439: #if STDC_HEADERS
2440: #include <stdlib.h>
2441: #include <stddef.h>
2442: #endif
2443: EOF
2444: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2445: egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2446: rm -rf conftest*
2447: ac_cv_type_off_t=yes
2448: else
2449: rm -rf conftest*
2450: ac_cv_type_off_t=no
2451: fi
2452: rm -f conftest*
2453:
2454: fi
2455: echo "$ac_t""$ac_cv_type_off_t" 1>&6
2456: if test $ac_cv_type_off_t = no; then
2457: cat >> confdefs.h <<\EOF
2458: #define off_t long
2459: EOF
2460:
2461: fi
2462:
2463: echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
1.41 paf 2464: echo "configure:2465: checking for ssize_t" >&5
1.30 paf 2465: if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2466: echo $ac_n "(cached) $ac_c" 1>&6
2467: else
2468: cat > conftest.$ac_ext <<EOF
1.41 paf 2469: #line 2470 "configure"
1.30 paf 2470: #include "confdefs.h"
2471: #include <sys/types.h>
2472: #if STDC_HEADERS
2473: #include <stdlib.h>
2474: #include <stddef.h>
2475: #endif
2476: EOF
2477: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2478: egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2479: rm -rf conftest*
2480: ac_cv_type_ssize_t=yes
2481: else
2482: rm -rf conftest*
2483: ac_cv_type_ssize_t=no
2484: fi
2485: rm -f conftest*
2486:
2487: fi
2488: echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2489: if test $ac_cv_type_ssize_t = no; then
2490: cat >> confdefs.h <<\EOF
2491: #define ssize_t int
2492: EOF
2493:
2494: fi
2495:
2496:
1.1 paf 2497:
2498:
1.8 paf 2499: echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1.41 paf 2500: echo "configure:2501: checking whether time.h and sys/time.h may both be included" >&5
1.8 paf 2501: if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2502: echo $ac_n "(cached) $ac_c" 1>&6
2503: else
2504: cat > conftest.$ac_ext <<EOF
1.41 paf 2505: #line 2506 "configure"
1.8 paf 2506: #include "confdefs.h"
2507: #include <sys/types.h>
2508: #include <sys/time.h>
2509: #include <time.h>
2510: int main() {
2511: struct tm *tp;
2512: ; return 0; }
2513: EOF
1.41 paf 2514: if { (eval echo configure:2515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.8 paf 2515: rm -rf conftest*
2516: ac_cv_header_time=yes
2517: else
2518: echo "configure: failed program was:" >&5
2519: cat conftest.$ac_ext >&5
2520: rm -rf conftest*
2521: ac_cv_header_time=no
2522: fi
2523: rm -f conftest*
2524: fi
2525:
2526: echo "$ac_t""$ac_cv_header_time" 1>&6
2527: if test $ac_cv_header_time = yes; then
2528: cat >> confdefs.h <<\EOF
2529: #define TIME_WITH_SYS_TIME 1
2530: EOF
2531:
2532: fi
2533:
2534:
1.51 ! paf 2535: for ac_hdr in signal.h \
! 2536: unistd.h \
1.1 paf 2537: process.h \
2538: stddef.h \
2539: stdarg.h \
2540: fcntl.h \
2541: sys/stat.h \
2542: io.h \
2543: stdio.h \
2544: errno.h \
2545: ctype.h \
2546: math.h \
1.31 paf 2547: crypt.h \
1.3 paf 2548: time.h sys/time.h \
1.1 paf 2549: stdlib.h \
2550: string.h \
2551: direct.h \
2552: setjmp.h \
2553: memory.h \
2554: new \
2555: sys/file.h \
2556: sys/locking.h \
1.3 paf 2557: sys/types.h \
2558: sys/select.h \
1.39 paf 2559: sys/resource.h \
2560: winsock.h
1.1 paf 2561:
2562: do
2563: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2564: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.51 ! paf 2565: echo "configure:2566: checking for $ac_hdr" >&5
1.1 paf 2566: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2567: echo $ac_n "(cached) $ac_c" 1>&6
2568: else
2569: cat > conftest.$ac_ext <<EOF
1.51 ! paf 2570: #line 2571 "configure"
1.1 paf 2571: #include "confdefs.h"
2572: #include <$ac_hdr>
2573: EOF
2574: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.51 ! paf 2575: { (eval echo configure:2576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 paf 2576: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2577: if test -z "$ac_err"; then
2578: rm -rf conftest*
2579: eval "ac_cv_header_$ac_safe=yes"
2580: else
2581: echo "$ac_err" >&5
2582: echo "configure: failed program was:" >&5
2583: cat conftest.$ac_ext >&5
2584: rm -rf conftest*
2585: eval "ac_cv_header_$ac_safe=no"
2586: fi
2587: rm -f conftest*
2588: fi
2589: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2590: echo "$ac_t""yes" 1>&6
2591: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2592: cat >> confdefs.h <<EOF
2593: #define $ac_tr_hdr 1
2594: EOF
2595:
2596: else
2597: echo "$ac_t""no" 1>&6
2598: fi
2599: done
2600:
2601:
2602:
2603: case "$host" in
2604: *-sunos5.6* | *-solaris2.6*)
2605: echo $ac_n "checking for main in -lxnet""... $ac_c" 1>&6
1.51 ! paf 2606: echo "configure:2607: checking for main in -lxnet" >&5
1.1 paf 2607: ac_lib_var=`echo xnet'_'main | sed 'y%./+-%__p_%'`
2608: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2609: echo $ac_n "(cached) $ac_c" 1>&6
2610: else
2611: ac_save_LIBS="$LIBS"
2612: LIBS="-lxnet $LIBS"
2613: cat > conftest.$ac_ext <<EOF
1.51 ! paf 2614: #line 2615 "configure"
1.1 paf 2615: #include "confdefs.h"
2616:
2617: int main() {
2618: main()
2619: ; return 0; }
2620: EOF
1.51 ! paf 2621: if { (eval echo configure:2622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2622: rm -rf conftest*
2623: eval "ac_cv_lib_$ac_lib_var=yes"
2624: else
2625: echo "configure: failed program was:" >&5
2626: cat conftest.$ac_ext >&5
2627: rm -rf conftest*
2628: eval "ac_cv_lib_$ac_lib_var=no"
2629: fi
2630: rm -f conftest*
2631: LIBS="$ac_save_LIBS"
2632:
2633: fi
2634: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2635: echo "$ac_t""yes" 1>&6
2636: ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2637: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2638: cat >> confdefs.h <<EOF
2639: #define $ac_tr_lib 1
2640: EOF
2641:
2642: LIBS="-lxnet $LIBS"
2643:
2644: else
2645: echo "$ac_t""no" 1>&6
2646: fi
2647:
2648: ;;
2649: *-sunos5* | *-solaris2*)
2650: echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1.51 ! paf 2651: echo "configure:2652: checking for main in -lsocket" >&5
1.1 paf 2652: ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2653: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2654: echo $ac_n "(cached) $ac_c" 1>&6
2655: else
2656: ac_save_LIBS="$LIBS"
2657: LIBS="-lsocket $LIBS"
2658: cat > conftest.$ac_ext <<EOF
1.51 ! paf 2659: #line 2660 "configure"
1.1 paf 2660: #include "confdefs.h"
2661:
2662: int main() {
2663: main()
2664: ; return 0; }
2665: EOF
1.51 ! paf 2666: if { (eval echo configure:2667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2667: rm -rf conftest*
2668: eval "ac_cv_lib_$ac_lib_var=yes"
2669: else
2670: echo "configure: failed program was:" >&5
2671: cat conftest.$ac_ext >&5
2672: rm -rf conftest*
2673: eval "ac_cv_lib_$ac_lib_var=no"
2674: fi
2675: rm -f conftest*
2676: LIBS="$ac_save_LIBS"
2677:
2678: fi
2679: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2680: echo "$ac_t""yes" 1>&6
2681: ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2682: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2683: cat >> confdefs.h <<EOF
2684: #define $ac_tr_lib 1
2685: EOF
2686:
2687: LIBS="-lsocket $LIBS"
2688:
2689: else
2690: echo "$ac_t""no" 1>&6
2691: fi
2692:
2693: echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1.51 ! paf 2694: echo "configure:2695: checking for main in -lnsl" >&5
1.1 paf 2695: ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2696: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2697: echo $ac_n "(cached) $ac_c" 1>&6
2698: else
2699: ac_save_LIBS="$LIBS"
2700: LIBS="-lnsl $LIBS"
2701: cat > conftest.$ac_ext <<EOF
1.51 ! paf 2702: #line 2703 "configure"
1.1 paf 2703: #include "confdefs.h"
2704:
2705: int main() {
2706: main()
2707: ; return 0; }
2708: EOF
1.51 ! paf 2709: if { (eval echo configure:2710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2710: rm -rf conftest*
2711: eval "ac_cv_lib_$ac_lib_var=yes"
2712: else
2713: echo "configure: failed program was:" >&5
2714: cat conftest.$ac_ext >&5
2715: rm -rf conftest*
2716: eval "ac_cv_lib_$ac_lib_var=no"
2717: fi
2718: rm -f conftest*
2719: LIBS="$ac_save_LIBS"
2720:
2721: fi
2722: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2723: echo "$ac_t""yes" 1>&6
2724: ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2725: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2726: cat >> confdefs.h <<EOF
2727: #define $ac_tr_lib 1
2728: EOF
2729:
2730: LIBS="-lnsl $LIBS"
2731:
2732: else
2733: echo "$ac_t""no" 1>&6
2734: fi
2735:
2736: ;;
2737: *-nec-sysv4*)
2738: echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1.51 ! paf 2739: echo "configure:2740: checking for gethostbyname in -lnsl" >&5
1.1 paf 2740: ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2741: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2742: echo $ac_n "(cached) $ac_c" 1>&6
2743: else
2744: ac_save_LIBS="$LIBS"
2745: LIBS="-lnsl $LIBS"
2746: cat > conftest.$ac_ext <<EOF
1.51 ! paf 2747: #line 2748 "configure"
1.1 paf 2748: #include "confdefs.h"
2749: /* Override any gcc2 internal prototype to avoid an error. */
2750: #ifdef __cplusplus
2751: extern "C"
2752: #endif
2753: /* We use char because int might match the return type of a gcc2
2754: builtin and then its argument prototype would still apply. */
2755: char gethostbyname();
2756:
2757: int main() {
2758: gethostbyname()
2759: ; return 0; }
2760: EOF
1.51 ! paf 2761: if { (eval echo configure:2762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2762: rm -rf conftest*
2763: eval "ac_cv_lib_$ac_lib_var=yes"
2764: else
2765: echo "configure: failed program was:" >&5
2766: cat conftest.$ac_ext >&5
2767: rm -rf conftest*
2768: eval "ac_cv_lib_$ac_lib_var=no"
2769: fi
2770: rm -f conftest*
2771: LIBS="$ac_save_LIBS"
2772:
2773: fi
2774: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2775: echo "$ac_t""yes" 1>&6
2776: ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2777: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2778: cat >> confdefs.h <<EOF
2779: #define $ac_tr_lib 1
2780: EOF
2781:
2782: LIBS="-lnsl $LIBS"
2783:
2784: else
2785: echo "$ac_t""no" 1>&6
2786: fi
2787:
2788: echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1.51 ! paf 2789: echo "configure:2790: checking for socket in -lsocket" >&5
1.1 paf 2790: ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2791: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2792: echo $ac_n "(cached) $ac_c" 1>&6
2793: else
2794: ac_save_LIBS="$LIBS"
2795: LIBS="-lsocket $LIBS"
2796: cat > conftest.$ac_ext <<EOF
1.51 ! paf 2797: #line 2798 "configure"
1.1 paf 2798: #include "confdefs.h"
2799: /* Override any gcc2 internal prototype to avoid an error. */
2800: #ifdef __cplusplus
2801: extern "C"
2802: #endif
2803: /* We use char because int might match the return type of a gcc2
2804: builtin and then its argument prototype would still apply. */
2805: char socket();
2806:
2807: int main() {
2808: socket()
2809: ; return 0; }
2810: EOF
1.51 ! paf 2811: if { (eval echo configure:2812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2812: rm -rf conftest*
2813: eval "ac_cv_lib_$ac_lib_var=yes"
2814: else
2815: echo "configure: failed program was:" >&5
2816: cat conftest.$ac_ext >&5
2817: rm -rf conftest*
2818: eval "ac_cv_lib_$ac_lib_var=no"
2819: fi
2820: rm -f conftest*
2821: LIBS="$ac_save_LIBS"
2822:
2823: fi
2824: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2825: echo "$ac_t""yes" 1>&6
2826: ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2827: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2828: cat >> confdefs.h <<EOF
2829: #define $ac_tr_lib 1
2830: EOF
2831:
2832: LIBS="-lsocket $LIBS"
2833:
2834: else
2835: echo "$ac_t""no" 1>&6
2836: fi
2837:
2838: ;;
2839: *-cygwin*)
2840: cat >> confdefs.h <<\EOF
2841: #define WIN32
2842: EOF
2843:
2844: echo $ac_n "checking for socket in -lwsock32""... $ac_c" 1>&6
1.51 ! paf 2845: echo "configure:2846: checking for socket in -lwsock32" >&5
1.1 paf 2846: ac_lib_var=`echo wsock32'_'socket | sed 'y%./+-%__p_%'`
2847: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2848: echo $ac_n "(cached) $ac_c" 1>&6
2849: else
2850: ac_save_LIBS="$LIBS"
2851: LIBS="-lwsock32 $LIBS"
2852: cat > conftest.$ac_ext <<EOF
1.51 ! paf 2853: #line 2854 "configure"
1.1 paf 2854: #include "confdefs.h"
2855: /* Override any gcc2 internal prototype to avoid an error. */
2856: #ifdef __cplusplus
2857: extern "C"
2858: #endif
2859: /* We use char because int might match the return type of a gcc2
2860: builtin and then its argument prototype would still apply. */
2861: char socket();
2862:
2863: int main() {
2864: socket()
2865: ; return 0; }
2866: EOF
1.51 ! paf 2867: if { (eval echo configure:2868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2868: rm -rf conftest*
2869: eval "ac_cv_lib_$ac_lib_var=yes"
2870: else
2871: echo "configure: failed program was:" >&5
2872: cat conftest.$ac_ext >&5
2873: rm -rf conftest*
2874: eval "ac_cv_lib_$ac_lib_var=no"
2875: fi
2876: rm -f conftest*
2877: LIBS="$ac_save_LIBS"
2878:
2879: fi
2880: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2881: echo "$ac_t""yes" 1>&6
2882: ac_tr_lib=HAVE_LIB`echo wsock32 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2883: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2884: cat >> confdefs.h <<EOF
2885: #define $ac_tr_lib 1
2886: EOF
2887:
2888: LIBS="-lwsock32 $LIBS"
2889:
2890: else
2891: echo "$ac_t""no" 1>&6
2892: fi
2893:
2894: ;;
1.22 paf 2895: # never tested this, only theoretically by letter from demos about parser2 build
1.23 paf 2896: *-hpux*)
1.22 paf 2897: echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1.51 ! paf 2898: echo "configure:2899: checking for main in -lnsl" >&5
1.22 paf 2899: ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2900: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2901: echo $ac_n "(cached) $ac_c" 1>&6
2902: else
2903: ac_save_LIBS="$LIBS"
2904: LIBS="-lnsl $LIBS"
2905: cat > conftest.$ac_ext <<EOF
1.51 ! paf 2906: #line 2907 "configure"
1.22 paf 2907: #include "confdefs.h"
2908:
2909: int main() {
2910: main()
2911: ; return 0; }
2912: EOF
1.51 ! paf 2913: if { (eval echo configure:2914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.22 paf 2914: rm -rf conftest*
2915: eval "ac_cv_lib_$ac_lib_var=yes"
2916: else
2917: echo "configure: failed program was:" >&5
2918: cat conftest.$ac_ext >&5
2919: rm -rf conftest*
2920: eval "ac_cv_lib_$ac_lib_var=no"
2921: fi
2922: rm -f conftest*
2923: LIBS="$ac_save_LIBS"
2924:
2925: fi
2926: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2927: echo "$ac_t""yes" 1>&6
2928: ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2929: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2930: cat >> confdefs.h <<EOF
2931: #define $ac_tr_lib 1
2932: EOF
2933:
2934: LIBS="-lnsl $LIBS"
2935:
2936: else
2937: echo "$ac_t""no" 1>&6
2938: fi
2939:
2940: ;;
1.1 paf 2941: esac
2942:
2943: echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1.51 ! paf 2944: echo "configure:2945: checking for sin in -lm" >&5
1.1 paf 2945: ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
2946: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2947: echo $ac_n "(cached) $ac_c" 1>&6
2948: else
2949: ac_save_LIBS="$LIBS"
2950: LIBS="-lm $LIBS"
2951: cat > conftest.$ac_ext <<EOF
1.51 ! paf 2952: #line 2953 "configure"
1.1 paf 2953: #include "confdefs.h"
2954: /* Override any gcc2 internal prototype to avoid an error. */
2955: #ifdef __cplusplus
2956: extern "C"
2957: #endif
2958: /* We use char because int might match the return type of a gcc2
2959: builtin and then its argument prototype would still apply. */
2960: char sin();
2961:
2962: int main() {
2963: sin()
2964: ; return 0; }
2965: EOF
1.51 ! paf 2966: if { (eval echo configure:2967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2967: rm -rf conftest*
2968: eval "ac_cv_lib_$ac_lib_var=yes"
2969: else
2970: echo "configure: failed program was:" >&5
2971: cat conftest.$ac_ext >&5
2972: rm -rf conftest*
2973: eval "ac_cv_lib_$ac_lib_var=no"
2974: fi
2975: rm -f conftest*
2976: LIBS="$ac_save_LIBS"
2977:
2978: fi
2979: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2980: echo "$ac_t""yes" 1>&6
2981: ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2982: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2983: cat >> confdefs.h <<EOF
2984: #define $ac_tr_lib 1
2985: EOF
2986:
2987: LIBS="-lm $LIBS"
2988:
2989: else
2990: echo "$ac_t""no" 1>&6
2991: fi
2992:
2993:
1.31 paf 2994: echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
1.51 ! paf 2995: echo "configure:2996: checking for crypt in -lcrypt" >&5
1.31 paf 2996: ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
2997: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2998: echo $ac_n "(cached) $ac_c" 1>&6
2999: else
3000: ac_save_LIBS="$LIBS"
3001: LIBS="-lcrypt $LIBS"
3002: cat > conftest.$ac_ext <<EOF
1.51 ! paf 3003: #line 3004 "configure"
1.31 paf 3004: #include "confdefs.h"
3005: /* Override any gcc2 internal prototype to avoid an error. */
3006: #ifdef __cplusplus
3007: extern "C"
3008: #endif
3009: /* We use char because int might match the return type of a gcc2
3010: builtin and then its argument prototype would still apply. */
3011: char crypt();
3012:
3013: int main() {
3014: crypt()
3015: ; return 0; }
3016: EOF
1.51 ! paf 3017: if { (eval echo configure:3018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.31 paf 3018: rm -rf conftest*
3019: eval "ac_cv_lib_$ac_lib_var=yes"
3020: else
3021: echo "configure: failed program was:" >&5
3022: cat conftest.$ac_ext >&5
3023: rm -rf conftest*
3024: eval "ac_cv_lib_$ac_lib_var=no"
3025: fi
3026: rm -f conftest*
3027: LIBS="$ac_save_LIBS"
3028:
3029: fi
3030: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3031: echo "$ac_t""yes" 1>&6
3032: ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3033: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3034: cat >> confdefs.h <<EOF
3035: #define $ac_tr_lib 1
3036: EOF
3037:
3038: LIBS="-lcrypt $LIBS"
3039:
3040: else
3041: echo "$ac_t""no" 1>&6
3042: fi
3043:
3044:
1.1 paf 3045:
3046: for ac_func in trunc \
3047: round \
3048: sign \
3049: flock \
3050: _locking \
1.5 paf 3051: fcntl \
1.3 paf 3052: lockf \
1.31 paf 3053: getrusage \
1.49 paf 3054: gettimeofday \
1.31 paf 3055: crypt
1.1 paf 3056:
3057: do
3058: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.51 ! paf 3059: echo "configure:3060: checking for $ac_func" >&5
1.1 paf 3060: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3061: echo $ac_n "(cached) $ac_c" 1>&6
3062: else
3063: cat > conftest.$ac_ext <<EOF
1.51 ! paf 3064: #line 3065 "configure"
1.1 paf 3065: #include "confdefs.h"
3066: /* System header to define __stub macros and hopefully few prototypes,
3067: which can conflict with char $ac_func(); below. */
3068: #include <assert.h>
3069: /* Override any gcc2 internal prototype to avoid an error. */
3070: #ifdef __cplusplus
3071: extern "C"
3072: #endif
3073: /* We use char because int might match the return type of a gcc2
3074: builtin and then its argument prototype would still apply. */
3075: char $ac_func();
3076:
3077: int main() {
3078:
3079: /* The GNU C library defines this for functions which it implements
3080: to always fail with ENOSYS. Some functions are actually named
3081: something starting with __ and the normal name is an alias. */
3082: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3083: choke me
3084: #else
3085: $ac_func();
3086: #endif
3087:
3088: ; return 0; }
3089: EOF
1.51 ! paf 3090: if { (eval echo configure:3091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 3091: rm -rf conftest*
3092: eval "ac_cv_func_$ac_func=yes"
3093: else
3094: echo "configure: failed program was:" >&5
3095: cat conftest.$ac_ext >&5
3096: rm -rf conftest*
3097: eval "ac_cv_func_$ac_func=no"
3098: fi
3099: rm -f conftest*
3100: fi
3101:
3102: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3103: echo "$ac_t""yes" 1>&6
3104: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3105: cat >> confdefs.h <<EOF
3106: #define $ac_tr_func 1
3107: EOF
3108:
3109: else
3110: echo "$ac_t""no" 1>&6
3111: fi
3112: done
3113:
3114:
1.3 paf 3115:
3116: for ac_func in qsort
3117: do
3118: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.51 ! paf 3119: echo "configure:3120: checking for $ac_func" >&5
1.3 paf 3120: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3121: echo $ac_n "(cached) $ac_c" 1>&6
3122: else
3123: cat > conftest.$ac_ext <<EOF
1.51 ! paf 3124: #line 3125 "configure"
1.3 paf 3125: #include "confdefs.h"
3126: /* System header to define __stub macros and hopefully few prototypes,
3127: which can conflict with char $ac_func(); below. */
3128: #include <assert.h>
3129: /* Override any gcc2 internal prototype to avoid an error. */
3130: #ifdef __cplusplus
3131: extern "C"
3132: #endif
3133: /* We use char because int might match the return type of a gcc2
3134: builtin and then its argument prototype would still apply. */
3135: char $ac_func();
3136:
3137: int main() {
3138:
3139: /* The GNU C library defines this for functions which it implements
3140: to always fail with ENOSYS. Some functions are actually named
3141: something starting with __ and the normal name is an alias. */
3142: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3143: choke me
3144: #else
3145: $ac_func();
3146: #endif
3147:
3148: ; return 0; }
3149: EOF
1.51 ! paf 3150: if { (eval echo configure:3151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.3 paf 3151: rm -rf conftest*
3152: eval "ac_cv_func_$ac_func=yes"
3153: else
3154: echo "configure: failed program was:" >&5
3155: cat conftest.$ac_ext >&5
3156: rm -rf conftest*
3157: eval "ac_cv_func_$ac_func=no"
3158: fi
3159: rm -f conftest*
3160: fi
3161:
3162: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3163: echo "$ac_t""yes" 1>&6
3164: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3165: cat >> confdefs.h <<EOF
3166: #define $ac_tr_func 1
3167: EOF
3168:
3169: else
3170: echo "$ac_t""no" 1>&6
3171: { echo "configure: error: No qsort library function." 1>&2; exit 1; }
3172: fi
3173: done
3174:
3175: for ac_func in select
3176: do
3177: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.51 ! paf 3178: echo "configure:3179: checking for $ac_func" >&5
1.3 paf 3179: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3180: echo $ac_n "(cached) $ac_c" 1>&6
3181: else
3182: cat > conftest.$ac_ext <<EOF
1.51 ! paf 3183: #line 3184 "configure"
1.3 paf 3184: #include "confdefs.h"
3185: /* System header to define __stub macros and hopefully few prototypes,
3186: which can conflict with char $ac_func(); below. */
3187: #include <assert.h>
3188: /* Override any gcc2 internal prototype to avoid an error. */
3189: #ifdef __cplusplus
3190: extern "C"
3191: #endif
3192: /* We use char because int might match the return type of a gcc2
3193: builtin and then its argument prototype would still apply. */
3194: char $ac_func();
3195:
3196: int main() {
3197:
3198: /* The GNU C library defines this for functions which it implements
3199: to always fail with ENOSYS. Some functions are actually named
3200: something starting with __ and the normal name is an alias. */
3201: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3202: choke me
3203: #else
3204: $ac_func();
3205: #endif
3206:
3207: ; return 0; }
3208: EOF
1.51 ! paf 3209: if { (eval echo configure:3210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.3 paf 3210: rm -rf conftest*
3211: eval "ac_cv_func_$ac_func=yes"
3212: else
3213: echo "configure: failed program was:" >&5
3214: cat conftest.$ac_ext >&5
3215: rm -rf conftest*
3216: eval "ac_cv_func_$ac_func=no"
3217: fi
3218: rm -f conftest*
3219: fi
3220:
3221: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3222: echo "$ac_t""yes" 1>&6
3223: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3224: cat >> confdefs.h <<EOF
3225: #define $ac_tr_func 1
3226: EOF
3227:
3228: else
3229: echo "$ac_t""no" 1>&6
3230: { echo "configure: error: No select library function." 1>&2; exit 1; }
3231: fi
3232: done
3233:
3234:
1.47 paf 3235:
3236: echo $ac_n "checking for timezone variable""... $ac_c" 1>&6
1.51 ! paf 3237: echo "configure:3238: checking for timezone variable" >&5
1.47 paf 3238: cat > conftest.$ac_ext <<EOF
1.51 ! paf 3239: #line 3240 "configure"
1.47 paf 3240: #include "confdefs.h"
3241: #include <time.h>
3242: int main() {
3243:
3244: time_t test=timezone;
3245:
3246: ; return 0; }
3247: EOF
1.51 ! paf 3248: if { (eval echo configure:3249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.47 paf 3249: rm -rf conftest*
3250: cat >> confdefs.h <<\EOF
3251: #define HAVE_TIMEZONE 1
3252: EOF
3253:
3254: echo "$ac_t""yes" 1>&6
3255: else
3256: echo "configure: failed program was:" >&5
3257: cat conftest.$ac_ext >&5
3258: rm -rf conftest*
3259: echo "$ac_t""no" 1>&6
3260: fi
3261: rm -f conftest*
3262:
3263: echo $ac_n "checking for daylight variable""... $ac_c" 1>&6
1.51 ! paf 3264: echo "configure:3265: checking for daylight variable" >&5
1.47 paf 3265: cat > conftest.$ac_ext <<EOF
1.51 ! paf 3266: #line 3267 "configure"
1.47 paf 3267: #include "confdefs.h"
3268: #include <time.h>
3269: int main() {
3270:
3271: int test=daylight;
3272:
3273: ; return 0; }
3274: EOF
1.51 ! paf 3275: if { (eval echo configure:3276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.47 paf 3276: rm -rf conftest*
3277: cat >> confdefs.h <<\EOF
3278: #define HAVE_DAYLIGHT 1
3279: EOF
3280:
3281: echo "$ac_t""yes" 1>&6
3282: else
3283: echo "configure: failed program was:" >&5
3284: cat conftest.$ac_ext >&5
3285: rm -rf conftest*
3286: echo "$ac_t""no" 1>&6
3287: fi
3288: rm -f conftest*
3289:
3290: echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
1.51 ! paf 3291: echo "configure:3292: checking for tm_gmtoff in struct tm" >&5
1.47 paf 3292: cat > conftest.$ac_ext <<EOF
1.51 ! paf 3293: #line 3294 "configure"
1.47 paf 3294: #include "confdefs.h"
3295: #include <time.h>
3296: int main() {
3297: struct tm tm;
3298: tm.tm_gmtoff=0;
3299:
3300: ; return 0; }
3301: EOF
1.51 ! paf 3302: if { (eval echo configure:3303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.47 paf 3303: rm -rf conftest*
3304: cat >> confdefs.h <<\EOF
3305: #define HAVE_TM_GMTOFF 1
3306: EOF
3307:
3308: echo "$ac_t""yes" 1>&6
3309: else
3310: echo "configure: failed program was:" >&5
3311: cat conftest.$ac_ext >&5
3312: rm -rf conftest*
3313: echo "$ac_t""no" 1>&6
3314: fi
3315: rm -f conftest*
3316:
3317: echo $ac_n "checking for tm_tzadj in struct tm""... $ac_c" 1>&6
1.51 ! paf 3318: echo "configure:3319: checking for tm_tzadj in struct tm" >&5
1.47 paf 3319: cat > conftest.$ac_ext <<EOF
1.51 ! paf 3320: #line 3321 "configure"
1.47 paf 3321: #include "confdefs.h"
3322: #include <time.h>
3323: int main() {
3324: struct tm tm;
3325: tm.tm_tzadj=0;
3326:
3327: ; return 0; }
3328: EOF
1.51 ! paf 3329: if { (eval echo configure:3330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.47 paf 3330: rm -rf conftest*
3331: cat >> confdefs.h <<\EOF
3332: #define HAVE_TM_TZADJ 1
3333: EOF
3334:
3335: echo "$ac_t""yes" 1>&6
3336: else
3337: echo "configure: failed program was:" >&5
3338: cat conftest.$ac_ext >&5
3339: rm -rf conftest*
3340: echo "$ac_t""no" 1>&6
3341: fi
3342: rm -f conftest*
3343:
3344:
1.1 paf 3345: echo $ac_n "checking whether compiler supports pragma pack""... $ac_c" 1>&6
1.51 ! paf 3346: echo "configure:3347: checking whether compiler supports pragma pack" >&5
1.1 paf 3347: cat > conftest.$ac_ext <<EOF
1.51 ! paf 3348: #line 3349 "configure"
1.1 paf 3349: #include "confdefs.h"
3350: #pragma pack(1)
1.25 paf 3351: struct _1_byte {
1.1 paf 3352: char c;
1.25 paf 3353: };
1.1 paf 3354: #pragma pack()
1.25 paf 3355:
3356: int main() {
1.1 paf 3357:
3358: ; return 0; }
3359: EOF
1.51 ! paf 3360: if { (eval echo configure:3361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 paf 3361: rm -rf conftest*
3362:
3363: echo "$ac_t""yes" 1>&6
3364: cat >> confdefs.h <<\EOF
3365: #define HAVE_PRAGMA_PACK
3366: EOF
3367:
3368:
3369: else
3370: echo "configure: failed program was:" >&5
3371: cat conftest.$ac_ext >&5
3372: rm -rf conftest*
3373: echo "$ac_t""no" 1>&6
3374:
3375: fi
3376: rm -f conftest*
3377:
3378: echo $ac_n "checking for set_new_handler""... $ac_c" 1>&6
1.51 ! paf 3379: echo "configure:3380: checking for set_new_handler" >&5
1.1 paf 3380: cat > conftest.$ac_ext <<EOF
1.51 ! paf 3381: #line 3382 "configure"
1.1 paf 3382: #include "confdefs.h"
3383: #ifdef HAVE_NEW
3384: #include <new>
3385: #endif
3386: void failed_new() {}
3387:
3388: int main() {
3389: std::set_new_handler(failed_new);
3390:
3391: ; return 0; }
3392: EOF
1.51 ! paf 3393: if { (eval echo configure:3394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 paf 3394: rm -rf conftest*
3395:
3396: echo "$ac_t""yes" 1>&6
3397: cat >> confdefs.h <<\EOF
3398: #define HAVE_SET_NEW_HANDLER
3399: EOF
3400:
3401:
3402: else
3403: echo "configure: failed program was:" >&5
3404: cat conftest.$ac_ext >&5
3405: rm -rf conftest*
3406: echo "$ac_t""no" 1>&6
3407:
3408: fi
3409: rm -f conftest*
3410:
3411:
3412:
1.15 paf 3413:
1.8 paf 3414: APACHE_LIBS="$LIBS $LIBADD_DL"
1.1 paf 3415:
3416:
3417:
3418:
3419: # expand apostrophed
1.4 paf 3420: e_prefix=$prefix
3421: test "x$e_prefix" = xNONE && e_prefix=$ac_default_prefix
3422:
1.1 paf 3423: e_sysconfdir=$sysconfdir
1.4 paf 3424: test "$e_sysconfdir" = "\${prefix}/etc" && e_sysconfdir="${e_prefix}/etc"
1.1 paf 3425:
3426:
3427: charsetsdir=$e_sysconfdir/parser3.charsets
3428:
3429:
3430: # expand apostrophed
3431: e_libdir=$libdir
3432: if test "$e_libdir" = "\${exec_prefix}/lib"; then
3433:
3434: # Let make expand exec_prefix.
3435: e_exec_prefix=$exec_prefix
1.10 paf 3436: test "x$e_exec_prefix" = xNONE && e_exec_prefix=$e_prefix
1.1 paf 3437:
3438: # expand apostrophed
3439: test "$e_libdir" = "\${exec_prefix}/lib" && e_libdir="${e_exec_prefix}/lib"
3440: fi
3441:
3442: sqldriversdir=$e_libdir
3443:
3444:
3445:
3446:
3447:
3448:
3449:
3450: trap '' 1 2 15
3451: cat > confcache <<\EOF
3452: # This file is a shell script that caches the results of configure
3453: # tests run on this system so they can be shared between configure
3454: # scripts and configure runs. It is not useful on other systems.
3455: # If it contains results you don't want to keep, you may remove or edit it.
3456: #
3457: # By default, configure uses ./config.cache as the cache file,
3458: # creating it if it does not exist already. You can give configure
3459: # the --cache-file=FILE option to use a different cache file; that is
3460: # what configure does when it calls configure scripts in
3461: # subdirectories, so they share the cache.
3462: # Giving --cache-file=/dev/null disables caching, for debugging configure.
3463: # config.status only pays attention to the cache file if you give it the
3464: # --recheck option to rerun configure.
3465: #
3466: EOF
3467: # The following way of writing the cache mishandles newlines in values,
3468: # but we know of no workaround that is simple, portable, and efficient.
3469: # So, don't put newlines in cache variables' values.
3470: # Ultrix sh set writes to stderr and can't be redirected directly,
3471: # and sets the high bit in the cache file unless we assign to the vars.
3472: (set) 2>&1 |
3473: case `(ac_space=' '; set | grep ac_space) 2>&1` in
3474: *ac_space=\ *)
3475: # `set' does not quote correctly, so add quotes (double-quote substitution
3476: # turns \\\\ into \\, and sed turns \\ into \).
3477: sed -n \
3478: -e "s/'/'\\\\''/g" \
3479: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3480: ;;
3481: *)
3482: # `set' quotes correctly as required by POSIX, so do not add quotes.
3483: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3484: ;;
3485: esac >> confcache
3486: if cmp -s $cache_file confcache; then
3487: :
3488: else
3489: if test -w $cache_file; then
3490: echo "updating cache $cache_file"
3491: cat confcache > $cache_file
3492: else
3493: echo "not updating unwritable cache $cache_file"
3494: fi
3495: fi
3496: rm -f confcache
3497:
3498: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3499:
3500: test "x$prefix" = xNONE && prefix=$ac_default_prefix
3501: # Let make expand exec_prefix.
3502: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3503:
3504: # Any assignment to VPATH causes Sun make to only execute
3505: # the first set of double-colon rules, so remove it if not needed.
3506: # If there is a colon in the path, we need to keep it.
3507: if test "x$srcdir" = x.; then
3508: ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3509: fi
3510:
3511: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3512:
3513: DEFS=-DHAVE_CONFIG_H
3514:
3515: # Without the "./", some shells look in PATH for config.status.
3516: : ${CONFIG_STATUS=./config.status}
3517:
3518: echo creating $CONFIG_STATUS
3519: rm -f $CONFIG_STATUS
3520: cat > $CONFIG_STATUS <<EOF
3521: #! /bin/sh
3522: # Generated automatically by configure.
3523: # Run this file to recreate the current configuration.
3524: # This directory was configured as follows,
3525: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3526: #
3527: # $0 $ac_configure_args
3528: #
3529: # Compiler output produced by configure, useful for debugging
3530: # configure, is in ./config.log if it exists.
3531:
3532: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3533: for ac_option
3534: do
3535: case "\$ac_option" in
3536: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3537: echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3538: exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3539: -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3540: echo "$CONFIG_STATUS generated by autoconf version 2.13"
3541: exit 0 ;;
3542: -help | --help | --hel | --he | --h)
3543: echo "\$ac_cs_usage"; exit 0 ;;
3544: *) echo "\$ac_cs_usage"; exit 1 ;;
3545: esac
3546: done
3547:
3548: ac_given_srcdir=$srcdir
3549: ac_given_INSTALL="$INSTALL"
3550:
1.36 paf 3551: trap 'rm -fr `echo "Makefile src/Makefile src/types/Makefile src/classes/Makefile src/classes/gd/Makefile src/classes/smtp/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/lib/Makefile src/lib/libltdl/Makefile src/lib/pcre/Makefile src/lib/md5/Makefile src/lib/patches/Makefile src/targets/Makefile src/targets/cgi/Makefile src/targets/apache13/Makefile src/targets/apache13/hook/Makefile src/targets/apache13/p3runConfigure src/targets/isapi/Makefile etc/Makefile etc/parser3.charsets/Makefile bin/Makefile bin/auto.p.dist src/include/pa_config_auto.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1.1 paf 3552: EOF
3553: cat >> $CONFIG_STATUS <<EOF
3554:
3555: # Protect against being on the right side of a sed subst in config.status.
3556: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3557: s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3558: $ac_vpsub
3559: $extrasub
3560: s%@SHELL@%$SHELL%g
3561: s%@CFLAGS@%$CFLAGS%g
3562: s%@CPPFLAGS@%$CPPFLAGS%g
3563: s%@CXXFLAGS@%$CXXFLAGS%g
3564: s%@FFLAGS@%$FFLAGS%g
3565: s%@DEFS@%$DEFS%g
3566: s%@LDFLAGS@%$LDFLAGS%g
3567: s%@LIBS@%$LIBS%g
3568: s%@exec_prefix@%$exec_prefix%g
3569: s%@prefix@%$prefix%g
3570: s%@program_transform_name@%$program_transform_name%g
3571: s%@bindir@%$bindir%g
3572: s%@sbindir@%$sbindir%g
3573: s%@libexecdir@%$libexecdir%g
3574: s%@datadir@%$datadir%g
3575: s%@sysconfdir@%$sysconfdir%g
3576: s%@sharedstatedir@%$sharedstatedir%g
3577: s%@localstatedir@%$localstatedir%g
3578: s%@libdir@%$libdir%g
3579: s%@includedir@%$includedir%g
3580: s%@oldincludedir@%$oldincludedir%g
3581: s%@infodir@%$infodir%g
3582: s%@mandir@%$mandir%g
3583: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3584: s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3585: s%@INSTALL_DATA@%$INSTALL_DATA%g
3586: s%@PACKAGE@%$PACKAGE%g
3587: s%@VERSION@%$VERSION%g
3588: s%@ACLOCAL@%$ACLOCAL%g
3589: s%@AUTOCONF@%$AUTOCONF%g
3590: s%@AUTOMAKE@%$AUTOMAKE%g
3591: s%@AUTOHEADER@%$AUTOHEADER%g
3592: s%@MAKEINFO@%$MAKEINFO%g
3593: s%@SET_MAKE@%$SET_MAKE%g
3594: s%@P3S@%$P3S%g
1.41 paf 3595: s%@host@%$host%g
3596: s%@host_alias@%$host_alias%g
3597: s%@host_cpu@%$host_cpu%g
3598: s%@host_vendor@%$host_vendor%g
3599: s%@host_os@%$host_os%g
3600: s%@RANLIB@%$RANLIB%g
3601: s%@AWK@%$AWK%g
3602: s%@YACC@%$YACC%g
1.1 paf 3603: s%@CC@%$CC%g
3604: s%@CXX@%$CXX%g
1.15 paf 3605: s%@DO_NOT_LINK_LIBSTDCPP_TRUE@%$DO_NOT_LINK_LIBSTDCPP_TRUE%g
3606: s%@DO_NOT_LINK_LIBSTDCPP_FALSE@%$DO_NOT_LINK_LIBSTDCPP_FALSE%g
1.17 paf 3607: s%@commentcharset_windows1251@%$commentcharset_windows1251%g
3608: s%@commentcharset_windows1250@%$commentcharset_windows1250%g
3609: s%@commentcharset_windows1257@%$commentcharset_windows1257%g
3610: s%@commentcharset_koi8r@%$commentcharset_koi8r%g
1.40 paf 3611: s%@dll_extension@%$dll_extension%g
1.17 paf 3612: s%@mysql_client@%$mysql_client%g
3613: s%@pgsql_client@%$pgsql_client%g
3614: s%@oracle_client@%$oracle_client%g
1.12 paf 3615: s%@XML_INCLUDES@%$XML_INCLUDES%g
3616: s%@XML_LIBS@%$XML_LIBS%g
1.29 paf 3617: s%@MIME_INCLUDES@%$MIME_INCLUDES%g
3618: s%@MIME_LIBS@%$MIME_LIBS%g
1.1 paf 3619: s%@APACHE13@%$APACHE13%g
3620: s%@COMPILE_APACHE13_MODULE_TRUE@%$COMPILE_APACHE13_MODULE_TRUE%g
3621: s%@COMPILE_APACHE13_MODULE_FALSE@%$COMPILE_APACHE13_MODULE_FALSE%g
3622: s%@INCLTDL@%$INCLTDL%g
3623: s%@LIBLTDL@%$LIBLTDL%g
1.8 paf 3624: s%@subdirs@%$subdirs%g
1.1 paf 3625: s%@LIBADD_DL@%$LIBADD_DL%g
3626: s%@CXXCPP@%$CXXCPP%g
3627: s%@APACHE_LIBS@%$APACHE_LIBS%g
3628: s%@charsetsdir@%$charsetsdir%g
3629: s%@sqldriversdir@%$sqldriversdir%g
3630:
3631: CEOF
3632: EOF
3633:
3634: cat >> $CONFIG_STATUS <<\EOF
3635:
3636: # Split the substitutions into bite-sized pieces for seds with
3637: # small command number limits, like on Digital OSF/1 and HP-UX.
3638: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3639: ac_file=1 # Number of current file.
3640: ac_beg=1 # First line for current file.
3641: ac_end=$ac_max_sed_cmds # Line after last line for current file.
3642: ac_more_lines=:
3643: ac_sed_cmds=""
3644: while $ac_more_lines; do
3645: if test $ac_beg -gt 1; then
3646: sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3647: else
3648: sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3649: fi
3650: if test ! -s conftest.s$ac_file; then
3651: ac_more_lines=false
3652: rm -f conftest.s$ac_file
3653: else
3654: if test -z "$ac_sed_cmds"; then
3655: ac_sed_cmds="sed -f conftest.s$ac_file"
3656: else
3657: ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3658: fi
3659: ac_file=`expr $ac_file + 1`
3660: ac_beg=$ac_end
3661: ac_end=`expr $ac_end + $ac_max_sed_cmds`
3662: fi
3663: done
3664: if test -z "$ac_sed_cmds"; then
3665: ac_sed_cmds=cat
3666: fi
3667: EOF
3668:
3669: cat >> $CONFIG_STATUS <<EOF
3670:
1.36 paf 3671: CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile src/types/Makefile src/classes/Makefile src/classes/gd/Makefile src/classes/smtp/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/lib/Makefile src/lib/libltdl/Makefile src/lib/pcre/Makefile src/lib/md5/Makefile src/lib/patches/Makefile src/targets/Makefile src/targets/cgi/Makefile src/targets/apache13/Makefile src/targets/apache13/hook/Makefile src/targets/apache13/p3runConfigure src/targets/isapi/Makefile etc/Makefile etc/parser3.charsets/Makefile bin/Makefile bin/auto.p.dist"}
1.1 paf 3672: EOF
3673: cat >> $CONFIG_STATUS <<\EOF
3674: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3675: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3676: case "$ac_file" in
3677: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3678: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3679: *) ac_file_in="${ac_file}.in" ;;
3680: esac
3681:
3682: # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3683:
3684: # Remove last slash and all that follows it. Not all systems have dirname.
3685: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3686: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3687: # The file is in a subdirectory.
3688: test ! -d "$ac_dir" && mkdir "$ac_dir"
3689: ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3690: # A "../" for each directory in $ac_dir_suffix.
3691: ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3692: else
3693: ac_dir_suffix= ac_dots=
3694: fi
3695:
3696: case "$ac_given_srcdir" in
3697: .) srcdir=.
3698: if test -z "$ac_dots"; then top_srcdir=.
3699: else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3700: /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3701: *) # Relative path.
3702: srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3703: top_srcdir="$ac_dots$ac_given_srcdir" ;;
3704: esac
3705:
3706: case "$ac_given_INSTALL" in
3707: [/$]*) INSTALL="$ac_given_INSTALL" ;;
3708: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3709: esac
3710:
3711: echo creating "$ac_file"
3712: rm -f "$ac_file"
3713: configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3714: case "$ac_file" in
3715: *Makefile*) ac_comsub="1i\\
3716: # $configure_input" ;;
3717: *) ac_comsub= ;;
3718: esac
3719:
3720: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3721: sed -e "$ac_comsub
3722: s%@configure_input@%$configure_input%g
3723: s%@srcdir@%$srcdir%g
3724: s%@top_srcdir@%$top_srcdir%g
3725: s%@INSTALL@%$INSTALL%g
3726: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3727: fi; done
3728: rm -f conftest.s*
3729:
3730: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3731: # NAME is the cpp macro being defined and VALUE is the value it is being given.
3732: #
3733: # ac_d sets the value in "#define NAME VALUE" lines.
3734: ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3735: ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3736: ac_dC='\3'
3737: ac_dD='%g'
3738: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3739: ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3740: ac_uB='\([ ]\)%\1#\2define\3'
3741: ac_uC=' '
3742: ac_uD='\4%g'
3743: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3744: ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3745: ac_eB='$%\1#\2define\3'
3746: ac_eC=' '
3747: ac_eD='%g'
3748:
3749: if test "${CONFIG_HEADERS+set}" != set; then
3750: EOF
3751: cat >> $CONFIG_STATUS <<EOF
3752: CONFIG_HEADERS="src/include/pa_config_auto.h"
3753: EOF
3754: cat >> $CONFIG_STATUS <<\EOF
3755: fi
3756: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3757: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3758: case "$ac_file" in
3759: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3760: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3761: *) ac_file_in="${ac_file}.in" ;;
3762: esac
3763:
3764: echo creating $ac_file
3765:
3766: rm -f conftest.frag conftest.in conftest.out
3767: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3768: cat $ac_file_inputs > conftest.in
3769:
3770: EOF
3771:
3772: # Transform confdefs.h into a sed script conftest.vals that substitutes
3773: # the proper values into config.h.in to produce config.h. And first:
3774: # Protect against being on the right side of a sed subst in config.status.
3775: # Protect against being in an unquoted here document in config.status.
3776: rm -f conftest.vals
3777: cat > conftest.hdr <<\EOF
3778: s/[\\&%]/\\&/g
3779: s%[\\$`]%\\&%g
3780: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3781: s%ac_d%ac_u%gp
3782: s%ac_u%ac_e%gp
3783: EOF
3784: sed -n -f conftest.hdr confdefs.h > conftest.vals
3785: rm -f conftest.hdr
3786:
3787: # This sed command replaces #undef with comments. This is necessary, for
3788: # example, in the case of _POSIX_SOURCE, which is predefined and required
3789: # on some systems where configure will not decide to define it.
3790: cat >> conftest.vals <<\EOF
3791: s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3792: EOF
3793:
3794: # Break up conftest.vals because some shells have a limit on
3795: # the size of here documents, and old seds have small limits too.
3796:
3797: rm -f conftest.tail
3798: while :
3799: do
3800: ac_lines=`grep -c . conftest.vals`
3801: # grep -c gives empty output for an empty file on some AIX systems.
3802: if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3803: # Write a limited-size here document to conftest.frag.
3804: echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3805: sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3806: echo 'CEOF
3807: sed -f conftest.frag conftest.in > conftest.out
3808: rm -f conftest.in
3809: mv conftest.out conftest.in
3810: ' >> $CONFIG_STATUS
3811: sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3812: rm -f conftest.vals
3813: mv conftest.tail conftest.vals
3814: done
3815: rm -f conftest.vals
3816:
3817: cat >> $CONFIG_STATUS <<\EOF
3818: rm -f conftest.frag conftest.h
3819: echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3820: cat conftest.in >> conftest.h
3821: rm -f conftest.in
3822: if cmp -s $ac_file conftest.h 2>/dev/null; then
3823: echo "$ac_file is unchanged"
3824: rm -f conftest.h
3825: else
3826: # Remove last slash and all that follows it. Not all systems have dirname.
3827: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3828: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3829: # The file is in a subdirectory.
3830: test ! -d "$ac_dir" && mkdir "$ac_dir"
3831: fi
3832: rm -f $ac_file
3833: mv conftest.h $ac_file
3834: fi
3835: fi; done
3836:
3837: EOF
3838: cat >> $CONFIG_STATUS <<EOF
3839:
3840:
3841: EOF
3842: cat >> $CONFIG_STATUS <<\EOF
3843: test -z "$CONFIG_HEADERS" || echo timestamp > src/include/stamp-h
3844:
3845: exit 0
3846: EOF
3847: chmod +x $CONFIG_STATUS
3848: rm -fr confdefs* $ac_clean_files
3849: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3850:
3851: if test "$no_recursion" != yes; then
3852:
3853: # Remove --cache-file and --srcdir arguments so they do not pile up.
3854: ac_sub_configure_args=
3855: ac_prev=
3856: for ac_arg in $ac_configure_args; do
3857: if test -n "$ac_prev"; then
3858: ac_prev=
3859: continue
3860: fi
3861: case "$ac_arg" in
3862: -cache-file | --cache-file | --cache-fil | --cache-fi \
3863: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3864: ac_prev=cache_file ;;
3865: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3866: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3867: ;;
3868: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3869: ac_prev=srcdir ;;
3870: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3871: ;;
3872: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3873: esac
3874: done
3875:
1.28 paf 3876: for ac_config_dir in src/lib/libltdl; do
1.1 paf 3877:
3878: # Do not complain, so a configure script can configure whichever
3879: # parts of a large source tree are present.
3880: if test ! -d $srcdir/$ac_config_dir; then
3881: continue
3882: fi
3883:
3884: echo configuring in $ac_config_dir
3885:
3886: case "$srcdir" in
3887: .) ;;
3888: *)
3889: if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3890: else
3891: { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3892: fi
3893: ;;
3894: esac
3895:
3896: ac_popdir=`pwd`
3897: cd $ac_config_dir
3898:
3899: # A "../" for each directory in /$ac_config_dir.
3900: ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3901:
3902: case "$srcdir" in
3903: .) # No --srcdir option. We are building in place.
3904: ac_sub_srcdir=$srcdir ;;
3905: /*) # Absolute path.
3906: ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3907: *) # Relative path.
3908: ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3909: esac
3910:
3911: # Check for guested configure; otherwise get Cygnus style configure.
3912: if test -f $ac_sub_srcdir/configure; then
3913: ac_sub_configure=$ac_sub_srcdir/configure
3914: elif test -f $ac_sub_srcdir/configure.in; then
3915: ac_sub_configure=$ac_configure
3916: else
3917: echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3918: ac_sub_configure=
3919: fi
3920:
3921: # The recursion is here.
3922: if test -n "$ac_sub_configure"; then
3923:
3924: # Make the cache file name correct relative to the subdirectory.
3925: case "$cache_file" in
3926: /*) ac_sub_cache_file=$cache_file ;;
3927: *) # Relative path.
3928: ac_sub_cache_file="$ac_dots$cache_file" ;;
3929: esac
3930: case "$ac_given_INSTALL" in
3931: [/$]*) INSTALL="$ac_given_INSTALL" ;;
3932: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3933: esac
3934:
3935: echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3936: # The eval makes quoting arguments work.
3937: if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3938: then :
3939: else
3940: { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3941: fi
3942: fi
3943:
3944: cd $ac_popdir
3945: done
3946: fi
3947:
E-mail: