import from HEAD:
[freeradius.git] / libltdl / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --with-auxdir=DIR   path to autoconf auxiliary files"
16 ac_help="$ac_help
17   --disable-dependency-tracking Speeds up one-time builds
18   --enable-dependency-tracking  Do not reject slow dependency extractors"
19 ac_help="$ac_help
20   --enable-maintainer-mode enable make rules and dependencies not useful
21                           (and sometimes confusing) to the casual installer"
22 ac_help="$ac_help
23   --enable-shared[=PKGS]  build shared libraries [default=yes]"
24 ac_help="$ac_help
25   --enable-static[=PKGS]  build static libraries [default=yes]"
26 ac_help="$ac_help
27   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
28 ac_help="$ac_help
29   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
30
31 # Find the correct PATH separator.  Usually this is `:', but
32 # DJGPP uses `;' like DOS.
33 if test "X${PATH_SEPARATOR+set}" != Xset; then
34   UNAME=${UNAME-`uname 2>/dev/null`}
35   case X$UNAME in
36     *-DOS) lt_cv_sys_path_separator=';' ;;
37     *)     lt_cv_sys_path_separator=':' ;;
38   esac
39   PATH_SEPARATOR=$lt_cv_sys_path_separator
40 fi
41
42
43 # Check that we are running under the correct shell.
44 SHELL=${CONFIG_SHELL-/bin/sh}
45
46 case X$ECHO in
47 X*--fallback-echo)
48   # Remove one level of quotation (which was required for Make).
49   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
50   ;;
51 esac
52
53 echo=${ECHO-echo}
54 if test "X$1" = X--no-reexec; then
55   # Discard the --no-reexec flag, and continue.
56   shift
57 elif test "X$1" = X--fallback-echo; then
58   # Avoid inline document here, it may be left over
59   :
60 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
61   # Yippee, $echo works!
62   :
63 else
64   # Restart under the correct shell.
65   exec $SHELL "$0" --no-reexec ${1+"$@"}
66 fi
67
68 if test "X$1" = X--fallback-echo; then
69   # used as fallback echo
70   shift
71   cat <<EOF
72
73 EOF
74   exit 0
75 fi
76
77 # The HP-UX ksh and POSIX shell print the target directory to stdout
78 # if CDPATH is set.
79 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
80
81 if test -z "$ECHO"; then
82 if test "X${echo_test_string+set}" != Xset; then
83 # find a string as large as possible, as long as the shell can cope with it
84   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
85     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
86     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
87        echo_test_string="`eval $cmd`" &&
88        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
89     then
90       break
91     fi
92   done
93 fi
94
95 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
96    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
97    test "X$echo_testing_string" = "X$echo_test_string"; then
98   :
99 else
100   # The Solaris, AIX, and Digital Unix default echo programs unquote
101   # backslashes.  This makes it impossible to quote backslashes using
102   #   echo "$something" | sed 's/\\/\\\\/g'
103   #
104   # So, first we look for a working echo in the user's PATH.
105
106   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
107   for dir in $PATH /usr/ucb; do
108     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
109        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
110        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
111        test "X$echo_testing_string" = "X$echo_test_string"; then
112       echo="$dir/echo"
113       break
114     fi
115   done
116   IFS="$save_ifs"
117
118   if test "X$echo" = Xecho; then
119     # We didn't find a better echo, so look for alternatives.
120     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
121        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
122        test "X$echo_testing_string" = "X$echo_test_string"; then
123       # This shell has a builtin print -r that does the trick.
124       echo='print -r'
125     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
126          test "X$CONFIG_SHELL" != X/bin/ksh; then
127       # If we have ksh, try running configure again with it.
128       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
129       export ORIGINAL_CONFIG_SHELL
130       CONFIG_SHELL=/bin/ksh
131       export CONFIG_SHELL
132       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
133     else
134       # Try using printf.
135       echo='printf %s\n'
136       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
137          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
138          test "X$echo_testing_string" = "X$echo_test_string"; then
139         # Cool, printf works
140         :
141       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
142            test "X$echo_testing_string" = 'X\t' &&
143            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
144            test "X$echo_testing_string" = "X$echo_test_string"; then
145         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
146         export CONFIG_SHELL
147         SHELL="$CONFIG_SHELL"
148         export SHELL
149         echo="$CONFIG_SHELL $0 --fallback-echo"
150       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
151            test "X$echo_testing_string" = 'X\t' &&
152            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
153            test "X$echo_testing_string" = "X$echo_test_string"; then
154         echo="$CONFIG_SHELL $0 --fallback-echo"
155       else
156         # maybe with a smaller string...
157         prev=:
158
159         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
160           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
161           then
162             break
163           fi
164           prev="$cmd"
165         done
166
167         if test "$prev" != 'sed 50q "$0"'; then
168           echo_test_string=`eval $prev`
169           export echo_test_string
170           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
171         else
172           # Oops.  We lost completely, so just stick with echo.
173           echo=echo
174         fi
175       fi
176     fi
177   fi
178 fi
179 fi
180
181 # Copy echo and quote the copy suitably for passing to libtool from
182 # the Makefile, instead of quoting the original, which is used later.
183 ECHO=$echo
184 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
185    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
186 fi
187
188
189 ac_help="$ac_help
190   --disable-libtool-lock  avoid locking (might break parallel builds)"
191 ac_help="$ac_help
192   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
193 ac_help="$ac_help
194   --enable-ltdl-install   install libltdl"
195
196 # Initialize some variables set by options.
197 # The variables have the same names as the options, with
198 # dashes changed to underlines.
199 build=NONE
200 cache_file=./config.cache
201 exec_prefix=NONE
202 host=NONE
203 no_create=
204 nonopt=NONE
205 no_recursion=
206 prefix=NONE
207 program_prefix=NONE
208 program_suffix=NONE
209 program_transform_name=s,x,x,
210 silent=
211 site=
212 srcdir=
213 target=NONE
214 verbose=
215 x_includes=NONE
216 x_libraries=NONE
217 bindir='${exec_prefix}/bin'
218 sbindir='${exec_prefix}/sbin'
219 libexecdir='${exec_prefix}/libexec'
220 datadir='${prefix}/share'
221 sysconfdir='${prefix}/etc'
222 sharedstatedir='${prefix}/com'
223 localstatedir='${prefix}/var'
224 libdir='${exec_prefix}/lib'
225 includedir='${prefix}/include'
226 oldincludedir='/usr/include'
227 infodir='${prefix}/info'
228 mandir='${prefix}/man'
229
230 # Initialize some other variables.
231 subdirs=
232 MFLAGS= MAKEFLAGS=
233 SHELL=${CONFIG_SHELL-/bin/sh}
234 # Maximum number of lines to put in a shell here document.
235 ac_max_here_lines=12
236
237 ac_prev=
238 for ac_option
239 do
240
241   # If the previous option needs an argument, assign it.
242   if test -n "$ac_prev"; then
243     eval "$ac_prev=\$ac_option"
244     ac_prev=
245     continue
246   fi
247
248   case "$ac_option" in
249   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
250   *) ac_optarg= ;;
251   esac
252
253   # Accept the important Cygnus configure options, so we can diagnose typos.
254
255   case "$ac_option" in
256
257   -bindir | --bindir | --bindi | --bind | --bin | --bi)
258     ac_prev=bindir ;;
259   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
260     bindir="$ac_optarg" ;;
261
262   -build | --build | --buil | --bui | --bu)
263     ac_prev=build ;;
264   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
265     build="$ac_optarg" ;;
266
267   -cache-file | --cache-file | --cache-fil | --cache-fi \
268   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
269     ac_prev=cache_file ;;
270   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
271   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
272     cache_file="$ac_optarg" ;;
273
274   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
275     ac_prev=datadir ;;
276   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
277   | --da=*)
278     datadir="$ac_optarg" ;;
279
280   -disable-* | --disable-*)
281     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
282     # Reject names that are not valid shell variable names.
283     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
284       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
285     fi
286     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
287     eval "enable_${ac_feature}=no" ;;
288
289   -enable-* | --enable-*)
290     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
291     # Reject names that are not valid shell variable names.
292     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
293       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
294     fi
295     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
296     case "$ac_option" in
297       *=*) ;;
298       *) ac_optarg=yes ;;
299     esac
300     eval "enable_${ac_feature}='$ac_optarg'" ;;
301
302   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
303   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
304   | --exec | --exe | --ex)
305     ac_prev=exec_prefix ;;
306   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
307   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
308   | --exec=* | --exe=* | --ex=*)
309     exec_prefix="$ac_optarg" ;;
310
311   -gas | --gas | --ga | --g)
312     # Obsolete; use --with-gas.
313     with_gas=yes ;;
314
315   -help | --help | --hel | --he)
316     # Omit some internal or obsolete options to make the list less imposing.
317     # This message is too long to be a string in the A/UX 3.1 sh.
318     cat << EOF
319 Usage: configure [options] [host]
320 Options: [defaults in brackets after descriptions]
321 Configuration:
322   --cache-file=FILE       cache test results in FILE
323   --help                  print this message
324   --no-create             do not create output files
325   --quiet, --silent       do not print \`checking...' messages
326   --version               print the version of autoconf that created configure
327 Directory and file names:
328   --prefix=PREFIX         install architecture-independent files in PREFIX
329                           [$ac_default_prefix]
330   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
331                           [same as prefix]
332   --bindir=DIR            user executables in DIR [EPREFIX/bin]
333   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
334   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
335   --datadir=DIR           read-only architecture-independent data in DIR
336                           [PREFIX/share]
337   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
338   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
339                           [PREFIX/com]
340   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
341   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
342   --includedir=DIR        C header files in DIR [PREFIX/include]
343   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
344   --infodir=DIR           info documentation in DIR [PREFIX/info]
345   --mandir=DIR            man documentation in DIR [PREFIX/man]
346   --srcdir=DIR            find the sources in DIR [configure dir or ..]
347   --program-prefix=PREFIX prepend PREFIX to installed program names
348   --program-suffix=SUFFIX append SUFFIX to installed program names
349   --program-transform-name=PROGRAM
350                           run sed PROGRAM on installed program names
351 EOF
352     cat << EOF
353 Host type:
354   --build=BUILD           configure for building on BUILD [BUILD=HOST]
355   --host=HOST             configure for HOST [guessed]
356   --target=TARGET         configure for TARGET [TARGET=HOST]
357 Features and packages:
358   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
359   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
360   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
361   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
362   --x-includes=DIR        X include files are in DIR
363   --x-libraries=DIR       X library files are in DIR
364 EOF
365     if test -n "$ac_help"; then
366       echo "--enable and --with options recognized:$ac_help"
367     fi
368     exit 0 ;;
369
370   -host | --host | --hos | --ho)
371     ac_prev=host ;;
372   -host=* | --host=* | --hos=* | --ho=*)
373     host="$ac_optarg" ;;
374
375   -includedir | --includedir | --includedi | --included | --include \
376   | --includ | --inclu | --incl | --inc)
377     ac_prev=includedir ;;
378   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
379   | --includ=* | --inclu=* | --incl=* | --inc=*)
380     includedir="$ac_optarg" ;;
381
382   -infodir | --infodir | --infodi | --infod | --info | --inf)
383     ac_prev=infodir ;;
384   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
385     infodir="$ac_optarg" ;;
386
387   -libdir | --libdir | --libdi | --libd)
388     ac_prev=libdir ;;
389   -libdir=* | --libdir=* | --libdi=* | --libd=*)
390     libdir="$ac_optarg" ;;
391
392   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
393   | --libexe | --libex | --libe)
394     ac_prev=libexecdir ;;
395   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
396   | --libexe=* | --libex=* | --libe=*)
397     libexecdir="$ac_optarg" ;;
398
399   -localstatedir | --localstatedir | --localstatedi | --localstated \
400   | --localstate | --localstat | --localsta | --localst \
401   | --locals | --local | --loca | --loc | --lo)
402     ac_prev=localstatedir ;;
403   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
404   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
405   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
406     localstatedir="$ac_optarg" ;;
407
408   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
409     ac_prev=mandir ;;
410   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
411     mandir="$ac_optarg" ;;
412
413   -nfp | --nfp | --nf)
414     # Obsolete; use --without-fp.
415     with_fp=no ;;
416
417   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
418   | --no-cr | --no-c)
419     no_create=yes ;;
420
421   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
422   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
423     no_recursion=yes ;;
424
425   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
426   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
427   | --oldin | --oldi | --old | --ol | --o)
428     ac_prev=oldincludedir ;;
429   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
430   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
431   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
432     oldincludedir="$ac_optarg" ;;
433
434   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
435     ac_prev=prefix ;;
436   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
437     prefix="$ac_optarg" ;;
438
439   -program-prefix | --program-prefix | --program-prefi | --program-pref \
440   | --program-pre | --program-pr | --program-p)
441     ac_prev=program_prefix ;;
442   -program-prefix=* | --program-prefix=* | --program-prefi=* \
443   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
444     program_prefix="$ac_optarg" ;;
445
446   -program-suffix | --program-suffix | --program-suffi | --program-suff \
447   | --program-suf | --program-su | --program-s)
448     ac_prev=program_suffix ;;
449   -program-suffix=* | --program-suffix=* | --program-suffi=* \
450   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
451     program_suffix="$ac_optarg" ;;
452
453   -program-transform-name | --program-transform-name \
454   | --program-transform-nam | --program-transform-na \
455   | --program-transform-n | --program-transform- \
456   | --program-transform | --program-transfor \
457   | --program-transfo | --program-transf \
458   | --program-trans | --program-tran \
459   | --progr-tra | --program-tr | --program-t)
460     ac_prev=program_transform_name ;;
461   -program-transform-name=* | --program-transform-name=* \
462   | --program-transform-nam=* | --program-transform-na=* \
463   | --program-transform-n=* | --program-transform-=* \
464   | --program-transform=* | --program-transfor=* \
465   | --program-transfo=* | --program-transf=* \
466   | --program-trans=* | --program-tran=* \
467   | --progr-tra=* | --program-tr=* | --program-t=*)
468     program_transform_name="$ac_optarg" ;;
469
470   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
471   | -silent | --silent | --silen | --sile | --sil)
472     silent=yes ;;
473
474   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
475     ac_prev=sbindir ;;
476   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
477   | --sbi=* | --sb=*)
478     sbindir="$ac_optarg" ;;
479
480   -sharedstatedir | --sharedstatedir | --sharedstatedi \
481   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
482   | --sharedst | --shareds | --shared | --share | --shar \
483   | --sha | --sh)
484     ac_prev=sharedstatedir ;;
485   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
486   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
487   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
488   | --sha=* | --sh=*)
489     sharedstatedir="$ac_optarg" ;;
490
491   -site | --site | --sit)
492     ac_prev=site ;;
493   -site=* | --site=* | --sit=*)
494     site="$ac_optarg" ;;
495
496   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
497     ac_prev=srcdir ;;
498   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
499     srcdir="$ac_optarg" ;;
500
501   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
502   | --syscon | --sysco | --sysc | --sys | --sy)
503     ac_prev=sysconfdir ;;
504   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
505   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
506     sysconfdir="$ac_optarg" ;;
507
508   -target | --target | --targe | --targ | --tar | --ta | --t)
509     ac_prev=target ;;
510   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
511     target="$ac_optarg" ;;
512
513   -v | -verbose | --verbose | --verbos | --verbo | --verb)
514     verbose=yes ;;
515
516   -version | --version | --versio | --versi | --vers)
517     echo "configure generated by autoconf version 2.13"
518     exit 0 ;;
519
520   -with-* | --with-*)
521     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
522     # Reject names that are not valid shell variable names.
523     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
524       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
525     fi
526     ac_package=`echo $ac_package| sed 's/-/_/g'`
527     case "$ac_option" in
528       *=*) ;;
529       *) ac_optarg=yes ;;
530     esac
531     eval "with_${ac_package}='$ac_optarg'" ;;
532
533   -without-* | --without-*)
534     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
535     # Reject names that are not valid shell variable names.
536     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
537       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
538     fi
539     ac_package=`echo $ac_package| sed 's/-/_/g'`
540     eval "with_${ac_package}=no" ;;
541
542   --x)
543     # Obsolete; use --with-x.
544     with_x=yes ;;
545
546   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
547   | --x-incl | --x-inc | --x-in | --x-i)
548     ac_prev=x_includes ;;
549   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
550   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
551     x_includes="$ac_optarg" ;;
552
553   -x-libraries | --x-libraries | --x-librarie | --x-librari \
554   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
555     ac_prev=x_libraries ;;
556   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
557   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
558     x_libraries="$ac_optarg" ;;
559
560   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
561     ;;
562
563   *)
564     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
565       echo "configure: warning: $ac_option: invalid host type" 1>&2
566     fi
567     if test "x$nonopt" != xNONE; then
568       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
569     fi
570     nonopt="$ac_option"
571     ;;
572
573   esac
574 done
575
576 if test -n "$ac_prev"; then
577   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
578 fi
579
580 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
581
582 # File descriptor usage:
583 # 0 standard input
584 # 1 file creation
585 # 2 errors and warnings
586 # 3 some systems may open it to /dev/tty
587 # 4 used on the Kubota Titan
588 # 6 checking for... messages and results
589 # 5 compiler messages saved in config.log
590 if test "$silent" = yes; then
591   exec 6>/dev/null
592 else
593   exec 6>&1
594 fi
595 exec 5>./config.log
596
597 echo "\
598 This file contains any messages produced by compilers while
599 running configure, to aid debugging if configure makes a mistake.
600 " 1>&5
601
602 # Strip out --no-create and --no-recursion so they do not pile up.
603 # Also quote any args containing shell metacharacters.
604 ac_configure_args=
605 for ac_arg
606 do
607   case "$ac_arg" in
608   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
609   | --no-cr | --no-c) ;;
610   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
611   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
612   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
613   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
614   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
615   esac
616 done
617
618 # NLS nuisances.
619 # Only set these to C if already set.  These must not be set unconditionally
620 # because not all systems understand e.g. LANG=C (notably SCO).
621 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
622 # Non-C LC_CTYPE values break the ctype check.
623 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
624 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
625 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
626 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
627
628 # confdefs.h avoids OS command line length limits that DEFS can exceed.
629 rm -rf conftest* confdefs.h
630 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
631 echo > confdefs.h
632
633 # A filename unique to this package, relative to the directory that
634 # configure is in, which we can look for to find out if srcdir is correct.
635 ac_unique_file=ltdl.c
636
637 # Find the source files, if location was not specified.
638 if test -z "$srcdir"; then
639   ac_srcdir_defaulted=yes
640   # Try the directory containing this script, then its parent.
641   ac_prog=$0
642   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
643   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
644   srcdir=$ac_confdir
645   if test ! -r $srcdir/$ac_unique_file; then
646     srcdir=..
647   fi
648 else
649   ac_srcdir_defaulted=no
650 fi
651 if test ! -r $srcdir/$ac_unique_file; then
652   if test "$ac_srcdir_defaulted" = yes; then
653     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
654   else
655     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
656   fi
657 fi
658 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
659
660 # Prefer explicitly selected file to automatically selected ones.
661 if test -z "$CONFIG_SITE"; then
662   if test "x$prefix" != xNONE; then
663     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
664   else
665     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
666   fi
667 fi
668 for ac_site_file in $CONFIG_SITE; do
669   if test -r "$ac_site_file"; then
670     echo "loading site script $ac_site_file"
671     . "$ac_site_file"
672   fi
673 done
674
675 if test -r "$cache_file"; then
676   echo "loading cache $cache_file"
677   . $cache_file
678 else
679   echo "creating cache $cache_file"
680   > $cache_file
681 fi
682
683 ac_ext=c
684 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
685 ac_cpp='$CPP $CPPFLAGS'
686 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
687 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
688 cross_compiling=$ac_cv_prog_cc_cross
689
690 ac_exeext=
691 ac_objext=o
692 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
693   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
694   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
695     ac_n= ac_c='
696 ' ac_t='        '
697   else
698     ac_n=-n ac_c= ac_t=
699   fi
700 else
701   ac_n= ac_c='\c' ac_t=
702 fi
703
704
705
706 # Check whether --with-auxdir or --without-auxdir was given.
707 if test "${with_auxdir+set}" = set; then
708   withval="$with_auxdir"
709   ac_aux_dir=
710 for ac_dir in $with_auxdir; do
711   if test -f $ac_dir/install-sh; then
712     ac_aux_dir=$ac_dir
713     ac_install_sh="$ac_aux_dir/install-sh -c"
714     break
715   elif test -f $ac_dir/install.sh; then
716     ac_aux_dir=$ac_dir
717     ac_install_sh="$ac_aux_dir/install.sh -c"
718     break
719   fi
720 done
721 if test -z "$ac_aux_dir"; then
722   { echo "configure: error: can not find install-sh or install.sh in $with_auxdir" 1>&2; exit 1; }
723 fi
724 ac_config_guess=$ac_aux_dir/config.guess
725 ac_config_sub=$ac_aux_dir/config.sub
726 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
727
728 else
729   ac_aux_dir=
730 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
731   if test -f $ac_dir/install-sh; then
732     ac_aux_dir=$ac_dir
733     ac_install_sh="$ac_aux_dir/install-sh -c"
734     break
735   elif test -f $ac_dir/install.sh; then
736     ac_aux_dir=$ac_dir
737     ac_install_sh="$ac_aux_dir/install.sh -c"
738     break
739   fi
740 done
741 if test -z "$ac_aux_dir"; then
742   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
743 fi
744 ac_config_guess=$ac_aux_dir/config.guess
745 ac_config_sub=$ac_aux_dir/config.sub
746 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
747
748 fi
749
750
751 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
752   if test -f ${srcdir}/ltmain.sh; then
753     # if libltdl is libtoolized, it is assumed to be stand-alone and
754     # installed unless the command line overrides it (tested above)
755     enable_ltdl_install=yes
756   else
757     echo "configure: warning: *** The top-level configure must select either" 1>&2
758     echo "configure: warning: *** A""C_LIBLTDL_INSTALLABLE or A""C_LIBLTDL_CONVENIENCE." 1>&2
759     { echo "configure: error: *** Maybe you want to --enable-ltdl-install?" 1>&2; exit 1; }
760   fi
761 fi
762
763
764 # expand $ac_aux_dir to an absolute path
765 am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
766
767 # Find a good install program.  We prefer a C program (faster),
768 # so one script is as good as another.  But avoid the broken or
769 # incompatible versions:
770 # SysV /etc/install, /usr/sbin/install
771 # SunOS /usr/etc/install
772 # IRIX /sbin/install
773 # AIX /bin/install
774 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
775 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
776 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
777 # ./install, which can be erroneously created by make from ./install.sh.
778 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
779 echo "configure:780: checking for a BSD compatible install" >&5
780 if test -z "$INSTALL"; then
781 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
782   echo $ac_n "(cached) $ac_c" 1>&6
783 else
784     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
785   for ac_dir in $PATH; do
786     # Account for people who put trailing slashes in PATH elements.
787     case "$ac_dir/" in
788     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
789     *)
790       # OSF1 and SCO ODT 3.0 have their own names for install.
791       # Don't use installbsd from OSF since it installs stuff as root
792       # by default.
793       for ac_prog in ginstall scoinst install; do
794         if test -f $ac_dir/$ac_prog; then
795           if test $ac_prog = install &&
796             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
797             # AIX install.  It has an incompatible calling convention.
798             :
799           else
800             ac_cv_path_install="$ac_dir/$ac_prog -c"
801             break 2
802           fi
803         fi
804       done
805       ;;
806     esac
807   done
808   IFS="$ac_save_IFS"
809
810 fi
811   if test "${ac_cv_path_install+set}" = set; then
812     INSTALL="$ac_cv_path_install"
813   else
814     # As a last resort, use the slow shell script.  We don't cache a
815     # path for INSTALL within a source directory, because that will
816     # break other packages using the cache if that directory is
817     # removed, or if the path is relative.
818     INSTALL="$ac_install_sh"
819   fi
820 fi
821 echo "$ac_t""$INSTALL" 1>&6
822
823 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
824 # It thinks the first close brace ends the variable substitution.
825 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
826
827 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
828
829 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
830
831 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
832 echo "configure:833: checking whether build environment is sane" >&5
833 # Just in case
834 sleep 1
835 echo timestamp > conftest.file
836 # Do `set' in a subshell so we don't clobber the current shell's
837 # arguments.  Must try -L first in case configure is actually a
838 # symlink; some systems play weird games with the mod time of symlinks
839 # (eg FreeBSD returns the mod time of the symlink's containing
840 # directory).
841 if (
842    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
843    if test "$*" = "X"; then
844       # -L didn't work.
845       set X `ls -t $srcdir/configure conftest.file`
846    fi
847    rm -f conftest.file
848    if test "$*" != "X $srcdir/configure conftest.file" \
849       && test "$*" != "X conftest.file $srcdir/configure"; then
850
851       # If neither matched, then we have a broken ls.  This can happen
852       # if, for instance, CONFIG_SHELL is bash and it inherits a
853       # broken ls alias from the environment.  This has actually
854       # happened.  Such a system could not be considered "sane".
855       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
856 alias in your environment" 1>&2; exit 1; }
857    fi
858
859    test "$2" = conftest.file
860    )
861 then
862    # Ok.
863    :
864 else
865    { echo "configure: error: newly created file is older than distributed files!
866 Check your system clock" 1>&2; exit 1; }
867 fi
868 echo "$ac_t""yes" 1>&6
869 if test "$program_transform_name" = s,x,x,; then
870   program_transform_name=
871 else
872   # Double any \ or $.  echo might interpret backslashes.
873   cat <<\EOF_SED > conftestsed
874 s,\\,\\\\,g; s,\$,$$,g
875 EOF_SED
876   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
877   rm -f conftestsed
878 fi
879 test "$program_prefix" != NONE &&
880   program_transform_name="s,^,${program_prefix},; $program_transform_name"
881 # Use a double $ so make ignores it.
882 test "$program_suffix" != NONE &&
883   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
884
885 # sed with no file args requires a program.
886 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
887
888 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
889 # Use eval to expand $SHELL
890 if eval "$MISSING --run true"; then
891   am_missing_run="$MISSING --run "
892 else
893   am_missing_run=
894   am_backtick='`'
895   echo "configure: warning: ${am_backtick}missing' script is too old or missing" 1>&2
896 fi
897
898 for ac_prog in mawk gawk nawk awk
899 do
900 # Extract the first word of "$ac_prog", so it can be a program name with args.
901 set dummy $ac_prog; ac_word=$2
902 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
903 echo "configure:904: checking for $ac_word" >&5
904 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
905   echo $ac_n "(cached) $ac_c" 1>&6
906 else
907   if test -n "$AWK"; then
908   ac_cv_prog_AWK="$AWK" # Let the user override the test.
909 else
910   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
911   ac_dummy="$PATH"
912   for ac_dir in $ac_dummy; do
913     test -z "$ac_dir" && ac_dir=.
914     if test -f $ac_dir/$ac_word; then
915       ac_cv_prog_AWK="$ac_prog"
916       break
917     fi
918   done
919   IFS="$ac_save_ifs"
920 fi
921 fi
922 AWK="$ac_cv_prog_AWK"
923 if test -n "$AWK"; then
924   echo "$ac_t""$AWK" 1>&6
925 else
926   echo "$ac_t""no" 1>&6
927 fi
928
929 test -n "$AWK" && break
930 done
931
932 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
933 echo "configure:934: checking whether ${MAKE-make} sets \${MAKE}" >&5
934 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
935 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
936   echo $ac_n "(cached) $ac_c" 1>&6
937 else
938   cat > conftestmake <<\EOF
939 all:
940         @echo 'ac_maketemp="${MAKE}"'
941 EOF
942 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
943 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
944 if test -n "$ac_maketemp"; then
945   eval ac_cv_prog_make_${ac_make}_set=yes
946 else
947   eval ac_cv_prog_make_${ac_make}_set=no
948 fi
949 rm -f conftestmake
950 fi
951 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
952   echo "$ac_t""yes" 1>&6
953   SET_MAKE=
954 else
955   echo "$ac_t""no" 1>&6
956   SET_MAKE="MAKE=${MAKE-make}"
957 fi
958
959 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
960 if test "${enable_dependency_tracking+set}" = set; then
961   enableval="$enable_dependency_tracking"
962   :
963 fi
964
965 if test "x$enable_dependency_tracking" != xno; then
966   am_depcomp="$ac_aux_dir/depcomp"
967   AMDEPBACKSLASH='\'
968 fi
969
970
971 if test "x$enable_dependency_tracking" != xno; then
972   AMDEP_TRUE=
973   AMDEP_FALSE='#'
974 else
975   AMDEP_TRUE='#'
976   AMDEP_FALSE=
977 fi
978
979
980
981
982 rm -f .deps 2>/dev/null
983 mkdir .deps 2>/dev/null
984 if test -d .deps; then
985   DEPDIR=.deps
986 else
987   # MS-DOS does not allow filenames that begin with a dot.
988   DEPDIR=_deps
989 fi
990 rmdir .deps 2>/dev/null
991
992
993 # test to see if srcdir already configured
994 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
995    test -f $srcdir/config.status; then
996   { echo "configure: error: source directory already configured; run \"make distclean\" there first" 1>&2; exit 1; }
997 fi
998
999 # Define the identity of the package.
1000 PACKAGE=libltdl
1001 VERSION=1.2
1002
1003
1004 # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
1005 # the ones we care about.
1006
1007 # Autoconf 2.50 always computes EXEEXT.  However we need to be
1008 # compatible with 2.13, for now.  So we always define EXEEXT, but we
1009 # don't compute it.
1010
1011 # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1012 # requests that it be used.  This is a bit dumb.
1013 : ${OBJEXT=o}
1014
1015
1016 # Some tools Automake needs.
1017
1018 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1019
1020
1021 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1022
1023
1024 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1025
1026
1027 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1028
1029
1030 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1031
1032
1033 AMTAR=${AMTAR-"${am_missing_run}tar"}
1034
1035 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1036
1037 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1038
1039 # We need awk for the "check" target.  The system "awk" is bad on
1040 # some platforms.
1041
1042
1043   
1044
1045 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1046 echo "configure:1047: checking whether to enable maintainer-specific portions of Makefiles" >&5
1047     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1048 if test "${enable_maintainer_mode+set}" = set; then
1049   enableval="$enable_maintainer_mode"
1050   USE_MAINTAINER_MODE=$enableval
1051 else
1052   USE_MAINTAINER_MODE=no
1053 fi
1054
1055   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1056   
1057
1058 if test $USE_MAINTAINER_MODE = yes; then
1059   MAINTAINER_MODE_TRUE=
1060   MAINTAINER_MODE_FALSE='#'
1061 else
1062   MAINTAINER_MODE_TRUE='#'
1063   MAINTAINER_MODE_FALSE=
1064 fi
1065   MAINT=$MAINTAINER_MODE_TRUE
1066   
1067
1068
1069 # Extract the first word of "gcc", so it can be a program name with args.
1070 set dummy gcc; ac_word=$2
1071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1072 echo "configure:1073: checking for $ac_word" >&5
1073 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1074   echo $ac_n "(cached) $ac_c" 1>&6
1075 else
1076   if test -n "$CC"; then
1077   ac_cv_prog_CC="$CC" # Let the user override the test.
1078 else
1079   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1080   ac_dummy="$PATH"
1081   for ac_dir in $ac_dummy; do
1082     test -z "$ac_dir" && ac_dir=.
1083     if test -f $ac_dir/$ac_word; then
1084       ac_cv_prog_CC="gcc"
1085       break
1086     fi
1087   done
1088   IFS="$ac_save_ifs"
1089 fi
1090 fi
1091 CC="$ac_cv_prog_CC"
1092 if test -n "$CC"; then
1093   echo "$ac_t""$CC" 1>&6
1094 else
1095   echo "$ac_t""no" 1>&6
1096 fi
1097
1098 if test -z "$CC"; then
1099   # Extract the first word of "cc", so it can be a program name with args.
1100 set dummy cc; ac_word=$2
1101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1102 echo "configure:1103: checking for $ac_word" >&5
1103 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1104   echo $ac_n "(cached) $ac_c" 1>&6
1105 else
1106   if test -n "$CC"; then
1107   ac_cv_prog_CC="$CC" # Let the user override the test.
1108 else
1109   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1110   ac_prog_rejected=no
1111   ac_dummy="$PATH"
1112   for ac_dir in $ac_dummy; do
1113     test -z "$ac_dir" && ac_dir=.
1114     if test -f $ac_dir/$ac_word; then
1115       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1116         ac_prog_rejected=yes
1117         continue
1118       fi
1119       ac_cv_prog_CC="cc"
1120       break
1121     fi
1122   done
1123   IFS="$ac_save_ifs"
1124 if test $ac_prog_rejected = yes; then
1125   # We found a bogon in the path, so make sure we never use it.
1126   set dummy $ac_cv_prog_CC
1127   shift
1128   if test $# -gt 0; then
1129     # We chose a different compiler from the bogus one.
1130     # However, it has the same basename, so the bogon will be chosen
1131     # first if we set CC to just the basename; use the full file name.
1132     shift
1133     set dummy "$ac_dir/$ac_word" "$@"
1134     shift
1135     ac_cv_prog_CC="$@"
1136   fi
1137 fi
1138 fi
1139 fi
1140 CC="$ac_cv_prog_CC"
1141 if test -n "$CC"; then
1142   echo "$ac_t""$CC" 1>&6
1143 else
1144   echo "$ac_t""no" 1>&6
1145 fi
1146
1147   if test -z "$CC"; then
1148     case "`uname -s`" in
1149     *win32* | *WIN32*)
1150       # Extract the first word of "cl", so it can be a program name with args.
1151 set dummy cl; ac_word=$2
1152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1153 echo "configure:1154: checking for $ac_word" >&5
1154 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1155   echo $ac_n "(cached) $ac_c" 1>&6
1156 else
1157   if test -n "$CC"; then
1158   ac_cv_prog_CC="$CC" # Let the user override the test.
1159 else
1160   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1161   ac_dummy="$PATH"
1162   for ac_dir in $ac_dummy; do
1163     test -z "$ac_dir" && ac_dir=.
1164     if test -f $ac_dir/$ac_word; then
1165       ac_cv_prog_CC="cl"
1166       break
1167     fi
1168   done
1169   IFS="$ac_save_ifs"
1170 fi
1171 fi
1172 CC="$ac_cv_prog_CC"
1173 if test -n "$CC"; then
1174   echo "$ac_t""$CC" 1>&6
1175 else
1176   echo "$ac_t""no" 1>&6
1177 fi
1178  ;;
1179     esac
1180   fi
1181   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1182 fi
1183
1184 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1185 echo "configure:1186: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1186
1187 ac_ext=c
1188 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1189 ac_cpp='$CPP $CPPFLAGS'
1190 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1191 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1192 cross_compiling=$ac_cv_prog_cc_cross
1193
1194 cat > conftest.$ac_ext << EOF
1195
1196 #line 1197 "configure"
1197 #include "confdefs.h"
1198
1199 main(){return(0);}
1200 EOF
1201 if { (eval echo configure:1202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1202   ac_cv_prog_cc_works=yes
1203   # If we can't run a trivial program, we are probably using a cross compiler.
1204   if (./conftest; exit) 2>/dev/null; then
1205     ac_cv_prog_cc_cross=no
1206   else
1207     ac_cv_prog_cc_cross=yes
1208   fi
1209 else
1210   echo "configure: failed program was:" >&5
1211   cat conftest.$ac_ext >&5
1212   ac_cv_prog_cc_works=no
1213 fi
1214 rm -fr conftest*
1215 ac_ext=c
1216 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1217 ac_cpp='$CPP $CPPFLAGS'
1218 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1219 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1220 cross_compiling=$ac_cv_prog_cc_cross
1221
1222 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1223 if test $ac_cv_prog_cc_works = no; then
1224   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1225 fi
1226 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1227 echo "configure:1228: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1228 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1229 cross_compiling=$ac_cv_prog_cc_cross
1230
1231 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1232 echo "configure:1233: checking whether we are using GNU C" >&5
1233 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1234   echo $ac_n "(cached) $ac_c" 1>&6
1235 else
1236   cat > conftest.c <<EOF
1237 #ifdef __GNUC__
1238   yes;
1239 #endif
1240 EOF
1241 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1242   ac_cv_prog_gcc=yes
1243 else
1244   ac_cv_prog_gcc=no
1245 fi
1246 fi
1247
1248 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1249
1250 if test $ac_cv_prog_gcc = yes; then
1251   GCC=yes
1252 else
1253   GCC=
1254 fi
1255
1256 ac_test_CFLAGS="${CFLAGS+set}"
1257 ac_save_CFLAGS="$CFLAGS"
1258 CFLAGS=
1259 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1260 echo "configure:1261: checking whether ${CC-cc} accepts -g" >&5
1261 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1262   echo $ac_n "(cached) $ac_c" 1>&6
1263 else
1264   echo 'void f(){}' > conftest.c
1265 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1266   ac_cv_prog_cc_g=yes
1267 else
1268   ac_cv_prog_cc_g=no
1269 fi
1270 rm -f conftest*
1271
1272 fi
1273
1274 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1275 if test "$ac_test_CFLAGS" = set; then
1276   CFLAGS="$ac_save_CFLAGS"
1277 elif test $ac_cv_prog_cc_g = yes; then
1278   if test "$GCC" = yes; then
1279     CFLAGS="-g -O2"
1280   else
1281     CFLAGS="-g"
1282   fi
1283 else
1284   if test "$GCC" = yes; then
1285     CFLAGS="-O2"
1286   else
1287     CFLAGS=
1288   fi
1289 fi
1290
1291
1292 am_make=${MAKE-make}
1293 cat > confinc << 'END'
1294 doit:
1295         @echo done
1296 END
1297 # If we don't find an include directive, just comment out the code.
1298 echo $ac_n "checking for style of include used by $am_make""... $ac_c" 1>&6
1299 echo "configure:1300: checking for style of include used by $am_make" >&5
1300 am__include='#'
1301 am__quote=
1302 _am_result=none
1303 # First try GNU make style include.
1304 echo "include confinc" > confmf
1305 # We grep out `Entering directory' and `Leaving directory'
1306 # messages which can occur if `w' ends up in MAKEFLAGS.
1307 # In particular we don't look at `^make:' because GNU make might
1308 # be invoked under some other name (usually "gmake"), in which
1309 # case it prints its new name instead of `make'.
1310 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1311    am__include=include
1312    am__quote=
1313    _am_result=GNU
1314 fi
1315 # Now try BSD make style include.
1316 if test "$am__include" = "#"; then
1317    echo '.include "confinc"' > confmf
1318    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1319       am__include=.include
1320       am__quote='"'
1321       _am_result=BSD
1322    fi
1323 fi
1324
1325
1326 echo "$ac_t""$_am_result" 1>&6
1327 rm -f confinc confmf
1328
1329
1330 depcc="$CC"   am_compiler_list=
1331
1332 echo $ac_n "checking dependency style of $depcc""... $ac_c" 1>&6
1333 echo "configure:1334: checking dependency style of $depcc" >&5
1334 if eval "test \"`echo '$''{'am_cv_CC_dependencies_compiler_type'+set}'`\" = set"; then
1335   echo $ac_n "(cached) $ac_c" 1>&6
1336 else
1337   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1338   # We make a subdir and do the tests there.  Otherwise we can end up
1339   # making bogus files that we don't know about and never remove.  For
1340   # instance it was reported that on HP-UX the gcc test will end up
1341   # making a dummy file named `D' -- because `-MD' means `put the output
1342   # in D'.
1343   mkdir conftest.dir
1344   # Copy depcomp to subdir because otherwise we won't find it if we're
1345   # using a relative directory.
1346   cp "$am_depcomp" conftest.dir
1347   cd conftest.dir
1348
1349   am_cv_CC_dependencies_compiler_type=none
1350   if test "$am_compiler_list" = ""; then
1351      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1352   fi
1353   for depmode in $am_compiler_list; do
1354     # We need to recreate these files for each test, as the compiler may
1355     # overwrite some of them when testing with obscure command lines.
1356     # This happens at least with the AIX C compiler.
1357     echo '#include "conftest.h"' > conftest.c
1358     echo 'int i;' > conftest.h
1359     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
1360
1361     case $depmode in
1362     nosideeffect)
1363       # after this tag, mechanisms are not by side-effect, so they'll
1364       # only be used when explicitly requested
1365       if test "x$enable_dependency_tracking" = xyes; then
1366         continue
1367       else
1368         break
1369       fi
1370       ;;
1371     none) break ;;
1372     esac
1373     # We check with `-c' and `-o' for the sake of the "dashmstdout"
1374     # mode.  It turns out that the SunPro C++ compiler does not properly
1375     # handle `-M -o', and we need to detect this.
1376     if depmode=$depmode \
1377        source=conftest.c object=conftest.o \
1378        depfile=conftest.Po tmpdepfile=conftest.TPo \
1379        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
1380        grep conftest.h conftest.Po > /dev/null 2>&1 &&
1381        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1382       am_cv_CC_dependencies_compiler_type=$depmode
1383       break
1384     fi
1385   done
1386
1387   cd ..
1388   rm -rf conftest.dir
1389 else
1390   am_cv_CC_dependencies_compiler_type=none
1391 fi
1392
1393 fi
1394
1395 echo "$ac_t""$am_cv_CC_dependencies_compiler_type" 1>&6
1396 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
1397
1398
1399 echo $ac_n "checking for working const""... $ac_c" 1>&6
1400 echo "configure:1401: checking for working const" >&5
1401 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1402   echo $ac_n "(cached) $ac_c" 1>&6
1403 else
1404   cat > conftest.$ac_ext <<EOF
1405 #line 1406 "configure"
1406 #include "confdefs.h"
1407
1408 int main() {
1409
1410 /* Ultrix mips cc rejects this.  */
1411 typedef int charset[2]; const charset x;
1412 /* SunOS 4.1.1 cc rejects this.  */
1413 char const *const *ccp;
1414 char **p;
1415 /* NEC SVR4.0.2 mips cc rejects this.  */
1416 struct point {int x, y;};
1417 static struct point const zero = {0,0};
1418 /* AIX XL C 1.02.0.0 rejects this.
1419    It does not let you subtract one const X* pointer from another in an arm
1420    of an if-expression whose if-part is not a constant expression */
1421 const char *g = "string";
1422 ccp = &g + (g ? g-g : 0);
1423 /* HPUX 7.0 cc rejects these. */
1424 ++ccp;
1425 p = (char**) ccp;
1426 ccp = (char const *const *) p;
1427 { /* SCO 3.2v4 cc rejects this.  */
1428   char *t;
1429   char const *s = 0 ? (char *) 0 : (char const *) 0;
1430
1431   *t++ = 0;
1432 }
1433 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1434   int x[] = {25, 17};
1435   const int *foo = &x[0];
1436   ++foo;
1437 }
1438 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1439   typedef const int *iptr;
1440   iptr p = 0;
1441   ++p;
1442 }
1443 { /* AIX XL C 1.02.0.0 rejects this saying
1444      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1445   struct s { int j; const int *ap[3]; };
1446   struct s *b; b->j = 5;
1447 }
1448 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1449   const int foo = 10;
1450 }
1451
1452 ; return 0; }
1453 EOF
1454 if { (eval echo configure:1455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1455   rm -rf conftest*
1456   ac_cv_c_const=yes
1457 else
1458   echo "configure: failed program was:" >&5
1459   cat conftest.$ac_ext >&5
1460   rm -rf conftest*
1461   ac_cv_c_const=no
1462 fi
1463 rm -f conftest*
1464 fi
1465
1466 echo "$ac_t""$ac_cv_c_const" 1>&6
1467 if test $ac_cv_c_const = no; then
1468   cat >> confdefs.h <<\EOF
1469 #define const 
1470 EOF
1471
1472 fi
1473
1474 echo $ac_n "checking for inline""... $ac_c" 1>&6
1475 echo "configure:1476: checking for inline" >&5
1476 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1477   echo $ac_n "(cached) $ac_c" 1>&6
1478 else
1479   ac_cv_c_inline=no
1480 for ac_kw in inline __inline__ __inline; do
1481   cat > conftest.$ac_ext <<EOF
1482 #line 1483 "configure"
1483 #include "confdefs.h"
1484
1485 int main() {
1486 } $ac_kw foo() {
1487 ; return 0; }
1488 EOF
1489 if { (eval echo configure:1490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1490   rm -rf conftest*
1491   ac_cv_c_inline=$ac_kw; break
1492 else
1493   echo "configure: failed program was:" >&5
1494   cat conftest.$ac_ext >&5
1495 fi
1496 rm -f conftest*
1497 done
1498
1499 fi
1500
1501 echo "$ac_t""$ac_cv_c_inline" 1>&6
1502 case "$ac_cv_c_inline" in
1503   inline | yes) ;;
1504   no) cat >> confdefs.h <<\EOF
1505 #define inline 
1506 EOF
1507  ;;
1508   *)  cat >> confdefs.h <<EOF
1509 #define inline $ac_cv_c_inline
1510 EOF
1511  ;;
1512 esac
1513
1514
1515
1516 # Find the correct PATH separator.  Usually this is `:', but
1517 # DJGPP uses `;' like DOS.
1518 if test "X${PATH_SEPARATOR+set}" != Xset; then
1519   UNAME=${UNAME-`uname 2>/dev/null`}
1520   case X$UNAME in
1521     *-DOS) lt_cv_sys_path_separator=';' ;;
1522     *)     lt_cv_sys_path_separator=':' ;;
1523   esac
1524   PATH_SEPARATOR=$lt_cv_sys_path_separator
1525 fi
1526
1527 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1528 echo "configure:1529: checking for Cygwin environment" >&5
1529 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1530   echo $ac_n "(cached) $ac_c" 1>&6
1531 else
1532   cat > conftest.$ac_ext <<EOF
1533 #line 1534 "configure"
1534 #include "confdefs.h"
1535
1536 int main() {
1537
1538 #ifndef __CYGWIN__
1539 #define __CYGWIN__ __CYGWIN32__
1540 #endif
1541 return __CYGWIN__;
1542 ; return 0; }
1543 EOF
1544 if { (eval echo configure:1545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1545   rm -rf conftest*
1546   ac_cv_cygwin=yes
1547 else
1548   echo "configure: failed program was:" >&5
1549   cat conftest.$ac_ext >&5
1550   rm -rf conftest*
1551   ac_cv_cygwin=no
1552 fi
1553 rm -f conftest*
1554 rm -f conftest*
1555 fi
1556
1557 echo "$ac_t""$ac_cv_cygwin" 1>&6
1558 CYGWIN=
1559 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1560 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1561 echo "configure:1562: checking for mingw32 environment" >&5
1562 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1563   echo $ac_n "(cached) $ac_c" 1>&6
1564 else
1565   cat > conftest.$ac_ext <<EOF
1566 #line 1567 "configure"
1567 #include "confdefs.h"
1568
1569 int main() {
1570 return __MINGW32__;
1571 ; return 0; }
1572 EOF
1573 if { (eval echo configure:1574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1574   rm -rf conftest*
1575   ac_cv_mingw32=yes
1576 else
1577   echo "configure: failed program was:" >&5
1578   cat conftest.$ac_ext >&5
1579   rm -rf conftest*
1580   ac_cv_mingw32=no
1581 fi
1582 rm -f conftest*
1583 rm -f conftest*
1584 fi
1585
1586 echo "$ac_t""$ac_cv_mingw32" 1>&6
1587 MINGW32=
1588 test "$ac_cv_mingw32" = yes && MINGW32=yes
1589 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1590 echo "configure:1591: checking how to run the C preprocessor" >&5
1591 # On Suns, sometimes $CPP names a directory.
1592 if test -n "$CPP" && test -d "$CPP"; then
1593   CPP=
1594 fi
1595 if test -z "$CPP"; then
1596 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1597   echo $ac_n "(cached) $ac_c" 1>&6
1598 else
1599     # This must be in double quotes, not single quotes, because CPP may get
1600   # substituted into the Makefile and "${CC-cc}" will confuse make.
1601   CPP="${CC-cc} -E"
1602   # On the NeXT, cc -E runs the code through the compiler's parser,
1603   # not just through cpp.
1604   cat > conftest.$ac_ext <<EOF
1605 #line 1606 "configure"
1606 #include "confdefs.h"
1607 #include <assert.h>
1608 Syntax Error
1609 EOF
1610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1611 { (eval echo configure:1612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1613 if test -z "$ac_err"; then
1614   :
1615 else
1616   echo "$ac_err" >&5
1617   echo "configure: failed program was:" >&5
1618   cat conftest.$ac_ext >&5
1619   rm -rf conftest*
1620   CPP="${CC-cc} -E -traditional-cpp"
1621   cat > conftest.$ac_ext <<EOF
1622 #line 1623 "configure"
1623 #include "confdefs.h"
1624 #include <assert.h>
1625 Syntax Error
1626 EOF
1627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1628 { (eval echo configure:1629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1630 if test -z "$ac_err"; then
1631   :
1632 else
1633   echo "$ac_err" >&5
1634   echo "configure: failed program was:" >&5
1635   cat conftest.$ac_ext >&5
1636   rm -rf conftest*
1637   CPP="${CC-cc} -nologo -E"
1638   cat > conftest.$ac_ext <<EOF
1639 #line 1640 "configure"
1640 #include "confdefs.h"
1641 #include <assert.h>
1642 Syntax Error
1643 EOF
1644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1645 { (eval echo configure:1646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1646 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1647 if test -z "$ac_err"; then
1648   :
1649 else
1650   echo "$ac_err" >&5
1651   echo "configure: failed program was:" >&5
1652   cat conftest.$ac_ext >&5
1653   rm -rf conftest*
1654   CPP=/lib/cpp
1655 fi
1656 rm -f conftest*
1657 fi
1658 rm -f conftest*
1659 fi
1660 rm -f conftest*
1661   ac_cv_prog_CPP="$CPP"
1662 fi
1663   CPP="$ac_cv_prog_CPP"
1664 else
1665   ac_cv_prog_CPP="$CPP"
1666 fi
1667 echo "$ac_t""$CPP" 1>&6
1668
1669 # Check whether --enable-shared or --disable-shared was given.
1670 if test "${enable_shared+set}" = set; then
1671   enableval="$enable_shared"
1672   p=${PACKAGE-default}
1673 case $enableval in
1674 yes) enable_shared=yes ;;
1675 no) enable_shared=no ;;
1676 *)
1677   enable_shared=no
1678   # Look at the argument we got.  We use all the common list separators.
1679   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1680   for pkg in $enableval; do
1681     if test "X$pkg" = "X$p"; then
1682       enable_shared=yes
1683     fi
1684   done
1685   IFS="$ac_save_ifs"
1686   ;;
1687 esac
1688 else
1689   enable_shared=yes
1690 fi
1691
1692 # Check whether --enable-static or --disable-static was given.
1693 if test "${enable_static+set}" = set; then
1694   enableval="$enable_static"
1695   p=${PACKAGE-default}
1696 case $enableval in
1697 yes) enable_static=yes ;;
1698 no) enable_static=no ;;
1699 *)
1700   enable_static=no
1701   # Look at the argument we got.  We use all the common list separators.
1702   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1703   for pkg in $enableval; do
1704     if test "X$pkg" = "X$p"; then
1705       enable_static=yes
1706     fi
1707   done
1708   IFS="$ac_save_ifs"
1709   ;;
1710 esac
1711 else
1712   enable_static=yes
1713 fi
1714
1715 # Check whether --enable-fast-install or --disable-fast-install was given.
1716 if test "${enable_fast_install+set}" = set; then
1717   enableval="$enable_fast_install"
1718   p=${PACKAGE-default}
1719 case $enableval in
1720 yes) enable_fast_install=yes ;;
1721 no) enable_fast_install=no ;;
1722 *)
1723   enable_fast_install=no
1724   # Look at the argument we got.  We use all the common list separators.
1725   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1726   for pkg in $enableval; do
1727     if test "X$pkg" = "X$p"; then
1728       enable_fast_install=yes
1729     fi
1730   done
1731   IFS="$ac_save_ifs"
1732   ;;
1733 esac
1734 else
1735   enable_fast_install=yes
1736 fi
1737
1738
1739 # Make sure we can run config.sub.
1740 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1741 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1742 fi
1743
1744 echo $ac_n "checking host system type""... $ac_c" 1>&6
1745 echo "configure:1746: checking host system type" >&5
1746
1747 host_alias=$host
1748 case "$host_alias" in
1749 NONE)
1750   case $nonopt in
1751   NONE)
1752     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1753     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1754     fi ;;
1755   *) host_alias=$nonopt ;;
1756   esac ;;
1757 esac
1758
1759 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1760 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1761 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1762 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1763 echo "$ac_t""$host" 1>&6
1764
1765 echo $ac_n "checking build system type""... $ac_c" 1>&6
1766 echo "configure:1767: checking build system type" >&5
1767
1768 build_alias=$build
1769 case "$build_alias" in
1770 NONE)
1771   case $nonopt in
1772   NONE) build_alias=$host_alias ;;
1773   *) build_alias=$nonopt ;;
1774   esac ;;
1775 esac
1776
1777 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1778 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1779 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1780 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1781 echo "$ac_t""$build" 1>&6
1782
1783 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1784 if test "${with_gnu_ld+set}" = set; then
1785   withval="$with_gnu_ld"
1786   test "$withval" = no || with_gnu_ld=yes
1787 else
1788   with_gnu_ld=no
1789 fi
1790
1791 ac_prog=ld
1792 if test "$GCC" = yes; then
1793   # Check if gcc -print-prog-name=ld gives a path.
1794   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1795 echo "configure:1796: checking for ld used by GCC" >&5
1796   case $host in
1797   *-*-mingw*)
1798     # gcc leaves a trailing carriage return which upsets mingw
1799     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1800   *)
1801     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1802   esac
1803   case $ac_prog in
1804     # Accept absolute paths.
1805     [\\/]* | [A-Za-z]:[\\/]*)
1806       re_direlt='/[^/][^/]*/\.\./'
1807       # Canonicalize the path of ld
1808       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1809       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1810         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1811       done
1812       test -z "$LD" && LD="$ac_prog"
1813       ;;
1814   "")
1815     # If it fails, then pretend we aren't using GCC.
1816     ac_prog=ld
1817     ;;
1818   *)
1819     # If it is relative, then search for the first ld in PATH.
1820     with_gnu_ld=unknown
1821     ;;
1822   esac
1823 elif test "$with_gnu_ld" = yes; then
1824   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1825 echo "configure:1826: checking for GNU ld" >&5
1826 else
1827   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1828 echo "configure:1829: checking for non-GNU ld" >&5
1829 fi
1830 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1831   echo $ac_n "(cached) $ac_c" 1>&6
1832 else
1833   if test -z "$LD"; then
1834   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1835   for ac_dir in $PATH; do
1836     test -z "$ac_dir" && ac_dir=.
1837     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1838       lt_cv_path_LD="$ac_dir/$ac_prog"
1839       # Check to see if the program is GNU ld.  I'd rather use --version,
1840       # but apparently some GNU ld's only accept -v.
1841       # Break only if it was the GNU/non-GNU ld that we prefer.
1842       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1843         test "$with_gnu_ld" != no && break
1844       else
1845         test "$with_gnu_ld" != yes && break
1846       fi
1847     fi
1848   done
1849   IFS="$ac_save_ifs"
1850 else
1851   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1852 fi
1853 fi
1854
1855 LD="$lt_cv_path_LD"
1856 if test -n "$LD"; then
1857   echo "$ac_t""$LD" 1>&6
1858 else
1859   echo "$ac_t""no" 1>&6
1860 fi
1861 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1862 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1863 echo "configure:1864: checking if the linker ($LD) is GNU ld" >&5
1864 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1865   echo $ac_n "(cached) $ac_c" 1>&6
1866 else
1867   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1868 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1869   lt_cv_prog_gnu_ld=yes
1870 else
1871   lt_cv_prog_gnu_ld=no
1872 fi
1873 fi
1874
1875 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1876 with_gnu_ld=$lt_cv_prog_gnu_ld
1877
1878
1879 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1880 echo "configure:1881: checking for $LD option to reload object files" >&5
1881 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1882   echo $ac_n "(cached) $ac_c" 1>&6
1883 else
1884   lt_cv_ld_reload_flag='-r'
1885 fi
1886
1887 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1888 reload_flag=$lt_cv_ld_reload_flag
1889 test -n "$reload_flag" && reload_flag=" $reload_flag"
1890
1891 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1892 echo "configure:1893: checking for BSD-compatible nm" >&5
1893 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1894   echo $ac_n "(cached) $ac_c" 1>&6
1895 else
1896   if test -n "$NM"; then
1897   # Let the user override the test.
1898   lt_cv_path_NM="$NM"
1899 else
1900   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1901   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1902     test -z "$ac_dir" && ac_dir=.
1903     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1904     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1905       # Check to see if the nm accepts a BSD-compat flag.
1906       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1907       #   nm: unknown option "B" ignored
1908       # Tru64's nm complains that /dev/null is an invalid object file
1909       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1910         lt_cv_path_NM="$tmp_nm -B"
1911         break
1912       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1913         lt_cv_path_NM="$tmp_nm -p"
1914         break
1915       else
1916         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1917         continue # so that we can try to find one that supports BSD flags
1918       fi
1919     fi
1920   done
1921   IFS="$ac_save_ifs"
1922   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1923 fi
1924 fi
1925
1926 NM="$lt_cv_path_NM"
1927 echo "$ac_t""$NM" 1>&6
1928
1929 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1930 echo "configure:1931: checking whether ln -s works" >&5
1931 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1932   echo $ac_n "(cached) $ac_c" 1>&6
1933 else
1934   rm -f conftestdata
1935 if ln -s X conftestdata 2>/dev/null
1936 then
1937   rm -f conftestdata
1938   ac_cv_prog_LN_S="ln -s"
1939 else
1940   ac_cv_prog_LN_S=ln
1941 fi
1942 fi
1943 LN_S="$ac_cv_prog_LN_S"
1944 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1945   echo "$ac_t""yes" 1>&6
1946 else
1947   echo "$ac_t""no" 1>&6
1948 fi
1949
1950 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1951 echo "configure:1952: checking how to recognise dependant libraries" >&5
1952 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1953   echo $ac_n "(cached) $ac_c" 1>&6
1954 else
1955   lt_cv_file_magic_cmd='$MAGIC_CMD'
1956 lt_cv_file_magic_test_file=
1957 lt_cv_deplibs_check_method='unknown'
1958 # Need to set the preceding variable on all platforms that support
1959 # interlibrary dependencies.
1960 # 'none' -- dependencies not supported.
1961 # `unknown' -- same as none, but documents that we really don't know.
1962 # 'pass_all' -- all dependencies passed with no checks.
1963 # 'test_compile' -- check by making test program.
1964 # 'file_magic [[regex]]' -- check by looking for files in library path
1965 # which responds to the $file_magic_cmd with a given egrep regex.
1966 # If you have `file' or equivalent on your system and you're not sure
1967 # whether `pass_all' will *always* work, you probably want this one.
1968
1969 case $host_os in
1970 aix4* | aix5*)
1971   lt_cv_deplibs_check_method=pass_all
1972   ;;
1973
1974 beos*)
1975   lt_cv_deplibs_check_method=pass_all
1976   ;;
1977
1978 bsdi4*)
1979   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1980   lt_cv_file_magic_cmd='/usr/bin/file -L'
1981   lt_cv_file_magic_test_file=/shlib/libc.so
1982   ;;
1983
1984 cygwin* | mingw* | pw32*)
1985   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1986   lt_cv_file_magic_cmd='$OBJDUMP -f'
1987   ;;
1988
1989 darwin* | rhapsody*)
1990   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1991   lt_cv_file_magic_cmd='/usr/bin/file -L'
1992   case "$host_os" in
1993   rhapsody* | darwin1.[012])
1994     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1995     ;;
1996   *) # Darwin 1.3 on
1997     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1998     ;;
1999   esac
2000   ;;
2001
2002 freebsd*)
2003   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2004     case $host_cpu in
2005     i*86 )
2006       # Not sure whether the presence of OpenBSD here was a mistake.
2007       # Let's accept both of them until this is cleared up.
2008       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2009       lt_cv_file_magic_cmd=/usr/bin/file
2010       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2011       ;;
2012     esac
2013   else
2014     lt_cv_deplibs_check_method=pass_all
2015   fi
2016   ;;
2017
2018 gnu*)
2019   lt_cv_deplibs_check_method=pass_all
2020   ;;
2021
2022 hpux10.20*|hpux11*)
2023   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2024   lt_cv_file_magic_cmd=/usr/bin/file
2025   lt_cv_file_magic_test_file=/usr/lib/libc.sl
2026   ;;
2027
2028 irix5* | irix6*)
2029   case $host_os in
2030   irix5*)
2031     # this will be overridden with pass_all, but let us keep it just in case
2032     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2033     ;;
2034   *)
2035     case $LD in
2036     *-32|*"-32 ") libmagic=32-bit;;
2037     *-n32|*"-n32 ") libmagic=N32;;
2038     *-64|*"-64 ") libmagic=64-bit;;
2039     *) libmagic=never-match;;
2040     esac
2041     # this will be overridden with pass_all, but let us keep it just in case
2042     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2043     ;;
2044   esac
2045   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2046   lt_cv_deplibs_check_method=pass_all
2047   ;;
2048
2049 # This must be Linux ELF.
2050 linux-gnu*)
2051   case $host_cpu in
2052   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2053     lt_cv_deplibs_check_method=pass_all ;;
2054   *)
2055     # glibc up to 2.1.1 does not perform some relocations on ARM
2056     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2057   esac
2058   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2059   ;;
2060
2061 netbsd*)
2062   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2063     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2064   else
2065     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2066   fi
2067   ;;
2068
2069 newos6*)
2070   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2071   lt_cv_file_magic_cmd=/usr/bin/file
2072   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2073   ;;
2074
2075 openbsd*)
2076   lt_cv_file_magic_cmd=/usr/bin/file
2077   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2078   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2079     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2080   else
2081     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2082   fi
2083   ;;
2084
2085 osf3* | osf4* | osf5*)
2086   # this will be overridden with pass_all, but let us keep it just in case
2087   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2088   lt_cv_file_magic_test_file=/shlib/libc.so
2089   lt_cv_deplibs_check_method=pass_all
2090   ;;
2091
2092 sco3.2v5*)
2093   lt_cv_deplibs_check_method=pass_all
2094   ;;
2095
2096 solaris*)
2097   lt_cv_deplibs_check_method=pass_all
2098   lt_cv_file_magic_test_file=/lib/libc.so
2099   ;;
2100
2101 sysv5uw[78]* | sysv4*uw2*)
2102   lt_cv_deplibs_check_method=pass_all
2103   ;;
2104
2105 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2106   case $host_vendor in
2107   motorola)
2108     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2109     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2110     ;;
2111   ncr)
2112     lt_cv_deplibs_check_method=pass_all
2113     ;;
2114   sequent)
2115     lt_cv_file_magic_cmd='/bin/file'
2116     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2117     ;;
2118   sni)
2119     lt_cv_file_magic_cmd='/bin/file'
2120     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2121     lt_cv_file_magic_test_file=/lib/libc.so
2122     ;;
2123   esac
2124   ;;
2125 esac
2126
2127 fi
2128
2129 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2130 file_magic_cmd=$lt_cv_file_magic_cmd
2131 deplibs_check_method=$lt_cv_deplibs_check_method
2132
2133 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2134 echo "configure:2135: checking for object suffix" >&5
2135 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2136   echo $ac_n "(cached) $ac_c" 1>&6
2137 else
2138   rm -f conftest*
2139 echo 'int i = 1;' > conftest.$ac_ext
2140 if { (eval echo configure:2141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2141   for ac_file in conftest.*; do
2142     case $ac_file in
2143     *.c) ;;
2144     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2145     esac
2146   done
2147 else
2148   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2149 fi
2150 rm -f conftest*
2151 fi
2152
2153 echo "$ac_t""$ac_cv_objext" 1>&6
2154 OBJEXT=$ac_cv_objext
2155 ac_objext=$ac_cv_objext
2156
2157
2158
2159 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2160 echo "configure:2161: checking for executable suffix" >&5
2161 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2162   echo $ac_n "(cached) $ac_c" 1>&6
2163 else
2164   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2165   ac_cv_exeext=.exe
2166 else
2167   rm -f conftest*
2168   echo 'int main () { return 0; }' > conftest.$ac_ext
2169   ac_cv_exeext=
2170   if { (eval echo configure:2171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2171     for file in conftest.*; do
2172       case $file in
2173       *.$ac_ext | *.c | *.o | *.obj) ;;
2174       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2175       esac
2176     done
2177   else
2178     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2179   fi
2180   rm -f conftest*
2181   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2182 fi
2183 fi
2184
2185 EXEEXT=""
2186 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2187 echo "$ac_t""${ac_cv_exeext}" 1>&6
2188 ac_exeext=$EXEEXT
2189
2190 if test $host != $build; then
2191   ac_tool_prefix=${host_alias}-
2192 else
2193   ac_tool_prefix=
2194 fi
2195
2196
2197
2198
2199 # Check for command to grab the raw symbol name followed by C symbol from nm.
2200 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
2201 echo "configure:2202: checking command to parse $NM output" >&5
2202 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
2203   echo $ac_n "(cached) $ac_c" 1>&6
2204 else
2205   
2206 # These are sane defaults that work on at least a few old systems.
2207 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
2208
2209 # Character class describing NM global symbol codes.
2210 symcode='[BCDEGRST]'
2211
2212 # Regexp to match symbols that can be accessed directly from C.
2213 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2214
2215 # Transform the above into a raw symbol and a C symbol.
2216 symxfrm='\1 \2\3 \3'
2217
2218 # Transform an extracted symbol line into a proper C declaration
2219 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2220
2221 # Transform an extracted symbol line into symbol name and symbol address
2222 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
2223
2224 # Define system-specific variables.
2225 case $host_os in
2226 aix*)
2227   symcode='[BCDT]'
2228   ;;
2229 cygwin* | mingw* | pw32*)
2230   symcode='[ABCDGISTW]'
2231   ;;
2232 hpux*) # Its linker distinguishes data from code symbols
2233   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2234   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
2235   ;;
2236 irix*)
2237   symcode='[BCDEGRST]'
2238   ;;
2239 solaris* | sysv5*)
2240   symcode='[BDT]'
2241   ;;
2242 sysv4)
2243   symcode='[DFNSTU]'
2244   ;;
2245 esac
2246
2247 # Handle CRLF in mingw tool chain
2248 opt_cr=
2249 case $host_os in
2250 mingw*)
2251   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2252   ;;
2253 esac
2254
2255 # If we're using GNU nm, then use its standard symbol codes.
2256 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2257   symcode='[ABCDGISTW]'
2258 fi
2259
2260 # Try without a prefix undercore, then with it.
2261 for ac_symprfx in "" "_"; do
2262
2263   # Write the raw and C identifiers.
2264 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2265
2266   # Check to see that the pipe works correctly.
2267   pipe_works=no
2268   rm -f conftest*
2269   cat > conftest.$ac_ext <<EOF
2270 #ifdef __cplusplus
2271 extern "C" {
2272 #endif
2273 char nm_test_var;
2274 void nm_test_func(){}
2275 #ifdef __cplusplus
2276 }
2277 #endif
2278 int main(){nm_test_var='a';nm_test_func();return(0);}
2279 EOF
2280
2281   if { (eval echo configure:2282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2282     # Now try to grab the symbols.
2283     nlist=conftest.nm
2284     if { (eval echo configure:2285: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
2285       # Try sorting and uniquifying the output.
2286       if sort "$nlist" | uniq > "$nlist"T; then
2287         mv -f "$nlist"T "$nlist"
2288       else
2289         rm -f "$nlist"T
2290       fi
2291
2292       # Make sure that we snagged all the symbols we need.
2293       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2294         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2295           cat <<EOF > conftest.$ac_ext
2296 #ifdef __cplusplus
2297 extern "C" {
2298 #endif
2299
2300 EOF
2301           # Now generate the symbol file.
2302           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2303
2304           cat <<EOF >> conftest.$ac_ext
2305 #if defined (__STDC__) && __STDC__
2306 # define lt_ptr void *
2307 #else
2308 # define lt_ptr char *
2309 # define const
2310 #endif
2311
2312 /* The mapping between symbol names and symbols. */
2313 const struct {
2314   const char *name;
2315   lt_ptr address;
2316 }
2317 lt_preloaded_symbols[] =
2318 {
2319 EOF
2320           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2321           cat <<\EOF >> conftest.$ac_ext
2322   {0, (lt_ptr) 0}
2323 };
2324
2325 #ifdef __cplusplus
2326 }
2327 #endif
2328 EOF
2329           # Now try linking the two files.
2330           mv conftest.$ac_objext conftstm.$ac_objext
2331           save_LIBS="$LIBS"
2332           save_CFLAGS="$CFLAGS"
2333           LIBS="conftstm.$ac_objext"
2334           CFLAGS="$CFLAGS$no_builtin_flag"
2335           if { (eval echo configure:2336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2336             pipe_works=yes
2337           fi
2338           LIBS="$save_LIBS"
2339           CFLAGS="$save_CFLAGS"
2340         else
2341           echo "cannot find nm_test_func in $nlist" >&5
2342         fi
2343       else
2344         echo "cannot find nm_test_var in $nlist" >&5
2345       fi
2346     else
2347       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2348     fi
2349   else
2350     echo "$progname: failed program was:" >&5
2351     cat conftest.$ac_ext >&5
2352   fi
2353   rm -f conftest* conftst*
2354
2355   # Do not use the global_symbol_pipe unless it works.
2356   if test "$pipe_works" = yes; then
2357     break
2358   else
2359     lt_cv_sys_global_symbol_pipe=
2360   fi
2361 done
2362
2363 fi
2364
2365 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2366 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2367   global_symbol_to_cdecl=
2368   global_symbol_to_c_name_address=
2369 else
2370   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2371   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
2372 fi
2373 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
2374 then
2375   echo "$ac_t""failed" 1>&6
2376 else
2377   echo "$ac_t""ok" 1>&6
2378 fi
2379
2380 for ac_hdr in dlfcn.h
2381 do
2382 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2384 echo "configure:2385: checking for $ac_hdr" >&5
2385 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2386   echo $ac_n "(cached) $ac_c" 1>&6
2387 else
2388   cat > conftest.$ac_ext <<EOF
2389 #line 2390 "configure"
2390 #include "confdefs.h"
2391 #include <$ac_hdr>
2392 EOF
2393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2394 { (eval echo configure:2395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2396 if test -z "$ac_err"; then
2397   rm -rf conftest*
2398   eval "ac_cv_header_$ac_safe=yes"
2399 else
2400   echo "$ac_err" >&5
2401   echo "configure: failed program was:" >&5
2402   cat conftest.$ac_ext >&5
2403   rm -rf conftest*
2404   eval "ac_cv_header_$ac_safe=no"
2405 fi
2406 rm -f conftest*
2407 fi
2408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2409   echo "$ac_t""yes" 1>&6
2410     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2411   cat >> confdefs.h <<EOF
2412 #define $ac_tr_hdr 1
2413 EOF
2414  
2415 else
2416   echo "$ac_t""no" 1>&6
2417 fi
2418 done
2419
2420
2421
2422
2423
2424 # Only perform the check for file, if the check method requires it
2425 case $deplibs_check_method in
2426 file_magic*)
2427   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2428     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2429 echo "configure:2430: checking for ${ac_tool_prefix}file" >&5
2430 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2431   echo $ac_n "(cached) $ac_c" 1>&6
2432 else
2433   case $MAGIC_CMD in
2434   /*)
2435   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2436   ;;
2437   ?:/*)
2438   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2439   ;;
2440   *)
2441   ac_save_MAGIC_CMD="$MAGIC_CMD"
2442   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2443   ac_dummy="/usr/bin:$PATH"
2444   for ac_dir in $ac_dummy; do
2445     test -z "$ac_dir" && ac_dir=.
2446     if test -f $ac_dir/${ac_tool_prefix}file; then
2447       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2448       if test -n "$file_magic_test_file"; then
2449         case $deplibs_check_method in
2450         "file_magic "*)
2451           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2452           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2453           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2454             egrep "$file_magic_regex" > /dev/null; then
2455             :
2456           else
2457             cat <<EOF 1>&2
2458
2459 *** Warning: the command libtool uses to detect shared libraries,
2460 *** $file_magic_cmd, produces output that libtool cannot recognize.
2461 *** The result is that libtool may fail to recognize shared libraries
2462 *** as such.  This will affect the creation of libtool libraries that
2463 *** depend on shared libraries, but programs linked with such libtool
2464 *** libraries will work regardless of this problem.  Nevertheless, you
2465 *** may want to report the problem to your system manager and/or to
2466 *** bug-libtool@gnu.org
2467
2468 EOF
2469           fi ;;
2470         esac
2471       fi
2472       break
2473     fi
2474   done
2475   IFS="$ac_save_ifs"
2476   MAGIC_CMD="$ac_save_MAGIC_CMD"
2477   ;;
2478 esac
2479 fi
2480
2481 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2482 if test -n "$MAGIC_CMD"; then
2483   echo "$ac_t""$MAGIC_CMD" 1>&6
2484 else
2485   echo "$ac_t""no" 1>&6
2486 fi
2487
2488 if test -z "$lt_cv_path_MAGIC_CMD"; then
2489   if test -n "$ac_tool_prefix"; then
2490     echo $ac_n "checking for file""... $ac_c" 1>&6
2491 echo "configure:2492: checking for file" >&5
2492 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2493   echo $ac_n "(cached) $ac_c" 1>&6
2494 else
2495   case $MAGIC_CMD in
2496   /*)
2497   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2498   ;;
2499   ?:/*)
2500   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2501   ;;
2502   *)
2503   ac_save_MAGIC_CMD="$MAGIC_CMD"
2504   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2505   ac_dummy="/usr/bin:$PATH"
2506   for ac_dir in $ac_dummy; do
2507     test -z "$ac_dir" && ac_dir=.
2508     if test -f $ac_dir/file; then
2509       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2510       if test -n "$file_magic_test_file"; then
2511         case $deplibs_check_method in
2512         "file_magic "*)
2513           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2514           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2515           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2516             egrep "$file_magic_regex" > /dev/null; then
2517             :
2518           else
2519             cat <<EOF 1>&2
2520
2521 *** Warning: the command libtool uses to detect shared libraries,
2522 *** $file_magic_cmd, produces output that libtool cannot recognize.
2523 *** The result is that libtool may fail to recognize shared libraries
2524 *** as such.  This will affect the creation of libtool libraries that
2525 *** depend on shared libraries, but programs linked with such libtool
2526 *** libraries will work regardless of this problem.  Nevertheless, you
2527 *** may want to report the problem to your system manager and/or to
2528 *** bug-libtool@gnu.org
2529
2530 EOF
2531           fi ;;
2532         esac
2533       fi
2534       break
2535     fi
2536   done
2537   IFS="$ac_save_ifs"
2538   MAGIC_CMD="$ac_save_MAGIC_CMD"
2539   ;;
2540 esac
2541 fi
2542
2543 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2544 if test -n "$MAGIC_CMD"; then
2545   echo "$ac_t""$MAGIC_CMD" 1>&6
2546 else
2547   echo "$ac_t""no" 1>&6
2548 fi
2549
2550   else
2551     MAGIC_CMD=:
2552   fi
2553 fi
2554
2555   fi
2556   ;;
2557 esac
2558
2559 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2560 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2561 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2562 echo "configure:2563: checking for $ac_word" >&5
2563 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2564   echo $ac_n "(cached) $ac_c" 1>&6
2565 else
2566   if test -n "$RANLIB"; then
2567   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2568 else
2569   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2570   ac_dummy="$PATH"
2571   for ac_dir in $ac_dummy; do
2572     test -z "$ac_dir" && ac_dir=.
2573     if test -f $ac_dir/$ac_word; then
2574       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2575       break
2576     fi
2577   done
2578   IFS="$ac_save_ifs"
2579 fi
2580 fi
2581 RANLIB="$ac_cv_prog_RANLIB"
2582 if test -n "$RANLIB"; then
2583   echo "$ac_t""$RANLIB" 1>&6
2584 else
2585   echo "$ac_t""no" 1>&6
2586 fi
2587
2588
2589 if test -z "$ac_cv_prog_RANLIB"; then
2590 if test -n "$ac_tool_prefix"; then
2591   # Extract the first word of "ranlib", so it can be a program name with args.
2592 set dummy ranlib; ac_word=$2
2593 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2594 echo "configure:2595: checking for $ac_word" >&5
2595 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2596   echo $ac_n "(cached) $ac_c" 1>&6
2597 else
2598   if test -n "$RANLIB"; then
2599   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2600 else
2601   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2602   ac_dummy="$PATH"
2603   for ac_dir in $ac_dummy; do
2604     test -z "$ac_dir" && ac_dir=.
2605     if test -f $ac_dir/$ac_word; then
2606       ac_cv_prog_RANLIB="ranlib"
2607       break
2608     fi
2609   done
2610   IFS="$ac_save_ifs"
2611   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2612 fi
2613 fi
2614 RANLIB="$ac_cv_prog_RANLIB"
2615 if test -n "$RANLIB"; then
2616   echo "$ac_t""$RANLIB" 1>&6
2617 else
2618   echo "$ac_t""no" 1>&6
2619 fi
2620
2621 else
2622   RANLIB=":"
2623 fi
2624 fi
2625
2626 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2627 set dummy ${ac_tool_prefix}strip; ac_word=$2
2628 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2629 echo "configure:2630: checking for $ac_word" >&5
2630 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2631   echo $ac_n "(cached) $ac_c" 1>&6
2632 else
2633   if test -n "$STRIP"; then
2634   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2635 else
2636   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2637   ac_dummy="$PATH"
2638   for ac_dir in $ac_dummy; do
2639     test -z "$ac_dir" && ac_dir=.
2640     if test -f $ac_dir/$ac_word; then
2641       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2642       break
2643     fi
2644   done
2645   IFS="$ac_save_ifs"
2646 fi
2647 fi
2648 STRIP="$ac_cv_prog_STRIP"
2649 if test -n "$STRIP"; then
2650   echo "$ac_t""$STRIP" 1>&6
2651 else
2652   echo "$ac_t""no" 1>&6
2653 fi
2654
2655
2656 if test -z "$ac_cv_prog_STRIP"; then
2657 if test -n "$ac_tool_prefix"; then
2658   # Extract the first word of "strip", so it can be a program name with args.
2659 set dummy strip; ac_word=$2
2660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2661 echo "configure:2662: checking for $ac_word" >&5
2662 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2663   echo $ac_n "(cached) $ac_c" 1>&6
2664 else
2665   if test -n "$STRIP"; then
2666   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2667 else
2668   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2669   ac_dummy="$PATH"
2670   for ac_dir in $ac_dummy; do
2671     test -z "$ac_dir" && ac_dir=.
2672     if test -f $ac_dir/$ac_word; then
2673       ac_cv_prog_STRIP="strip"
2674       break
2675     fi
2676   done
2677   IFS="$ac_save_ifs"
2678   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2679 fi
2680 fi
2681 STRIP="$ac_cv_prog_STRIP"
2682 if test -n "$STRIP"; then
2683   echo "$ac_t""$STRIP" 1>&6
2684 else
2685   echo "$ac_t""no" 1>&6
2686 fi
2687
2688 else
2689   STRIP=":"
2690 fi
2691 fi
2692
2693
2694 enable_dlopen=no
2695 enable_win32_dll=yes
2696
2697 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2698 if test "${enable_libtool_lock+set}" = set; then
2699   enableval="$enable_libtool_lock"
2700   :
2701 fi
2702
2703 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2704
2705 # Some flags need to be propagated to the compiler or linker for good
2706 # libtool support.
2707 case $host in
2708 *-*-irix6*)
2709   # Find out which ABI we are using.
2710   echo '#line 2711 "configure"' > conftest.$ac_ext
2711   if { (eval echo configure:2712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2712     case `/usr/bin/file conftest.$ac_objext` in
2713     *32-bit*)
2714       LD="${LD-ld} -32"
2715       ;;
2716     *N32*)
2717       LD="${LD-ld} -n32"
2718       ;;
2719     *64-bit*)
2720       LD="${LD-ld} -64"
2721       ;;
2722     esac
2723   fi
2724   rm -rf conftest*
2725   ;;
2726
2727 *-*-sco3.2v5*)
2728   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2729   SAVE_CFLAGS="$CFLAGS"
2730   CFLAGS="$CFLAGS -belf"
2731   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2732 echo "configure:2733: checking whether the C compiler needs -belf" >&5
2733 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2734   echo $ac_n "(cached) $ac_c" 1>&6
2735 else
2736   
2737      ac_ext=c
2738 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2739 ac_cpp='$CPP $CPPFLAGS'
2740 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2741 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2742 cross_compiling=$ac_cv_prog_cc_cross
2743
2744      cat > conftest.$ac_ext <<EOF
2745 #line 2746 "configure"
2746 #include "confdefs.h"
2747
2748 int main() {
2749
2750 ; return 0; }
2751 EOF
2752 if { (eval echo configure:2753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2753   rm -rf conftest*
2754   lt_cv_cc_needs_belf=yes
2755 else
2756   echo "configure: failed program was:" >&5
2757   cat conftest.$ac_ext >&5
2758   rm -rf conftest*
2759   lt_cv_cc_needs_belf=no
2760 fi
2761 rm -f conftest*
2762      ac_ext=c
2763 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2764 ac_cpp='$CPP $CPPFLAGS'
2765 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2766 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2767 cross_compiling=$ac_cv_prog_cc_cross
2768
2769 fi
2770
2771 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2772   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2773     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2774     CFLAGS="$SAVE_CFLAGS"
2775   fi
2776   ;;
2777
2778 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
2779   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2780 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2781 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2782 echo "configure:2783: checking for $ac_word" >&5
2783 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2784   echo $ac_n "(cached) $ac_c" 1>&6
2785 else
2786   if test -n "$DLLTOOL"; then
2787   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2788 else
2789   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2790   ac_dummy="$PATH"
2791   for ac_dir in $ac_dummy; do
2792     test -z "$ac_dir" && ac_dir=.
2793     if test -f $ac_dir/$ac_word; then
2794       ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2795       break
2796     fi
2797   done
2798   IFS="$ac_save_ifs"
2799 fi
2800 fi
2801 DLLTOOL="$ac_cv_prog_DLLTOOL"
2802 if test -n "$DLLTOOL"; then
2803   echo "$ac_t""$DLLTOOL" 1>&6
2804 else
2805   echo "$ac_t""no" 1>&6
2806 fi
2807
2808
2809 if test -z "$ac_cv_prog_DLLTOOL"; then
2810 if test -n "$ac_tool_prefix"; then
2811   # Extract the first word of "dlltool", so it can be a program name with args.
2812 set dummy dlltool; ac_word=$2
2813 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2814 echo "configure:2815: checking for $ac_word" >&5
2815 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2816   echo $ac_n "(cached) $ac_c" 1>&6
2817 else
2818   if test -n "$DLLTOOL"; then
2819   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2820 else
2821   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2822   ac_dummy="$PATH"
2823   for ac_dir in $ac_dummy; do
2824     test -z "$ac_dir" && ac_dir=.
2825     if test -f $ac_dir/$ac_word; then
2826       ac_cv_prog_DLLTOOL="dlltool"
2827       break
2828     fi
2829   done
2830   IFS="$ac_save_ifs"
2831   test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2832 fi
2833 fi
2834 DLLTOOL="$ac_cv_prog_DLLTOOL"
2835 if test -n "$DLLTOOL"; then
2836   echo "$ac_t""$DLLTOOL" 1>&6
2837 else
2838   echo "$ac_t""no" 1>&6
2839 fi
2840
2841 else
2842   DLLTOOL="false"
2843 fi
2844 fi
2845
2846   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2847 set dummy ${ac_tool_prefix}as; ac_word=$2
2848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2849 echo "configure:2850: checking for $ac_word" >&5
2850 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2851   echo $ac_n "(cached) $ac_c" 1>&6
2852 else
2853   if test -n "$AS"; then
2854   ac_cv_prog_AS="$AS" # Let the user override the test.
2855 else
2856   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2857   ac_dummy="$PATH"
2858   for ac_dir in $ac_dummy; do
2859     test -z "$ac_dir" && ac_dir=.
2860     if test -f $ac_dir/$ac_word; then
2861       ac_cv_prog_AS="${ac_tool_prefix}as"
2862       break
2863     fi
2864   done
2865   IFS="$ac_save_ifs"
2866 fi
2867 fi
2868 AS="$ac_cv_prog_AS"
2869 if test -n "$AS"; then
2870   echo "$ac_t""$AS" 1>&6
2871 else
2872   echo "$ac_t""no" 1>&6
2873 fi
2874
2875
2876 if test -z "$ac_cv_prog_AS"; then
2877 if test -n "$ac_tool_prefix"; then
2878   # Extract the first word of "as", so it can be a program name with args.
2879 set dummy as; ac_word=$2
2880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2881 echo "configure:2882: checking for $ac_word" >&5
2882 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2883   echo $ac_n "(cached) $ac_c" 1>&6
2884 else
2885   if test -n "$AS"; then
2886   ac_cv_prog_AS="$AS" # Let the user override the test.
2887 else
2888   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2889   ac_dummy="$PATH"
2890   for ac_dir in $ac_dummy; do
2891     test -z "$ac_dir" && ac_dir=.
2892     if test -f $ac_dir/$ac_word; then
2893       ac_cv_prog_AS="as"
2894       break
2895     fi
2896   done
2897   IFS="$ac_save_ifs"
2898   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2899 fi
2900 fi
2901 AS="$ac_cv_prog_AS"
2902 if test -n "$AS"; then
2903   echo "$ac_t""$AS" 1>&6
2904 else
2905   echo "$ac_t""no" 1>&6
2906 fi
2907
2908 else
2909   AS="false"
2910 fi
2911 fi
2912
2913   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2914 set dummy ${ac_tool_prefix}objdump; ac_word=$2
2915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2916 echo "configure:2917: checking for $ac_word" >&5
2917 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2918   echo $ac_n "(cached) $ac_c" 1>&6
2919 else
2920   if test -n "$OBJDUMP"; then
2921   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2922 else
2923   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2924   ac_dummy="$PATH"
2925   for ac_dir in $ac_dummy; do
2926     test -z "$ac_dir" && ac_dir=.
2927     if test -f $ac_dir/$ac_word; then
2928       ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2929       break
2930     fi
2931   done
2932   IFS="$ac_save_ifs"
2933 fi
2934 fi
2935 OBJDUMP="$ac_cv_prog_OBJDUMP"
2936 if test -n "$OBJDUMP"; then
2937   echo "$ac_t""$OBJDUMP" 1>&6
2938 else
2939   echo "$ac_t""no" 1>&6
2940 fi
2941
2942
2943 if test -z "$ac_cv_prog_OBJDUMP"; then
2944 if test -n "$ac_tool_prefix"; then
2945   # Extract the first word of "objdump", so it can be a program name with args.
2946 set dummy objdump; ac_word=$2
2947 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2948 echo "configure:2949: checking for $ac_word" >&5
2949 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2950   echo $ac_n "(cached) $ac_c" 1>&6
2951 else
2952   if test -n "$OBJDUMP"; then
2953   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2954 else
2955   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2956   ac_dummy="$PATH"
2957   for ac_dir in $ac_dummy; do
2958     test -z "$ac_dir" && ac_dir=.
2959     if test -f $ac_dir/$ac_word; then
2960       ac_cv_prog_OBJDUMP="objdump"
2961       break
2962     fi
2963   done
2964   IFS="$ac_save_ifs"
2965   test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
2966 fi
2967 fi
2968 OBJDUMP="$ac_cv_prog_OBJDUMP"
2969 if test -n "$OBJDUMP"; then
2970   echo "$ac_t""$OBJDUMP" 1>&6
2971 else
2972   echo "$ac_t""no" 1>&6
2973 fi
2974
2975 else
2976   OBJDUMP="false"
2977 fi
2978 fi
2979
2980
2981   # recent cygwin and mingw systems supply a stub DllMain which the user
2982   # can override, but on older systems we have to supply one
2983   echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
2984 echo "configure:2985: checking if libtool should supply DllMain function" >&5
2985 if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
2986   echo $ac_n "(cached) $ac_c" 1>&6
2987 else
2988   cat > conftest.$ac_ext <<EOF
2989 #line 2990 "configure"
2990 #include "confdefs.h"
2991
2992 int main() {
2993 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
2994       DllMain (0, 0, 0);
2995 ; return 0; }
2996 EOF
2997 if { (eval echo configure:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2998   rm -rf conftest*
2999   lt_cv_need_dllmain=no
3000 else
3001   echo "configure: failed program was:" >&5
3002   cat conftest.$ac_ext >&5
3003   rm -rf conftest*
3004   lt_cv_need_dllmain=yes
3005 fi
3006 rm -f conftest*
3007 fi
3008
3009 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
3010
3011   case $host/$CC in
3012   *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
3013     # old mingw systems require "-dll" to link a DLL, while more recent ones
3014     # require "-mdll"
3015     SAVE_CFLAGS="$CFLAGS"
3016     CFLAGS="$CFLAGS -mdll"
3017     echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
3018 echo "configure:3019: checking how to link DLLs" >&5
3019 if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
3020   echo $ac_n "(cached) $ac_c" 1>&6
3021 else
3022   cat > conftest.$ac_ext <<EOF
3023 #line 3024 "configure"
3024 #include "confdefs.h"
3025
3026 int main() {
3027
3028 ; return 0; }
3029 EOF
3030 if { (eval echo configure:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3031   rm -rf conftest*
3032   lt_cv_cc_dll_switch=-mdll
3033 else
3034   echo "configure: failed program was:" >&5
3035   cat conftest.$ac_ext >&5
3036   rm -rf conftest*
3037   lt_cv_cc_dll_switch=-dll
3038 fi
3039 rm -f conftest*
3040 fi
3041
3042 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
3043     CFLAGS="$SAVE_CFLAGS" ;;
3044   *-*-cygwin* | *-*-pw32*)
3045     # cygwin systems need to pass --dll to the linker, and not link
3046     # crt.o which will require a WinMain@16 definition.
3047     lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
3048   esac
3049   ;;
3050   
3051 esac
3052
3053 # Sed substitution that helps us do robust quoting.  It backslashifies
3054 # metacharacters that are still active within double-quoted strings.
3055 Xsed='sed -e s/^X//'
3056 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3057
3058 # Same as above, but do not quote variable references.
3059 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3060
3061 # Sed substitution to delay expansion of an escaped shell variable in a
3062 # double_quote_subst'ed string.
3063 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3064
3065 # Constants:
3066 rm="rm -f"
3067
3068 # Global variables:
3069 default_ofile=libtool
3070 can_build_shared=yes
3071
3072 # All known linkers require a `.a' archive for static linking (except M$VC,
3073 # which needs '.lib').
3074 libext=a
3075 ltmain="$ac_aux_dir/ltmain.sh"
3076 ofile="$default_ofile"
3077 with_gnu_ld="$lt_cv_prog_gnu_ld"
3078 need_locks="$enable_libtool_lock"
3079
3080 old_CC="$CC"
3081 old_CFLAGS="$CFLAGS"
3082
3083 # Set sane defaults for various variables
3084 test -z "$AR" && AR=ar
3085 test -z "$AR_FLAGS" && AR_FLAGS=cru
3086 test -z "$AS" && AS=as
3087 test -z "$CC" && CC=cc
3088 test -z "$DLLTOOL" && DLLTOOL=dlltool
3089 test -z "$LD" && LD=ld
3090 test -z "$LN_S" && LN_S="ln -s"
3091 test -z "$MAGIC_CMD" && MAGIC_CMD=file
3092 test -z "$NM" && NM=nm
3093 test -z "$OBJDUMP" && OBJDUMP=objdump
3094 test -z "$RANLIB" && RANLIB=:
3095 test -z "$STRIP" && STRIP=:
3096 test -z "$ac_objext" && ac_objext=o
3097
3098 if test x"$host" != x"$build"; then
3099   ac_tool_prefix=${host_alias}-
3100 else
3101   ac_tool_prefix=
3102 fi
3103
3104 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3105 case $host_os in
3106 linux-gnu*) ;;
3107 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3108 esac
3109
3110 case $host_os in
3111 aix3*)
3112   # AIX sometimes has problems with the GCC collect2 program.  For some
3113   # reason, if we set the COLLECT_NAMES environment variable, the problems
3114   # vanish in a puff of smoke.
3115   if test "X${COLLECT_NAMES+set}" != Xset; then
3116     COLLECT_NAMES=
3117     export COLLECT_NAMES
3118   fi
3119   ;;
3120 esac
3121
3122 # Determine commands to create old-style static archives.
3123 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3124 old_postinstall_cmds='chmod 644 $oldlib'
3125 old_postuninstall_cmds=
3126
3127 if test -n "$RANLIB"; then
3128   case $host_os in
3129   openbsd*)
3130     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3131     ;;
3132   *)
3133     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3134     ;;
3135   esac
3136   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3137 fi
3138
3139 # Allow CC to be a program name with arguments.
3140 set dummy $CC
3141 compiler="$2"
3142
3143 echo $ac_n "checking for objdir""... $ac_c" 1>&6
3144 echo "configure:3145: checking for objdir" >&5
3145 rm -f .libs 2>/dev/null
3146 mkdir .libs 2>/dev/null
3147 if test -d .libs; then
3148   objdir=.libs
3149 else
3150   # MS-DOS does not allow filenames that begin with a dot.
3151   objdir=_libs
3152 fi
3153 rmdir .libs 2>/dev/null
3154 echo "$ac_t""$objdir" 1>&6
3155
3156
3157 # Check whether --with-pic or --without-pic was given.
3158 if test "${with_pic+set}" = set; then
3159   withval="$with_pic"
3160   pic_mode="$withval"
3161 else
3162   pic_mode=default
3163 fi
3164
3165 test -z "$pic_mode" && pic_mode=default
3166
3167 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
3168 # in isolation, and that seeing it set (from the cache) indicates that
3169 # the associated values are set (in the cache) correctly too.
3170 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
3171 echo "configure:3172: checking for $compiler option to produce PIC" >&5
3172 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
3173   echo $ac_n "(cached) $ac_c" 1>&6
3174 else
3175    lt_cv_prog_cc_pic=
3176   lt_cv_prog_cc_shlib=
3177   lt_cv_prog_cc_wl=
3178   lt_cv_prog_cc_static=
3179   lt_cv_prog_cc_no_builtin=
3180   lt_cv_prog_cc_can_build_shared=$can_build_shared
3181
3182   if test "$GCC" = yes; then
3183     lt_cv_prog_cc_wl='-Wl,'
3184     lt_cv_prog_cc_static='-static'
3185
3186     case $host_os in
3187     aix*)
3188       # Below there is a dirty hack to force normal static linking with -ldl
3189       # The problem is because libdl dynamically linked with both libc and
3190       # libC (AIX C++ library), which obviously doesn't included in libraries
3191       # list by gcc. This cause undefined symbols with -static flags.
3192       # This hack allows C programs to be linked with "-static -ldl", but
3193       # not sure about C++ programs.
3194       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
3195       ;;
3196     amigaos*)
3197       # FIXME: we need at least 68020 code to build shared libraries, but
3198       # adding the `-m68020' flag to GCC prevents building anything better,
3199       # like `-m68040'.
3200       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
3201       ;;
3202     beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
3203       # PIC is the default for these OSes.
3204       ;;
3205     darwin* | rhapsody*)
3206       # PIC is the default on this platform
3207       # Common symbols not allowed in MH_DYLIB files
3208       lt_cv_prog_cc_pic='-fno-common'
3209       ;;
3210     cygwin* | mingw* | pw32* | os2*)
3211       # This hack is so that the source file can tell whether it is being
3212       # built for inclusion in a dll (and should export symbols for example).
3213       lt_cv_prog_cc_pic='-DDLL_EXPORT'
3214       ;;
3215     sysv4*MP*)
3216       if test -d /usr/nec; then
3217          lt_cv_prog_cc_pic=-Kconform_pic
3218       fi
3219       ;;
3220     *)
3221       lt_cv_prog_cc_pic='-fPIC'
3222       ;;
3223     esac
3224   else
3225     # PORTME Check for PIC flags for the system compiler.
3226     case $host_os in
3227     aix3* | aix4* | aix5*)
3228       lt_cv_prog_cc_wl='-Wl,'
3229       # All AIX code is PIC.
3230       if test "$host_cpu" = ia64; then
3231         # AIX 5 now supports IA64 processor
3232         lt_cv_prog_cc_static='-Bstatic'
3233       else
3234         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
3235       fi
3236       ;;
3237
3238     hpux9* | hpux10* | hpux11*)
3239       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
3240       lt_cv_prog_cc_wl='-Wl,'
3241       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
3242       lt_cv_prog_cc_pic='+Z'
3243       ;;
3244
3245     irix5* | irix6*)
3246       lt_cv_prog_cc_wl='-Wl,'
3247       lt_cv_prog_cc_static='-non_shared'
3248       # PIC (with -KPIC) is the default.
3249       ;;
3250
3251     cygwin* | mingw* | pw32* | os2*)
3252       # This hack is so that the source file can tell whether it is being
3253       # built for inclusion in a dll (and should export symbols for example).
3254       lt_cv_prog_cc_pic='-DDLL_EXPORT'
3255       ;;
3256
3257     newsos6)
3258       lt_cv_prog_cc_pic='-KPIC'
3259       lt_cv_prog_cc_static='-Bstatic'
3260       ;;
3261
3262     osf3* | osf4* | osf5*)
3263       # All OSF/1 code is PIC.
3264       lt_cv_prog_cc_wl='-Wl,'
3265       lt_cv_prog_cc_static='-non_shared'
3266       ;;
3267
3268     sco3.2v5*)
3269       lt_cv_prog_cc_pic='-Kpic'
3270       lt_cv_prog_cc_static='-dn'
3271       lt_cv_prog_cc_shlib='-belf'
3272       ;;
3273
3274     solaris*)
3275       lt_cv_prog_cc_pic='-KPIC'
3276       lt_cv_prog_cc_static='-Bstatic'
3277       lt_cv_prog_cc_wl='-Wl,'
3278       ;;
3279
3280     sunos4*)
3281       lt_cv_prog_cc_pic='-PIC'
3282       lt_cv_prog_cc_static='-Bstatic'
3283       lt_cv_prog_cc_wl='-Qoption ld '
3284       ;;
3285
3286     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3287       lt_cv_prog_cc_pic='-KPIC'
3288       lt_cv_prog_cc_static='-Bstatic'
3289       if test "x$host_vendor" = xsni; then
3290         lt_cv_prog_cc_wl='-LD'
3291       else
3292         lt_cv_prog_cc_wl='-Wl,'
3293       fi
3294       ;;
3295
3296     uts4*)
3297       lt_cv_prog_cc_pic='-pic'
3298       lt_cv_prog_cc_static='-Bstatic'
3299       ;;
3300
3301     sysv4*MP*)
3302       if test -d /usr/nec ;then
3303         lt_cv_prog_cc_pic='-Kconform_pic'
3304         lt_cv_prog_cc_static='-Bstatic'
3305       fi
3306       ;;
3307
3308     *)
3309       lt_cv_prog_cc_can_build_shared=no
3310       ;;
3311     esac
3312   fi
3313
3314 fi
3315
3316 if test -z "$lt_cv_prog_cc_pic"; then
3317   echo "$ac_t""none" 1>&6
3318 else
3319   echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
3320
3321   # Check to make sure the pic_flag actually works.
3322   echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
3323 echo "configure:3324: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
3324   if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
3325   echo $ac_n "(cached) $ac_c" 1>&6
3326 else
3327       save_CFLAGS="$CFLAGS"
3328     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
3329     cat > conftest.$ac_ext <<EOF
3330 #line 3331 "configure"
3331 #include "confdefs.h"
3332
3333 int main() {
3334
3335 ; return 0; }
3336 EOF
3337 if { (eval echo configure:3338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3338   rm -rf conftest*
3339         case $host_os in
3340       hpux9* | hpux10* | hpux11*)
3341         # On HP-UX, both CC and GCC only warn that PIC is supported... then
3342         # they create non-PIC objects.  So, if there were any warnings, we
3343         # assume that PIC is not supported.
3344         if test -s conftest.err; then
3345           lt_cv_prog_cc_pic_works=no
3346         else
3347           lt_cv_prog_cc_pic_works=yes
3348         fi
3349         ;;
3350       *)
3351         lt_cv_prog_cc_pic_works=yes
3352         ;;
3353       esac
3354     
3355 else
3356   echo "configure: failed program was:" >&5
3357   cat conftest.$ac_ext >&5
3358   rm -rf conftest*
3359         lt_cv_prog_cc_pic_works=no
3360     
3361 fi
3362 rm -f conftest*
3363     CFLAGS="$save_CFLAGS"
3364   
3365 fi
3366
3367
3368   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
3369     lt_cv_prog_cc_pic=
3370     lt_cv_prog_cc_can_build_shared=no
3371   else
3372     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
3373   fi
3374
3375   echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
3376 fi
3377
3378 # Check for any special shared library compilation flags.
3379 if test -n "$lt_cv_prog_cc_shlib"; then
3380   echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
3381   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
3382   else
3383    echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
3384     lt_cv_prog_cc_can_build_shared=no
3385   fi
3386 fi
3387
3388 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
3389 echo "configure:3390: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
3390 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
3391   echo $ac_n "(cached) $ac_c" 1>&6
3392 else
3393     lt_cv_prog_cc_static_works=no
3394   save_LDFLAGS="$LDFLAGS"
3395   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
3396   cat > conftest.$ac_ext <<EOF
3397 #line 3398 "configure"
3398 #include "confdefs.h"
3399
3400 int main() {
3401
3402 ; return 0; }
3403 EOF
3404 if { (eval echo configure:3405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3405   rm -rf conftest*
3406   lt_cv_prog_cc_static_works=yes
3407 else
3408   echo "configure: failed program was:" >&5
3409   cat conftest.$ac_ext >&5
3410 fi
3411 rm -f conftest*
3412   LDFLAGS="$save_LDFLAGS"
3413
3414 fi
3415
3416
3417 # Belt *and* braces to stop my trousers falling down:
3418 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
3419 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
3420
3421 pic_flag="$lt_cv_prog_cc_pic"
3422 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
3423 wl="$lt_cv_prog_cc_wl"
3424 link_static_flag="$lt_cv_prog_cc_static"
3425 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
3426 can_build_shared="$lt_cv_prog_cc_can_build_shared"
3427
3428
3429 # Check to see if options -o and -c are simultaneously supported by compiler
3430 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
3431 echo "configure:3432: checking if $compiler supports -c -o file.$ac_objext" >&5
3432 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
3433   echo $ac_n "(cached) $ac_c" 1>&6
3434 else
3435   
3436 $rm -r conftest 2>/dev/null
3437 mkdir conftest
3438 cd conftest
3439 echo "int some_variable = 0;" > conftest.$ac_ext
3440 mkdir out
3441 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
3442 # that will create temporary files in the current directory regardless of
3443 # the output directory.  Thus, making CWD read-only will cause this test
3444 # to fail, enabling locking or at least warning the user not to do parallel
3445 # builds.
3446 chmod -w .
3447 save_CFLAGS="$CFLAGS"
3448 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
3449 compiler_c_o=no
3450 if { (eval echo configure:3451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
3451   # The compiler can only warn and ignore the option if not recognized
3452   # So say no if there are warnings
3453   if test -s out/conftest.err; then
3454     lt_cv_compiler_c_o=no
3455   else
3456     lt_cv_compiler_c_o=yes
3457   fi
3458 else
3459   # Append any errors to the config.log.
3460   cat out/conftest.err 1>&5
3461   lt_cv_compiler_c_o=no
3462 fi
3463 CFLAGS="$save_CFLAGS"
3464 chmod u+w .
3465 $rm conftest* out/*
3466 rmdir out
3467 cd ..
3468 rmdir conftest
3469 $rm -r conftest 2>/dev/null
3470
3471 fi
3472
3473 compiler_c_o=$lt_cv_compiler_c_o
3474 echo "$ac_t""$compiler_c_o" 1>&6
3475
3476 if test x"$compiler_c_o" = x"yes"; then
3477   # Check to see if we can write to a .lo
3478   echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
3479 echo "configure:3480: checking if $compiler supports -c -o file.lo" >&5
3480   if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
3481   echo $ac_n "(cached) $ac_c" 1>&6
3482 else
3483   
3484   lt_cv_compiler_o_lo=no
3485   save_CFLAGS="$CFLAGS"
3486   CFLAGS="$CFLAGS -c -o conftest.lo"
3487   save_objext="$ac_objext"
3488   ac_objext=lo
3489   cat > conftest.$ac_ext <<EOF
3490 #line 3491 "configure"
3491 #include "confdefs.h"
3492
3493 int main() {
3494 int some_variable = 0;
3495 ; return 0; }
3496 EOF
3497 if { (eval echo configure:3498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3498   rm -rf conftest*
3499       # The compiler can only warn and ignore the option if not recognized
3500     # So say no if there are warnings
3501     if test -s conftest.err; then
3502       lt_cv_compiler_o_lo=no
3503     else
3504       lt_cv_compiler_o_lo=yes
3505     fi
3506   
3507 else
3508   echo "configure: failed program was:" >&5
3509   cat conftest.$ac_ext >&5
3510 fi
3511 rm -f conftest*
3512   ac_objext="$save_objext"
3513   CFLAGS="$save_CFLAGS"
3514   
3515 fi
3516
3517   compiler_o_lo=$lt_cv_compiler_o_lo
3518   echo "$ac_t""$compiler_o_lo" 1>&6
3519 else
3520   compiler_o_lo=no
3521 fi
3522
3523 # Check to see if we can do hard links to lock some files if needed
3524 hard_links="nottested"
3525 if test "$compiler_c_o" = no && test "$need_locks" != no; then
3526   # do not overwrite the value of need_locks provided by the user
3527   echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
3528 echo "configure:3529: checking if we can lock with hard links" >&5
3529   hard_links=yes
3530   $rm conftest*
3531   ln conftest.a conftest.b 2>/dev/null && hard_links=no
3532   touch conftest.a
3533   ln conftest.a conftest.b 2>&5 || hard_links=no
3534   ln conftest.a conftest.b 2>/dev/null && hard_links=no
3535   echo "$ac_t""$hard_links" 1>&6
3536   if test "$hard_links" = no; then
3537     echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
3538     need_locks=warn
3539   fi
3540 else
3541   need_locks=no
3542 fi
3543
3544 if test "$GCC" = yes; then
3545   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3546   echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3547 echo "configure:3548: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3548   echo "int some_variable = 0;" > conftest.$ac_ext
3549   save_CFLAGS="$CFLAGS"
3550   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3551   compiler_rtti_exceptions=no
3552   cat > conftest.$ac_ext <<EOF
3553 #line 3554 "configure"
3554 #include "confdefs.h"
3555
3556 int main() {
3557 int some_variable = 0;
3558 ; return 0; }
3559 EOF
3560 if { (eval echo configure:3561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3561   rm -rf conftest*
3562       # The compiler can only warn and ignore the option if not recognized
3563     # So say no if there are warnings
3564     if test -s conftest.err; then
3565       compiler_rtti_exceptions=no
3566     else
3567       compiler_rtti_exceptions=yes
3568     fi
3569   
3570 else
3571   echo "configure: failed program was:" >&5
3572   cat conftest.$ac_ext >&5
3573 fi
3574 rm -f conftest*
3575   CFLAGS="$save_CFLAGS"
3576   echo "$ac_t""$compiler_rtti_exceptions" 1>&6
3577
3578   if test "$compiler_rtti_exceptions" = "yes"; then
3579     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3580   else
3581     no_builtin_flag=' -fno-builtin'
3582   fi
3583 fi
3584
3585 # See if the linker supports building shared libraries.
3586 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3587 echo "configure:3588: checking whether the linker ($LD) supports shared libraries" >&5
3588
3589 allow_undefined_flag=
3590 no_undefined_flag=
3591 need_lib_prefix=unknown
3592 need_version=unknown
3593 # when you set need_version to no, make sure it does not cause -set_version
3594 # flags to be left without arguments
3595 archive_cmds=
3596 archive_expsym_cmds=
3597 old_archive_from_new_cmds=
3598 old_archive_from_expsyms_cmds=
3599 export_dynamic_flag_spec=
3600 whole_archive_flag_spec=
3601 thread_safe_flag_spec=
3602 hardcode_into_libs=no
3603 hardcode_libdir_flag_spec=
3604 hardcode_libdir_separator=
3605 hardcode_direct=no
3606 hardcode_minus_L=no
3607 hardcode_shlibpath_var=unsupported
3608 runpath_var=
3609 link_all_deplibs=unknown
3610 always_export_symbols=no
3611 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3612 # include_expsyms should be a list of space-separated symbols to be *always*
3613 # included in the symbol list
3614 include_expsyms=
3615 # exclude_expsyms can be an egrep regular expression of symbols to exclude
3616 # it will be wrapped by ` (' and `)$', so one must not match beginning or
3617 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3618 # as well as any symbol that contains `d'.
3619 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3620 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3621 # platforms (ab)use it in PIC code, but their linkers get confused if
3622 # the symbol is explicitly referenced.  Since portable code cannot
3623 # rely on this symbol name, it's probably fine to never include it in
3624 # preloaded symbol tables.
3625 extract_expsyms_cmds=
3626
3627 case $host_os in
3628 cygwin* | mingw* | pw32*)
3629   # FIXME: the MSVC++ port hasn't been tested in a loooong time
3630   # When not using gcc, we currently assume that we are using
3631   # Microsoft Visual C++.
3632   if test "$GCC" != yes; then
3633     with_gnu_ld=no
3634   fi
3635   ;;
3636 openbsd*)
3637   with_gnu_ld=no
3638   ;;
3639 esac
3640
3641 ld_shlibs=yes
3642 if test "$with_gnu_ld" = yes; then
3643   # If archive_cmds runs LD, not CC, wlarc should be empty
3644   wlarc='${wl}'
3645
3646   # See if GNU ld supports shared libraries.
3647   case $host_os in
3648   aix3* | aix4* | aix5*)
3649     # On AIX, the GNU linker is very broken
3650     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3651     ld_shlibs=no
3652     cat <<EOF 1>&2
3653
3654 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3655 *** to be unable to reliably create shared libraries on AIX.
3656 *** Therefore, libtool is disabling shared libraries support.  If you
3657 *** really care for shared libraries, you may want to modify your PATH
3658 *** so that a non-GNU linker is found, and then restart.
3659
3660 EOF
3661     ;;
3662
3663   amigaos*)
3664     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
3665     hardcode_libdir_flag_spec='-L$libdir'
3666     hardcode_minus_L=yes
3667
3668     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3669     # that the semantics of dynamic libraries on AmigaOS, at least up
3670     # to version 4, is to share data among multiple programs linked
3671     # with the same dynamic library.  Since this doesn't match the
3672     # behavior of shared libraries on other platforms, we can use
3673     # them.
3674     ld_shlibs=no
3675     ;;
3676
3677   beos*)
3678     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3679       allow_undefined_flag=unsupported
3680       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3681       # support --undefined.  This deserves some investigation.  FIXME
3682       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3683     else
3684       ld_shlibs=no
3685     fi
3686     ;;
3687
3688   cygwin* | mingw* | pw32*)
3689     # hardcode_libdir_flag_spec is actually meaningless, as there is
3690     # no search path for DLLs.
3691     hardcode_libdir_flag_spec='-L$libdir'
3692     allow_undefined_flag=unsupported
3693     always_export_symbols=yes
3694
3695     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3696       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3697       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3698       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3699       else $CC -o impgen impgen.c ; fi)~
3700       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3701
3702     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3703
3704     # cygwin and mingw dlls have different entry points and sets of symbols
3705     # to exclude.
3706     # FIXME: what about values for MSVC?
3707     dll_entry=__cygwin_dll_entry@12
3708     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3709     case $host_os in
3710     mingw*)
3711       # mingw values
3712       dll_entry=_DllMainCRTStartup@12
3713       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3714       ;;
3715     esac
3716
3717     # mingw and cygwin differ, and it's simplest to just exclude the union
3718     # of the two symbol sets.
3719     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3720
3721     # recent cygwin and mingw systems supply a stub DllMain which the user
3722     # can override, but on older systems we have to supply one (in ltdll.c)
3723     if test "x$lt_cv_need_dllmain" = "xyes"; then
3724       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3725       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
3726         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3727     else
3728       ltdll_obj=
3729       ltdll_cmds=
3730     fi
3731
3732     # Extract the symbol export list from an `--export-all' def file,
3733     # then regenerate the def file from the symbol export list, so that
3734     # the compiled dll only exports the symbol export list.
3735     # Be careful not to strip the DATA tag left be newer dlltools.
3736     export_symbols_cmds="$ltdll_cmds"'
3737       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3738       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3739
3740     # If the export-symbols file already is a .def file (1st line
3741     # is EXPORTS), use it as is.
3742     # If DATA tags from a recent dlltool are present, honour them!
3743     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
3744         cp $export_symbols $output_objdir/$soname-def;
3745       else
3746         echo EXPORTS > $output_objdir/$soname-def;
3747         _lt_hint=1;
3748         cat $export_symbols | while read symbol; do
3749          set dummy \$symbol;
3750          case \$# in
3751            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3752            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3753          esac;
3754          _lt_hint=`expr 1 + \$_lt_hint`;
3755         done;
3756       fi~
3757       '"$ltdll_cmds"'
3758       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
3759       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
3760       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
3761       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
3762       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3763     ;;
3764
3765   netbsd*)
3766     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3767       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3768       wlarc=
3769     else
3770       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3771       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3772     fi
3773     ;;
3774
3775   solaris* | sysv5*)
3776     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3777       ld_shlibs=no
3778       cat <<EOF 1>&2
3779
3780 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
3781 *** create shared libraries on Solaris systems.  Therefore, libtool
3782 *** is disabling shared libraries support.  We urge you to upgrade GNU
3783 *** binutils to release 2.9.1 or newer.  Another option is to modify
3784 *** your PATH or compiler configuration so that the native linker is
3785 *** used, and then restart.
3786
3787 EOF
3788     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3789       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3790       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3791     else
3792       ld_shlibs=no
3793     fi
3794     ;;
3795
3796   sunos4*)
3797     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3798     wlarc=
3799     hardcode_direct=yes
3800     hardcode_shlibpath_var=no
3801     ;;
3802
3803   *)
3804     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3805       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3806       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3807     else
3808       ld_shlibs=no
3809     fi
3810     ;;
3811   esac
3812
3813   if test "$ld_shlibs" = yes; then
3814     runpath_var=LD_RUN_PATH
3815     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3816     export_dynamic_flag_spec='${wl}--export-dynamic'
3817     case $host_os in
3818     cygwin* | mingw* | pw32*)
3819       # dlltool doesn't understand --whole-archive et. al.
3820       whole_archive_flag_spec=
3821       ;;
3822     *)
3823       # ancient GNU ld didn't support --whole-archive et. al.
3824       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3825         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3826       else
3827         whole_archive_flag_spec=
3828       fi
3829       ;;
3830     esac
3831   fi
3832 else
3833   # PORTME fill in a description of your system's linker (not GNU ld)
3834   case $host_os in
3835   aix3*)
3836     allow_undefined_flag=unsupported
3837     always_export_symbols=yes
3838     archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
3839     # Note: this linker hardcodes the directories in LIBPATH if there
3840     # are no directories specified by -L.
3841     hardcode_minus_L=yes
3842     if test "$GCC" = yes && test -z "$link_static_flag"; then
3843       # Neither direct hardcoding nor static linking is supported with a
3844       # broken collect2.
3845       hardcode_direct=unsupported
3846     fi
3847     ;;
3848
3849   aix4* | aix5*)
3850     if test "$host_cpu" = ia64; then
3851       # On IA64, the linker does run time linking by default, so we don't
3852       # have to do anything special.
3853       aix_use_runtimelinking=no
3854       exp_sym_flag='-Bexport'
3855       no_entry_flag=""
3856     else
3857       aix_use_runtimelinking=no
3858
3859       # Test if we are trying to use run time linking or normal
3860       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3861       # need to do runtime linking.
3862       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
3863         for ld_flag in $LDFLAGS; do
3864           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
3865             aix_use_runtimelinking=yes
3866             break
3867           fi
3868         done
3869       esac
3870
3871       exp_sym_flag='-bexport'
3872       no_entry_flag='-bnoentry'
3873     fi
3874
3875     # When large executables or shared objects are built, AIX ld can
3876     # have problems creating the table of contents.  If linking a library
3877     # or program results in "error TOC overflow" add -mminimal-toc to
3878     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
3879     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3880
3881     hardcode_direct=yes
3882     archive_cmds=''
3883     hardcode_libdir_separator=':'
3884     if test "$GCC" = yes; then
3885       case $host_os in aix4.[012]|aix4.[012].*)
3886         collect2name=`${CC} -print-prog-name=collect2`
3887         if test -f "$collect2name" && \
3888           strings "$collect2name" | grep resolve_lib_name >/dev/null
3889         then
3890           # We have reworked collect2
3891           hardcode_direct=yes
3892         else
3893           # We have old collect2
3894           hardcode_direct=unsupported
3895           # It fails to find uninstalled libraries when the uninstalled
3896           # path is not listed in the libpath.  Setting hardcode_minus_L
3897           # to unsupported forces relinking
3898           hardcode_minus_L=yes
3899           hardcode_libdir_flag_spec='-L$libdir'
3900           hardcode_libdir_separator=
3901         fi
3902       esac
3903
3904       shared_flag='-shared'
3905     else
3906       # not using gcc
3907       if test "$host_cpu" = ia64; then
3908         shared_flag='${wl}-G'
3909       else
3910         if test "$aix_use_runtimelinking" = yes; then
3911           shared_flag='${wl}-G'
3912         else
3913           shared_flag='${wl}-bM:SRE'
3914         fi
3915       fi
3916     fi
3917
3918     # It seems that -bexpall can do strange things, so it is better to
3919     # generate a list of symbols to export.
3920     always_export_symbols=yes
3921     if test "$aix_use_runtimelinking" = yes; then
3922       # Warning - without using the other runtime loading flags (-brtl),
3923       # -berok will link without error, but may produce a broken library.
3924       allow_undefined_flag='-berok'
3925       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3926       archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3927     else
3928       if test "$host_cpu" = ia64; then
3929         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3930         allow_undefined_flag="-z nodefs"
3931         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
3932       else
3933         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3934         # Warning - without using the other run time loading flags,
3935         # -berok will link without error, but may produce a broken library.
3936         allow_undefined_flag='${wl}-berok'
3937         # This is a bit strange, but is similar to how AIX traditionally builds
3938         # it's shared libraries.
3939         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
3940       fi
3941     fi
3942     ;;
3943
3944   amigaos*)
3945     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
3946     hardcode_libdir_flag_spec='-L$libdir'
3947     hardcode_minus_L=yes
3948     # see comment about different semantics on the GNU ld section
3949     ld_shlibs=no
3950     ;;
3951
3952   cygwin* | mingw* | pw32*)
3953     # When not using gcc, we currently assume that we are using
3954     # Microsoft Visual C++.
3955     # hardcode_libdir_flag_spec is actually meaningless, as there is
3956     # no search path for DLLs.
3957     hardcode_libdir_flag_spec=' '
3958     allow_undefined_flag=unsupported
3959     # Tell ltmain to make .lib files, not .a files.
3960     libext=lib
3961     # FIXME: Setting linknames here is a bad hack.
3962     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3963     # The linker will automatically build a .lib file if we build a DLL.
3964     old_archive_from_new_cmds='true'
3965     # FIXME: Should let the user specify the lib program.
3966     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3967     fix_srcfile_path='`cygpath -w "$srcfile"`'
3968     ;;
3969
3970   darwin* | rhapsody*)
3971     case "$host_os" in
3972     rhapsody* | darwin1.[012])
3973       allow_undefined_flag='-undefined suppress'
3974       ;;
3975     *) # Darwin 1.3 on
3976       allow_undefined_flag='-flat_namespace -undefined suppress'
3977       ;;
3978     esac
3979     # FIXME: Relying on posixy $() will cause problems for
3980     #        cross-compilation, but unfortunately the echo tests do not
3981     #        yet detect zsh echo's removal of \ escapes.
3982     archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
3983     # We need to add '_' to the symbols in $export_symbols first
3984     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3985     hardcode_direct=yes
3986     hardcode_shlibpath_var=no
3987     whole_archive_flag_spec='-all_load $convenience'
3988     ;;
3989
3990   freebsd1*)
3991     ld_shlibs=no
3992     ;;
3993
3994   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3995   # support.  Future versions do this automatically, but an explicit c++rt0.o
3996   # does not break anything, and helps significantly (at the cost of a little
3997   # extra space).
3998   freebsd2.2*)
3999     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4000     hardcode_libdir_flag_spec='-R$libdir'
4001     hardcode_direct=yes
4002     hardcode_shlibpath_var=no
4003     ;;
4004
4005   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4006   freebsd2*)
4007     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4008     hardcode_direct=yes
4009     hardcode_minus_L=yes
4010     hardcode_shlibpath_var=no
4011     ;;
4012
4013   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4014   freebsd*)
4015     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4016     hardcode_libdir_flag_spec='-R$libdir'
4017     hardcode_direct=yes
4018     hardcode_shlibpath_var=no
4019     ;;
4020
4021   hpux9* | hpux10* | hpux11*)
4022     case $host_os in
4023     hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
4024     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4025     esac
4026     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4027     hardcode_libdir_separator=:
4028     hardcode_direct=yes
4029     hardcode_minus_L=yes # Not in the search PATH, but as the default
4030                          # location of the library.
4031     export_dynamic_flag_spec='${wl}-E'
4032     ;;
4033
4034   irix5* | irix6*)
4035     if test "$GCC" = yes; then
4036       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4037     else
4038       archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4039     fi
4040     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4041     hardcode_libdir_separator=:
4042     link_all_deplibs=yes
4043     ;;
4044
4045   netbsd*)
4046     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4047       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
4048     else
4049       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
4050     fi
4051     hardcode_libdir_flag_spec='-R$libdir'
4052     hardcode_direct=yes
4053     hardcode_shlibpath_var=no
4054     ;;
4055
4056   newsos6)
4057     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4058     hardcode_direct=yes
4059     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4060     hardcode_libdir_separator=:
4061     hardcode_shlibpath_var=no
4062     ;;
4063
4064   openbsd*)
4065     hardcode_direct=yes
4066     hardcode_shlibpath_var=no
4067     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4068       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4069       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4070       export_dynamic_flag_spec='${wl}-E'
4071     else
4072       case "$host_os" in
4073       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
4074         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4075         hardcode_libdir_flag_spec='-R$libdir'
4076         ;;
4077       *)
4078         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4079         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4080         ;;
4081       esac
4082     fi
4083     ;;
4084
4085   os2*)
4086     hardcode_libdir_flag_spec='-L$libdir'
4087     hardcode_minus_L=yes
4088     allow_undefined_flag=unsupported
4089     archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
4090     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4091     ;;
4092
4093   osf3*)
4094     if test "$GCC" = yes; then
4095       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4096       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4097     else
4098       allow_undefined_flag=' -expect_unresolved \*'
4099       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4100     fi
4101     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4102     hardcode_libdir_separator=:
4103     ;;
4104
4105   osf4* | osf5*)        # as osf3* with the addition of -msym flag
4106     if test "$GCC" = yes; then
4107       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4108       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4109       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4110     else
4111       allow_undefined_flag=' -expect_unresolved \*'
4112       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4113       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4114       $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
4115
4116       #Both c and cxx compiler support -rpath directly
4117       hardcode_libdir_flag_spec='-rpath $libdir'
4118     fi
4119     hardcode_libdir_separator=:
4120     ;;
4121
4122   sco3.2v5*)
4123     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4124     hardcode_shlibpath_var=no
4125     runpath_var=LD_RUN_PATH
4126     hardcode_runpath_var=yes
4127     export_dynamic_flag_spec='${wl}-Bexport'
4128     ;;
4129
4130   solaris*)
4131     # gcc --version < 3.0 without binutils cannot create self contained
4132     # shared libraries reliably, requiring libgcc.a to resolve some of
4133     # the object symbols generated in some cases.  Libraries that use
4134     # assert need libgcc.a to resolve __eprintf, for example.  Linking
4135     # a copy of libgcc.a into every shared library to guarantee resolving
4136     # such symbols causes other problems:  According to Tim Van Holder
4137     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
4138     # (to the application) exception stack for one thing.
4139     no_undefined_flag=' -z defs'
4140     if test "$GCC" = yes; then
4141       case `$CC --version 2>/dev/null` in
4142       [12].*)
4143         cat <<EOF 1>&2
4144
4145 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
4146 *** create self contained shared libraries on Solaris systems, without
4147 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
4148 *** -no-undefined support, which will at least allow you to build shared
4149 *** libraries.  However, you may find that when you link such libraries
4150 *** into an application without using GCC, you have to manually add
4151 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
4152 *** upgrade to a newer version of GCC.  Another option is to rebuild your
4153 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
4154
4155 EOF
4156         no_undefined_flag=
4157         ;;
4158       esac
4159     fi
4160     # $CC -shared without GNU ld will not create a library from C++
4161     # object files and a static libstdc++, better avoid it by now
4162     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4163     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4164                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4165     hardcode_libdir_flag_spec='-R$libdir'
4166     hardcode_shlibpath_var=no
4167     case $host_os in
4168     solaris2.[0-5] | solaris2.[0-5].*) ;;
4169     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4170       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
4171     esac
4172     link_all_deplibs=yes
4173     ;;
4174
4175   sunos4*)
4176     if test "x$host_vendor" = xsequent; then
4177       # Use $CC to link under sequent, because it throws in some extra .o
4178       # files that make .init and .fini sections work.
4179       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4180     else
4181       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4182     fi
4183     hardcode_libdir_flag_spec='-L$libdir'
4184     hardcode_direct=yes
4185     hardcode_minus_L=yes
4186     hardcode_shlibpath_var=no
4187     ;;
4188
4189   sysv4)
4190     if test "x$host_vendor" = xsno; then
4191       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
4192       hardcode_direct=yes # is this really true???
4193     else
4194       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4195       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
4196     fi
4197     runpath_var='LD_RUN_PATH'
4198     hardcode_shlibpath_var=no
4199     ;;
4200
4201   sysv4.3*)
4202     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4203     hardcode_shlibpath_var=no
4204     export_dynamic_flag_spec='-Bexport'
4205     ;;
4206
4207   sysv5*)
4208     no_undefined_flag=' -z text'
4209     # $CC -shared without GNU ld will not create a library from C++
4210     # object files and a static libstdc++, better avoid it by now
4211     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4212     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4213                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4214     hardcode_libdir_flag_spec=
4215     hardcode_shlibpath_var=no
4216     runpath_var='LD_RUN_PATH'
4217     ;;
4218
4219   uts4*)
4220     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4221     hardcode_libdir_flag_spec='-L$libdir'
4222     hardcode_shlibpath_var=no
4223     ;;
4224
4225   dgux*)
4226     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4227     hardcode_libdir_flag_spec='-L$libdir'
4228     hardcode_shlibpath_var=no
4229     ;;
4230
4231   sysv4*MP*)
4232     if test -d /usr/nec; then
4233       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4234       hardcode_shlibpath_var=no
4235       runpath_var=LD_RUN_PATH
4236       hardcode_runpath_var=yes
4237       ld_shlibs=yes
4238     fi
4239     ;;
4240
4241   sysv4.2uw2*)
4242     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4243     hardcode_direct=yes
4244     hardcode_minus_L=no
4245     hardcode_shlibpath_var=no
4246     hardcode_runpath_var=yes
4247     runpath_var=LD_RUN_PATH
4248     ;;
4249
4250   sysv5uw7* | unixware7*)
4251     no_undefined_flag='${wl}-z ${wl}text'
4252     if test "$GCC" = yes; then
4253       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4254     else
4255       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4256     fi
4257     runpath_var='LD_RUN_PATH'
4258     hardcode_shlibpath_var=no
4259     ;;
4260
4261   *)
4262     ld_shlibs=no
4263     ;;
4264   esac
4265 fi
4266 echo "$ac_t""$ld_shlibs" 1>&6
4267 test "$ld_shlibs" = no && can_build_shared=no
4268
4269 # Check hardcoding attributes.
4270 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
4271 echo "configure:4272: checking how to hardcode library paths into programs" >&5
4272 hardcode_action=
4273 if test -n "$hardcode_libdir_flag_spec" || \
4274    test -n "$runpath_var"; then
4275
4276   # We can hardcode non-existant directories.
4277   if test "$hardcode_direct" != no &&
4278      # If the only mechanism to avoid hardcoding is shlibpath_var, we
4279      # have to relink, otherwise we might link with an installed library
4280      # when we should be linking with a yet-to-be-installed one
4281      ## test "$hardcode_shlibpath_var" != no &&
4282      test "$hardcode_minus_L" != no; then
4283     # Linking always hardcodes the temporary library directory.
4284     hardcode_action=relink
4285   else
4286     # We can link without hardcoding, and we can hardcode nonexisting dirs.
4287     hardcode_action=immediate
4288   fi
4289 else
4290   # We cannot hardcode anything, or else we can only hardcode existing
4291   # directories.
4292   hardcode_action=unsupported
4293 fi
4294 echo "$ac_t""$hardcode_action" 1>&6
4295
4296 striplib=
4297 old_striplib=
4298 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
4299 echo "configure:4300: checking whether stripping libraries is possible" >&5
4300 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
4301   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
4302   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
4303   echo "$ac_t""yes" 1>&6
4304 else
4305   echo "$ac_t""no" 1>&6
4306 fi
4307
4308 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4309 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4310
4311 # PORTME Fill in your ld.so characteristics
4312 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
4313 echo "configure:4314: checking dynamic linker characteristics" >&5
4314 library_names_spec=
4315 libname_spec='lib$name'
4316 soname_spec=
4317 postinstall_cmds=
4318 postuninstall_cmds=
4319 finish_cmds=
4320 finish_eval=
4321 shlibpath_var=
4322 shlibpath_overrides_runpath=unknown
4323 version_type=none
4324 dynamic_linker="$host_os ld.so"
4325 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4326 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4327
4328 case $host_os in
4329 aix3*)
4330   version_type=linux
4331   library_names_spec='${libname}${release}.so$versuffix $libname.a'
4332   shlibpath_var=LIBPATH
4333
4334   # AIX has no versioning support, so we append a major version to the name.
4335   soname_spec='${libname}${release}.so$major'
4336   ;;
4337
4338 aix4* | aix5*)
4339   version_type=linux
4340   if test "$host_cpu" = ia64; then
4341     # AIX 5 supports IA64
4342     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
4343     shlibpath_var=LD_LIBRARY_PATH
4344   else
4345     # With GCC up to 2.95.x, collect2 would create an import file
4346     # for dependence libraries.  The import file would start with
4347     # the line `#! .'.  This would cause the generated library to
4348     # depend on `.', always an invalid library.  This was fixed in
4349     # development snapshots of GCC prior to 3.0.
4350     case $host_os in
4351       aix4 | aix4.[01] | aix4.[01].*)
4352         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4353              echo ' yes '
4354              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4355           :
4356         else
4357           can_build_shared=no
4358         fi
4359         ;;
4360     esac
4361     # AIX (on Power*) has no versioning support, so currently we can
4362     # not hardcode correct soname into executable. Probably we can
4363     # add versioning support to collect2, so additional links can
4364     # be useful in future.
4365     if test "$aix_use_runtimelinking" = yes; then
4366       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4367       # instead of lib<name>.a to let people know that these are not
4368       # typical AIX shared libraries.
4369       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4370     else
4371       # We preserve .a as extension for shared libraries through AIX4.2
4372       # and later when we are not doing run time linking.
4373       library_names_spec='${libname}${release}.a $libname.a'
4374       soname_spec='${libname}${release}.so$major'
4375     fi
4376     shlibpath_var=LIBPATH
4377   fi
4378   ;;
4379
4380 amigaos*)
4381   library_names_spec='$libname.ixlibrary $libname.a'
4382   # Create ${libname}_ixlibrary.a entries in /sys/libs.
4383   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
4384   ;;
4385
4386 beos*)
4387   library_names_spec='${libname}.so'
4388   dynamic_linker="$host_os ld.so"
4389   shlibpath_var=LIBRARY_PATH
4390   ;;
4391
4392 bsdi4*)
4393   version_type=linux
4394   need_version=no
4395   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4396   soname_spec='${libname}${release}.so$major'
4397   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4398   shlibpath_var=LD_LIBRARY_PATH
4399   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4400   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4401   export_dynamic_flag_spec=-rdynamic
4402   # the default ld.so.conf also contains /usr/contrib/lib and
4403   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4404   # libtool to hard-code these into programs
4405   ;;
4406
4407 cygwin* | mingw* | pw32*)
4408   version_type=windows
4409   need_version=no
4410   need_lib_prefix=no
4411   case $GCC,$host_os in
4412   yes,cygwin*)
4413     library_names_spec='$libname.dll.a'
4414     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4415     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
4416       dldir=$destdir/`dirname \$dlpath`~
4417       test -d \$dldir || mkdir -p \$dldir~
4418       $install_prog .libs/$dlname \$dldir/$dlname'
4419     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
4420       dlpath=$dir/\$dldll~
4421        $rm \$dlpath'
4422     ;;
4423   yes,mingw*)
4424     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4425     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
4426     ;;
4427   yes,pw32*)
4428     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
4429     ;;
4430   *)
4431     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
4432     ;;
4433   esac
4434   dynamic_linker='Win32 ld.exe'
4435   # FIXME: first we should search . and the directory the executable is in
4436   shlibpath_var=PATH
4437   ;;
4438
4439 darwin* | rhapsody*)
4440   dynamic_linker="$host_os dyld"
4441   version_type=darwin
4442   need_lib_prefix=no
4443   need_version=no
4444   # FIXME: Relying on posixy $() will cause problems for
4445   #        cross-compilation, but unfortunately the echo tests do not
4446   #        yet detect zsh echo's removal of \ escapes.
4447   library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
4448   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
4449   shlibpath_overrides_runpath=yes
4450   shlibpath_var=DYLD_LIBRARY_PATH
4451   ;;
4452
4453 freebsd1*)
4454   dynamic_linker=no
4455   ;;
4456
4457 freebsd*)
4458   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4459   version_type=freebsd-$objformat
4460   case $version_type in
4461     freebsd-elf*)
4462       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4463       need_version=no
4464       need_lib_prefix=no
4465       ;;
4466     freebsd-*)
4467       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
4468       need_version=yes
4469       ;;
4470   esac
4471   shlibpath_var=LD_LIBRARY_PATH
4472   case $host_os in
4473   freebsd2*)
4474     shlibpath_overrides_runpath=yes
4475     ;;
4476   *)
4477     shlibpath_overrides_runpath=no
4478     hardcode_into_libs=yes
4479     ;;
4480   esac
4481   ;;
4482
4483 gnu*)
4484   version_type=linux
4485   need_lib_prefix=no
4486   need_version=no
4487   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
4488   soname_spec='${libname}${release}.so$major'
4489   shlibpath_var=LD_LIBRARY_PATH
4490   hardcode_into_libs=yes
4491   ;;
4492
4493 hpux9* | hpux10* | hpux11*)
4494   # Give a soname corresponding to the major version so that dld.sl refuses to
4495   # link against other versions.
4496   dynamic_linker="$host_os dld.sl"
4497   version_type=sunos
4498   need_lib_prefix=no
4499   need_version=no
4500   shlibpath_var=SHLIB_PATH
4501   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4502   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
4503   soname_spec='${libname}${release}.sl$major'
4504   # HP-UX runs *really* slowly unless shared libraries are mode 555.
4505   postinstall_cmds='chmod 555 $lib'
4506   ;;
4507
4508 irix5* | irix6*)
4509   version_type=irix
4510   need_lib_prefix=no
4511   need_version=no
4512   soname_spec='${libname}${release}.so$major'
4513   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
4514   case $host_os in
4515   irix5*)
4516     libsuff= shlibsuff=
4517     ;;
4518   *)
4519     case $LD in # libtool.m4 will add one of these switches to LD
4520     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
4521     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
4522     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
4523     *) libsuff= shlibsuff= libmagic=never-match;;
4524     esac
4525     ;;
4526   esac
4527   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4528   shlibpath_overrides_runpath=no
4529   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4530   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4531   ;;
4532
4533 # No shared lib support for Linux oldld, aout, or coff.
4534 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
4535   dynamic_linker=no
4536   ;;
4537
4538 # This must be Linux ELF.
4539 linux-gnu*)
4540   version_type=linux
4541   need_lib_prefix=no
4542   need_version=no
4543   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4544   soname_spec='${libname}${release}.so$major'
4545   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4546   shlibpath_var=LD_LIBRARY_PATH
4547   shlibpath_overrides_runpath=no
4548   # This implies no fast_install, which is unacceptable.
4549   # Some rework will be needed to allow for fast_install
4550   # before this can be enabled.
4551   hardcode_into_libs=yes
4552
4553   # We used to test for /lib/ld.so.1 and disable shared libraries on
4554   # powerpc, because MkLinux only supported shared libraries with the
4555   # GNU dynamic linker.  Since this was broken with cross compilers,
4556   # most powerpc-linux boxes support dynamic linking these days and
4557   # people can always --disable-shared, the test was removed, and we
4558   # assume the GNU/Linux dynamic linker is in use.
4559   dynamic_linker='GNU/Linux ld.so'
4560   ;;
4561
4562 netbsd*)
4563   version_type=sunos
4564   need_lib_prefix=no
4565   need_version=no
4566   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4567     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4568     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4569     dynamic_linker='NetBSD (a.out) ld.so'
4570   else
4571     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
4572     soname_spec='${libname}${release}.so$major'
4573     dynamic_linker='NetBSD ld.elf_so'
4574   fi
4575   shlibpath_var=LD_LIBRARY_PATH
4576   shlibpath_overrides_runpath=yes
4577   hardcode_into_libs=yes
4578   ;;
4579
4580 newsos6)
4581   version_type=linux
4582   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4583   shlibpath_var=LD_LIBRARY_PATH
4584   shlibpath_overrides_runpath=yes
4585   ;;
4586
4587 openbsd*)
4588   version_type=sunos
4589   need_lib_prefix=no
4590   need_version=no
4591   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4592     case "$host_os" in
4593     openbsd2.[89] | openbsd2.[89].*)
4594       shlibpath_overrides_runpath=no
4595       ;;
4596     *)
4597       shlibpath_overrides_runpath=yes
4598       ;;
4599     esac
4600   else
4601     shlibpath_overrides_runpath=yes
4602   fi
4603   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4604   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4605   shlibpath_var=LD_LIBRARY_PATH
4606   ;;
4607
4608 os2*)
4609   libname_spec='$name'
4610   need_lib_prefix=no
4611   library_names_spec='$libname.dll $libname.a'
4612   dynamic_linker='OS/2 ld.exe'
4613   shlibpath_var=LIBPATH
4614   ;;
4615
4616 osf3* | osf4* | osf5*)
4617   version_type=osf
4618   need_version=no
4619   soname_spec='${libname}${release}.so'
4620   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4621   shlibpath_var=LD_LIBRARY_PATH
4622   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4623   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4624   ;;
4625
4626 sco3.2v5*)
4627   version_type=osf
4628   soname_spec='${libname}${release}.so$major'
4629   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4630   shlibpath_var=LD_LIBRARY_PATH
4631   ;;
4632
4633 solaris*)
4634   version_type=linux
4635   need_lib_prefix=no
4636   need_version=no
4637   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4638   soname_spec='${libname}${release}.so$major'
4639   shlibpath_var=LD_LIBRARY_PATH
4640   shlibpath_overrides_runpath=yes
4641   hardcode_into_libs=yes
4642   # ldd complains unless libraries are executable
4643   postinstall_cmds='chmod +x $lib'
4644   ;;
4645
4646 sunos4*)
4647   version_type=sunos
4648   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4649   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4650   shlibpath_var=LD_LIBRARY_PATH
4651   shlibpath_overrides_runpath=yes
4652   if test "$with_gnu_ld" = yes; then
4653     need_lib_prefix=no
4654   fi
4655   need_version=yes
4656   ;;
4657
4658 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4659   version_type=linux
4660   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4661   soname_spec='${libname}${release}.so$major'
4662   shlibpath_var=LD_LIBRARY_PATH
4663   case $host_vendor in
4664     sni)
4665       shlibpath_overrides_runpath=no
4666       ;;
4667     motorola)
4668       need_lib_prefix=no
4669       need_version=no
4670       shlibpath_overrides_runpath=no
4671       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4672       ;;
4673   esac
4674   ;;
4675
4676 uts4*)
4677   version_type=linux
4678   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4679   soname_spec='${libname}${release}.so$major'
4680   shlibpath_var=LD_LIBRARY_PATH
4681   ;;
4682
4683 dgux*)
4684   version_type=linux
4685   need_lib_prefix=no
4686   need_version=no
4687   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4688   soname_spec='${libname}${release}.so$major'
4689   shlibpath_var=LD_LIBRARY_PATH
4690   ;;
4691
4692 sysv4*MP*)
4693   if test -d /usr/nec ;then
4694     version_type=linux
4695     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
4696     soname_spec='$libname.so.$major'
4697     shlibpath_var=LD_LIBRARY_PATH
4698   fi
4699   ;;
4700
4701 *)
4702   dynamic_linker=no
4703   ;;
4704 esac
4705 echo "$ac_t""$dynamic_linker" 1>&6
4706 test "$dynamic_linker" = no && can_build_shared=no
4707
4708 # Report the final consequences.
4709 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
4710 echo "configure:4711: checking if libtool supports shared libraries" >&5
4711 echo "$ac_t""$can_build_shared" 1>&6
4712
4713 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
4714 echo "configure:4715: checking whether to build shared libraries" >&5
4715 test "$can_build_shared" = "no" && enable_shared=no
4716
4717 # On AIX, shared libraries and static libraries use the same namespace, and
4718 # are all built from PIC.
4719 case "$host_os" in
4720 aix3*)
4721   test "$enable_shared" = yes && enable_static=no
4722   if test -n "$RANLIB"; then
4723     archive_cmds="$archive_cmds~\$RANLIB \$lib"
4724     postinstall_cmds='$RANLIB $lib'
4725   fi
4726   ;;
4727
4728 aix4*)
4729   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4730     test "$enable_shared" = yes && enable_static=no
4731   fi
4732   ;;
4733 esac
4734 echo "$ac_t""$enable_shared" 1>&6
4735
4736 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
4737 echo "configure:4738: checking whether to build static libraries" >&5
4738 # Make sure either enable_shared or enable_static is yes.
4739 test "$enable_shared" = yes || enable_static=yes
4740 echo "$ac_t""$enable_static" 1>&6
4741
4742 if test "$hardcode_action" = relink; then
4743   # Fast installation is not supported
4744   enable_fast_install=no
4745 elif test "$shlibpath_overrides_runpath" = yes ||
4746      test "$enable_shared" = no; then
4747   # Fast installation is not necessary
4748   enable_fast_install=needless
4749 fi
4750
4751 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4752 if test "$GCC" = yes; then
4753   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4754 fi
4755
4756 if test "x$enable_dlopen" != xyes; then
4757   enable_dlopen=unknown
4758   enable_dlopen_self=unknown
4759   enable_dlopen_self_static=unknown
4760 else
4761   lt_cv_dlopen=no
4762   lt_cv_dlopen_libs=
4763
4764   case $host_os in
4765   beos*)
4766     lt_cv_dlopen="load_add_on"
4767     lt_cv_dlopen_libs=
4768     lt_cv_dlopen_self=yes
4769     ;;
4770
4771   cygwin* | mingw* | pw32*)
4772     lt_cv_dlopen="LoadLibrary"
4773     lt_cv_dlopen_libs=
4774    ;;
4775
4776   *)
4777     echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4778 echo "configure:4779: checking for shl_load" >&5
4779 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4780   echo $ac_n "(cached) $ac_c" 1>&6
4781 else
4782   cat > conftest.$ac_ext <<EOF
4783 #line 4784 "configure"
4784 #include "confdefs.h"
4785 /* System header to define __stub macros and hopefully few prototypes,
4786     which can conflict with char shl_load(); below.  */
4787 #include <assert.h>
4788 /* Override any gcc2 internal prototype to avoid an error.  */
4789 /* We use char because int might match the return type of a gcc2
4790     builtin and then its argument prototype would still apply.  */
4791 char shl_load();
4792
4793 int main() {
4794
4795 /* The GNU C library defines this for functions which it implements
4796     to always fail with ENOSYS.  Some functions are actually named
4797     something starting with __ and the normal name is an alias.  */
4798 #if defined (__stub_shl_load) || defined (__stub___shl_load)
4799 choke me
4800 #else
4801 shl_load();
4802 #endif
4803
4804 ; return 0; }
4805 EOF
4806 if { (eval echo configure:4807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4807   rm -rf conftest*
4808   eval "ac_cv_func_shl_load=yes"
4809 else
4810   echo "configure: failed program was:" >&5
4811   cat conftest.$ac_ext >&5
4812   rm -rf conftest*
4813   eval "ac_cv_func_shl_load=no"
4814 fi
4815 rm -f conftest*
4816 fi
4817
4818 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
4819   echo "$ac_t""yes" 1>&6
4820   lt_cv_dlopen="shl_load"
4821 else
4822   echo "$ac_t""no" 1>&6
4823 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4824 echo "configure:4825: checking for shl_load in -ldld" >&5
4825 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4826 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4827   echo $ac_n "(cached) $ac_c" 1>&6
4828 else
4829   ac_save_LIBS="$LIBS"
4830 LIBS="-ldld  $LIBS"
4831 cat > conftest.$ac_ext <<EOF
4832 #line 4833 "configure"
4833 #include "confdefs.h"
4834 /* Override any gcc2 internal prototype to avoid an error.  */
4835 /* We use char because int might match the return type of a gcc2
4836     builtin and then its argument prototype would still apply.  */
4837 char shl_load();
4838
4839 int main() {
4840 shl_load()
4841 ; return 0; }
4842 EOF
4843 if { (eval echo configure:4844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4844   rm -rf conftest*
4845   eval "ac_cv_lib_$ac_lib_var=yes"
4846 else
4847   echo "configure: failed program was:" >&5
4848   cat conftest.$ac_ext >&5
4849   rm -rf conftest*
4850   eval "ac_cv_lib_$ac_lib_var=no"
4851 fi
4852 rm -f conftest*
4853 LIBS="$ac_save_LIBS"
4854
4855 fi
4856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4857   echo "$ac_t""yes" 1>&6
4858   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
4859 else
4860   echo "$ac_t""no" 1>&6
4861 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4862 echo "configure:4863: checking for dlopen" >&5
4863 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
4864   echo $ac_n "(cached) $ac_c" 1>&6
4865 else
4866   cat > conftest.$ac_ext <<EOF
4867 #line 4868 "configure"
4868 #include "confdefs.h"
4869 /* System header to define __stub macros and hopefully few prototypes,
4870     which can conflict with char dlopen(); below.  */
4871 #include <assert.h>
4872 /* Override any gcc2 internal prototype to avoid an error.  */
4873 /* We use char because int might match the return type of a gcc2
4874     builtin and then its argument prototype would still apply.  */
4875 char dlopen();
4876
4877 int main() {
4878
4879 /* The GNU C library defines this for functions which it implements
4880     to always fail with ENOSYS.  Some functions are actually named
4881     something starting with __ and the normal name is an alias.  */
4882 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4883 choke me
4884 #else
4885 dlopen();
4886 #endif
4887
4888 ; return 0; }
4889 EOF
4890 if { (eval echo configure:4891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4891   rm -rf conftest*
4892   eval "ac_cv_func_dlopen=yes"
4893 else
4894   echo "configure: failed program was:" >&5
4895   cat conftest.$ac_ext >&5
4896   rm -rf conftest*
4897   eval "ac_cv_func_dlopen=no"
4898 fi
4899 rm -f conftest*
4900 fi
4901
4902 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4903   echo "$ac_t""yes" 1>&6
4904   lt_cv_dlopen="dlopen"
4905 else
4906   echo "$ac_t""no" 1>&6
4907 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4908 echo "configure:4909: checking for dlopen in -ldl" >&5
4909 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4910 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4911   echo $ac_n "(cached) $ac_c" 1>&6
4912 else
4913   ac_save_LIBS="$LIBS"
4914 LIBS="-ldl  $LIBS"
4915 cat > conftest.$ac_ext <<EOF
4916 #line 4917 "configure"
4917 #include "confdefs.h"
4918 /* Override any gcc2 internal prototype to avoid an error.  */
4919 /* We use char because int might match the return type of a gcc2
4920     builtin and then its argument prototype would still apply.  */
4921 char dlopen();
4922
4923 int main() {
4924 dlopen()
4925 ; return 0; }
4926 EOF
4927 if { (eval echo configure:4928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4928   rm -rf conftest*
4929   eval "ac_cv_lib_$ac_lib_var=yes"
4930 else
4931   echo "configure: failed program was:" >&5
4932   cat conftest.$ac_ext >&5
4933   rm -rf conftest*
4934   eval "ac_cv_lib_$ac_lib_var=no"
4935 fi
4936 rm -f conftest*
4937 LIBS="$ac_save_LIBS"
4938
4939 fi
4940 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4941   echo "$ac_t""yes" 1>&6
4942   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4943 else
4944   echo "$ac_t""no" 1>&6
4945 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
4946 echo "configure:4947: checking for dlopen in -lsvld" >&5
4947 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4948 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4949   echo $ac_n "(cached) $ac_c" 1>&6
4950 else
4951   ac_save_LIBS="$LIBS"
4952 LIBS="-lsvld  $LIBS"
4953 cat > conftest.$ac_ext <<EOF
4954 #line 4955 "configure"
4955 #include "confdefs.h"
4956 /* Override any gcc2 internal prototype to avoid an error.  */
4957 /* We use char because int might match the return type of a gcc2
4958     builtin and then its argument prototype would still apply.  */
4959 char dlopen();
4960
4961 int main() {
4962 dlopen()
4963 ; return 0; }
4964 EOF
4965 if { (eval echo configure:4966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4966   rm -rf conftest*
4967   eval "ac_cv_lib_$ac_lib_var=yes"
4968 else
4969   echo "configure: failed program was:" >&5
4970   cat conftest.$ac_ext >&5
4971   rm -rf conftest*
4972   eval "ac_cv_lib_$ac_lib_var=no"
4973 fi
4974 rm -f conftest*
4975 LIBS="$ac_save_LIBS"
4976
4977 fi
4978 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4979   echo "$ac_t""yes" 1>&6
4980   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4981 else
4982   echo "$ac_t""no" 1>&6
4983 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
4984 echo "configure:4985: checking for dld_link in -ldld" >&5
4985 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
4986 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4987   echo $ac_n "(cached) $ac_c" 1>&6
4988 else
4989   ac_save_LIBS="$LIBS"
4990 LIBS="-ldld  $LIBS"
4991 cat > conftest.$ac_ext <<EOF
4992 #line 4993 "configure"
4993 #include "confdefs.h"
4994 /* Override any gcc2 internal prototype to avoid an error.  */
4995 /* We use char because int might match the return type of a gcc2
4996     builtin and then its argument prototype would still apply.  */
4997 char dld_link();
4998
4999 int main() {
5000 dld_link()
5001 ; return 0; }
5002 EOF
5003 if { (eval echo configure:5004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5004   rm -rf conftest*
5005   eval "ac_cv_lib_$ac_lib_var=yes"
5006 else
5007   echo "configure: failed program was:" >&5
5008   cat conftest.$ac_ext >&5
5009   rm -rf conftest*
5010   eval "ac_cv_lib_$ac_lib_var=no"
5011 fi
5012 rm -f conftest*
5013 LIBS="$ac_save_LIBS"
5014
5015 fi
5016 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5017   echo "$ac_t""yes" 1>&6
5018   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
5019 else
5020   echo "$ac_t""no" 1>&6
5021 fi
5022
5023               
5024 fi
5025
5026             
5027 fi
5028
5029           
5030 fi
5031
5032         
5033 fi
5034
5035       
5036 fi
5037
5038     ;;
5039   esac
5040
5041   if test "x$lt_cv_dlopen" != xno; then
5042     enable_dlopen=yes
5043   else
5044     enable_dlopen=no
5045   fi
5046
5047   case $lt_cv_dlopen in
5048   dlopen)
5049     save_CPPFLAGS="$CPPFLAGS"
5050         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
5051
5052     save_LDFLAGS="$LDFLAGS"
5053     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
5054
5055     save_LIBS="$LIBS"
5056     LIBS="$lt_cv_dlopen_libs $LIBS"
5057
5058     echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
5059 echo "configure:5060: checking whether a program can dlopen itself" >&5
5060 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
5061   echo $ac_n "(cached) $ac_c" 1>&6
5062 else
5063           if test "$cross_compiling" = yes; then :
5064   lt_cv_dlopen_self=cross
5065 else
5066     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5067   lt_status=$lt_dlunknown
5068   cat > conftest.$ac_ext <<EOF
5069 #line 5070 "configure"
5070 #include "confdefs.h"
5071
5072 #if HAVE_DLFCN_H
5073 #include <dlfcn.h>
5074 #endif
5075
5076 #include <stdio.h>
5077
5078 #ifdef RTLD_GLOBAL
5079 #  define LT_DLGLOBAL           RTLD_GLOBAL
5080 #else
5081 #  ifdef DL_GLOBAL
5082 #    define LT_DLGLOBAL         DL_GLOBAL
5083 #  else
5084 #    define LT_DLGLOBAL         0
5085 #  endif
5086 #endif
5087
5088 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5089    find out it does not work in some platform. */
5090 #ifndef LT_DLLAZY_OR_NOW
5091 #  ifdef RTLD_LAZY
5092 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
5093 #  else
5094 #    ifdef DL_LAZY
5095 #      define LT_DLLAZY_OR_NOW          DL_LAZY
5096 #    else
5097 #      ifdef RTLD_NOW
5098 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
5099 #      else
5100 #        ifdef DL_NOW
5101 #          define LT_DLLAZY_OR_NOW      DL_NOW
5102 #        else
5103 #          define LT_DLLAZY_OR_NOW      0
5104 #        endif
5105 #      endif
5106 #    endif
5107 #  endif
5108 #endif
5109
5110 #ifdef __cplusplus
5111 extern "C" void exit (int);
5112 #endif
5113
5114 void fnord() { int i=42;}
5115 int main ()
5116 {
5117   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5118   int status = $lt_dlunknown;
5119
5120   if (self)
5121     {
5122       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
5123       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5124       /* dlclose (self); */
5125     }
5126
5127     exit (status);
5128 }
5129 EOF
5130   if { (eval echo configure:5131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
5131     (./conftest; exit; ) 2>/dev/null
5132     lt_status=$?
5133     case x$lt_status in
5134       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
5135       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
5136       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
5137     esac
5138   else :
5139     # compilation failed
5140     lt_cv_dlopen_self=no
5141   fi
5142 fi
5143 rm -fr conftest*
5144
5145     
5146 fi
5147
5148 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
5149
5150     if test "x$lt_cv_dlopen_self" = xyes; then
5151       LDFLAGS="$LDFLAGS $link_static_flag"
5152       echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
5153 echo "configure:5154: checking whether a statically linked program can dlopen itself" >&5
5154 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
5155   echo $ac_n "(cached) $ac_c" 1>&6
5156 else
5157           if test "$cross_compiling" = yes; then :
5158   lt_cv_dlopen_self_static=cross
5159 else
5160     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5161   lt_status=$lt_dlunknown
5162   cat > conftest.$ac_ext <<EOF
5163 #line 5164 "configure"
5164 #include "confdefs.h"
5165
5166 #if HAVE_DLFCN_H
5167 #include <dlfcn.h>
5168 #endif
5169
5170 #include <stdio.h>
5171
5172 #ifdef RTLD_GLOBAL
5173 #  define LT_DLGLOBAL           RTLD_GLOBAL
5174 #else
5175 #  ifdef DL_GLOBAL
5176 #    define LT_DLGLOBAL         DL_GLOBAL
5177 #  else
5178 #    define LT_DLGLOBAL         0
5179 #  endif
5180 #endif
5181
5182 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5183    find out it does not work in some platform. */
5184 #ifndef LT_DLLAZY_OR_NOW
5185 #  ifdef RTLD_LAZY
5186 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
5187 #  else
5188 #    ifdef DL_LAZY
5189 #      define LT_DLLAZY_OR_NOW          DL_LAZY
5190 #    else
5191 #      ifdef RTLD_NOW
5192 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
5193 #      else
5194 #        ifdef DL_NOW
5195 #          define LT_DLLAZY_OR_NOW      DL_NOW
5196 #        else
5197 #          define LT_DLLAZY_OR_NOW      0
5198 #        endif
5199 #      endif
5200 #    endif
5201 #  endif
5202 #endif
5203
5204 #ifdef __cplusplus
5205 extern "C" void exit (int);
5206 #endif
5207
5208 void fnord() { int i=42;}
5209 int main ()
5210 {
5211   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5212   int status = $lt_dlunknown;
5213
5214   if (self)
5215     {
5216       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
5217       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5218       /* dlclose (self); */
5219     }
5220
5221     exit (status);
5222 }
5223 EOF
5224   if { (eval echo configure:5225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
5225     (./conftest; exit; ) 2>/dev/null
5226     lt_status=$?
5227     case x$lt_status in
5228       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
5229       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
5230       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
5231     esac
5232   else :
5233     # compilation failed
5234     lt_cv_dlopen_self_static=no
5235   fi
5236 fi
5237 rm -fr conftest*
5238
5239       
5240 fi
5241
5242 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
5243     fi
5244
5245     CPPFLAGS="$save_CPPFLAGS"
5246     LDFLAGS="$save_LDFLAGS"
5247     LIBS="$save_LIBS"
5248     ;;
5249   esac
5250
5251   case $lt_cv_dlopen_self in
5252   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
5253   *) enable_dlopen_self=unknown ;;
5254   esac
5255
5256   case $lt_cv_dlopen_self_static in
5257   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
5258   *) enable_dlopen_self_static=unknown ;;
5259   esac
5260 fi
5261
5262
5263 if test "$enable_shared" = yes && test "$GCC" = yes; then
5264   case $archive_cmds in
5265   *'~'*)
5266     # FIXME: we may have to deal with multi-command sequences.
5267     ;;
5268   '$CC '*)
5269     # Test whether the compiler implicitly links with -lc since on some
5270     # systems, -lgcc has to come before -lc. If gcc already passes -lc
5271     # to ld, don't add -lc before -lgcc.
5272     echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
5273 echo "configure:5274: checking whether -lc should be explicitly linked in" >&5
5274     if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
5275   echo $ac_n "(cached) $ac_c" 1>&6
5276 else
5277   $rm conftest*
5278     echo 'static int dummy;' > conftest.$ac_ext
5279
5280     if { (eval echo configure:5281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5281       soname=conftest
5282       lib=conftest
5283       libobjs=conftest.$ac_objext
5284       deplibs=
5285       wl=$lt_cv_prog_cc_wl
5286       compiler_flags=-v
5287       linker_flags=-v
5288       verstring=
5289       output_objdir=.
5290       libname=conftest
5291       save_allow_undefined_flag=$allow_undefined_flag
5292       allow_undefined_flag=
5293       if { (eval echo configure:5294: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
5294       then
5295         lt_cv_archive_cmds_need_lc=no
5296       else
5297         lt_cv_archive_cmds_need_lc=yes
5298       fi
5299       allow_undefined_flag=$save_allow_undefined_flag
5300     else
5301       cat conftest.err 1>&5
5302     fi
5303 fi
5304
5305     echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
5306     ;;
5307   esac
5308 fi
5309 need_lc=${lt_cv_archive_cmds_need_lc-yes}
5310
5311 # The second clause should only fire when bootstrapping the
5312 # libtool distribution, otherwise you forgot to ship ltmain.sh
5313 # with your package, and you will get complaints that there are
5314 # no rules to generate ltmain.sh.
5315 if test -f "$ltmain"; then
5316   :
5317 else
5318   # If there is no Makefile yet, we rely on a make rule to execute
5319   # `config.status --recheck' to rerun these tests and create the
5320   # libtool script then.
5321   test -f Makefile && make "$ltmain"
5322 fi
5323
5324 if test -f "$ltmain"; then
5325   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
5326   $rm -f "${ofile}T"
5327
5328   echo creating $ofile
5329
5330   # Now quote all the things that may contain metacharacters while being
5331   # careful not to overquote the AC_SUBSTed values.  We take copies of the
5332   # variables and quote the copies for generation of the libtool script.
5333   for var in echo old_CC old_CFLAGS \
5334     AR AR_FLAGS CC LD LN_S NM SHELL \
5335     reload_flag reload_cmds wl \
5336     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
5337     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
5338     library_names_spec soname_spec \
5339     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
5340     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
5341     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
5342     old_striplib striplib file_magic_cmd export_symbols_cmds \
5343     deplibs_check_method allow_undefined_flag no_undefined_flag \
5344     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
5345     global_symbol_to_c_name_address \
5346     hardcode_libdir_flag_spec hardcode_libdir_separator  \
5347     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5348     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
5349
5350     case $var in
5351     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
5352     old_postinstall_cmds | old_postuninstall_cmds | \
5353     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
5354     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
5355     postinstall_cmds | postuninstall_cmds | \
5356     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5357       # Double-quote double-evaled strings.
5358       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5359       ;;
5360     *)
5361       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5362       ;;
5363     esac
5364   done
5365
5366   cat <<__EOF__ > "${ofile}T"
5367 #! $SHELL
5368
5369 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5370 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5371 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
5372 #
5373 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
5374 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5375 #
5376 # This program is free software; you can redistribute it and/or modify
5377 # it under the terms of the GNU General Public License as published by
5378 # the Free Software Foundation; either version 2 of the License, or
5379 # (at your option) any later version.
5380 #
5381 # This program is distributed in the hope that it will be useful, but
5382 # WITHOUT ANY WARRANTY; without even the implied warranty of
5383 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
5384 # General Public License for more details.
5385 #
5386 # You should have received a copy of the GNU General Public License
5387 # along with this program; if not, write to the Free Software
5388 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5389 #
5390 # As a special exception to the GNU General Public License, if you
5391 # distribute this file as part of a program that contains a
5392 # configuration script generated by Autoconf, you may include it under
5393 # the same distribution terms that you use for the rest of that program.
5394
5395 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
5396 Xsed="sed -e s/^X//"
5397
5398 # The HP-UX ksh and POSIX shell print the target directory to stdout
5399 # if CDPATH is set.
5400 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
5401
5402 # ### BEGIN LIBTOOL CONFIG
5403
5404 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5405
5406 # Shell to use when invoking shell scripts.
5407 SHELL=$lt_SHELL
5408
5409 # Whether or not to build shared libraries.
5410 build_libtool_libs=$enable_shared
5411
5412 # Whether or not to build static libraries.
5413 build_old_libs=$enable_static
5414
5415 # Whether or not to add -lc for building shared libraries.
5416 build_libtool_need_lc=$need_lc
5417
5418 # Whether or not to optimize for fast installation.
5419 fast_install=$enable_fast_install
5420
5421 # The host system.
5422 host_alias=$host_alias
5423 host=$host
5424
5425 # An echo program that does not interpret backslashes.
5426 echo=$lt_echo
5427
5428 # The archiver.
5429 AR=$lt_AR
5430 AR_FLAGS=$lt_AR_FLAGS
5431
5432 # The default C compiler.
5433 CC=$lt_CC
5434
5435 # Is the compiler the GNU C compiler?
5436 with_gcc=$GCC
5437
5438 # The linker used to build libraries.
5439 LD=$lt_LD
5440
5441 # Whether we need hard or soft links.
5442 LN_S=$lt_LN_S
5443
5444 # A BSD-compatible nm program.
5445 NM=$lt_NM
5446
5447 # A symbol stripping program
5448 STRIP=$STRIP
5449
5450 # Used to examine libraries when file_magic_cmd begins "file"
5451 MAGIC_CMD=$MAGIC_CMD
5452
5453 # Used on cygwin: DLL creation program.
5454 DLLTOOL="$DLLTOOL"
5455
5456 # Used on cygwin: object dumper.
5457 OBJDUMP="$OBJDUMP"
5458
5459 # Used on cygwin: assembler.
5460 AS="$AS"
5461
5462 # The name of the directory that contains temporary libtool files.
5463 objdir=$objdir
5464
5465 # How to create reloadable object files.
5466 reload_flag=$lt_reload_flag
5467 reload_cmds=$lt_reload_cmds
5468
5469 # How to pass a linker flag through the compiler.
5470 wl=$lt_wl
5471
5472 # Object file suffix (normally "o").
5473 objext="$ac_objext"
5474
5475 # Old archive suffix (normally "a").
5476 libext="$libext"
5477
5478 # Executable file suffix (normally "").
5479 exeext="$exeext"
5480
5481 # Additional compiler flags for building library objects.
5482 pic_flag=$lt_pic_flag
5483 pic_mode=$pic_mode
5484
5485 # Does compiler simultaneously support -c and -o options?
5486 compiler_c_o=$lt_compiler_c_o
5487
5488 # Can we write directly to a .lo ?
5489 compiler_o_lo=$lt_compiler_o_lo
5490
5491 # Must we lock files when doing compilation ?
5492 need_locks=$lt_need_locks
5493
5494 # Do we need the lib prefix for modules?
5495 need_lib_prefix=$need_lib_prefix
5496
5497 # Do we need a version for libraries?
5498 need_version=$need_version
5499
5500 # Whether dlopen is supported.
5501 dlopen_support=$enable_dlopen
5502
5503 # Whether dlopen of programs is supported.
5504 dlopen_self=$enable_dlopen_self
5505
5506 # Whether dlopen of statically linked programs is supported.
5507 dlopen_self_static=$enable_dlopen_self_static
5508
5509 # Compiler flag to prevent dynamic linking.
5510 link_static_flag=$lt_link_static_flag
5511
5512 # Compiler flag to turn off builtin functions.
5513 no_builtin_flag=$lt_no_builtin_flag
5514
5515 # Compiler flag to allow reflexive dlopens.
5516 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
5517
5518 # Compiler flag to generate shared objects directly from archives.
5519 whole_archive_flag_spec=$lt_whole_archive_flag_spec
5520
5521 # Compiler flag to generate thread-safe objects.
5522 thread_safe_flag_spec=$lt_thread_safe_flag_spec
5523
5524 # Library versioning type.
5525 version_type=$version_type
5526
5527 # Format of library name prefix.
5528 libname_spec=$lt_libname_spec
5529
5530 # List of archive names.  First name is the real one, the rest are links.
5531 # The last name is the one that the linker finds with -lNAME.
5532 library_names_spec=$lt_library_names_spec
5533
5534 # The coded name of the library, if different from the real name.
5535 soname_spec=$lt_soname_spec
5536
5537 # Commands used to build and install an old-style archive.
5538 RANLIB=$lt_RANLIB
5539 old_archive_cmds=$lt_old_archive_cmds
5540 old_postinstall_cmds=$lt_old_postinstall_cmds
5541 old_postuninstall_cmds=$lt_old_postuninstall_cmds
5542
5543 # Create an old-style archive from a shared archive.
5544 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
5545
5546 # Create a temporary old-style archive to link instead of a shared archive.
5547 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
5548
5549 # Commands used to build and install a shared archive.
5550 archive_cmds=$lt_archive_cmds
5551 archive_expsym_cmds=$lt_archive_expsym_cmds
5552 postinstall_cmds=$lt_postinstall_cmds
5553 postuninstall_cmds=$lt_postuninstall_cmds
5554
5555 # Commands to strip libraries.
5556 old_striplib=$lt_old_striplib
5557 striplib=$lt_striplib
5558
5559 # Method to check whether dependent libraries are shared objects.
5560 deplibs_check_method=$lt_deplibs_check_method
5561
5562 # Command to use when deplibs_check_method == file_magic.
5563 file_magic_cmd=$lt_file_magic_cmd
5564
5565 # Flag that allows shared libraries with undefined symbols to be built.
5566 allow_undefined_flag=$lt_allow_undefined_flag
5567
5568 # Flag that forces no undefined symbols.
5569 no_undefined_flag=$lt_no_undefined_flag
5570
5571 # Commands used to finish a libtool library installation in a directory.
5572 finish_cmds=$lt_finish_cmds
5573
5574 # Same as above, but a single script fragment to be evaled but not shown.
5575 finish_eval=$lt_finish_eval
5576
5577 # Take the output of nm and produce a listing of raw symbols and C names.
5578 global_symbol_pipe=$lt_global_symbol_pipe
5579
5580 # Transform the output of nm in a proper C declaration
5581 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
5582
5583 # Transform the output of nm in a C name address pair
5584 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
5585
5586 # This is the shared library runtime path variable.
5587 runpath_var=$runpath_var
5588
5589 # This is the shared library path variable.
5590 shlibpath_var=$shlibpath_var
5591
5592 # Is shlibpath searched before the hard-coded library search path?
5593 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5594
5595 # How to hardcode a shared library path into an executable.
5596 hardcode_action=$hardcode_action
5597
5598 # Whether we should hardcode library paths into libraries.
5599 hardcode_into_libs=$hardcode_into_libs
5600
5601 # Flag to hardcode \$libdir into a binary during linking.
5602 # This must work even if \$libdir does not exist.
5603 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
5604
5605 # Whether we need a single -rpath flag with a separated argument.
5606 hardcode_libdir_separator=$lt_hardcode_libdir_separator
5607
5608 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
5609 # resulting binary.
5610 hardcode_direct=$hardcode_direct
5611
5612 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5613 # resulting binary.
5614 hardcode_minus_L=$hardcode_minus_L
5615
5616 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5617 # the resulting binary.
5618 hardcode_shlibpath_var=$hardcode_shlibpath_var
5619
5620 # Variables whose values should be saved in libtool wrapper scripts and
5621 # restored at relink time.
5622 variables_saved_for_relink="$variables_saved_for_relink"
5623
5624 # Whether libtool must link a program against all its dependency libraries.
5625 link_all_deplibs=$link_all_deplibs
5626
5627 # Compile-time system search path for libraries
5628 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5629
5630 # Run-time system search path for libraries
5631 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5632
5633 # Fix the shell variable \$srcfile for the compiler.
5634 fix_srcfile_path="$fix_srcfile_path"
5635
5636 # Set to yes if exported symbols are required.
5637 always_export_symbols=$always_export_symbols
5638
5639 # The commands to list exported symbols.
5640 export_symbols_cmds=$lt_export_symbols_cmds
5641
5642 # The commands to extract the exported symbol list from a shared archive.
5643 extract_expsyms_cmds=$lt_extract_expsyms_cmds
5644
5645 # Symbols that should not be listed in the preloaded symbols.
5646 exclude_expsyms=$lt_exclude_expsyms
5647
5648 # Symbols that must always be exported.
5649 include_expsyms=$lt_include_expsyms
5650
5651 # ### END LIBTOOL CONFIG
5652
5653 __EOF__
5654
5655   case $host_os in
5656   aix3*)
5657     cat <<\EOF >> "${ofile}T"
5658
5659 # AIX sometimes has problems with the GCC collect2 program.  For some
5660 # reason, if we set the COLLECT_NAMES environment variable, the problems
5661 # vanish in a puff of smoke.
5662 if test "X${COLLECT_NAMES+set}" != Xset; then
5663   COLLECT_NAMES=
5664   export COLLECT_NAMES
5665 fi
5666 EOF
5667     ;;
5668   esac
5669
5670   case $host_os in
5671   cygwin* | mingw* | pw32* | os2*)
5672     cat <<'EOF' >> "${ofile}T"
5673       # This is a source program that is used to create dlls on Windows
5674       # Don't remove nor modify the starting and closing comments
5675 # /* ltdll.c starts here */
5676 # #define WIN32_LEAN_AND_MEAN
5677 # #include <windows.h>
5678 # #undef WIN32_LEAN_AND_MEAN
5679 # #include <stdio.h>
5680 #
5681 # #ifndef __CYGWIN__
5682 # #  ifdef __CYGWIN32__
5683 # #    define __CYGWIN__ __CYGWIN32__
5684 # #  endif
5685 # #endif
5686 #
5687 # #ifdef __cplusplus
5688 # extern "C" {
5689 # #endif
5690 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5691 # #ifdef __cplusplus
5692 # }
5693 # #endif
5694 #
5695 # #ifdef __CYGWIN__
5696 # #include <cygwin/cygwin_dll.h>
5697 # DECLARE_CYGWIN_DLL( DllMain );
5698 # #endif
5699 # HINSTANCE __hDllInstance_base;
5700 #
5701 # BOOL APIENTRY
5702 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5703 # {
5704 #   __hDllInstance_base = hInst;
5705 #   return TRUE;
5706 # }
5707 # /* ltdll.c ends here */
5708         # This is a source program that is used to create import libraries
5709         # on Windows for dlls which lack them. Don't remove nor modify the
5710         # starting and closing comments
5711 # /* impgen.c starts here */
5712 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
5713 #
5714 #  This file is part of GNU libtool.
5715 #
5716 #  This program is free software; you can redistribute it and/or modify
5717 #  it under the terms of the GNU General Public License as published by
5718 #  the Free Software Foundation; either version 2 of the License, or
5719 #  (at your option) any later version.
5720 #
5721 #  This program is distributed in the hope that it will be useful,
5722 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
5723 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
5724 #  GNU General Public License for more details.
5725 #
5726 #  You should have received a copy of the GNU General Public License
5727 #  along with this program; if not, write to the Free Software
5728 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5729 #  */
5730 #
5731 # #include <stdio.h>            /* for printf() */
5732 # #include <unistd.h>           /* for open(), lseek(), read() */
5733 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
5734 # #include <string.h>           /* for strdup() */
5735 #
5736 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
5737 # #ifndef O_BINARY
5738 # #define O_BINARY 0
5739 # #endif
5740 #
5741 # static unsigned int
5742 # pe_get16 (fd, offset)
5743 #      int fd;
5744 #      int offset;
5745 # {
5746 #   unsigned char b[2];
5747 #   lseek (fd, offset, SEEK_SET);
5748 #   read (fd, b, 2);
5749 #   return b[0] + (b[1]<<8);
5750 # }
5751 #
5752 # static unsigned int
5753 # pe_get32 (fd, offset)
5754 #     int fd;
5755 #     int offset;
5756 # {
5757 #   unsigned char b[4];
5758 #   lseek (fd, offset, SEEK_SET);
5759 #   read (fd, b, 4);
5760 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5761 # }
5762 #
5763 # static unsigned int
5764 # pe_as32 (ptr)
5765 #      void *ptr;
5766 # {
5767 #   unsigned char *b = ptr;
5768 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5769 # }
5770 #
5771 # int
5772 # main (argc, argv)
5773 #     int argc;
5774 #     char *argv[];
5775 # {
5776 #     int dll;
5777 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
5778 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
5779 #     unsigned long name_rvas, nexp;
5780 #     unsigned char *expdata, *erva;
5781 #     char *filename, *dll_name;
5782 #
5783 #     filename = argv[1];
5784 #
5785 #     dll = open(filename, O_RDONLY|O_BINARY);
5786 #     if (dll < 1)
5787 #       return 1;
5788 #
5789 #     dll_name = filename;
5790 #
5791 #     for (i=0; filename[i]; i++)
5792 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
5793 #           dll_name = filename + i +1;
5794 #
5795 #     pe_header_offset = pe_get32 (dll, 0x3c);
5796 #     opthdr_ofs = pe_header_offset + 4 + 20;
5797 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
5798 #
5799 #     if (num_entries < 1) /* no exports */
5800 #       return 1;
5801 #
5802 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
5803 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
5804 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
5805 #     secptr = (pe_header_offset + 4 + 20 +
5806 #             pe_get16 (dll, pe_header_offset + 4 + 16));
5807 #
5808 #     expptr = 0;
5809 #     for (i = 0; i < nsections; i++)
5810 #     {
5811 #       char sname[8];
5812 #       unsigned long secptr1 = secptr + 40 * i;
5813 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
5814 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
5815 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
5816 #       lseek(dll, secptr1, SEEK_SET);
5817 #       read(dll, sname, 8);
5818 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
5819 #       {
5820 #           expptr = fptr + (export_rva - vaddr);
5821 #           if (export_rva + export_size > vaddr + vsize)
5822 #               export_size = vsize - (export_rva - vaddr);
5823 #           break;
5824 #       }
5825 #     }
5826 #
5827 #     expdata = (unsigned char*)malloc(export_size);
5828 #     lseek (dll, expptr, SEEK_SET);
5829 #     read (dll, expdata, export_size);
5830 #     erva = expdata - export_rva;
5831 #
5832 #     nexp = pe_as32 (expdata+24);
5833 #     name_rvas = pe_as32 (expdata+32);
5834 #
5835 #     printf ("EXPORTS\n");
5836 #     for (i = 0; i<nexp; i++)
5837 #     {
5838 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
5839 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
5840 #     }
5841 #
5842 #     return 0;
5843 # }
5844 # /* impgen.c ends here */
5845
5846 EOF
5847     ;;
5848   esac
5849
5850   # We use sed instead of cat because bash on DJGPP gets confused if
5851   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
5852   # text mode, it properly converts lines to CR/LF.  This bash problem
5853   # is reportedly fixed, but why not run on old versions too?
5854   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
5855
5856   mv -f "${ofile}T" "$ofile" || \
5857     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
5858   chmod +x "$ofile"
5859 fi
5860
5861
5862
5863
5864
5865 # This can be used to rebuild libtool when needed
5866 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
5867
5868 # Always use our own libtool.
5869 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5870
5871 # Prevent multiple expansion
5872
5873
5874
5875
5876 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5877 echo "configure:5878: checking for ANSI C header files" >&5
5878 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5879   echo $ac_n "(cached) $ac_c" 1>&6
5880 else
5881   cat > conftest.$ac_ext <<EOF
5882 #line 5883 "configure"
5883 #include "confdefs.h"
5884 #include <stdlib.h>
5885 #include <stdarg.h>
5886 #include <string.h>
5887 #include <float.h>
5888 EOF
5889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5890 { (eval echo configure:5891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5892 if test -z "$ac_err"; then
5893   rm -rf conftest*
5894   ac_cv_header_stdc=yes
5895 else
5896   echo "$ac_err" >&5
5897   echo "configure: failed program was:" >&5
5898   cat conftest.$ac_ext >&5
5899   rm -rf conftest*
5900   ac_cv_header_stdc=no
5901 fi
5902 rm -f conftest*
5903
5904 if test $ac_cv_header_stdc = yes; then
5905   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5906 cat > conftest.$ac_ext <<EOF
5907 #line 5908 "configure"
5908 #include "confdefs.h"
5909 #include <string.h>
5910 EOF
5911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5912   egrep "memchr" >/dev/null 2>&1; then
5913   :
5914 else
5915   rm -rf conftest*
5916   ac_cv_header_stdc=no
5917 fi
5918 rm -f conftest*
5919
5920 fi
5921
5922 if test $ac_cv_header_stdc = yes; then
5923   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5924 cat > conftest.$ac_ext <<EOF
5925 #line 5926 "configure"
5926 #include "confdefs.h"
5927 #include <stdlib.h>
5928 EOF
5929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5930   egrep "free" >/dev/null 2>&1; then
5931   :
5932 else
5933   rm -rf conftest*
5934   ac_cv_header_stdc=no
5935 fi
5936 rm -f conftest*
5937
5938 fi
5939
5940 if test $ac_cv_header_stdc = yes; then
5941   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5942 if test "$cross_compiling" = yes; then
5943   :
5944 else
5945   cat > conftest.$ac_ext <<EOF
5946 #line 5947 "configure"
5947 #include "confdefs.h"
5948 #include <ctype.h>
5949 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5950 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5951 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5952 int main () { int i; for (i = 0; i < 256; i++)
5953 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5954 exit (0); }
5955
5956 EOF
5957 if { (eval echo configure:5958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5958 then
5959   :
5960 else
5961   echo "configure: failed program was:" >&5
5962   cat conftest.$ac_ext >&5
5963   rm -fr conftest*
5964   ac_cv_header_stdc=no
5965 fi
5966 rm -fr conftest*
5967 fi
5968
5969 fi
5970 fi
5971
5972 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5973 if test $ac_cv_header_stdc = yes; then
5974   cat >> confdefs.h <<\EOF
5975 #define STDC_HEADERS 1
5976 EOF
5977
5978 fi
5979
5980 ac_header_dirent=no
5981 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5982 do
5983 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5984 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5985 echo "configure:5986: checking for $ac_hdr that defines DIR" >&5
5986 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5987   echo $ac_n "(cached) $ac_c" 1>&6
5988 else
5989   cat > conftest.$ac_ext <<EOF
5990 #line 5991 "configure"
5991 #include "confdefs.h"
5992 #include <sys/types.h>
5993 #include <$ac_hdr>
5994 int main() {
5995 DIR *dirp = 0;
5996 ; return 0; }
5997 EOF
5998 if { (eval echo configure:5999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5999   rm -rf conftest*
6000   eval "ac_cv_header_dirent_$ac_safe=yes"
6001 else
6002   echo "configure: failed program was:" >&5
6003   cat conftest.$ac_ext >&5
6004   rm -rf conftest*
6005   eval "ac_cv_header_dirent_$ac_safe=no"
6006 fi
6007 rm -f conftest*
6008 fi
6009 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
6010   echo "$ac_t""yes" 1>&6
6011     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6012   cat >> confdefs.h <<EOF
6013 #define $ac_tr_hdr 1
6014 EOF
6015  ac_header_dirent=$ac_hdr; break
6016 else
6017   echo "$ac_t""no" 1>&6
6018 fi
6019 done
6020 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6021 if test $ac_header_dirent = dirent.h; then
6022 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
6023 echo "configure:6024: checking for opendir in -ldir" >&5
6024 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
6025 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6026   echo $ac_n "(cached) $ac_c" 1>&6
6027 else
6028   ac_save_LIBS="$LIBS"
6029 LIBS="-ldir  $LIBS"
6030 cat > conftest.$ac_ext <<EOF
6031 #line 6032 "configure"
6032 #include "confdefs.h"
6033 /* Override any gcc2 internal prototype to avoid an error.  */
6034 /* We use char because int might match the return type of a gcc2
6035     builtin and then its argument prototype would still apply.  */
6036 char opendir();
6037
6038 int main() {
6039 opendir()
6040 ; return 0; }
6041 EOF
6042 if { (eval echo configure:6043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6043   rm -rf conftest*
6044   eval "ac_cv_lib_$ac_lib_var=yes"
6045 else
6046   echo "configure: failed program was:" >&5
6047   cat conftest.$ac_ext >&5
6048   rm -rf conftest*
6049   eval "ac_cv_lib_$ac_lib_var=no"
6050 fi
6051 rm -f conftest*
6052 LIBS="$ac_save_LIBS"
6053
6054 fi
6055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6056   echo "$ac_t""yes" 1>&6
6057   LIBS="$LIBS -ldir"
6058 else
6059   echo "$ac_t""no" 1>&6
6060 fi
6061
6062 else
6063 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
6064 echo "configure:6065: checking for opendir in -lx" >&5
6065 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
6066 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6067   echo $ac_n "(cached) $ac_c" 1>&6
6068 else
6069   ac_save_LIBS="$LIBS"
6070 LIBS="-lx  $LIBS"
6071 cat > conftest.$ac_ext <<EOF
6072 #line 6073 "configure"
6073 #include "confdefs.h"
6074 /* Override any gcc2 internal prototype to avoid an error.  */
6075 /* We use char because int might match the return type of a gcc2
6076     builtin and then its argument prototype would still apply.  */
6077 char opendir();
6078
6079 int main() {
6080 opendir()
6081 ; return 0; }
6082 EOF
6083 if { (eval echo configure:6084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6084   rm -rf conftest*
6085   eval "ac_cv_lib_$ac_lib_var=yes"
6086 else
6087   echo "configure: failed program was:" >&5
6088   cat conftest.$ac_ext >&5
6089   rm -rf conftest*
6090   eval "ac_cv_lib_$ac_lib_var=no"
6091 fi
6092 rm -f conftest*
6093 LIBS="$ac_save_LIBS"
6094
6095 fi
6096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6097   echo "$ac_t""yes" 1>&6
6098   LIBS="$LIBS -lx"
6099 else
6100   echo "$ac_t""no" 1>&6
6101 fi
6102
6103 fi
6104
6105 echo $ac_n "checking whether $CC supports assert without backlinking""... $ac_c" 1>&6
6106 echo "configure:6107: checking whether $CC supports assert without backlinking" >&5
6107 if eval "test \"`echo '$''{'lt_cv_func_assert_works'+set}'`\" = set"; then
6108   echo $ac_n "(cached) $ac_c" 1>&6
6109 else
6110   case $host in
6111     *-*-solaris*)
6112       if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
6113         case `$CC --version 2>/dev/null` in
6114         [12].*) lt_cv_func_assert_works=no ;;
6115         *)        lt_cv_func_assert_works=yes ;;
6116         esac
6117       fi
6118       ;;
6119     esac
6120 fi
6121
6122 echo "$ac_t""$lt_cv_func_assert_works" 1>&6
6123
6124 if test "x$lt_cv_func_assert_works" = xyes; then
6125   for ac_hdr in assert.h
6126 do
6127 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6128 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6129 echo "configure:6130: checking for $ac_hdr" >&5
6130 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6131   echo $ac_n "(cached) $ac_c" 1>&6
6132 else
6133   cat > conftest.$ac_ext <<EOF
6134 #line 6135 "configure"
6135 #include "confdefs.h"
6136 #include <$ac_hdr>
6137 EOF
6138 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6139 { (eval echo configure:6140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6140 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6141 if test -z "$ac_err"; then
6142   rm -rf conftest*
6143   eval "ac_cv_header_$ac_safe=yes"
6144 else
6145   echo "$ac_err" >&5
6146   echo "configure: failed program was:" >&5
6147   cat conftest.$ac_ext >&5
6148   rm -rf conftest*
6149   eval "ac_cv_header_$ac_safe=no"
6150 fi
6151 rm -f conftest*
6152 fi
6153 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6154   echo "$ac_t""yes" 1>&6
6155     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6156   cat >> confdefs.h <<EOF
6157 #define $ac_tr_hdr 1
6158 EOF
6159  
6160 else
6161   echo "$ac_t""no" 1>&6
6162 fi
6163 done
6164
6165 fi
6166
6167 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6168 if test "${enable_ltdl_install+set}" = set; then
6169   enableval="$enable_ltdl_install"
6170   :
6171 fi
6172
6173
6174
6175
6176 if test x"${enable_ltdl_install-no}" != xno; then
6177   INSTALL_LTDL_TRUE=
6178   INSTALL_LTDL_FALSE='#'
6179 else
6180   INSTALL_LTDL_TRUE='#'
6181   INSTALL_LTDL_FALSE=
6182 fi
6183
6184
6185 if test x"${enable_ltdl_convenience-no}" != xno; then
6186   CONVENIENCE_LTDL_TRUE=
6187   CONVENIENCE_LTDL_FALSE='#'
6188 else
6189   CONVENIENCE_LTDL_TRUE='#'
6190   CONVENIENCE_LTDL_FALSE=
6191 fi
6192
6193
6194 echo $ac_n "checking which extension is used for shared libraries""... $ac_c" 1>&6
6195 echo "configure:6196: checking which extension is used for shared libraries" >&5
6196 if eval "test \"`echo '$''{'libltdl_cv_shlibext'+set}'`\" = set"; then
6197   echo $ac_n "(cached) $ac_c" 1>&6
6198 else
6199   ac_last=
6200   for ac_spec in $library_names_spec; do
6201     ac_last="$ac_spec"
6202   done
6203   echo "$ac_last" | sed 's/\[.*\]//;s/^[^.]*//;s/\$.*$//;s/\.$//' > conftest
6204 libltdl_cv_shlibext=`cat conftest`
6205 rm -f conftest
6206
6207 fi
6208
6209 echo "$ac_t""$libltdl_cv_shlibext" 1>&6
6210 if test -n "$libltdl_cv_shlibext"; then
6211   cat >> confdefs.h <<EOF
6212 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
6213 EOF
6214
6215 fi
6216
6217
6218 echo $ac_n "checking which variable specifies run-time library path""... $ac_c" 1>&6
6219 echo "configure:6220: checking which variable specifies run-time library path" >&5
6220 if eval "test \"`echo '$''{'libltdl_cv_shlibpath_var'+set}'`\" = set"; then
6221   echo $ac_n "(cached) $ac_c" 1>&6
6222 else
6223   libltdl_cv_shlibpath_var="$shlibpath_var"
6224 fi
6225
6226 echo "$ac_t""$libltdl_cv_shlibpath_var" 1>&6
6227 if test -n "$libltdl_cv_shlibpath_var"; then
6228   cat >> confdefs.h <<EOF
6229 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6230 EOF
6231
6232 fi
6233
6234
6235 echo $ac_n "checking for the default library search path""... $ac_c" 1>&6
6236 echo "configure:6237: checking for the default library search path" >&5
6237 if eval "test \"`echo '$''{'libltdl_cv_sys_search_path'+set}'`\" = set"; then
6238   echo $ac_n "(cached) $ac_c" 1>&6
6239 else
6240   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
6241 fi
6242
6243 echo "$ac_t""$libltdl_cv_sys_search_path" 1>&6
6244 if test -n "$libltdl_cv_sys_search_path"; then
6245   case "$host" in
6246   *-*-mingw*) pathsep=";" ;;
6247   *) pathsep=":" ;;
6248   esac
6249   sys_search_path=
6250   for dir in $libltdl_cv_sys_search_path; do
6251     if test -z "$sys_search_path"; then
6252       sys_search_path="$dir"
6253     else
6254       sys_search_path="$sys_search_path$pathsep$dir"
6255     fi
6256   done
6257   cat >> confdefs.h <<EOF
6258 #define LTDL_SYSSEARCHPATH "$sys_search_path"
6259 EOF
6260
6261 fi
6262
6263 echo $ac_n "checking for objdir""... $ac_c" 1>&6
6264 echo "configure:6265: checking for objdir" >&5
6265 if eval "test \"`echo '$''{'libltdl_cv_objdir'+set}'`\" = set"; then
6266   echo $ac_n "(cached) $ac_c" 1>&6
6267 else
6268   libltdl_cv_objdir="$objdir"
6269 if test -n "$objdir"; then
6270   :
6271 else
6272   rm -f .libs 2>/dev/null
6273   mkdir .libs 2>/dev/null
6274   if test -d .libs; then
6275     libltdl_cv_objdir=.libs
6276   else
6277     # MS-DOS does not allow filenames that begin with a dot.
6278     libltdl_cv_objdir=_libs
6279   fi
6280 rmdir .libs 2>/dev/null
6281 fi
6282 fi
6283
6284 echo "$ac_t""$libltdl_cv_objdir" 1>&6
6285 cat >> confdefs.h <<EOF
6286 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
6287 EOF
6288
6289
6290 echo $ac_n "checking whether libtool supports -dlopen/-dlpreopen""... $ac_c" 1>&6
6291 echo "configure:6292: checking whether libtool supports -dlopen/-dlpreopen" >&5
6292 if eval "test \"`echo '$''{'libltdl_cv_preloaded_symbols'+set}'`\" = set"; then
6293   echo $ac_n "(cached) $ac_c" 1>&6
6294 else
6295     if test -n "$global_symbol_pipe"; then
6296     libltdl_cv_preloaded_symbols=yes
6297   else
6298     libltdl_cv_preloaded_symbols=no
6299   fi
6300
6301 fi
6302
6303 echo "$ac_t""$libltdl_cv_preloaded_symbols" 1>&6
6304 if test x"$libltdl_cv_preloaded_symbols" = x"yes"; then
6305   cat >> confdefs.h <<\EOF
6306 #define HAVE_PRELOADED_SYMBOLS 1
6307 EOF
6308
6309 fi
6310
6311 LIBADD_DL=
6312 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6313 echo "configure:6314: checking for dlopen in -ldl" >&5
6314 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6315 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6316   echo $ac_n "(cached) $ac_c" 1>&6
6317 else
6318   ac_save_LIBS="$LIBS"
6319 LIBS="-ldl  $LIBS"
6320 cat > conftest.$ac_ext <<EOF
6321 #line 6322 "configure"
6322 #include "confdefs.h"
6323 /* Override any gcc2 internal prototype to avoid an error.  */
6324 /* We use char because int might match the return type of a gcc2
6325     builtin and then its argument prototype would still apply.  */
6326 char dlopen();
6327
6328 int main() {
6329 dlopen()
6330 ; return 0; }
6331 EOF
6332 if { (eval echo configure:6333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6333   rm -rf conftest*
6334   eval "ac_cv_lib_$ac_lib_var=yes"
6335 else
6336   echo "configure: failed program was:" >&5
6337   cat conftest.$ac_ext >&5
6338   rm -rf conftest*
6339   eval "ac_cv_lib_$ac_lib_var=no"
6340 fi
6341 rm -f conftest*
6342 LIBS="$ac_save_LIBS"
6343
6344 fi
6345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6346   echo "$ac_t""yes" 1>&6
6347   cat >> confdefs.h <<\EOF
6348 #define HAVE_LIBDL 1
6349 EOF
6350  LIBADD_DL="-ldl"
6351 else
6352   echo "$ac_t""no" 1>&6
6353 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6354 echo "configure:6355: checking for dlopen" >&5
6355 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
6356   echo $ac_n "(cached) $ac_c" 1>&6
6357 else
6358   cat > conftest.$ac_ext <<EOF
6359 #line 6360 "configure"
6360 #include "confdefs.h"
6361 /* System header to define __stub macros and hopefully few prototypes,
6362     which can conflict with char dlopen(); below.  */
6363 #include <assert.h>
6364 /* Override any gcc2 internal prototype to avoid an error.  */
6365 /* We use char because int might match the return type of a gcc2
6366     builtin and then its argument prototype would still apply.  */
6367 char dlopen();
6368
6369 int main() {
6370
6371 /* The GNU C library defines this for functions which it implements
6372     to always fail with ENOSYS.  Some functions are actually named
6373     something starting with __ and the normal name is an alias.  */
6374 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6375 choke me
6376 #else
6377 dlopen();
6378 #endif
6379
6380 ; return 0; }
6381 EOF
6382 if { (eval echo configure:6383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6383   rm -rf conftest*
6384   eval "ac_cv_func_dlopen=yes"
6385 else
6386   echo "configure: failed program was:" >&5
6387   cat conftest.$ac_ext >&5
6388   rm -rf conftest*
6389   eval "ac_cv_func_dlopen=no"
6390 fi
6391 rm -f conftest*
6392 fi
6393
6394 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6395   echo "$ac_t""yes" 1>&6
6396   cat >> confdefs.h <<\EOF
6397 #define HAVE_LIBDL 1
6398 EOF
6399
6400 else
6401   echo "$ac_t""no" 1>&6
6402 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6403 echo "configure:6404: checking for dlopen in -lsvld" >&5
6404 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
6405 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6406   echo $ac_n "(cached) $ac_c" 1>&6
6407 else
6408   ac_save_LIBS="$LIBS"
6409 LIBS="-lsvld  $LIBS"
6410 cat > conftest.$ac_ext <<EOF
6411 #line 6412 "configure"
6412 #include "confdefs.h"
6413 /* Override any gcc2 internal prototype to avoid an error.  */
6414 /* We use char because int might match the return type of a gcc2
6415     builtin and then its argument prototype would still apply.  */
6416 char dlopen();
6417
6418 int main() {
6419 dlopen()
6420 ; return 0; }
6421 EOF
6422 if { (eval echo configure:6423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6423   rm -rf conftest*
6424   eval "ac_cv_lib_$ac_lib_var=yes"
6425 else
6426   echo "configure: failed program was:" >&5
6427   cat conftest.$ac_ext >&5
6428   rm -rf conftest*
6429   eval "ac_cv_lib_$ac_lib_var=no"
6430 fi
6431 rm -f conftest*
6432 LIBS="$ac_save_LIBS"
6433
6434 fi
6435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6436   echo "$ac_t""yes" 1>&6
6437   cat >> confdefs.h <<\EOF
6438 #define HAVE_LIBDL 1
6439 EOF
6440  LIBADD_DL="-lsvld"
6441
6442 else
6443   echo "$ac_t""no" 1>&6
6444 fi
6445
6446 fi
6447
6448 fi
6449
6450 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6451 echo "configure:6452: checking for shl_load" >&5
6452 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
6453   echo $ac_n "(cached) $ac_c" 1>&6
6454 else
6455   cat > conftest.$ac_ext <<EOF
6456 #line 6457 "configure"
6457 #include "confdefs.h"
6458 /* System header to define __stub macros and hopefully few prototypes,
6459     which can conflict with char shl_load(); below.  */
6460 #include <assert.h>
6461 /* Override any gcc2 internal prototype to avoid an error.  */
6462 /* We use char because int might match the return type of a gcc2
6463     builtin and then its argument prototype would still apply.  */
6464 char shl_load();
6465
6466 int main() {
6467
6468 /* The GNU C library defines this for functions which it implements
6469     to always fail with ENOSYS.  Some functions are actually named
6470     something starting with __ and the normal name is an alias.  */
6471 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6472 choke me
6473 #else
6474 shl_load();
6475 #endif
6476
6477 ; return 0; }
6478 EOF
6479 if { (eval echo configure:6480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6480   rm -rf conftest*
6481   eval "ac_cv_func_shl_load=yes"
6482 else
6483   echo "configure: failed program was:" >&5
6484   cat conftest.$ac_ext >&5
6485   rm -rf conftest*
6486   eval "ac_cv_func_shl_load=no"
6487 fi
6488 rm -f conftest*
6489 fi
6490
6491 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6492   echo "$ac_t""yes" 1>&6
6493   cat >> confdefs.h <<\EOF
6494 #define HAVE_SHL_LOAD 1
6495 EOF
6496
6497 else
6498   echo "$ac_t""no" 1>&6
6499 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6500 echo "configure:6501: checking for shl_load in -ldld" >&5
6501 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
6502 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6503   echo $ac_n "(cached) $ac_c" 1>&6
6504 else
6505   ac_save_LIBS="$LIBS"
6506 LIBS="-ldld  $LIBS"
6507 cat > conftest.$ac_ext <<EOF
6508 #line 6509 "configure"
6509 #include "confdefs.h"
6510 /* Override any gcc2 internal prototype to avoid an error.  */
6511 /* We use char because int might match the return type of a gcc2
6512     builtin and then its argument prototype would still apply.  */
6513 char shl_load();
6514
6515 int main() {
6516 shl_load()
6517 ; return 0; }
6518 EOF
6519 if { (eval echo configure:6520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6520   rm -rf conftest*
6521   eval "ac_cv_lib_$ac_lib_var=yes"
6522 else
6523   echo "configure: failed program was:" >&5
6524   cat conftest.$ac_ext >&5
6525   rm -rf conftest*
6526   eval "ac_cv_lib_$ac_lib_var=no"
6527 fi
6528 rm -f conftest*
6529 LIBS="$ac_save_LIBS"
6530
6531 fi
6532 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6533   echo "$ac_t""yes" 1>&6
6534   cat >> confdefs.h <<\EOF
6535 #define HAVE_SHL_LOAD 1
6536 EOF
6537
6538    LIBADD_DL="$LIBADD_DL -ldld"
6539 else
6540   echo "$ac_t""no" 1>&6
6541 fi
6542
6543
6544 fi
6545
6546 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6547 echo "configure:6548: checking for dld_link in -ldld" >&5
6548 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
6549 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6550   echo $ac_n "(cached) $ac_c" 1>&6
6551 else
6552   ac_save_LIBS="$LIBS"
6553 LIBS="-ldld  $LIBS"
6554 cat > conftest.$ac_ext <<EOF
6555 #line 6556 "configure"
6556 #include "confdefs.h"
6557 /* Override any gcc2 internal prototype to avoid an error.  */
6558 /* We use char because int might match the return type of a gcc2
6559     builtin and then its argument prototype would still apply.  */
6560 char dld_link();
6561
6562 int main() {
6563 dld_link()
6564 ; return 0; }
6565 EOF
6566 if { (eval echo configure:6567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6567   rm -rf conftest*
6568   eval "ac_cv_lib_$ac_lib_var=yes"
6569 else
6570   echo "configure: failed program was:" >&5
6571   cat conftest.$ac_ext >&5
6572   rm -rf conftest*
6573   eval "ac_cv_lib_$ac_lib_var=no"
6574 fi
6575 rm -f conftest*
6576 LIBS="$ac_save_LIBS"
6577
6578 fi
6579 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6580   echo "$ac_t""yes" 1>&6
6581   cat >> confdefs.h <<\EOF
6582 #define HAVE_DLD 1
6583 EOF
6584 test "x$ac_cv_lib_dld_shl_load" = yes || LIBADD_DL="$LIBADD_DL -ldld"
6585 else
6586   echo "$ac_t""no" 1>&6
6587 fi
6588
6589
6590
6591 if test "x$ac_cv_func_dlopen" = xyes || test "x$ac_cv_lib_dl_dlopen" = xyes; then
6592  LIBS_SAVE="$LIBS"
6593  LIBS="$LIBS $LIBADD_DL"
6594  for ac_func in dlerror
6595 do
6596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6597 echo "configure:6598: checking for $ac_func" >&5
6598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6599   echo $ac_n "(cached) $ac_c" 1>&6
6600 else
6601   cat > conftest.$ac_ext <<EOF
6602 #line 6603 "configure"
6603 #include "confdefs.h"
6604 /* System header to define __stub macros and hopefully few prototypes,
6605     which can conflict with char $ac_func(); below.  */
6606 #include <assert.h>
6607 /* Override any gcc2 internal prototype to avoid an error.  */
6608 /* We use char because int might match the return type of a gcc2
6609     builtin and then its argument prototype would still apply.  */
6610 char $ac_func();
6611
6612 int main() {
6613
6614 /* The GNU C library defines this for functions which it implements
6615     to always fail with ENOSYS.  Some functions are actually named
6616     something starting with __ and the normal name is an alias.  */
6617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6618 choke me
6619 #else
6620 $ac_func();
6621 #endif
6622
6623 ; return 0; }
6624 EOF
6625 if { (eval echo configure:6626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6626   rm -rf conftest*
6627   eval "ac_cv_func_$ac_func=yes"
6628 else
6629   echo "configure: failed program was:" >&5
6630   cat conftest.$ac_ext >&5
6631   rm -rf conftest*
6632   eval "ac_cv_func_$ac_func=no"
6633 fi
6634 rm -f conftest*
6635 fi
6636
6637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6638   echo "$ac_t""yes" 1>&6
6639     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6640   cat >> confdefs.h <<EOF
6641 #define $ac_tr_func 1
6642 EOF
6643  
6644 else
6645   echo "$ac_t""no" 1>&6
6646 fi
6647 done
6648
6649  LIBS="$LIBS_SAVE"
6650 fi
6651
6652 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
6653 echo "configure:6654: checking for _ prefix in compiled symbols" >&5
6654 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
6655   echo $ac_n "(cached) $ac_c" 1>&6
6656 else
6657   ac_cv_sys_symbol_underscore=no
6658 cat > conftest.$ac_ext <<EOF
6659 void nm_test_func(){}
6660 int main(){nm_test_func;return 0;}
6661 EOF
6662 if { (eval echo configure:6663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6663   # Now try to grab the symbols.
6664   ac_nlist=conftest.nm
6665   if { (eval echo configure:6666: \"$NM conftest.$ac_objext \| $global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
6666     # See whether the symbols have a leading underscore.
6667     if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
6668       ac_cv_sys_symbol_underscore=yes
6669     else
6670       if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
6671         :
6672       else
6673         echo "configure: cannot find nm_test_func in $ac_nlist" >&5
6674       fi
6675     fi
6676   else
6677     echo "configure: cannot run $global_symbol_pipe" >&5
6678   fi
6679 else
6680   echo "configure: failed program was:" >&5
6681   cat conftest.c >&5
6682 fi
6683 rm -rf conftest*
6684
6685 fi
6686
6687 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
6688
6689 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
6690   if test x"$ac_cv_func_dlopen" = xyes ||
6691      test x"$ac_cv_lib_dl_dlopen" = xyes ; then
6692         echo $ac_n "checking whether we have to add an underscore for dlsym""... $ac_c" 1>&6
6693 echo "configure:6694: checking whether we have to add an underscore for dlsym" >&5
6694 if eval "test \"`echo '$''{'libltdl_cv_need_uscore'+set}'`\" = set"; then
6695   echo $ac_n "(cached) $ac_c" 1>&6
6696 else
6697                 libltdl_cv_need_uscore=unknown
6698                 save_LIBS="$LIBS"
6699                 LIBS="$LIBS $LIBADD_DL"
6700                 if test "$cross_compiling" = yes; then :
6701   libltdl_cv_need_uscore=cross
6702 else
6703     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6704   lt_status=$lt_dlunknown
6705   cat > conftest.$ac_ext <<EOF
6706 #line 6707 "configure"
6707 #include "confdefs.h"
6708
6709 #if HAVE_DLFCN_H
6710 #include <dlfcn.h>
6711 #endif
6712
6713 #include <stdio.h>
6714
6715 #ifdef RTLD_GLOBAL
6716 #  define LT_DLGLOBAL           RTLD_GLOBAL
6717 #else
6718 #  ifdef DL_GLOBAL
6719 #    define LT_DLGLOBAL         DL_GLOBAL
6720 #  else
6721 #    define LT_DLGLOBAL         0
6722 #  endif
6723 #endif
6724
6725 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6726    find out it does not work in some platform. */
6727 #ifndef LT_DLLAZY_OR_NOW
6728 #  ifdef RTLD_LAZY
6729 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6730 #  else
6731 #    ifdef DL_LAZY
6732 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6733 #    else
6734 #      ifdef RTLD_NOW
6735 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6736 #      else
6737 #        ifdef DL_NOW
6738 #          define LT_DLLAZY_OR_NOW      DL_NOW
6739 #        else
6740 #          define LT_DLLAZY_OR_NOW      0
6741 #        endif
6742 #      endif
6743 #    endif
6744 #  endif
6745 #endif
6746
6747 #ifdef __cplusplus
6748 extern "C" void exit (int);
6749 #endif
6750
6751 void fnord() { int i=42;}
6752 int main ()
6753 {
6754   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6755   int status = $lt_dlunknown;
6756
6757   if (self)
6758     {
6759       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6760       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6761       /* dlclose (self); */
6762     }
6763
6764     exit (status);
6765 }
6766 EOF
6767   if { (eval echo configure:6768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6768     (./conftest; exit; ) 2>/dev/null
6769     lt_status=$?
6770     case x$lt_status in
6771       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
6772       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
6773       x$lt_unknown|x*)  ;;
6774     esac
6775   else :
6776     # compilation failed
6777     
6778   fi
6779 fi
6780 rm -fr conftest*
6781
6782                 LIBS="$save_LIBS"
6783         
6784 fi
6785
6786 echo "$ac_t""$libltdl_cv_need_uscore" 1>&6
6787   fi
6788 fi
6789
6790 if test x"$libltdl_cv_need_uscore" = xyes; then
6791   cat >> confdefs.h <<\EOF
6792 #define NEED_USCORE 1
6793 EOF
6794
6795 fi
6796
6797
6798 echo $ac_n "checking whether deplibs are loaded by dlopen""... $ac_c" 1>&6
6799 echo "configure:6800: checking whether deplibs are loaded by dlopen" >&5
6800 if eval "test \"`echo '$''{'libltdl_cv_sys_dlopen_deplibs'+set}'`\" = set"; then
6801   echo $ac_n "(cached) $ac_c" 1>&6
6802 else
6803         # PORTME does your system automatically load deplibs for dlopen()?
6804         libltdl_cv_sys_dlopen_deplibs=unknown
6805         case "$host_os" in
6806         linux*)
6807           libltdl_cv_sys_dlopen_deplibs=yes
6808           ;;
6809         netbsd*)
6810           libltdl_cv_sys_dlopen_deplibs=yes
6811           ;;
6812         openbsd*)
6813           libltdl_cv_sys_dlopen_deplibs=yes
6814           ;;
6815         solaris*)
6816           libltdl_cv_sys_dlopen_deplibs=yes
6817           ;;
6818         esac
6819
6820 fi
6821
6822 echo "$ac_t""$libltdl_cv_sys_dlopen_deplibs" 1>&6
6823 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
6824  cat >> confdefs.h <<\EOF
6825 #define LTDL_DLOPEN_DEPLIBS 1
6826 EOF
6827
6828 fi
6829
6830 for ac_hdr in argz.h
6831 do
6832 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6833 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6834 echo "configure:6835: checking for $ac_hdr" >&5
6835 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6836   echo $ac_n "(cached) $ac_c" 1>&6
6837 else
6838   cat > conftest.$ac_ext <<EOF
6839 #line 6840 "configure"
6840 #include "confdefs.h"
6841 #include <$ac_hdr>
6842 EOF
6843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6844 { (eval echo configure:6845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6846 if test -z "$ac_err"; then
6847   rm -rf conftest*
6848   eval "ac_cv_header_$ac_safe=yes"
6849 else
6850   echo "$ac_err" >&5
6851   echo "configure: failed program was:" >&5
6852   cat conftest.$ac_ext >&5
6853   rm -rf conftest*
6854   eval "ac_cv_header_$ac_safe=no"
6855 fi
6856 rm -f conftest*
6857 fi
6858 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6859   echo "$ac_t""yes" 1>&6
6860     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6861   cat >> confdefs.h <<EOF
6862 #define $ac_tr_hdr 1
6863 EOF
6864  
6865 else
6866   echo "$ac_t""no" 1>&6
6867 fi
6868 done
6869
6870
6871 echo $ac_n "checking for error_t""... $ac_c" 1>&6
6872 echo "configure:6873: checking for error_t" >&5
6873 if eval "test \"`echo '$''{'ac_Type'+set}'`\" = set"; then
6874   echo $ac_n "(cached) $ac_c" 1>&6
6875 else
6876   cat > conftest.$ac_ext <<EOF
6877 #line 6878 "configure"
6878 #include "confdefs.h"
6879 #if HAVE_ARGZ_H
6880 #  include <argz.h>
6881 #endif
6882 int main() {
6883 if ((error_t *) 0)
6884           return 0;
6885         if (sizeof (error_t))
6886           return 0;
6887 ; return 0; }
6888 EOF
6889 if { (eval echo configure:6890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6890   rm -rf conftest*
6891   ac_Type=yes
6892 else
6893   echo "configure: failed program was:" >&5
6894   cat conftest.$ac_ext >&5
6895   rm -rf conftest*
6896   ac_Type=no
6897 fi
6898 rm -f conftest*
6899 fi
6900
6901 echo "$ac_t""$ac_Type" 1>&6
6902   if test "x$ac_Type" = xyes; then
6903     :
6904   else
6905     cat >> confdefs.h <<\EOF
6906 #define error_t int
6907 EOF
6908
6909   fi
6910
6911 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
6912 do
6913 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6914 echo "configure:6915: checking for $ac_func" >&5
6915 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6916   echo $ac_n "(cached) $ac_c" 1>&6
6917 else
6918   cat > conftest.$ac_ext <<EOF
6919 #line 6920 "configure"
6920 #include "confdefs.h"
6921 /* System header to define __stub macros and hopefully few prototypes,
6922     which can conflict with char $ac_func(); below.  */
6923 #include <assert.h>
6924 /* Override any gcc2 internal prototype to avoid an error.  */
6925 /* We use char because int might match the return type of a gcc2
6926     builtin and then its argument prototype would still apply.  */
6927 char $ac_func();
6928
6929 int main() {
6930
6931 /* The GNU C library defines this for functions which it implements
6932     to always fail with ENOSYS.  Some functions are actually named
6933     something starting with __ and the normal name is an alias.  */
6934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6935 choke me
6936 #else
6937 $ac_func();
6938 #endif
6939
6940 ; return 0; }
6941 EOF
6942 if { (eval echo configure:6943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6943   rm -rf conftest*
6944   eval "ac_cv_func_$ac_func=yes"
6945 else
6946   echo "configure: failed program was:" >&5
6947   cat conftest.$ac_ext >&5
6948   rm -rf conftest*
6949   eval "ac_cv_func_$ac_func=no"
6950 fi
6951 rm -f conftest*
6952 fi
6953
6954 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6955   echo "$ac_t""yes" 1>&6
6956     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6957   cat >> confdefs.h <<EOF
6958 #define $ac_tr_func 1
6959 EOF
6960  
6961 else
6962   echo "$ac_t""no" 1>&6
6963 fi
6964 done
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986 for ac_hdr in errno.h malloc.h memory.h stdlib.h stdio.h ctype.h unistd.h
6987 do
6988 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6989 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6990 echo "configure:6991: checking for $ac_hdr" >&5
6991 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6992   echo $ac_n "(cached) $ac_c" 1>&6
6993 else
6994   cat > conftest.$ac_ext <<EOF
6995 #line 6996 "configure"
6996 #include "confdefs.h"
6997 #include <$ac_hdr>
6998 EOF
6999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7000 { (eval echo configure:7001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7002 if test -z "$ac_err"; then
7003   rm -rf conftest*
7004   eval "ac_cv_header_$ac_safe=yes"
7005 else
7006   echo "$ac_err" >&5
7007   echo "configure: failed program was:" >&5
7008   cat conftest.$ac_ext >&5
7009   rm -rf conftest*
7010   eval "ac_cv_header_$ac_safe=no"
7011 fi
7012 rm -f conftest*
7013 fi
7014 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7015   echo "$ac_t""yes" 1>&6
7016     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7017   cat >> confdefs.h <<EOF
7018 #define $ac_tr_hdr 1
7019 EOF
7020  
7021 else
7022   echo "$ac_t""no" 1>&6
7023 fi
7024 done
7025
7026 for ac_hdr in dl.h sys/dl.h dld.h
7027 do
7028 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7029 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7030 echo "configure:7031: checking for $ac_hdr" >&5
7031 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7032   echo $ac_n "(cached) $ac_c" 1>&6
7033 else
7034   cat > conftest.$ac_ext <<EOF
7035 #line 7036 "configure"
7036 #include "confdefs.h"
7037 #include <$ac_hdr>
7038 EOF
7039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7040 { (eval echo configure:7041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7041 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7042 if test -z "$ac_err"; then
7043   rm -rf conftest*
7044   eval "ac_cv_header_$ac_safe=yes"
7045 else
7046   echo "$ac_err" >&5
7047   echo "configure: failed program was:" >&5
7048   cat conftest.$ac_ext >&5
7049   rm -rf conftest*
7050   eval "ac_cv_header_$ac_safe=no"
7051 fi
7052 rm -f conftest*
7053 fi
7054 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7055   echo "$ac_t""yes" 1>&6
7056     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7057   cat >> confdefs.h <<EOF
7058 #define $ac_tr_hdr 1
7059 EOF
7060  
7061 else
7062   echo "$ac_t""no" 1>&6
7063 fi
7064 done
7065
7066 for ac_hdr in string.h strings.h
7067 do
7068 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7069 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7070 echo "configure:7071: checking for $ac_hdr" >&5
7071 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7072   echo $ac_n "(cached) $ac_c" 1>&6
7073 else
7074   cat > conftest.$ac_ext <<EOF
7075 #line 7076 "configure"
7076 #include "confdefs.h"
7077 #include <$ac_hdr>
7078 EOF
7079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7080 { (eval echo configure:7081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7082 if test -z "$ac_err"; then
7083   rm -rf conftest*
7084   eval "ac_cv_header_$ac_safe=yes"
7085 else
7086   echo "$ac_err" >&5
7087   echo "configure: failed program was:" >&5
7088   cat conftest.$ac_ext >&5
7089   rm -rf conftest*
7090   eval "ac_cv_header_$ac_safe=no"
7091 fi
7092 rm -f conftest*
7093 fi
7094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7095   echo "$ac_t""yes" 1>&6
7096     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7097   cat >> confdefs.h <<EOF
7098 #define $ac_tr_hdr 1
7099 EOF
7100  break
7101 else
7102   echo "$ac_t""no" 1>&6
7103 fi
7104 done
7105
7106
7107 for ac_func in strchr index
7108 do
7109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7110 echo "configure:7111: checking for $ac_func" >&5
7111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7112   echo $ac_n "(cached) $ac_c" 1>&6
7113 else
7114   cat > conftest.$ac_ext <<EOF
7115 #line 7116 "configure"
7116 #include "confdefs.h"
7117 /* System header to define __stub macros and hopefully few prototypes,
7118     which can conflict with char $ac_func(); below.  */
7119 #include <assert.h>
7120 /* Override any gcc2 internal prototype to avoid an error.  */
7121 /* We use char because int might match the return type of a gcc2
7122     builtin and then its argument prototype would still apply.  */
7123 char $ac_func();
7124
7125 int main() {
7126
7127 /* The GNU C library defines this for functions which it implements
7128     to always fail with ENOSYS.  Some functions are actually named
7129     something starting with __ and the normal name is an alias.  */
7130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7131 choke me
7132 #else
7133 $ac_func();
7134 #endif
7135
7136 ; return 0; }
7137 EOF
7138 if { (eval echo configure:7139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7139   rm -rf conftest*
7140   eval "ac_cv_func_$ac_func=yes"
7141 else
7142   echo "configure: failed program was:" >&5
7143   cat conftest.$ac_ext >&5
7144   rm -rf conftest*
7145   eval "ac_cv_func_$ac_func=no"
7146 fi
7147 rm -f conftest*
7148 fi
7149
7150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7151   echo "$ac_t""yes" 1>&6
7152     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7153   cat >> confdefs.h <<EOF
7154 #define $ac_tr_func 1
7155 EOF
7156  break
7157 else
7158   echo "$ac_t""no" 1>&6
7159 fi
7160 done
7161
7162 for ac_func in strrchr rindex
7163 do
7164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7165 echo "configure:7166: checking for $ac_func" >&5
7166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7167   echo $ac_n "(cached) $ac_c" 1>&6
7168 else
7169   cat > conftest.$ac_ext <<EOF
7170 #line 7171 "configure"
7171 #include "confdefs.h"
7172 /* System header to define __stub macros and hopefully few prototypes,
7173     which can conflict with char $ac_func(); below.  */
7174 #include <assert.h>
7175 /* Override any gcc2 internal prototype to avoid an error.  */
7176 /* We use char because int might match the return type of a gcc2
7177     builtin and then its argument prototype would still apply.  */
7178 char $ac_func();
7179
7180 int main() {
7181
7182 /* The GNU C library defines this for functions which it implements
7183     to always fail with ENOSYS.  Some functions are actually named
7184     something starting with __ and the normal name is an alias.  */
7185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7186 choke me
7187 #else
7188 $ac_func();
7189 #endif
7190
7191 ; return 0; }
7192 EOF
7193 if { (eval echo configure:7194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7194   rm -rf conftest*
7195   eval "ac_cv_func_$ac_func=yes"
7196 else
7197   echo "configure: failed program was:" >&5
7198   cat conftest.$ac_ext >&5
7199   rm -rf conftest*
7200   eval "ac_cv_func_$ac_func=no"
7201 fi
7202 rm -f conftest*
7203 fi
7204
7205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7206   echo "$ac_t""yes" 1>&6
7207     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7208   cat >> confdefs.h <<EOF
7209 #define $ac_tr_func 1
7210 EOF
7211  break
7212 else
7213   echo "$ac_t""no" 1>&6
7214 fi
7215 done
7216
7217 for ac_func in memcpy bcopy
7218 do
7219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7220 echo "configure:7221: checking for $ac_func" >&5
7221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7222   echo $ac_n "(cached) $ac_c" 1>&6
7223 else
7224   cat > conftest.$ac_ext <<EOF
7225 #line 7226 "configure"
7226 #include "confdefs.h"
7227 /* System header to define __stub macros and hopefully few prototypes,
7228     which can conflict with char $ac_func(); below.  */
7229 #include <assert.h>
7230 /* Override any gcc2 internal prototype to avoid an error.  */
7231 /* We use char because int might match the return type of a gcc2
7232     builtin and then its argument prototype would still apply.  */
7233 char $ac_func();
7234
7235 int main() {
7236
7237 /* The GNU C library defines this for functions which it implements
7238     to always fail with ENOSYS.  Some functions are actually named
7239     something starting with __ and the normal name is an alias.  */
7240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7241 choke me
7242 #else
7243 $ac_func();
7244 #endif
7245
7246 ; return 0; }
7247 EOF
7248 if { (eval echo configure:7249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7249   rm -rf conftest*
7250   eval "ac_cv_func_$ac_func=yes"
7251 else
7252   echo "configure: failed program was:" >&5
7253   cat conftest.$ac_ext >&5
7254   rm -rf conftest*
7255   eval "ac_cv_func_$ac_func=no"
7256 fi
7257 rm -f conftest*
7258 fi
7259
7260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7261   echo "$ac_t""yes" 1>&6
7262     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7263   cat >> confdefs.h <<EOF
7264 #define $ac_tr_func 1
7265 EOF
7266  break
7267 else
7268   echo "$ac_t""no" 1>&6
7269 fi
7270 done
7271
7272 for ac_func in memmove strcmp
7273 do
7274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7275 echo "configure:7276: checking for $ac_func" >&5
7276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7277   echo $ac_n "(cached) $ac_c" 1>&6
7278 else
7279   cat > conftest.$ac_ext <<EOF
7280 #line 7281 "configure"
7281 #include "confdefs.h"
7282 /* System header to define __stub macros and hopefully few prototypes,
7283     which can conflict with char $ac_func(); below.  */
7284 #include <assert.h>
7285 /* Override any gcc2 internal prototype to avoid an error.  */
7286 /* We use char because int might match the return type of a gcc2
7287     builtin and then its argument prototype would still apply.  */
7288 char $ac_func();
7289
7290 int main() {
7291
7292 /* The GNU C library defines this for functions which it implements
7293     to always fail with ENOSYS.  Some functions are actually named
7294     something starting with __ and the normal name is an alias.  */
7295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7296 choke me
7297 #else
7298 $ac_func();
7299 #endif
7300
7301 ; return 0; }
7302 EOF
7303 if { (eval echo configure:7304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7304   rm -rf conftest*
7305   eval "ac_cv_func_$ac_func=yes"
7306 else
7307   echo "configure: failed program was:" >&5
7308   cat conftest.$ac_ext >&5
7309   rm -rf conftest*
7310   eval "ac_cv_func_$ac_func=no"
7311 fi
7312 rm -f conftest*
7313 fi
7314
7315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7316   echo "$ac_t""yes" 1>&6
7317     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7318   cat >> confdefs.h <<EOF
7319 #define $ac_tr_func 1
7320 EOF
7321  
7322 else
7323   echo "$ac_t""no" 1>&6
7324 fi
7325 done
7326
7327
7328
7329
7330 trap '' 1 2 15
7331 cat > confcache <<\EOF
7332 # This file is a shell script that caches the results of configure
7333 # tests run on this system so they can be shared between configure
7334 # scripts and configure runs.  It is not useful on other systems.
7335 # If it contains results you don't want to keep, you may remove or edit it.
7336 #
7337 # By default, configure uses ./config.cache as the cache file,
7338 # creating it if it does not exist already.  You can give configure
7339 # the --cache-file=FILE option to use a different cache file; that is
7340 # what configure does when it calls configure scripts in
7341 # subdirectories, so they share the cache.
7342 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7343 # config.status only pays attention to the cache file if you give it the
7344 # --recheck option to rerun configure.
7345 #
7346 EOF
7347 # The following way of writing the cache mishandles newlines in values,
7348 # but we know of no workaround that is simple, portable, and efficient.
7349 # So, don't put newlines in cache variables' values.
7350 # Ultrix sh set writes to stderr and can't be redirected directly,
7351 # and sets the high bit in the cache file unless we assign to the vars.
7352 (set) 2>&1 |
7353   case `(ac_space=' '; set | grep ac_space) 2>&1` in
7354   *ac_space=\ *)
7355     # `set' does not quote correctly, so add quotes (double-quote substitution
7356     # turns \\\\ into \\, and sed turns \\ into \).
7357     sed -n \
7358       -e "s/'/'\\\\''/g" \
7359       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7360     ;;
7361   *)
7362     # `set' quotes correctly as required by POSIX, so do not add quotes.
7363     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7364     ;;
7365   esac >> confcache
7366 if cmp -s $cache_file confcache; then
7367   :
7368 else
7369   if test -w $cache_file; then
7370     echo "updating cache $cache_file"
7371     cat confcache > $cache_file
7372   else
7373     echo "not updating unwritable cache $cache_file"
7374   fi
7375 fi
7376 rm -f confcache
7377
7378 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7379
7380 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7381 # Let make expand exec_prefix.
7382 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7383
7384 # Any assignment to VPATH causes Sun make to only execute
7385 # the first set of double-colon rules, so remove it if not needed.
7386 # If there is a colon in the path, we need to keep it.
7387 if test "x$srcdir" = x.; then
7388   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
7389 fi
7390
7391 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7392
7393 DEFS=-DHAVE_CONFIG_H
7394
7395 # Without the "./", some shells look in PATH for config.status.
7396 : ${CONFIG_STATUS=./config.status}
7397
7398 echo creating $CONFIG_STATUS
7399 rm -f $CONFIG_STATUS
7400 cat > $CONFIG_STATUS <<EOF
7401 #! /bin/sh
7402 # Generated automatically by configure.
7403 # Run this file to recreate the current configuration.
7404 # This directory was configured as follows,
7405 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7406 #
7407 # $0 $ac_configure_args
7408 #
7409 # Compiler output produced by configure, useful for debugging
7410 # configure, is in ./config.log if it exists.
7411
7412 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7413 for ac_option
7414 do
7415   case "\$ac_option" in
7416   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7417     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7418     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7419   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7420     echo "$CONFIG_STATUS generated by autoconf version 2.13"
7421     exit 0 ;;
7422   -help | --help | --hel | --he | --h)
7423     echo "\$ac_cs_usage"; exit 0 ;;
7424   *) echo "\$ac_cs_usage"; exit 1 ;;
7425   esac
7426 done
7427
7428 ac_given_srcdir=$srcdir
7429 ac_given_INSTALL="$INSTALL"
7430
7431 trap 'rm -fr `echo "Makefile config.h:config-h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7432 EOF
7433 cat >> $CONFIG_STATUS <<EOF
7434
7435 # Protect against being on the right side of a sed subst in config.status.
7436 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7437  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7438 $ac_vpsub
7439 $extrasub
7440 s%@SHELL@%$SHELL%g
7441 s%@CFLAGS@%$CFLAGS%g
7442 s%@CPPFLAGS@%$CPPFLAGS%g
7443 s%@CXXFLAGS@%$CXXFLAGS%g
7444 s%@FFLAGS@%$FFLAGS%g
7445 s%@DEFS@%$DEFS%g
7446 s%@LDFLAGS@%$LDFLAGS%g
7447 s%@LIBS@%$LIBS%g
7448 s%@exec_prefix@%$exec_prefix%g
7449 s%@prefix@%$prefix%g
7450 s%@program_transform_name@%$program_transform_name%g
7451 s%@bindir@%$bindir%g
7452 s%@sbindir@%$sbindir%g
7453 s%@libexecdir@%$libexecdir%g
7454 s%@datadir@%$datadir%g
7455 s%@sysconfdir@%$sysconfdir%g
7456 s%@sharedstatedir@%$sharedstatedir%g
7457 s%@localstatedir@%$localstatedir%g
7458 s%@libdir@%$libdir%g
7459 s%@includedir@%$includedir%g
7460 s%@oldincludedir@%$oldincludedir%g
7461 s%@infodir@%$infodir%g
7462 s%@mandir@%$mandir%g
7463 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7464 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7465 s%@INSTALL_DATA@%$INSTALL_DATA%g
7466 s%@PACKAGE@%$PACKAGE%g
7467 s%@VERSION@%$VERSION%g
7468 s%@EXEEXT@%$EXEEXT%g
7469 s%@OBJEXT@%$OBJEXT%g
7470 s%@ACLOCAL@%$ACLOCAL%g
7471 s%@AUTOCONF@%$AUTOCONF%g
7472 s%@AUTOMAKE@%$AUTOMAKE%g
7473 s%@AUTOHEADER@%$AUTOHEADER%g
7474 s%@MAKEINFO@%$MAKEINFO%g
7475 s%@AMTAR@%$AMTAR%g
7476 s%@install_sh@%$install_sh%g
7477 s%@INSTALL_STRIP_PROGRAM@%$INSTALL_STRIP_PROGRAM%g
7478 s%@AWK@%$AWK%g
7479 s%@SET_MAKE@%$SET_MAKE%g
7480 s%@AMDEP_TRUE@%$AMDEP_TRUE%g
7481 s%@AMDEP_FALSE@%$AMDEP_FALSE%g
7482 s%@AMDEPBACKSLASH@%$AMDEPBACKSLASH%g
7483 s%@DEPDIR@%$DEPDIR%g
7484 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7485 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7486 s%@MAINT@%$MAINT%g
7487 s%@CC@%$CC%g
7488 s%@am__include@%$am__include%g
7489 s%@am__quote@%$am__quote%g
7490 s%@CCDEPMODE@%$CCDEPMODE%g
7491 s%@host@%$host%g
7492 s%@host_alias@%$host_alias%g
7493 s%@host_cpu@%$host_cpu%g
7494 s%@host_vendor@%$host_vendor%g
7495 s%@host_os@%$host_os%g
7496 s%@build@%$build%g
7497 s%@build_alias@%$build_alias%g
7498 s%@build_cpu@%$build_cpu%g
7499 s%@build_vendor@%$build_vendor%g
7500 s%@build_os@%$build_os%g
7501 s%@LN_S@%$LN_S%g
7502 s%@ECHO@%$ECHO%g
7503 s%@RANLIB@%$RANLIB%g
7504 s%@STRIP@%$STRIP%g
7505 s%@DLLTOOL@%$DLLTOOL%g
7506 s%@AS@%$AS%g
7507 s%@OBJDUMP@%$OBJDUMP%g
7508 s%@CPP@%$CPP%g
7509 s%@LIBTOOL@%$LIBTOOL%g
7510 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
7511 s%@INSTALL_LTDL_TRUE@%$INSTALL_LTDL_TRUE%g
7512 s%@INSTALL_LTDL_FALSE@%$INSTALL_LTDL_FALSE%g
7513 s%@CONVENIENCE_LTDL_TRUE@%$CONVENIENCE_LTDL_TRUE%g
7514 s%@CONVENIENCE_LTDL_FALSE@%$CONVENIENCE_LTDL_FALSE%g
7515 s%@LIBADD_DL@%$LIBADD_DL%g
7516
7517 CEOF
7518 EOF
7519
7520 cat >> $CONFIG_STATUS <<\EOF
7521
7522 # Split the substitutions into bite-sized pieces for seds with
7523 # small command number limits, like on Digital OSF/1 and HP-UX.
7524 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7525 ac_file=1 # Number of current file.
7526 ac_beg=1 # First line for current file.
7527 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7528 ac_more_lines=:
7529 ac_sed_cmds=""
7530 while $ac_more_lines; do
7531   if test $ac_beg -gt 1; then
7532     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7533   else
7534     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7535   fi
7536   if test ! -s conftest.s$ac_file; then
7537     ac_more_lines=false
7538     rm -f conftest.s$ac_file
7539   else
7540     if test -z "$ac_sed_cmds"; then
7541       ac_sed_cmds="sed -f conftest.s$ac_file"
7542     else
7543       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7544     fi
7545     ac_file=`expr $ac_file + 1`
7546     ac_beg=$ac_end
7547     ac_end=`expr $ac_end + $ac_max_sed_cmds`
7548   fi
7549 done
7550 if test -z "$ac_sed_cmds"; then
7551   ac_sed_cmds=cat
7552 fi
7553 EOF
7554
7555 cat >> $CONFIG_STATUS <<EOF
7556
7557 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7558 EOF
7559 cat >> $CONFIG_STATUS <<\EOF
7560 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7561   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7562   case "$ac_file" in
7563   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7564        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7565   *) ac_file_in="${ac_file}.in" ;;
7566   esac
7567
7568   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7569
7570   # Remove last slash and all that follows it.  Not all systems have dirname.
7571   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7572   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7573     # The file is in a subdirectory.
7574     test ! -d "$ac_dir" && mkdir "$ac_dir"
7575     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7576     # A "../" for each directory in $ac_dir_suffix.
7577     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7578   else
7579     ac_dir_suffix= ac_dots=
7580   fi
7581
7582   case "$ac_given_srcdir" in
7583   .)  srcdir=.
7584       if test -z "$ac_dots"; then top_srcdir=.
7585       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7586   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7587   *) # Relative path.
7588     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7589     top_srcdir="$ac_dots$ac_given_srcdir" ;;
7590   esac
7591
7592   case "$ac_given_INSTALL" in
7593   [/$]*) INSTALL="$ac_given_INSTALL" ;;
7594   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7595   esac
7596
7597   echo creating "$ac_file"
7598   rm -f "$ac_file"
7599   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7600   case "$ac_file" in
7601   *Makefile*) ac_comsub="1i\\
7602 # $configure_input" ;;
7603   *) ac_comsub= ;;
7604   esac
7605
7606   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7607   sed -e "$ac_comsub
7608 s%@configure_input@%$configure_input%g
7609 s%@srcdir@%$srcdir%g
7610 s%@top_srcdir@%$top_srcdir%g
7611 s%@INSTALL@%$INSTALL%g
7612 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7613 fi; done
7614 rm -f conftest.s*
7615
7616 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7617 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7618 #
7619 # ac_d sets the value in "#define NAME VALUE" lines.
7620 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
7621 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
7622 ac_dC='\3'
7623 ac_dD='%g'
7624 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7625 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7626 ac_uB='\([      ]\)%\1#\2define\3'
7627 ac_uC=' '
7628 ac_uD='\4%g'
7629 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7630 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7631 ac_eB='$%\1#\2define\3'
7632 ac_eC=' '
7633 ac_eD='%g'
7634
7635 if test "${CONFIG_HEADERS+set}" != set; then
7636 EOF
7637 cat >> $CONFIG_STATUS <<EOF
7638   CONFIG_HEADERS="config.h:config-h.in"
7639 EOF
7640 cat >> $CONFIG_STATUS <<\EOF
7641 fi
7642 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7643   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7644   case "$ac_file" in
7645   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7646        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7647   *) ac_file_in="${ac_file}.in" ;;
7648   esac
7649
7650   echo creating $ac_file
7651
7652   rm -f conftest.frag conftest.in conftest.out
7653   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7654   cat $ac_file_inputs > conftest.in
7655
7656 EOF
7657
7658 # Transform confdefs.h into a sed script conftest.vals that substitutes
7659 # the proper values into config.h.in to produce config.h.  And first:
7660 # Protect against being on the right side of a sed subst in config.status.
7661 # Protect against being in an unquoted here document in config.status.
7662 rm -f conftest.vals
7663 cat > conftest.hdr <<\EOF
7664 s/[\\&%]/\\&/g
7665 s%[\\$`]%\\&%g
7666 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7667 s%ac_d%ac_u%gp
7668 s%ac_u%ac_e%gp
7669 EOF
7670 sed -n -f conftest.hdr confdefs.h > conftest.vals
7671 rm -f conftest.hdr
7672
7673 # This sed command replaces #undef with comments.  This is necessary, for
7674 # example, in the case of _POSIX_SOURCE, which is predefined and required
7675 # on some systems where configure will not decide to define it.
7676 cat >> conftest.vals <<\EOF
7677 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7678 EOF
7679
7680 # Break up conftest.vals because some shells have a limit on
7681 # the size of here documents, and old seds have small limits too.
7682
7683 rm -f conftest.tail
7684 while :
7685 do
7686   ac_lines=`grep -c . conftest.vals`
7687   # grep -c gives empty output for an empty file on some AIX systems.
7688   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7689   # Write a limited-size here document to conftest.frag.
7690   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7691   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7692   echo 'CEOF
7693   sed -f conftest.frag conftest.in > conftest.out
7694   rm -f conftest.in
7695   mv conftest.out conftest.in
7696 ' >> $CONFIG_STATUS
7697   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7698   rm -f conftest.vals
7699   mv conftest.tail conftest.vals
7700 done
7701 rm -f conftest.vals
7702
7703 cat >> $CONFIG_STATUS <<\EOF
7704   rm -f conftest.frag conftest.h
7705   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
7706   cat conftest.in >> conftest.h
7707   rm -f conftest.in
7708   if cmp -s $ac_file conftest.h 2>/dev/null; then
7709     echo "$ac_file is unchanged"
7710     rm -f conftest.h
7711   else
7712     # Remove last slash and all that follows it.  Not all systems have dirname.
7713       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7714       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7715       # The file is in a subdirectory.
7716       test ! -d "$ac_dir" && mkdir "$ac_dir"
7717     fi
7718     rm -f $ac_file
7719     mv conftest.h $ac_file
7720   fi
7721 fi; done
7722
7723 EOF
7724 cat >> $CONFIG_STATUS <<EOF
7725 am_indx=1
7726 for am_file in config.h:config-h.in; do
7727   case " \$CONFIG_HEADERS " in
7728   *" \$am_file "*)
7729     am_dir=\`echo \$am_file |sed 's%:.*%%;s%[^/]*\$%%'\`
7730     if test -n "\$am_dir"; then
7731       am_tmpdir=\`echo \$am_dir |sed 's%^\(/*\).*\$%\1%'\`
7732       for am_subdir in \`echo \$am_dir |sed 's%/% %'\`; do
7733         am_tmpdir=\$am_tmpdir\$am_subdir/
7734         if test ! -d \$am_tmpdir; then
7735           mkdir \$am_tmpdir
7736         fi
7737       done
7738     fi
7739     echo timestamp > "\$am_dir"stamp-h\$am_indx
7740     ;;
7741   esac
7742   am_indx=\`expr \$am_indx + 1\`
7743 done
7744 AMDEP_TRUE="$AMDEP_TRUE"
7745 ac_aux_dir="$ac_aux_dir"
7746
7747 EOF
7748 cat >> $CONFIG_STATUS <<\EOF
7749 test -z "$CONFIG_HEADERS" || echo timestamp >      stamp-h
7750
7751 test x"$AMDEP_TRUE" != x"" ||
7752 for mf in $CONFIG_FILES; do
7753   case "$mf" in
7754   Makefile) dirpart=.;;
7755   */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
7756   *) continue;;
7757   esac
7758   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7759   # Extract the definition of DEP_FILES from the Makefile without
7760   # running `make'.
7761   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
7762   test -z "$DEPDIR" && continue
7763   # When using ansi2knr, U may be empty or an underscore; expand it
7764   U=`sed -n -e '/^U = / s///p' < "$mf"`
7765   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7766   # We invoke sed twice because it is the simplest approach to
7767   # changing $(DEPDIR) to its actual value in the expansion.
7768   for file in `sed -n -e '
7769     /^DEP_FILES = .*\\\\$/ {
7770       s/^DEP_FILES = //
7771       :loop
7772         s/\\\\$//
7773         p
7774         n
7775         /\\\\$/ b loop
7776       p
7777     }
7778     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7779        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7780     # Make sure the directory exists.
7781     test -f "$dirpart/$file" && continue
7782     fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
7783     $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
7784     # echo "creating $dirpart/$file"
7785     echo '# dummy' > "$dirpart/$file"
7786   done
7787 done
7788
7789
7790 exit 0
7791 EOF
7792 chmod +x $CONFIG_STATUS
7793 rm -fr confdefs* $ac_clean_files
7794 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7795
7796
7797 # Local Variables:
7798 # mode:shell-script
7799 # sh-indentation:2
7800 # End: