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