Annotation of parser3/configure, revision 1.42
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.1 paf 2535: for ac_hdr in unistd.h \
2536: process.h \
2537: stddef.h \
2538: stdarg.h \
2539: fcntl.h \
2540: sys/stat.h \
2541: io.h \
2542: stdio.h \
2543: errno.h \
2544: ctype.h \
2545: math.h \
1.31 paf 2546: crypt.h \
1.3 paf 2547: time.h sys/time.h \
1.1 paf 2548: stdlib.h \
2549: string.h \
2550: direct.h \
2551: setjmp.h \
2552: memory.h \
2553: new \
2554: sys/file.h \
2555: sys/locking.h \
1.3 paf 2556: sys/types.h \
2557: sys/select.h \
1.39 paf 2558: sys/resource.h \
2559: winsock.h
1.1 paf 2560:
2561: do
2562: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2563: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.41 paf 2564: echo "configure:2565: checking for $ac_hdr" >&5
1.1 paf 2565: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2566: echo $ac_n "(cached) $ac_c" 1>&6
2567: else
2568: cat > conftest.$ac_ext <<EOF
1.41 paf 2569: #line 2570 "configure"
1.1 paf 2570: #include "confdefs.h"
2571: #include <$ac_hdr>
2572: EOF
2573: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.41 paf 2574: { (eval echo configure:2575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 paf 2575: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2576: if test -z "$ac_err"; then
2577: rm -rf conftest*
2578: eval "ac_cv_header_$ac_safe=yes"
2579: else
2580: echo "$ac_err" >&5
2581: echo "configure: failed program was:" >&5
2582: cat conftest.$ac_ext >&5
2583: rm -rf conftest*
2584: eval "ac_cv_header_$ac_safe=no"
2585: fi
2586: rm -f conftest*
2587: fi
2588: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2589: echo "$ac_t""yes" 1>&6
2590: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2591: cat >> confdefs.h <<EOF
2592: #define $ac_tr_hdr 1
2593: EOF
2594:
2595: else
2596: echo "$ac_t""no" 1>&6
2597: fi
2598: done
2599:
2600:
2601:
2602: case "$host" in
2603: *-sunos5.6* | *-solaris2.6*)
2604: echo $ac_n "checking for main in -lxnet""... $ac_c" 1>&6
1.41 paf 2605: echo "configure:2606: checking for main in -lxnet" >&5
1.1 paf 2606: ac_lib_var=`echo xnet'_'main | sed 'y%./+-%__p_%'`
2607: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2608: echo $ac_n "(cached) $ac_c" 1>&6
2609: else
2610: ac_save_LIBS="$LIBS"
2611: LIBS="-lxnet $LIBS"
2612: cat > conftest.$ac_ext <<EOF
1.41 paf 2613: #line 2614 "configure"
1.1 paf 2614: #include "confdefs.h"
2615:
2616: int main() {
2617: main()
2618: ; return 0; }
2619: EOF
1.41 paf 2620: if { (eval echo configure:2621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2621: rm -rf conftest*
2622: eval "ac_cv_lib_$ac_lib_var=yes"
2623: else
2624: echo "configure: failed program was:" >&5
2625: cat conftest.$ac_ext >&5
2626: rm -rf conftest*
2627: eval "ac_cv_lib_$ac_lib_var=no"
2628: fi
2629: rm -f conftest*
2630: LIBS="$ac_save_LIBS"
2631:
2632: fi
2633: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2634: echo "$ac_t""yes" 1>&6
2635: ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2636: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2637: cat >> confdefs.h <<EOF
2638: #define $ac_tr_lib 1
2639: EOF
2640:
2641: LIBS="-lxnet $LIBS"
2642:
2643: else
2644: echo "$ac_t""no" 1>&6
2645: fi
2646:
2647: ;;
2648: *-sunos5* | *-solaris2*)
2649: echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1.41 paf 2650: echo "configure:2651: checking for main in -lsocket" >&5
1.1 paf 2651: ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2652: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2653: echo $ac_n "(cached) $ac_c" 1>&6
2654: else
2655: ac_save_LIBS="$LIBS"
2656: LIBS="-lsocket $LIBS"
2657: cat > conftest.$ac_ext <<EOF
1.41 paf 2658: #line 2659 "configure"
1.1 paf 2659: #include "confdefs.h"
2660:
2661: int main() {
2662: main()
2663: ; return 0; }
2664: EOF
1.41 paf 2665: if { (eval echo configure:2666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2666: rm -rf conftest*
2667: eval "ac_cv_lib_$ac_lib_var=yes"
2668: else
2669: echo "configure: failed program was:" >&5
2670: cat conftest.$ac_ext >&5
2671: rm -rf conftest*
2672: eval "ac_cv_lib_$ac_lib_var=no"
2673: fi
2674: rm -f conftest*
2675: LIBS="$ac_save_LIBS"
2676:
2677: fi
2678: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2679: echo "$ac_t""yes" 1>&6
2680: ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2681: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2682: cat >> confdefs.h <<EOF
2683: #define $ac_tr_lib 1
2684: EOF
2685:
2686: LIBS="-lsocket $LIBS"
2687:
2688: else
2689: echo "$ac_t""no" 1>&6
2690: fi
2691:
2692: echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1.41 paf 2693: echo "configure:2694: checking for main in -lnsl" >&5
1.1 paf 2694: ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2695: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2696: echo $ac_n "(cached) $ac_c" 1>&6
2697: else
2698: ac_save_LIBS="$LIBS"
2699: LIBS="-lnsl $LIBS"
2700: cat > conftest.$ac_ext <<EOF
1.41 paf 2701: #line 2702 "configure"
1.1 paf 2702: #include "confdefs.h"
2703:
2704: int main() {
2705: main()
2706: ; return 0; }
2707: EOF
1.41 paf 2708: if { (eval echo configure:2709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2709: rm -rf conftest*
2710: eval "ac_cv_lib_$ac_lib_var=yes"
2711: else
2712: echo "configure: failed program was:" >&5
2713: cat conftest.$ac_ext >&5
2714: rm -rf conftest*
2715: eval "ac_cv_lib_$ac_lib_var=no"
2716: fi
2717: rm -f conftest*
2718: LIBS="$ac_save_LIBS"
2719:
2720: fi
2721: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2722: echo "$ac_t""yes" 1>&6
2723: ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2724: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2725: cat >> confdefs.h <<EOF
2726: #define $ac_tr_lib 1
2727: EOF
2728:
2729: LIBS="-lnsl $LIBS"
2730:
2731: else
2732: echo "$ac_t""no" 1>&6
2733: fi
2734:
2735: ;;
2736: *-nec-sysv4*)
2737: echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1.41 paf 2738: echo "configure:2739: checking for gethostbyname in -lnsl" >&5
1.1 paf 2739: ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2740: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2741: echo $ac_n "(cached) $ac_c" 1>&6
2742: else
2743: ac_save_LIBS="$LIBS"
2744: LIBS="-lnsl $LIBS"
2745: cat > conftest.$ac_ext <<EOF
1.41 paf 2746: #line 2747 "configure"
1.1 paf 2747: #include "confdefs.h"
2748: /* Override any gcc2 internal prototype to avoid an error. */
2749: #ifdef __cplusplus
2750: extern "C"
2751: #endif
2752: /* We use char because int might match the return type of a gcc2
2753: builtin and then its argument prototype would still apply. */
2754: char gethostbyname();
2755:
2756: int main() {
2757: gethostbyname()
2758: ; return 0; }
2759: EOF
1.41 paf 2760: if { (eval echo configure:2761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2761: rm -rf conftest*
2762: eval "ac_cv_lib_$ac_lib_var=yes"
2763: else
2764: echo "configure: failed program was:" >&5
2765: cat conftest.$ac_ext >&5
2766: rm -rf conftest*
2767: eval "ac_cv_lib_$ac_lib_var=no"
2768: fi
2769: rm -f conftest*
2770: LIBS="$ac_save_LIBS"
2771:
2772: fi
2773: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2774: echo "$ac_t""yes" 1>&6
2775: ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2776: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2777: cat >> confdefs.h <<EOF
2778: #define $ac_tr_lib 1
2779: EOF
2780:
2781: LIBS="-lnsl $LIBS"
2782:
2783: else
2784: echo "$ac_t""no" 1>&6
2785: fi
2786:
2787: echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1.41 paf 2788: echo "configure:2789: checking for socket in -lsocket" >&5
1.1 paf 2789: ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2790: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2791: echo $ac_n "(cached) $ac_c" 1>&6
2792: else
2793: ac_save_LIBS="$LIBS"
2794: LIBS="-lsocket $LIBS"
2795: cat > conftest.$ac_ext <<EOF
1.41 paf 2796: #line 2797 "configure"
1.1 paf 2797: #include "confdefs.h"
2798: /* Override any gcc2 internal prototype to avoid an error. */
2799: #ifdef __cplusplus
2800: extern "C"
2801: #endif
2802: /* We use char because int might match the return type of a gcc2
2803: builtin and then its argument prototype would still apply. */
2804: char socket();
2805:
2806: int main() {
2807: socket()
2808: ; return 0; }
2809: EOF
1.41 paf 2810: if { (eval echo configure:2811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2811: rm -rf conftest*
2812: eval "ac_cv_lib_$ac_lib_var=yes"
2813: else
2814: echo "configure: failed program was:" >&5
2815: cat conftest.$ac_ext >&5
2816: rm -rf conftest*
2817: eval "ac_cv_lib_$ac_lib_var=no"
2818: fi
2819: rm -f conftest*
2820: LIBS="$ac_save_LIBS"
2821:
2822: fi
2823: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2824: echo "$ac_t""yes" 1>&6
2825: ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2826: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2827: cat >> confdefs.h <<EOF
2828: #define $ac_tr_lib 1
2829: EOF
2830:
2831: LIBS="-lsocket $LIBS"
2832:
2833: else
2834: echo "$ac_t""no" 1>&6
2835: fi
2836:
2837: ;;
2838: *-cygwin*)
2839: cat >> confdefs.h <<\EOF
2840: #define WIN32
2841: EOF
2842:
2843: echo $ac_n "checking for socket in -lwsock32""... $ac_c" 1>&6
1.41 paf 2844: echo "configure:2845: checking for socket in -lwsock32" >&5
1.1 paf 2845: ac_lib_var=`echo wsock32'_'socket | sed 'y%./+-%__p_%'`
2846: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2847: echo $ac_n "(cached) $ac_c" 1>&6
2848: else
2849: ac_save_LIBS="$LIBS"
2850: LIBS="-lwsock32 $LIBS"
2851: cat > conftest.$ac_ext <<EOF
1.41 paf 2852: #line 2853 "configure"
1.1 paf 2853: #include "confdefs.h"
2854: /* Override any gcc2 internal prototype to avoid an error. */
2855: #ifdef __cplusplus
2856: extern "C"
2857: #endif
2858: /* We use char because int might match the return type of a gcc2
2859: builtin and then its argument prototype would still apply. */
2860: char socket();
2861:
2862: int main() {
2863: socket()
2864: ; return 0; }
2865: EOF
1.41 paf 2866: if { (eval echo configure:2867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2867: rm -rf conftest*
2868: eval "ac_cv_lib_$ac_lib_var=yes"
2869: else
2870: echo "configure: failed program was:" >&5
2871: cat conftest.$ac_ext >&5
2872: rm -rf conftest*
2873: eval "ac_cv_lib_$ac_lib_var=no"
2874: fi
2875: rm -f conftest*
2876: LIBS="$ac_save_LIBS"
2877:
2878: fi
2879: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2880: echo "$ac_t""yes" 1>&6
2881: ac_tr_lib=HAVE_LIB`echo wsock32 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2882: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2883: cat >> confdefs.h <<EOF
2884: #define $ac_tr_lib 1
2885: EOF
2886:
2887: LIBS="-lwsock32 $LIBS"
2888:
2889: else
2890: echo "$ac_t""no" 1>&6
2891: fi
2892:
2893: ;;
1.22 paf 2894: # never tested this, only theoretically by letter from demos about parser2 build
1.23 paf 2895: *-hpux*)
1.22 paf 2896: echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1.41 paf 2897: echo "configure:2898: checking for main in -lnsl" >&5
1.22 paf 2898: ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2899: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2900: echo $ac_n "(cached) $ac_c" 1>&6
2901: else
2902: ac_save_LIBS="$LIBS"
2903: LIBS="-lnsl $LIBS"
2904: cat > conftest.$ac_ext <<EOF
1.41 paf 2905: #line 2906 "configure"
1.22 paf 2906: #include "confdefs.h"
2907:
2908: int main() {
2909: main()
2910: ; return 0; }
2911: EOF
1.41 paf 2912: if { (eval echo configure:2913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.22 paf 2913: rm -rf conftest*
2914: eval "ac_cv_lib_$ac_lib_var=yes"
2915: else
2916: echo "configure: failed program was:" >&5
2917: cat conftest.$ac_ext >&5
2918: rm -rf conftest*
2919: eval "ac_cv_lib_$ac_lib_var=no"
2920: fi
2921: rm -f conftest*
2922: LIBS="$ac_save_LIBS"
2923:
2924: fi
2925: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2926: echo "$ac_t""yes" 1>&6
2927: ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2928: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2929: cat >> confdefs.h <<EOF
2930: #define $ac_tr_lib 1
2931: EOF
2932:
2933: LIBS="-lnsl $LIBS"
2934:
2935: else
2936: echo "$ac_t""no" 1>&6
2937: fi
2938:
2939: ;;
1.1 paf 2940: esac
2941:
2942: echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1.41 paf 2943: echo "configure:2944: checking for sin in -lm" >&5
1.1 paf 2944: ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
2945: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2946: echo $ac_n "(cached) $ac_c" 1>&6
2947: else
2948: ac_save_LIBS="$LIBS"
2949: LIBS="-lm $LIBS"
2950: cat > conftest.$ac_ext <<EOF
1.41 paf 2951: #line 2952 "configure"
1.1 paf 2952: #include "confdefs.h"
2953: /* Override any gcc2 internal prototype to avoid an error. */
2954: #ifdef __cplusplus
2955: extern "C"
2956: #endif
2957: /* We use char because int might match the return type of a gcc2
2958: builtin and then its argument prototype would still apply. */
2959: char sin();
2960:
2961: int main() {
2962: sin()
2963: ; return 0; }
2964: EOF
1.41 paf 2965: if { (eval echo configure:2966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2966: rm -rf conftest*
2967: eval "ac_cv_lib_$ac_lib_var=yes"
2968: else
2969: echo "configure: failed program was:" >&5
2970: cat conftest.$ac_ext >&5
2971: rm -rf conftest*
2972: eval "ac_cv_lib_$ac_lib_var=no"
2973: fi
2974: rm -f conftest*
2975: LIBS="$ac_save_LIBS"
2976:
2977: fi
2978: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2979: echo "$ac_t""yes" 1>&6
2980: ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2981: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2982: cat >> confdefs.h <<EOF
2983: #define $ac_tr_lib 1
2984: EOF
2985:
2986: LIBS="-lm $LIBS"
2987:
2988: else
2989: echo "$ac_t""no" 1>&6
2990: fi
2991:
2992:
1.31 paf 2993: echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
1.41 paf 2994: echo "configure:2995: checking for crypt in -lcrypt" >&5
1.31 paf 2995: ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
2996: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2997: echo $ac_n "(cached) $ac_c" 1>&6
2998: else
2999: ac_save_LIBS="$LIBS"
3000: LIBS="-lcrypt $LIBS"
3001: cat > conftest.$ac_ext <<EOF
1.41 paf 3002: #line 3003 "configure"
1.31 paf 3003: #include "confdefs.h"
3004: /* Override any gcc2 internal prototype to avoid an error. */
3005: #ifdef __cplusplus
3006: extern "C"
3007: #endif
3008: /* We use char because int might match the return type of a gcc2
3009: builtin and then its argument prototype would still apply. */
3010: char crypt();
3011:
3012: int main() {
3013: crypt()
3014: ; return 0; }
3015: EOF
1.41 paf 3016: if { (eval echo configure:3017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.31 paf 3017: rm -rf conftest*
3018: eval "ac_cv_lib_$ac_lib_var=yes"
3019: else
3020: echo "configure: failed program was:" >&5
3021: cat conftest.$ac_ext >&5
3022: rm -rf conftest*
3023: eval "ac_cv_lib_$ac_lib_var=no"
3024: fi
3025: rm -f conftest*
3026: LIBS="$ac_save_LIBS"
3027:
3028: fi
3029: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3030: echo "$ac_t""yes" 1>&6
3031: ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3032: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3033: cat >> confdefs.h <<EOF
3034: #define $ac_tr_lib 1
3035: EOF
3036:
3037: LIBS="-lcrypt $LIBS"
3038:
3039: else
3040: echo "$ac_t""no" 1>&6
3041: fi
3042:
3043:
1.1 paf 3044:
3045: for ac_func in trunc \
3046: round \
3047: sign \
3048: flock \
3049: _locking \
1.5 paf 3050: fcntl \
1.3 paf 3051: lockf \
1.31 paf 3052: getrusage \
3053: crypt
1.1 paf 3054:
3055: do
3056: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.41 paf 3057: echo "configure:3058: checking for $ac_func" >&5
1.1 paf 3058: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3059: echo $ac_n "(cached) $ac_c" 1>&6
3060: else
3061: cat > conftest.$ac_ext <<EOF
1.41 paf 3062: #line 3063 "configure"
1.1 paf 3063: #include "confdefs.h"
3064: /* System header to define __stub macros and hopefully few prototypes,
3065: which can conflict with char $ac_func(); below. */
3066: #include <assert.h>
3067: /* Override any gcc2 internal prototype to avoid an error. */
3068: #ifdef __cplusplus
3069: extern "C"
3070: #endif
3071: /* We use char because int might match the return type of a gcc2
3072: builtin and then its argument prototype would still apply. */
3073: char $ac_func();
3074:
3075: int main() {
3076:
3077: /* The GNU C library defines this for functions which it implements
3078: to always fail with ENOSYS. Some functions are actually named
3079: something starting with __ and the normal name is an alias. */
3080: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3081: choke me
3082: #else
3083: $ac_func();
3084: #endif
3085:
3086: ; return 0; }
3087: EOF
1.41 paf 3088: if { (eval echo configure:3089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 3089: rm -rf conftest*
3090: eval "ac_cv_func_$ac_func=yes"
3091: else
3092: echo "configure: failed program was:" >&5
3093: cat conftest.$ac_ext >&5
3094: rm -rf conftest*
3095: eval "ac_cv_func_$ac_func=no"
3096: fi
3097: rm -f conftest*
3098: fi
3099:
3100: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3101: echo "$ac_t""yes" 1>&6
3102: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3103: cat >> confdefs.h <<EOF
3104: #define $ac_tr_func 1
3105: EOF
3106:
3107: else
3108: echo "$ac_t""no" 1>&6
3109: fi
3110: done
3111:
3112:
1.3 paf 3113:
3114: for ac_func in qsort
3115: do
3116: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.41 paf 3117: echo "configure:3118: checking for $ac_func" >&5
1.3 paf 3118: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3119: echo $ac_n "(cached) $ac_c" 1>&6
3120: else
3121: cat > conftest.$ac_ext <<EOF
1.41 paf 3122: #line 3123 "configure"
1.3 paf 3123: #include "confdefs.h"
3124: /* System header to define __stub macros and hopefully few prototypes,
3125: which can conflict with char $ac_func(); below. */
3126: #include <assert.h>
3127: /* Override any gcc2 internal prototype to avoid an error. */
3128: #ifdef __cplusplus
3129: extern "C"
3130: #endif
3131: /* We use char because int might match the return type of a gcc2
3132: builtin and then its argument prototype would still apply. */
3133: char $ac_func();
3134:
3135: int main() {
3136:
3137: /* The GNU C library defines this for functions which it implements
3138: to always fail with ENOSYS. Some functions are actually named
3139: something starting with __ and the normal name is an alias. */
3140: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3141: choke me
3142: #else
3143: $ac_func();
3144: #endif
3145:
3146: ; return 0; }
3147: EOF
1.41 paf 3148: if { (eval echo configure:3149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.3 paf 3149: rm -rf conftest*
3150: eval "ac_cv_func_$ac_func=yes"
3151: else
3152: echo "configure: failed program was:" >&5
3153: cat conftest.$ac_ext >&5
3154: rm -rf conftest*
3155: eval "ac_cv_func_$ac_func=no"
3156: fi
3157: rm -f conftest*
3158: fi
3159:
3160: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3161: echo "$ac_t""yes" 1>&6
3162: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3163: cat >> confdefs.h <<EOF
3164: #define $ac_tr_func 1
3165: EOF
3166:
3167: else
3168: echo "$ac_t""no" 1>&6
3169: { echo "configure: error: No qsort library function." 1>&2; exit 1; }
3170: fi
3171: done
3172:
3173: for ac_func in select
3174: do
3175: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.41 paf 3176: echo "configure:3177: checking for $ac_func" >&5
1.3 paf 3177: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3178: echo $ac_n "(cached) $ac_c" 1>&6
3179: else
3180: cat > conftest.$ac_ext <<EOF
1.41 paf 3181: #line 3182 "configure"
1.3 paf 3182: #include "confdefs.h"
3183: /* System header to define __stub macros and hopefully few prototypes,
3184: which can conflict with char $ac_func(); below. */
3185: #include <assert.h>
3186: /* Override any gcc2 internal prototype to avoid an error. */
3187: #ifdef __cplusplus
3188: extern "C"
3189: #endif
3190: /* We use char because int might match the return type of a gcc2
3191: builtin and then its argument prototype would still apply. */
3192: char $ac_func();
3193:
3194: int main() {
3195:
3196: /* The GNU C library defines this for functions which it implements
3197: to always fail with ENOSYS. Some functions are actually named
3198: something starting with __ and the normal name is an alias. */
3199: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3200: choke me
3201: #else
3202: $ac_func();
3203: #endif
3204:
3205: ; return 0; }
3206: EOF
1.41 paf 3207: if { (eval echo configure:3208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.3 paf 3208: rm -rf conftest*
3209: eval "ac_cv_func_$ac_func=yes"
3210: else
3211: echo "configure: failed program was:" >&5
3212: cat conftest.$ac_ext >&5
3213: rm -rf conftest*
3214: eval "ac_cv_func_$ac_func=no"
3215: fi
3216: rm -f conftest*
3217: fi
3218:
3219: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3220: echo "$ac_t""yes" 1>&6
3221: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3222: cat >> confdefs.h <<EOF
3223: #define $ac_tr_func 1
3224: EOF
3225:
3226: else
3227: echo "$ac_t""no" 1>&6
3228: { echo "configure: error: No select library function." 1>&2; exit 1; }
3229: fi
3230: done
3231:
3232:
1.1 paf 3233: echo $ac_n "checking whether compiler supports pragma pack""... $ac_c" 1>&6
1.41 paf 3234: echo "configure:3235: checking whether compiler supports pragma pack" >&5
1.1 paf 3235: cat > conftest.$ac_ext <<EOF
1.41 paf 3236: #line 3237 "configure"
1.1 paf 3237: #include "confdefs.h"
3238: #pragma pack(1)
1.25 paf 3239: struct _1_byte {
1.1 paf 3240: char c;
1.25 paf 3241: };
1.1 paf 3242: #pragma pack()
1.25 paf 3243:
3244: int main() {
1.1 paf 3245:
3246: ; return 0; }
3247: EOF
1.41 paf 3248: if { (eval echo configure:3249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 paf 3249: rm -rf conftest*
3250:
3251: echo "$ac_t""yes" 1>&6
3252: cat >> confdefs.h <<\EOF
3253: #define HAVE_PRAGMA_PACK
3254: EOF
3255:
3256:
3257: else
3258: echo "configure: failed program was:" >&5
3259: cat conftest.$ac_ext >&5
3260: rm -rf conftest*
3261: echo "$ac_t""no" 1>&6
3262:
3263: fi
3264: rm -f conftest*
3265:
3266: echo $ac_n "checking for set_new_handler""... $ac_c" 1>&6
1.41 paf 3267: echo "configure:3268: checking for set_new_handler" >&5
1.1 paf 3268: cat > conftest.$ac_ext <<EOF
1.41 paf 3269: #line 3270 "configure"
1.1 paf 3270: #include "confdefs.h"
3271: #ifdef HAVE_NEW
3272: #include <new>
3273: #endif
3274: void failed_new() {}
3275:
3276: int main() {
3277: std::set_new_handler(failed_new);
3278:
3279: ; return 0; }
3280: EOF
1.41 paf 3281: if { (eval echo configure:3282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 paf 3282: rm -rf conftest*
3283:
3284: echo "$ac_t""yes" 1>&6
3285: cat >> confdefs.h <<\EOF
3286: #define HAVE_SET_NEW_HANDLER
3287: EOF
3288:
3289:
3290: else
3291: echo "configure: failed program was:" >&5
3292: cat conftest.$ac_ext >&5
3293: rm -rf conftest*
3294: echo "$ac_t""no" 1>&6
3295:
3296: fi
3297: rm -f conftest*
3298:
3299:
3300:
1.15 paf 3301:
1.8 paf 3302: APACHE_LIBS="$LIBS $LIBADD_DL"
1.1 paf 3303:
3304:
3305:
3306:
3307: # expand apostrophed
1.4 paf 3308: e_prefix=$prefix
3309: test "x$e_prefix" = xNONE && e_prefix=$ac_default_prefix
3310:
1.1 paf 3311: e_sysconfdir=$sysconfdir
1.4 paf 3312: test "$e_sysconfdir" = "\${prefix}/etc" && e_sysconfdir="${e_prefix}/etc"
1.1 paf 3313:
3314:
3315: charsetsdir=$e_sysconfdir/parser3.charsets
3316:
3317:
3318: # expand apostrophed
3319: e_libdir=$libdir
3320: if test "$e_libdir" = "\${exec_prefix}/lib"; then
3321:
3322: # Let make expand exec_prefix.
3323: e_exec_prefix=$exec_prefix
1.10 paf 3324: test "x$e_exec_prefix" = xNONE && e_exec_prefix=$e_prefix
1.1 paf 3325:
3326: # expand apostrophed
3327: test "$e_libdir" = "\${exec_prefix}/lib" && e_libdir="${e_exec_prefix}/lib"
3328: fi
3329:
3330: sqldriversdir=$e_libdir
3331:
3332:
3333:
3334:
3335:
3336:
3337:
3338: trap '' 1 2 15
3339: cat > confcache <<\EOF
3340: # This file is a shell script that caches the results of configure
3341: # tests run on this system so they can be shared between configure
3342: # scripts and configure runs. It is not useful on other systems.
3343: # If it contains results you don't want to keep, you may remove or edit it.
3344: #
3345: # By default, configure uses ./config.cache as the cache file,
3346: # creating it if it does not exist already. You can give configure
3347: # the --cache-file=FILE option to use a different cache file; that is
3348: # what configure does when it calls configure scripts in
3349: # subdirectories, so they share the cache.
3350: # Giving --cache-file=/dev/null disables caching, for debugging configure.
3351: # config.status only pays attention to the cache file if you give it the
3352: # --recheck option to rerun configure.
3353: #
3354: EOF
3355: # The following way of writing the cache mishandles newlines in values,
3356: # but we know of no workaround that is simple, portable, and efficient.
3357: # So, don't put newlines in cache variables' values.
3358: # Ultrix sh set writes to stderr and can't be redirected directly,
3359: # and sets the high bit in the cache file unless we assign to the vars.
3360: (set) 2>&1 |
3361: case `(ac_space=' '; set | grep ac_space) 2>&1` in
3362: *ac_space=\ *)
3363: # `set' does not quote correctly, so add quotes (double-quote substitution
3364: # turns \\\\ into \\, and sed turns \\ into \).
3365: sed -n \
3366: -e "s/'/'\\\\''/g" \
3367: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3368: ;;
3369: *)
3370: # `set' quotes correctly as required by POSIX, so do not add quotes.
3371: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3372: ;;
3373: esac >> confcache
3374: if cmp -s $cache_file confcache; then
3375: :
3376: else
3377: if test -w $cache_file; then
3378: echo "updating cache $cache_file"
3379: cat confcache > $cache_file
3380: else
3381: echo "not updating unwritable cache $cache_file"
3382: fi
3383: fi
3384: rm -f confcache
3385:
3386: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3387:
3388: test "x$prefix" = xNONE && prefix=$ac_default_prefix
3389: # Let make expand exec_prefix.
3390: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3391:
3392: # Any assignment to VPATH causes Sun make to only execute
3393: # the first set of double-colon rules, so remove it if not needed.
3394: # If there is a colon in the path, we need to keep it.
3395: if test "x$srcdir" = x.; then
3396: ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3397: fi
3398:
3399: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3400:
3401: DEFS=-DHAVE_CONFIG_H
3402:
3403: # Without the "./", some shells look in PATH for config.status.
3404: : ${CONFIG_STATUS=./config.status}
3405:
3406: echo creating $CONFIG_STATUS
3407: rm -f $CONFIG_STATUS
3408: cat > $CONFIG_STATUS <<EOF
3409: #! /bin/sh
3410: # Generated automatically by configure.
3411: # Run this file to recreate the current configuration.
3412: # This directory was configured as follows,
3413: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3414: #
3415: # $0 $ac_configure_args
3416: #
3417: # Compiler output produced by configure, useful for debugging
3418: # configure, is in ./config.log if it exists.
3419:
3420: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3421: for ac_option
3422: do
3423: case "\$ac_option" in
3424: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3425: echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3426: exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3427: -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3428: echo "$CONFIG_STATUS generated by autoconf version 2.13"
3429: exit 0 ;;
3430: -help | --help | --hel | --he | --h)
3431: echo "\$ac_cs_usage"; exit 0 ;;
3432: *) echo "\$ac_cs_usage"; exit 1 ;;
3433: esac
3434: done
3435:
3436: ac_given_srcdir=$srcdir
3437: ac_given_INSTALL="$INSTALL"
3438:
1.36 paf 3439: 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 3440: EOF
3441: cat >> $CONFIG_STATUS <<EOF
3442:
3443: # Protect against being on the right side of a sed subst in config.status.
3444: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3445: s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3446: $ac_vpsub
3447: $extrasub
3448: s%@SHELL@%$SHELL%g
3449: s%@CFLAGS@%$CFLAGS%g
3450: s%@CPPFLAGS@%$CPPFLAGS%g
3451: s%@CXXFLAGS@%$CXXFLAGS%g
3452: s%@FFLAGS@%$FFLAGS%g
3453: s%@DEFS@%$DEFS%g
3454: s%@LDFLAGS@%$LDFLAGS%g
3455: s%@LIBS@%$LIBS%g
3456: s%@exec_prefix@%$exec_prefix%g
3457: s%@prefix@%$prefix%g
3458: s%@program_transform_name@%$program_transform_name%g
3459: s%@bindir@%$bindir%g
3460: s%@sbindir@%$sbindir%g
3461: s%@libexecdir@%$libexecdir%g
3462: s%@datadir@%$datadir%g
3463: s%@sysconfdir@%$sysconfdir%g
3464: s%@sharedstatedir@%$sharedstatedir%g
3465: s%@localstatedir@%$localstatedir%g
3466: s%@libdir@%$libdir%g
3467: s%@includedir@%$includedir%g
3468: s%@oldincludedir@%$oldincludedir%g
3469: s%@infodir@%$infodir%g
3470: s%@mandir@%$mandir%g
3471: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3472: s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3473: s%@INSTALL_DATA@%$INSTALL_DATA%g
3474: s%@PACKAGE@%$PACKAGE%g
3475: s%@VERSION@%$VERSION%g
3476: s%@ACLOCAL@%$ACLOCAL%g
3477: s%@AUTOCONF@%$AUTOCONF%g
3478: s%@AUTOMAKE@%$AUTOMAKE%g
3479: s%@AUTOHEADER@%$AUTOHEADER%g
3480: s%@MAKEINFO@%$MAKEINFO%g
3481: s%@SET_MAKE@%$SET_MAKE%g
3482: s%@P3S@%$P3S%g
1.41 paf 3483: s%@host@%$host%g
3484: s%@host_alias@%$host_alias%g
3485: s%@host_cpu@%$host_cpu%g
3486: s%@host_vendor@%$host_vendor%g
3487: s%@host_os@%$host_os%g
3488: s%@RANLIB@%$RANLIB%g
3489: s%@AWK@%$AWK%g
3490: s%@YACC@%$YACC%g
1.1 paf 3491: s%@CC@%$CC%g
3492: s%@CXX@%$CXX%g
1.15 paf 3493: s%@DO_NOT_LINK_LIBSTDCPP_TRUE@%$DO_NOT_LINK_LIBSTDCPP_TRUE%g
3494: s%@DO_NOT_LINK_LIBSTDCPP_FALSE@%$DO_NOT_LINK_LIBSTDCPP_FALSE%g
1.17 paf 3495: s%@commentcharset_windows1251@%$commentcharset_windows1251%g
3496: s%@commentcharset_windows1250@%$commentcharset_windows1250%g
3497: s%@commentcharset_windows1257@%$commentcharset_windows1257%g
3498: s%@commentcharset_koi8r@%$commentcharset_koi8r%g
1.40 paf 3499: s%@dll_extension@%$dll_extension%g
1.17 paf 3500: s%@mysql_client@%$mysql_client%g
3501: s%@pgsql_client@%$pgsql_client%g
3502: s%@oracle_client@%$oracle_client%g
1.12 paf 3503: s%@XML_INCLUDES@%$XML_INCLUDES%g
3504: s%@XML_LIBS@%$XML_LIBS%g
1.29 paf 3505: s%@MIME_INCLUDES@%$MIME_INCLUDES%g
3506: s%@MIME_LIBS@%$MIME_LIBS%g
1.1 paf 3507: s%@APACHE13@%$APACHE13%g
3508: s%@COMPILE_APACHE13_MODULE_TRUE@%$COMPILE_APACHE13_MODULE_TRUE%g
3509: s%@COMPILE_APACHE13_MODULE_FALSE@%$COMPILE_APACHE13_MODULE_FALSE%g
3510: s%@INCLTDL@%$INCLTDL%g
3511: s%@LIBLTDL@%$LIBLTDL%g
1.8 paf 3512: s%@subdirs@%$subdirs%g
1.1 paf 3513: s%@LIBADD_DL@%$LIBADD_DL%g
3514: s%@CXXCPP@%$CXXCPP%g
3515: s%@APACHE_LIBS@%$APACHE_LIBS%g
3516: s%@charsetsdir@%$charsetsdir%g
3517: s%@sqldriversdir@%$sqldriversdir%g
3518:
3519: CEOF
3520: EOF
3521:
3522: cat >> $CONFIG_STATUS <<\EOF
3523:
3524: # Split the substitutions into bite-sized pieces for seds with
3525: # small command number limits, like on Digital OSF/1 and HP-UX.
3526: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3527: ac_file=1 # Number of current file.
3528: ac_beg=1 # First line for current file.
3529: ac_end=$ac_max_sed_cmds # Line after last line for current file.
3530: ac_more_lines=:
3531: ac_sed_cmds=""
3532: while $ac_more_lines; do
3533: if test $ac_beg -gt 1; then
3534: sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3535: else
3536: sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3537: fi
3538: if test ! -s conftest.s$ac_file; then
3539: ac_more_lines=false
3540: rm -f conftest.s$ac_file
3541: else
3542: if test -z "$ac_sed_cmds"; then
3543: ac_sed_cmds="sed -f conftest.s$ac_file"
3544: else
3545: ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3546: fi
3547: ac_file=`expr $ac_file + 1`
3548: ac_beg=$ac_end
3549: ac_end=`expr $ac_end + $ac_max_sed_cmds`
3550: fi
3551: done
3552: if test -z "$ac_sed_cmds"; then
3553: ac_sed_cmds=cat
3554: fi
3555: EOF
3556:
3557: cat >> $CONFIG_STATUS <<EOF
3558:
1.36 paf 3559: 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 3560: EOF
3561: cat >> $CONFIG_STATUS <<\EOF
3562: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3563: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3564: case "$ac_file" in
3565: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3566: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3567: *) ac_file_in="${ac_file}.in" ;;
3568: esac
3569:
3570: # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3571:
3572: # Remove last slash and all that follows it. Not all systems have dirname.
3573: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3574: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3575: # The file is in a subdirectory.
3576: test ! -d "$ac_dir" && mkdir "$ac_dir"
3577: ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3578: # A "../" for each directory in $ac_dir_suffix.
3579: ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3580: else
3581: ac_dir_suffix= ac_dots=
3582: fi
3583:
3584: case "$ac_given_srcdir" in
3585: .) srcdir=.
3586: if test -z "$ac_dots"; then top_srcdir=.
3587: else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3588: /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3589: *) # Relative path.
3590: srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3591: top_srcdir="$ac_dots$ac_given_srcdir" ;;
3592: esac
3593:
3594: case "$ac_given_INSTALL" in
3595: [/$]*) INSTALL="$ac_given_INSTALL" ;;
3596: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3597: esac
3598:
3599: echo creating "$ac_file"
3600: rm -f "$ac_file"
3601: configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3602: case "$ac_file" in
3603: *Makefile*) ac_comsub="1i\\
3604: # $configure_input" ;;
3605: *) ac_comsub= ;;
3606: esac
3607:
3608: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3609: sed -e "$ac_comsub
3610: s%@configure_input@%$configure_input%g
3611: s%@srcdir@%$srcdir%g
3612: s%@top_srcdir@%$top_srcdir%g
3613: s%@INSTALL@%$INSTALL%g
3614: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3615: fi; done
3616: rm -f conftest.s*
3617:
3618: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3619: # NAME is the cpp macro being defined and VALUE is the value it is being given.
3620: #
3621: # ac_d sets the value in "#define NAME VALUE" lines.
3622: ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3623: ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3624: ac_dC='\3'
3625: ac_dD='%g'
3626: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3627: ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3628: ac_uB='\([ ]\)%\1#\2define\3'
3629: ac_uC=' '
3630: ac_uD='\4%g'
3631: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3632: ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3633: ac_eB='$%\1#\2define\3'
3634: ac_eC=' '
3635: ac_eD='%g'
3636:
3637: if test "${CONFIG_HEADERS+set}" != set; then
3638: EOF
3639: cat >> $CONFIG_STATUS <<EOF
3640: CONFIG_HEADERS="src/include/pa_config_auto.h"
3641: EOF
3642: cat >> $CONFIG_STATUS <<\EOF
3643: fi
3644: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3645: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3646: case "$ac_file" in
3647: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3648: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3649: *) ac_file_in="${ac_file}.in" ;;
3650: esac
3651:
3652: echo creating $ac_file
3653:
3654: rm -f conftest.frag conftest.in conftest.out
3655: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3656: cat $ac_file_inputs > conftest.in
3657:
3658: EOF
3659:
3660: # Transform confdefs.h into a sed script conftest.vals that substitutes
3661: # the proper values into config.h.in to produce config.h. And first:
3662: # Protect against being on the right side of a sed subst in config.status.
3663: # Protect against being in an unquoted here document in config.status.
3664: rm -f conftest.vals
3665: cat > conftest.hdr <<\EOF
3666: s/[\\&%]/\\&/g
3667: s%[\\$`]%\\&%g
3668: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3669: s%ac_d%ac_u%gp
3670: s%ac_u%ac_e%gp
3671: EOF
3672: sed -n -f conftest.hdr confdefs.h > conftest.vals
3673: rm -f conftest.hdr
3674:
3675: # This sed command replaces #undef with comments. This is necessary, for
3676: # example, in the case of _POSIX_SOURCE, which is predefined and required
3677: # on some systems where configure will not decide to define it.
3678: cat >> conftest.vals <<\EOF
3679: s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3680: EOF
3681:
3682: # Break up conftest.vals because some shells have a limit on
3683: # the size of here documents, and old seds have small limits too.
3684:
3685: rm -f conftest.tail
3686: while :
3687: do
3688: ac_lines=`grep -c . conftest.vals`
3689: # grep -c gives empty output for an empty file on some AIX systems.
3690: if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3691: # Write a limited-size here document to conftest.frag.
3692: echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3693: sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3694: echo 'CEOF
3695: sed -f conftest.frag conftest.in > conftest.out
3696: rm -f conftest.in
3697: mv conftest.out conftest.in
3698: ' >> $CONFIG_STATUS
3699: sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3700: rm -f conftest.vals
3701: mv conftest.tail conftest.vals
3702: done
3703: rm -f conftest.vals
3704:
3705: cat >> $CONFIG_STATUS <<\EOF
3706: rm -f conftest.frag conftest.h
3707: echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3708: cat conftest.in >> conftest.h
3709: rm -f conftest.in
3710: if cmp -s $ac_file conftest.h 2>/dev/null; then
3711: echo "$ac_file is unchanged"
3712: rm -f conftest.h
3713: else
3714: # Remove last slash and all that follows it. Not all systems have dirname.
3715: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3716: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3717: # The file is in a subdirectory.
3718: test ! -d "$ac_dir" && mkdir "$ac_dir"
3719: fi
3720: rm -f $ac_file
3721: mv conftest.h $ac_file
3722: fi
3723: fi; done
3724:
3725: EOF
3726: cat >> $CONFIG_STATUS <<EOF
3727:
3728:
3729: EOF
3730: cat >> $CONFIG_STATUS <<\EOF
3731: test -z "$CONFIG_HEADERS" || echo timestamp > src/include/stamp-h
3732:
3733: exit 0
3734: EOF
3735: chmod +x $CONFIG_STATUS
3736: rm -fr confdefs* $ac_clean_files
3737: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3738:
3739: if test "$no_recursion" != yes; then
3740:
3741: # Remove --cache-file and --srcdir arguments so they do not pile up.
3742: ac_sub_configure_args=
3743: ac_prev=
3744: for ac_arg in $ac_configure_args; do
3745: if test -n "$ac_prev"; then
3746: ac_prev=
3747: continue
3748: fi
3749: case "$ac_arg" in
3750: -cache-file | --cache-file | --cache-fil | --cache-fi \
3751: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3752: ac_prev=cache_file ;;
3753: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3754: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3755: ;;
3756: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3757: ac_prev=srcdir ;;
3758: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3759: ;;
3760: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3761: esac
3762: done
3763:
1.28 paf 3764: for ac_config_dir in src/lib/libltdl; do
1.1 paf 3765:
3766: # Do not complain, so a configure script can configure whichever
3767: # parts of a large source tree are present.
3768: if test ! -d $srcdir/$ac_config_dir; then
3769: continue
3770: fi
3771:
3772: echo configuring in $ac_config_dir
3773:
3774: case "$srcdir" in
3775: .) ;;
3776: *)
3777: if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3778: else
3779: { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3780: fi
3781: ;;
3782: esac
3783:
3784: ac_popdir=`pwd`
3785: cd $ac_config_dir
3786:
3787: # A "../" for each directory in /$ac_config_dir.
3788: ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3789:
3790: case "$srcdir" in
3791: .) # No --srcdir option. We are building in place.
3792: ac_sub_srcdir=$srcdir ;;
3793: /*) # Absolute path.
3794: ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3795: *) # Relative path.
3796: ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3797: esac
3798:
3799: # Check for guested configure; otherwise get Cygnus style configure.
3800: if test -f $ac_sub_srcdir/configure; then
3801: ac_sub_configure=$ac_sub_srcdir/configure
3802: elif test -f $ac_sub_srcdir/configure.in; then
3803: ac_sub_configure=$ac_configure
3804: else
3805: echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3806: ac_sub_configure=
3807: fi
3808:
3809: # The recursion is here.
3810: if test -n "$ac_sub_configure"; then
3811:
3812: # Make the cache file name correct relative to the subdirectory.
3813: case "$cache_file" in
3814: /*) ac_sub_cache_file=$cache_file ;;
3815: *) # Relative path.
3816: ac_sub_cache_file="$ac_dots$cache_file" ;;
3817: esac
3818: case "$ac_given_INSTALL" in
3819: [/$]*) INSTALL="$ac_given_INSTALL" ;;
3820: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3821: esac
3822:
3823: echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3824: # The eval makes quoting arguments work.
3825: if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3826: then :
3827: else
3828: { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3829: fi
3830: fi
3831:
3832: cd $ac_popdir
3833: done
3834: fi
3835:
E-mail: