OSDN Git Service

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