OSDN Git Service

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