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