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