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