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