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