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