Initial revision
[TestXSLT.git] / libiconv / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52 for libiconv 1.8.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Find the correct PATH separator.  Usually this is `:', but
11 # DJGPP uses `;' like DOS.
12 if test "X${PATH_SEPARATOR+set}" != Xset; then
13   UNAME=${UNAME-`uname 2>/dev/null`}
14   case X$UNAME in
15     *-DOS) lt_cv_sys_path_separator=';' ;;
16     *)     lt_cv_sys_path_separator=':' ;;
17   esac
18   PATH_SEPARATOR=$lt_cv_sys_path_separator
19 fi
20
21 # Check that we are running under the correct shell.
22 SHELL=${CONFIG_SHELL-/bin/sh}
23
24 case X$ECHO in
25 X*--fallback-echo)
26   # Remove one level of quotation (which was required for Make).
27   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
28   ;;
29 esac
30
31 echo=${ECHO-echo}
32 if test "X$1" = X--no-reexec; then
33   # Discard the --no-reexec flag, and continue.
34   shift
35 elif test "X$1" = X--fallback-echo; then
36   # Avoid inline document here, it may be left over
37   :
38 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
39   # Yippee, $echo works!
40   :
41 else
42   # Restart under the correct shell.
43   exec $SHELL "$0" --no-reexec ${1+"$@"}
44 fi
45
46 if test "X$1" = X--fallback-echo; then
47   # used as fallback echo
48   shift
49   cat <<EOF
50
51 EOF
52   exit 0
53 fi
54
55 # The HP-UX ksh and POSIX shell print the target directory to stdout
56 # if CDPATH is set.
57 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
58
59 if test -z "$ECHO"; then
60 if test "X${echo_test_string+set}" != Xset; then
61 # find a string as large as possible, as long as the shell can cope with it
62   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
63     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
64     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
65        echo_test_string="`eval $cmd`" &&
66        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
67     then
68       break
69     fi
70   done
71 fi
72
73 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
74    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
75    test "X$echo_testing_string" = "X$echo_test_string"; then
76   :
77 else
78   # The Solaris, AIX, and Digital Unix default echo programs unquote
79   # backslashes.  This makes it impossible to quote backslashes using
80   #   echo "$something" | sed 's/\\/\\\\/g'
81   #
82   # So, first we look for a working echo in the user's PATH.
83
84   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
85   for dir in $PATH /usr/ucb; do
86     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
87        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
88        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
89        test "X$echo_testing_string" = "X$echo_test_string"; then
90       echo="$dir/echo"
91       break
92     fi
93   done
94   IFS="$save_ifs"
95
96   if test "X$echo" = Xecho; then
97     # We didn't find a better echo, so look for alternatives.
98     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
99        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
100        test "X$echo_testing_string" = "X$echo_test_string"; then
101       # This shell has a builtin print -r that does the trick.
102       echo='print -r'
103     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
104          test "X$CONFIG_SHELL" != X/bin/ksh; then
105       # If we have ksh, try running configure again with it.
106       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
107       export ORIGINAL_CONFIG_SHELL
108       CONFIG_SHELL=/bin/ksh
109       export CONFIG_SHELL
110       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
111     else
112       # Try using printf.
113       echo='printf %s\n'
114       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
115          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
116          test "X$echo_testing_string" = "X$echo_test_string"; then
117         # Cool, printf works
118         :
119       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
120            test "X$echo_testing_string" = 'X\t' &&
121            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
122            test "X$echo_testing_string" = "X$echo_test_string"; then
123         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
124         export CONFIG_SHELL
125         SHELL="$CONFIG_SHELL"
126         export SHELL
127         echo="$CONFIG_SHELL $0 --fallback-echo"
128       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
129            test "X$echo_testing_string" = 'X\t' &&
130            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
131            test "X$echo_testing_string" = "X$echo_test_string"; then
132         echo="$CONFIG_SHELL $0 --fallback-echo"
133       else
134         # maybe with a smaller string...
135         prev=:
136
137         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
138           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
139           then
140             break
141           fi
142           prev="$cmd"
143         done
144
145         if test "$prev" != 'sed 50q "$0"'; then
146           echo_test_string=`eval $prev`
147           export echo_test_string
148           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
149         else
150           # Oops.  We lost completely, so just stick with echo.
151           echo=echo
152         fi
153       fi
154     fi
155   fi
156 fi
157 fi
158
159 # Copy echo and quote the copy suitably for passing to libtool from
160 # the Makefile, instead of quoting the original, which is used later.
161 ECHO=$echo
162 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
163    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
164 fi
165
166 # Avoid depending upon Character Ranges.
167 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
168 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
169 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
170 as_cr_digits='0123456789'
171 as_cr_alnum=$as_cr_Letters$as_cr_digits
172
173 # Sed expression to map a string onto a valid variable name.
174 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
175
176 # Sed expression to map a string onto a valid CPP name.
177 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
178
179 # Be Bourne compatible
180 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
181   emulate sh
182   NULLCMD=:
183 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
184   set -o posix
185 fi
186
187 # Name of the executable.
188 as_me=`echo "$0" |sed 's,.*[\\/],,'`
189
190 if expr a : '\(a\)' >/dev/null 2>&1; then
191   as_expr=expr
192 else
193   as_expr=false
194 fi
195
196 rm -f conf$$ conf$$.exe conf$$.file
197 echo >conf$$.file
198 if ln -s conf$$.file conf$$ 2>/dev/null; then
199   # We could just check for DJGPP; but this test a) works b) is more generic
200   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
201   if test -f conf$$.exe; then
202     # Don't use ln at all; we don't have any links
203     as_ln_s='cp -p'
204   else
205     as_ln_s='ln -s'
206   fi
207 elif ln conf$$.file conf$$ 2>/dev/null; then
208   as_ln_s=ln
209 else
210   as_ln_s='cp -p'
211 fi
212 rm -f conf$$ conf$$.exe conf$$.file
213
214 as_executable_p="test -f"
215
216 # Support unset when possible.
217 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
218   as_unset=unset
219 else
220   as_unset=false
221 fi
222
223 # NLS nuisances.
224 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
225 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
226 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
227 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
228 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
229 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
230 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
231 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
241
242 # Name of the host.
243 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
244 # so uname gets run too.
245 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
246
247 exec 6>&1
248
249 #
250 # Initializations.
251 #
252 ac_default_prefix=/usr/local
253 cross_compiling=no
254 subdirs=
255 MFLAGS= MAKEFLAGS=
256 SHELL=${CONFIG_SHELL-/bin/sh}
257
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete.  It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
262
263 ac_unique_file="lib/iconv.c"
264 ac_subdirs_all="$ac_subdirs_all libcharset"
265
266 # Initialize some variables set by options.
267 ac_init_help=
268 ac_init_version=false
269 # The variables have the same names as the options, with
270 # dashes changed to underlines.
271 cache_file=/dev/null
272 exec_prefix=NONE
273 no_create=
274 no_recursion=
275 prefix=NONE
276 program_prefix=NONE
277 program_suffix=NONE
278 program_transform_name=s,x,x,
279 silent=
280 site=
281 srcdir=
282 verbose=
283 x_includes=NONE
284 x_libraries=NONE
285
286 # Installation directory options.
287 # These are left unexpanded so users can "make install exec_prefix=/foo"
288 # and all the variables that are supposed to be based on exec_prefix
289 # by default will actually change.
290 # Use braces instead of parens because sh, perl, etc. also accept them.
291 bindir='${exec_prefix}/bin'
292 sbindir='${exec_prefix}/sbin'
293 libexecdir='${exec_prefix}/libexec'
294 datadir='${prefix}/share'
295 sysconfdir='${prefix}/etc'
296 sharedstatedir='${prefix}/com'
297 localstatedir='${prefix}/var'
298 libdir='${exec_prefix}/lib'
299 includedir='${prefix}/include'
300 oldincludedir='/usr/include'
301 infodir='${prefix}/info'
302 mandir='${prefix}/man'
303
304 # Identity of this package.
305 PACKAGE_NAME='libiconv'
306 PACKAGE_TARNAME='libiconv'
307 PACKAGE_VERSION='1.8'
308 PACKAGE_STRING='libiconv 1.8'
309 PACKAGE_BUGREPORT=''
310
311 ac_prev=
312 for ac_option
313 do
314   # If the previous option needs an argument, assign it.
315   if test -n "$ac_prev"; then
316     eval "$ac_prev=\$ac_option"
317     ac_prev=
318     continue
319   fi
320
321   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
322
323   # Accept the important Cygnus configure options, so we can diagnose typos.
324
325   case $ac_option in
326
327   -bindir | --bindir | --bindi | --bind | --bin | --bi)
328     ac_prev=bindir ;;
329   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
330     bindir=$ac_optarg ;;
331
332   -build | --build | --buil | --bui | --bu)
333     ac_prev=build_alias ;;
334   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
335     build_alias=$ac_optarg ;;
336
337   -cache-file | --cache-file | --cache-fil | --cache-fi \
338   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
339     ac_prev=cache_file ;;
340   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
341   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
342     cache_file=$ac_optarg ;;
343
344   --config-cache | -C)
345     cache_file=config.cache ;;
346
347   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
348     ac_prev=datadir ;;
349   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
350   | --da=*)
351     datadir=$ac_optarg ;;
352
353   -disable-* | --disable-*)
354     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
355     # Reject names that are not valid shell variable names.
356     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
357       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
358    { (exit 1); exit 1; }; }
359     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
360     eval "enable_$ac_feature=no" ;;
361
362   -enable-* | --enable-*)
363     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
364     # Reject names that are not valid shell variable names.
365     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
366       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
367    { (exit 1); exit 1; }; }
368     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
369     case $ac_option in
370       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
371       *) ac_optarg=yes ;;
372     esac
373     eval "enable_$ac_feature='$ac_optarg'" ;;
374
375   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
376   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
377   | --exec | --exe | --ex)
378     ac_prev=exec_prefix ;;
379   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
380   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
381   | --exec=* | --exe=* | --ex=*)
382     exec_prefix=$ac_optarg ;;
383
384   -gas | --gas | --ga | --g)
385     # Obsolete; use --with-gas.
386     with_gas=yes ;;
387
388   -help | --help | --hel | --he | -h)
389     ac_init_help=long ;;
390   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
391     ac_init_help=recursive ;;
392   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
393     ac_init_help=short ;;
394
395   -host | --host | --hos | --ho)
396     ac_prev=host_alias ;;
397   -host=* | --host=* | --hos=* | --ho=*)
398     host_alias=$ac_optarg ;;
399
400   -includedir | --includedir | --includedi | --included | --include \
401   | --includ | --inclu | --incl | --inc)
402     ac_prev=includedir ;;
403   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
404   | --includ=* | --inclu=* | --incl=* | --inc=*)
405     includedir=$ac_optarg ;;
406
407   -infodir | --infodir | --infodi | --infod | --info | --inf)
408     ac_prev=infodir ;;
409   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
410     infodir=$ac_optarg ;;
411
412   -libdir | --libdir | --libdi | --libd)
413     ac_prev=libdir ;;
414   -libdir=* | --libdir=* | --libdi=* | --libd=*)
415     libdir=$ac_optarg ;;
416
417   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
418   | --libexe | --libex | --libe)
419     ac_prev=libexecdir ;;
420   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
421   | --libexe=* | --libex=* | --libe=*)
422     libexecdir=$ac_optarg ;;
423
424   -localstatedir | --localstatedir | --localstatedi | --localstated \
425   | --localstate | --localstat | --localsta | --localst \
426   | --locals | --local | --loca | --loc | --lo)
427     ac_prev=localstatedir ;;
428   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
429   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
430   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
431     localstatedir=$ac_optarg ;;
432
433   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
434     ac_prev=mandir ;;
435   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
436     mandir=$ac_optarg ;;
437
438   -nfp | --nfp | --nf)
439     # Obsolete; use --without-fp.
440     with_fp=no ;;
441
442   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
443   | --no-cr | --no-c)
444     no_create=yes ;;
445
446   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
447   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
448     no_recursion=yes ;;
449
450   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
451   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
452   | --oldin | --oldi | --old | --ol | --o)
453     ac_prev=oldincludedir ;;
454   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
455   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
456   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
457     oldincludedir=$ac_optarg ;;
458
459   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
460     ac_prev=prefix ;;
461   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
462     prefix=$ac_optarg ;;
463
464   -program-prefix | --program-prefix | --program-prefi | --program-pref \
465   | --program-pre | --program-pr | --program-p)
466     ac_prev=program_prefix ;;
467   -program-prefix=* | --program-prefix=* | --program-prefi=* \
468   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
469     program_prefix=$ac_optarg ;;
470
471   -program-suffix | --program-suffix | --program-suffi | --program-suff \
472   | --program-suf | --program-su | --program-s)
473     ac_prev=program_suffix ;;
474   -program-suffix=* | --program-suffix=* | --program-suffi=* \
475   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
476     program_suffix=$ac_optarg ;;
477
478   -program-transform-name | --program-transform-name \
479   | --program-transform-nam | --program-transform-na \
480   | --program-transform-n | --program-transform- \
481   | --program-transform | --program-transfor \
482   | --program-transfo | --program-transf \
483   | --program-trans | --program-tran \
484   | --progr-tra | --program-tr | --program-t)
485     ac_prev=program_transform_name ;;
486   -program-transform-name=* | --program-transform-name=* \
487   | --program-transform-nam=* | --program-transform-na=* \
488   | --program-transform-n=* | --program-transform-=* \
489   | --program-transform=* | --program-transfor=* \
490   | --program-transfo=* | --program-transf=* \
491   | --program-trans=* | --program-tran=* \
492   | --progr-tra=* | --program-tr=* | --program-t=*)
493     program_transform_name=$ac_optarg ;;
494
495   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
496   | -silent | --silent | --silen | --sile | --sil)
497     silent=yes ;;
498
499   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
500     ac_prev=sbindir ;;
501   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
502   | --sbi=* | --sb=*)
503     sbindir=$ac_optarg ;;
504
505   -sharedstatedir | --sharedstatedir | --sharedstatedi \
506   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
507   | --sharedst | --shareds | --shared | --share | --shar \
508   | --sha | --sh)
509     ac_prev=sharedstatedir ;;
510   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
511   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
512   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
513   | --sha=* | --sh=*)
514     sharedstatedir=$ac_optarg ;;
515
516   -site | --site | --sit)
517     ac_prev=site ;;
518   -site=* | --site=* | --sit=*)
519     site=$ac_optarg ;;
520
521   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
522     ac_prev=srcdir ;;
523   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
524     srcdir=$ac_optarg ;;
525
526   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
527   | --syscon | --sysco | --sysc | --sys | --sy)
528     ac_prev=sysconfdir ;;
529   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
530   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
531     sysconfdir=$ac_optarg ;;
532
533   -target | --target | --targe | --targ | --tar | --ta | --t)
534     ac_prev=target_alias ;;
535   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
536     target_alias=$ac_optarg ;;
537
538   -v | -verbose | --verbose | --verbos | --verbo | --verb)
539     verbose=yes ;;
540
541   -version | --version | --versio | --versi | --vers | -V)
542     ac_init_version=: ;;
543
544   -with-* | --with-*)
545     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
546     # Reject names that are not valid shell variable names.
547     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548       { echo "$as_me: error: invalid package name: $ac_package" >&2
549    { (exit 1); exit 1; }; }
550     ac_package=`echo $ac_package| sed 's/-/_/g'`
551     case $ac_option in
552       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
553       *) ac_optarg=yes ;;
554     esac
555     eval "with_$ac_package='$ac_optarg'" ;;
556
557   -without-* | --without-*)
558     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
559     # Reject names that are not valid shell variable names.
560     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561       { echo "$as_me: error: invalid package name: $ac_package" >&2
562    { (exit 1); exit 1; }; }
563     ac_package=`echo $ac_package | sed 's/-/_/g'`
564     eval "with_$ac_package=no" ;;
565
566   --x)
567     # Obsolete; use --with-x.
568     with_x=yes ;;
569
570   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
571   | --x-incl | --x-inc | --x-in | --x-i)
572     ac_prev=x_includes ;;
573   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
574   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
575     x_includes=$ac_optarg ;;
576
577   -x-libraries | --x-libraries | --x-librarie | --x-librari \
578   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
579     ac_prev=x_libraries ;;
580   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
581   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
582     x_libraries=$ac_optarg ;;
583
584   -*) { echo "$as_me: error: unrecognized option: $ac_option
585 Try \`$0 --help' for more information." >&2
586    { (exit 1); exit 1; }; }
587     ;;
588
589   *=*)
590     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
591     # Reject names that are not valid shell variable names.
592     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
593       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
594    { (exit 1); exit 1; }; }
595     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
596     eval "$ac_envvar='$ac_optarg'"
597     export $ac_envvar ;;
598
599   *)
600     # FIXME: should be removed in autoconf 3.0.
601     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
602     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
603       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
604     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
605     ;;
606
607   esac
608 done
609
610 if test -n "$ac_prev"; then
611   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
612   { echo "$as_me: error: missing argument to $ac_option" >&2
613    { (exit 1); exit 1; }; }
614 fi
615
616 # Be sure to have absolute paths.
617 for ac_var in exec_prefix prefix
618 do
619   eval ac_val=$`echo $ac_var`
620   case $ac_val in
621     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
622     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
623    { (exit 1); exit 1; }; };;
624   esac
625 done
626
627 # Be sure to have absolute paths.
628 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
629               localstatedir libdir includedir oldincludedir infodir mandir
630 do
631   eval ac_val=$`echo $ac_var`
632   case $ac_val in
633     [\\/$]* | ?:[\\/]* ) ;;
634     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
635    { (exit 1); exit 1; }; };;
636   esac
637 done
638
639 # There might be people who depend on the old broken behavior: `$host'
640 # used to hold the argument of --host etc.
641 build=$build_alias
642 host=$host_alias
643 target=$target_alias
644
645 # FIXME: should be removed in autoconf 3.0.
646 if test "x$host_alias" != x; then
647   if test "x$build_alias" = x; then
648     cross_compiling=maybe
649     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
650     If a cross compiler is detected then cross compile mode will be used." >&2
651   elif test "x$build_alias" != "x$host_alias"; then
652     cross_compiling=yes
653   fi
654 fi
655
656 ac_tool_prefix=
657 test -n "$host_alias" && ac_tool_prefix=$host_alias-
658
659 test "$silent" = yes && exec 6>/dev/null
660
661 # Find the source files, if location was not specified.
662 if test -z "$srcdir"; then
663   ac_srcdir_defaulted=yes
664   # Try the directory containing this script, then its parent.
665   ac_prog=$0
666   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
667   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
668   srcdir=$ac_confdir
669   if test ! -r $srcdir/$ac_unique_file; then
670     srcdir=..
671   fi
672 else
673   ac_srcdir_defaulted=no
674 fi
675 if test ! -r $srcdir/$ac_unique_file; then
676   if test "$ac_srcdir_defaulted" = yes; then
677     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
678    { (exit 1); exit 1; }; }
679   else
680     { echo "$as_me: error: cannot find sources in $srcdir" >&2
681    { (exit 1); exit 1; }; }
682   fi
683 fi
684 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
685 ac_env_build_alias_set=${build_alias+set}
686 ac_env_build_alias_value=$build_alias
687 ac_cv_env_build_alias_set=${build_alias+set}
688 ac_cv_env_build_alias_value=$build_alias
689 ac_env_host_alias_set=${host_alias+set}
690 ac_env_host_alias_value=$host_alias
691 ac_cv_env_host_alias_set=${host_alias+set}
692 ac_cv_env_host_alias_value=$host_alias
693 ac_env_target_alias_set=${target_alias+set}
694 ac_env_target_alias_value=$target_alias
695 ac_cv_env_target_alias_set=${target_alias+set}
696 ac_cv_env_target_alias_value=$target_alias
697 ac_env_CC_set=${CC+set}
698 ac_env_CC_value=$CC
699 ac_cv_env_CC_set=${CC+set}
700 ac_cv_env_CC_value=$CC
701 ac_env_CFLAGS_set=${CFLAGS+set}
702 ac_env_CFLAGS_value=$CFLAGS
703 ac_cv_env_CFLAGS_set=${CFLAGS+set}
704 ac_cv_env_CFLAGS_value=$CFLAGS
705 ac_env_LDFLAGS_set=${LDFLAGS+set}
706 ac_env_LDFLAGS_value=$LDFLAGS
707 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
708 ac_cv_env_LDFLAGS_value=$LDFLAGS
709 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
710 ac_env_CPPFLAGS_value=$CPPFLAGS
711 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
712 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
713 ac_env_CPP_set=${CPP+set}
714 ac_env_CPP_value=$CPP
715 ac_cv_env_CPP_set=${CPP+set}
716 ac_cv_env_CPP_value=$CPP
717
718 #
719 # Report the --help message.
720 #
721 if test "$ac_init_help" = "long"; then
722   # Omit some internal or obsolete options to make the list less imposing.
723   # This message is too long to be a string in the A/UX 3.1 sh.
724   cat <<EOF
725 \`configure' configures libiconv 1.8 to adapt to many kinds of systems.
726
727 Usage: $0 [OPTION]... [VAR=VALUE]...
728
729 To assign environment variables (e.g., CC, CFLAGS...), specify them as
730 VAR=VALUE.  See below for descriptions of some of the useful variables.
731
732 Defaults for the options are specified in brackets.
733
734 Configuration:
735   -h, --help              display this help and exit
736       --help=short        display options specific to this package
737       --help=recursive    display the short help of all the included packages
738   -V, --version           display version information and exit
739   -q, --quiet, --silent   do not print \`checking...' messages
740       --cache-file=FILE   cache test results in FILE [disabled]
741   -C, --config-cache      alias for \`--cache-file=config.cache'
742   -n, --no-create         do not create output files
743       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
744
745 EOF
746
747   cat <<EOF
748 Installation directories:
749   --prefix=PREFIX         install architecture-independent files in PREFIX
750                           [$ac_default_prefix]
751   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
752                           [PREFIX]
753
754 By default, \`make install' will install all the files in
755 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
756 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
757 for instance \`--prefix=\$HOME'.
758
759 For better control, use the options below.
760
761 Fine tuning of the installation directories:
762   --bindir=DIR           user executables [EPREFIX/bin]
763   --sbindir=DIR          system admin executables [EPREFIX/sbin]
764   --libexecdir=DIR       program executables [EPREFIX/libexec]
765   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
766   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
767   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
768   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
769   --libdir=DIR           object code libraries [EPREFIX/lib]
770   --includedir=DIR       C header files [PREFIX/include]
771   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
772   --infodir=DIR          info documentation [PREFIX/info]
773   --mandir=DIR           man documentation [PREFIX/man]
774 EOF
775
776   cat <<\EOF
777
778 System types:
779   --build=BUILD     configure for building on BUILD [guessed]
780   --host=HOST       build programs to run on HOST [BUILD]
781 EOF
782 fi
783
784 if test -n "$ac_init_help"; then
785   case $ac_init_help in
786      short | recursive ) echo "Configuration of libiconv 1.8:";;
787    esac
788   cat <<\EOF
789
790 Optional Features:
791   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
792   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
793   --enable-extra-encodings
794                           add support for a few rarely used encodings
795   --enable-static=PKGS  build static libraries default=no
796   --enable-shared=PKGS  build shared libraries default=yes
797   --enable-fast-install=PKGS  optimize for fast installation default=yes
798   --disable-libtool-lock  avoid locking (might break parallel builds)
799   --disable-nls           do not use Native Language Support
800
801 Optional Packages:
802   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
803   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
804   --with-gnu-ld           assume the C compiler uses GNU ld default=no
805   --with-pic              try to use only PIC/non-PIC objects default=use both
806   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
807   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
808   --with-libintl-prefix=DIR  search for libintl in DIR/include and DIR/lib
809   --without-libintl-prefix     don't search for libintl in includedir and libdir
810
811 Some influential environment variables:
812   CC          C compiler command
813   CFLAGS      C compiler flags
814   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
815               nonstandard directory <lib dir>
816   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
817               headers in a nonstandard directory <include dir>
818   CPP         C preprocessor
819
820 Use these variables to override the choices made by `configure' or to help
821 it to find libraries and programs with nonstandard names/locations.
822
823 EOF
824 fi
825
826 if test "$ac_init_help" = "recursive"; then
827   # If there are subdirs, report their specific --help.
828   ac_popdir=`pwd`
829   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
830     cd $ac_subdir
831     # A "../" for each directory in /$ac_subdir.
832     ac_dots=`echo $ac_subdir |
833              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
834
835     case $srcdir in
836     .) # No --srcdir option.  We are building in place.
837       ac_sub_srcdir=$srcdir ;;
838     [\\/]* | ?:[\\/]* ) # Absolute path.
839       ac_sub_srcdir=$srcdir/$ac_subdir ;;
840     *) # Relative path.
841       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
842     esac
843
844     # Check for guested configure; otherwise get Cygnus style configure.
845     if test -f $ac_sub_srcdir/configure.gnu; then
846       echo
847       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
848     elif test -f $ac_sub_srcdir/configure; then
849       echo
850       $SHELL $ac_sub_srcdir/configure  --help=recursive
851     elif test -f $ac_sub_srcdir/configure.ac ||
852            test -f $ac_sub_srcdir/configure.in; then
853       echo
854       $ac_configure --help
855     else
856       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
857     fi
858     cd $ac_popdir
859   done
860 fi
861
862 test -n "$ac_init_help" && exit 0
863 if $ac_init_version; then
864   cat <<\EOF
865 libiconv configure 1.8
866 generated by GNU Autoconf 2.52
867
868 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
869 Free Software Foundation, Inc.
870 This configure script is free software; the Free Software Foundation
871 gives unlimited permission to copy, distribute and modify it.
872 EOF
873   exit 0
874 fi
875 exec 5>config.log
876 cat >&5 <<EOF
877 This file contains any messages produced by compilers while
878 running configure, to aid debugging if configure makes a mistake.
879
880 It was created by libiconv $as_me 1.8, which was
881 generated by GNU Autoconf 2.52.  Invocation command line was
882
883   $ $0 $@
884
885 EOF
886 {
887 cat <<_ASUNAME
888 ## ---------- ##
889 ## Platform.  ##
890 ## ---------- ##
891
892 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
893 uname -m = `(uname -m) 2>/dev/null || echo unknown`
894 uname -r = `(uname -r) 2>/dev/null || echo unknown`
895 uname -s = `(uname -s) 2>/dev/null || echo unknown`
896 uname -v = `(uname -v) 2>/dev/null || echo unknown`
897
898 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
899 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
900
901 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
902 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
903 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
904 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
905 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
906 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
907 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
908
909 PATH = $PATH
910
911 _ASUNAME
912 } >&5
913
914 cat >&5 <<EOF
915 ## ------------ ##
916 ## Core tests.  ##
917 ## ------------ ##
918
919 EOF
920
921 # Keep a trace of the command line.
922 # Strip out --no-create and --no-recursion so they do not pile up.
923 # Also quote any args containing shell meta-characters.
924 ac_configure_args=
925 ac_sep=
926 for ac_arg
927 do
928   case $ac_arg in
929   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
930   | --no-cr | --no-c) ;;
931   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
932   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
933   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
934     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
935     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
936     ac_sep=" " ;;
937   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
938      ac_sep=" " ;;
939   esac
940   # Get rid of the leading space.
941 done
942
943 # When interrupted or exit'd, cleanup temporary files, and complete
944 # config.log.  We remove comments because anyway the quotes in there
945 # would cause problems or look ugly.
946 trap 'exit_status=$?
947   # Save into config.log some information that might help in debugging.
948   echo >&5
949   echo "## ----------------- ##" >&5
950   echo "## Cache variables.  ##" >&5
951   echo "## ----------------- ##" >&5
952   echo >&5
953   # The following way of writing the cache mishandles newlines in values,
954 {
955   (set) 2>&1 |
956     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
957     *ac_space=\ *)
958       sed -n \
959         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
960           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
961       ;;
962     *)
963       sed -n \
964         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
965       ;;
966     esac;
967 } >&5
968   sed "/^$/d" confdefs.h >conftest.log
969   if test -s conftest.log; then
970     echo >&5
971     echo "## ------------ ##" >&5
972     echo "## confdefs.h.  ##" >&5
973     echo "## ------------ ##" >&5
974     echo >&5
975     cat conftest.log >&5
976   fi
977   (echo; echo) >&5
978   test "$ac_signal" != 0 &&
979     echo "$as_me: caught signal $ac_signal" >&5
980   echo "$as_me: exit $exit_status" >&5
981   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
982     exit $exit_status
983      ' 0
984 for ac_signal in 1 2 13 15; do
985   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
986 done
987 ac_signal=0
988
989 # confdefs.h avoids OS command line length limits that DEFS can exceed.
990 rm -rf conftest* confdefs.h
991 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
992 echo >confdefs.h
993
994 # Let the site file select an alternate cache file if it wants to.
995 # Prefer explicitly selected file to automatically selected ones.
996 if test -z "$CONFIG_SITE"; then
997   if test "x$prefix" != xNONE; then
998     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
999   else
1000     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1001   fi
1002 fi
1003 for ac_site_file in $CONFIG_SITE; do
1004   if test -r "$ac_site_file"; then
1005     { echo "$as_me:1005: loading site script $ac_site_file" >&5
1006 echo "$as_me: loading site script $ac_site_file" >&6;}
1007     cat "$ac_site_file" >&5
1008     . "$ac_site_file"
1009   fi
1010 done
1011
1012 if test -r "$cache_file"; then
1013   # Some versions of bash will fail to source /dev/null (special
1014   # files actually), so we avoid doing that.
1015   if test -f "$cache_file"; then
1016     { echo "$as_me:1016: loading cache $cache_file" >&5
1017 echo "$as_me: loading cache $cache_file" >&6;}
1018     case $cache_file in
1019       [\\/]* | ?:[\\/]* ) . $cache_file;;
1020       *)                      . ./$cache_file;;
1021     esac
1022   fi
1023 else
1024   { echo "$as_me:1024: creating cache $cache_file" >&5
1025 echo "$as_me: creating cache $cache_file" >&6;}
1026   >$cache_file
1027 fi
1028
1029 # Check that the precious variables saved in the cache have kept the same
1030 # value.
1031 ac_cache_corrupted=false
1032 for ac_var in `(set) 2>&1 |
1033                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1034   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1035   eval ac_new_set=\$ac_env_${ac_var}_set
1036   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1037   eval ac_new_val="\$ac_env_${ac_var}_value"
1038   case $ac_old_set,$ac_new_set in
1039     set,)
1040       { echo "$as_me:1040: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1041 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1042       ac_cache_corrupted=: ;;
1043     ,set)
1044       { echo "$as_me:1044: error: \`$ac_var' was not set in the previous run" >&5
1045 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1046       ac_cache_corrupted=: ;;
1047     ,);;
1048     *)
1049       if test "x$ac_old_val" != "x$ac_new_val"; then
1050         { echo "$as_me:1050: error: \`$ac_var' has changed since the previous run:" >&5
1051 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1052         { echo "$as_me:1052:   former value:  $ac_old_val" >&5
1053 echo "$as_me:   former value:  $ac_old_val" >&2;}
1054         { echo "$as_me:1054:   current value: $ac_new_val" >&5
1055 echo "$as_me:   current value: $ac_new_val" >&2;}
1056         ac_cache_corrupted=:
1057       fi;;
1058   esac
1059   # Pass precious variables to config.status.  It doesn't matter if
1060   # we pass some twice (in addition to the command line arguments).
1061   if test "$ac_new_set" = set; then
1062     case $ac_new_val in
1063     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1065       ac_configure_args="$ac_configure_args '$ac_arg'"
1066       ;;
1067     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1068        ;;
1069     esac
1070   fi
1071 done
1072 if $ac_cache_corrupted; then
1073   { echo "$as_me:1073: error: changes in the environment can compromise the build" >&5
1074 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1075   { { echo "$as_me:1075: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1076 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1077    { (exit 1); exit 1; }; }
1078 fi
1079
1080 ac_ext=c
1081 ac_cpp='$CPP $CPPFLAGS'
1082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1085
1086 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1087   *c*,-n*) ECHO_N= ECHO_C='
1088 ' ECHO_T='      ' ;;
1089   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1090   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
1091 esac
1092 echo "#! $SHELL" >conftest.sh
1093 echo  "exit 0"   >>conftest.sh
1094 chmod +x conftest.sh
1095 if { (echo "$as_me:1095: PATH=\".;.\"; conftest.sh") >&5
1096   (PATH=".;."; conftest.sh) 2>&5
1097   ac_status=$?
1098   echo "$as_me:1098: \$? = $ac_status" >&5
1099   (exit $ac_status); }; then
1100   ac_path_separator=';'
1101 else
1102   ac_path_separator=:
1103 fi
1104 PATH_SEPARATOR="$ac_path_separator"
1105 rm -f conftest.sh
1106
1107 PACKAGE=$PACKAGE_NAME
1108 VERSION=$PACKAGE_VERSION
1109 cat >>confdefs.h <<EOF
1110 #define PACKAGE "$PACKAGE"
1111 EOF
1112
1113 cat >>confdefs.h <<EOF
1114 #define VERSION "$VERSION"
1115 EOF
1116
1117 ac_aux_dir=
1118 for ac_dir in autoconf $srcdir/autoconf; do
1119   if test -f $ac_dir/install-sh; then
1120     ac_aux_dir=$ac_dir
1121     ac_install_sh="$ac_aux_dir/install-sh -c"
1122     break
1123   elif test -f $ac_dir/install.sh; then
1124     ac_aux_dir=$ac_dir
1125     ac_install_sh="$ac_aux_dir/install.sh -c"
1126     break
1127   elif test -f $ac_dir/shtool; then
1128     ac_aux_dir=$ac_dir
1129     ac_install_sh="$ac_aux_dir/shtool install -c"
1130     break
1131   fi
1132 done
1133 if test -z "$ac_aux_dir"; then
1134   { { echo "$as_me:1134: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1135 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1136    { (exit 1); exit 1; }; }
1137 fi
1138 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1139 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1140 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1141
1142 ac_config_headers="$ac_config_headers lib/config.h src/config.h"
1143
1144 echo "$as_me:1144: checking whether ${MAKE-make} sets \${MAKE}" >&5
1145 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1146 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1147 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1148   echo $ECHO_N "(cached) $ECHO_C" >&6
1149 else
1150   cat >conftest.make <<\EOF
1151 all:
1152         @echo 'ac_maketemp="${MAKE}"'
1153 EOF
1154 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1155 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1156 if test -n "$ac_maketemp"; then
1157   eval ac_cv_prog_make_${ac_make}_set=yes
1158 else
1159   eval ac_cv_prog_make_${ac_make}_set=no
1160 fi
1161 rm -f conftest.make
1162 fi
1163 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1164   echo "$as_me:1164: result: yes" >&5
1165 echo "${ECHO_T}yes" >&6
1166   SET_MAKE=
1167 else
1168   echo "$as_me:1168: result: no" >&5
1169 echo "${ECHO_T}no" >&6
1170   SET_MAKE="MAKE=${MAKE-make}"
1171 fi
1172
1173 # Check whether --enable-extra-encodings or --disable-extra-encodings was given.
1174 if test "${enable_extra_encodings+set}" = set; then
1175   enableval="$enable_extra_encodings"
1176
1177 cat >>confdefs.h <<\EOF
1178 #define ENABLE_EXTRA 1
1179 EOF
1180
1181    USE_EXTRA_ENCODINGS=yes
1182 else
1183   USE_EXTRA_ENCODINGS=no
1184 fi;
1185
1186 ac_ext=c
1187 ac_cpp='$CPP $CPPFLAGS'
1188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1191 if test -n "$ac_tool_prefix"; then
1192   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1193 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1194 echo "$as_me:1194: checking for $ac_word" >&5
1195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1196 if test "${ac_cv_prog_CC+set}" = set; then
1197   echo $ECHO_N "(cached) $ECHO_C" >&6
1198 else
1199   if test -n "$CC"; then
1200   ac_cv_prog_CC="$CC" # Let the user override the test.
1201 else
1202   ac_save_IFS=$IFS; IFS=$ac_path_separator
1203 ac_dummy="$PATH"
1204 for ac_dir in $ac_dummy; do
1205   IFS=$ac_save_IFS
1206   test -z "$ac_dir" && ac_dir=.
1207   $as_executable_p "$ac_dir/$ac_word" || continue
1208 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1209 echo "$as_me:1209: found $ac_dir/$ac_word" >&5
1210 break
1211 done
1212
1213 fi
1214 fi
1215 CC=$ac_cv_prog_CC
1216 if test -n "$CC"; then
1217   echo "$as_me:1217: result: $CC" >&5
1218 echo "${ECHO_T}$CC" >&6
1219 else
1220   echo "$as_me:1220: result: no" >&5
1221 echo "${ECHO_T}no" >&6
1222 fi
1223
1224 fi
1225 if test -z "$ac_cv_prog_CC"; then
1226   ac_ct_CC=$CC
1227   # Extract the first word of "gcc", so it can be a program name with args.
1228 set dummy gcc; ac_word=$2
1229 echo "$as_me:1229: checking for $ac_word" >&5
1230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1231 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1232   echo $ECHO_N "(cached) $ECHO_C" >&6
1233 else
1234   if test -n "$ac_ct_CC"; then
1235   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1236 else
1237   ac_save_IFS=$IFS; IFS=$ac_path_separator
1238 ac_dummy="$PATH"
1239 for ac_dir in $ac_dummy; do
1240   IFS=$ac_save_IFS
1241   test -z "$ac_dir" && ac_dir=.
1242   $as_executable_p "$ac_dir/$ac_word" || continue
1243 ac_cv_prog_ac_ct_CC="gcc"
1244 echo "$as_me:1244: found $ac_dir/$ac_word" >&5
1245 break
1246 done
1247
1248 fi
1249 fi
1250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1251 if test -n "$ac_ct_CC"; then
1252   echo "$as_me:1252: result: $ac_ct_CC" >&5
1253 echo "${ECHO_T}$ac_ct_CC" >&6
1254 else
1255   echo "$as_me:1255: result: no" >&5
1256 echo "${ECHO_T}no" >&6
1257 fi
1258
1259   CC=$ac_ct_CC
1260 else
1261   CC="$ac_cv_prog_CC"
1262 fi
1263
1264 if test -z "$CC"; then
1265   if test -n "$ac_tool_prefix"; then
1266   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1267 set dummy ${ac_tool_prefix}cc; ac_word=$2
1268 echo "$as_me:1268: checking for $ac_word" >&5
1269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1270 if test "${ac_cv_prog_CC+set}" = set; then
1271   echo $ECHO_N "(cached) $ECHO_C" >&6
1272 else
1273   if test -n "$CC"; then
1274   ac_cv_prog_CC="$CC" # Let the user override the test.
1275 else
1276   ac_save_IFS=$IFS; IFS=$ac_path_separator
1277 ac_dummy="$PATH"
1278 for ac_dir in $ac_dummy; do
1279   IFS=$ac_save_IFS
1280   test -z "$ac_dir" && ac_dir=.
1281   $as_executable_p "$ac_dir/$ac_word" || continue
1282 ac_cv_prog_CC="${ac_tool_prefix}cc"
1283 echo "$as_me:1283: found $ac_dir/$ac_word" >&5
1284 break
1285 done
1286
1287 fi
1288 fi
1289 CC=$ac_cv_prog_CC
1290 if test -n "$CC"; then
1291   echo "$as_me:1291: result: $CC" >&5
1292 echo "${ECHO_T}$CC" >&6
1293 else
1294   echo "$as_me:1294: result: no" >&5
1295 echo "${ECHO_T}no" >&6
1296 fi
1297
1298 fi
1299 if test -z "$ac_cv_prog_CC"; then
1300   ac_ct_CC=$CC
1301   # Extract the first word of "cc", so it can be a program name with args.
1302 set dummy cc; ac_word=$2
1303 echo "$as_me:1303: checking for $ac_word" >&5
1304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1305 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1306   echo $ECHO_N "(cached) $ECHO_C" >&6
1307 else
1308   if test -n "$ac_ct_CC"; then
1309   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1310 else
1311   ac_save_IFS=$IFS; IFS=$ac_path_separator
1312 ac_dummy="$PATH"
1313 for ac_dir in $ac_dummy; do
1314   IFS=$ac_save_IFS
1315   test -z "$ac_dir" && ac_dir=.
1316   $as_executable_p "$ac_dir/$ac_word" || continue
1317 ac_cv_prog_ac_ct_CC="cc"
1318 echo "$as_me:1318: found $ac_dir/$ac_word" >&5
1319 break
1320 done
1321
1322 fi
1323 fi
1324 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1325 if test -n "$ac_ct_CC"; then
1326   echo "$as_me:1326: result: $ac_ct_CC" >&5
1327 echo "${ECHO_T}$ac_ct_CC" >&6
1328 else
1329   echo "$as_me:1329: result: no" >&5
1330 echo "${ECHO_T}no" >&6
1331 fi
1332
1333   CC=$ac_ct_CC
1334 else
1335   CC="$ac_cv_prog_CC"
1336 fi
1337
1338 fi
1339 if test -z "$CC"; then
1340   # Extract the first word of "cc", so it can be a program name with args.
1341 set dummy cc; ac_word=$2
1342 echo "$as_me:1342: checking for $ac_word" >&5
1343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1344 if test "${ac_cv_prog_CC+set}" = set; then
1345   echo $ECHO_N "(cached) $ECHO_C" >&6
1346 else
1347   if test -n "$CC"; then
1348   ac_cv_prog_CC="$CC" # Let the user override the test.
1349 else
1350   ac_prog_rejected=no
1351   ac_save_IFS=$IFS; IFS=$ac_path_separator
1352 ac_dummy="$PATH"
1353 for ac_dir in $ac_dummy; do
1354   IFS=$ac_save_IFS
1355   test -z "$ac_dir" && ac_dir=.
1356   $as_executable_p "$ac_dir/$ac_word" || continue
1357 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1358   ac_prog_rejected=yes
1359   continue
1360 fi
1361 ac_cv_prog_CC="cc"
1362 echo "$as_me:1362: found $ac_dir/$ac_word" >&5
1363 break
1364 done
1365
1366 if test $ac_prog_rejected = yes; then
1367   # We found a bogon in the path, so make sure we never use it.
1368   set dummy $ac_cv_prog_CC
1369   shift
1370   if test $# != 0; then
1371     # We chose a different compiler from the bogus one.
1372     # However, it has the same basename, so the bogon will be chosen
1373     # first if we set CC to just the basename; use the full file name.
1374     shift
1375     set dummy "$ac_dir/$ac_word" ${1+"$@"}
1376     shift
1377     ac_cv_prog_CC="$@"
1378   fi
1379 fi
1380 fi
1381 fi
1382 CC=$ac_cv_prog_CC
1383 if test -n "$CC"; then
1384   echo "$as_me:1384: result: $CC" >&5
1385 echo "${ECHO_T}$CC" >&6
1386 else
1387   echo "$as_me:1387: result: no" >&5
1388 echo "${ECHO_T}no" >&6
1389 fi
1390
1391 fi
1392 if test -z "$CC"; then
1393   if test -n "$ac_tool_prefix"; then
1394   for ac_prog in cl
1395   do
1396     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1397 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1398 echo "$as_me:1398: checking for $ac_word" >&5
1399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1400 if test "${ac_cv_prog_CC+set}" = set; then
1401   echo $ECHO_N "(cached) $ECHO_C" >&6
1402 else
1403   if test -n "$CC"; then
1404   ac_cv_prog_CC="$CC" # Let the user override the test.
1405 else
1406   ac_save_IFS=$IFS; IFS=$ac_path_separator
1407 ac_dummy="$PATH"
1408 for ac_dir in $ac_dummy; do
1409   IFS=$ac_save_IFS
1410   test -z "$ac_dir" && ac_dir=.
1411   $as_executable_p "$ac_dir/$ac_word" || continue
1412 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1413 echo "$as_me:1413: found $ac_dir/$ac_word" >&5
1414 break
1415 done
1416
1417 fi
1418 fi
1419 CC=$ac_cv_prog_CC
1420 if test -n "$CC"; then
1421   echo "$as_me:1421: result: $CC" >&5
1422 echo "${ECHO_T}$CC" >&6
1423 else
1424   echo "$as_me:1424: result: no" >&5
1425 echo "${ECHO_T}no" >&6
1426 fi
1427
1428     test -n "$CC" && break
1429   done
1430 fi
1431 if test -z "$CC"; then
1432   ac_ct_CC=$CC
1433   for ac_prog in cl
1434 do
1435   # Extract the first word of "$ac_prog", so it can be a program name with args.
1436 set dummy $ac_prog; ac_word=$2
1437 echo "$as_me:1437: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1440   echo $ECHO_N "(cached) $ECHO_C" >&6
1441 else
1442   if test -n "$ac_ct_CC"; then
1443   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1444 else
1445   ac_save_IFS=$IFS; IFS=$ac_path_separator
1446 ac_dummy="$PATH"
1447 for ac_dir in $ac_dummy; do
1448   IFS=$ac_save_IFS
1449   test -z "$ac_dir" && ac_dir=.
1450   $as_executable_p "$ac_dir/$ac_word" || continue
1451 ac_cv_prog_ac_ct_CC="$ac_prog"
1452 echo "$as_me:1452: found $ac_dir/$ac_word" >&5
1453 break
1454 done
1455
1456 fi
1457 fi
1458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1459 if test -n "$ac_ct_CC"; then
1460   echo "$as_me:1460: result: $ac_ct_CC" >&5
1461 echo "${ECHO_T}$ac_ct_CC" >&6
1462 else
1463   echo "$as_me:1463: result: no" >&5
1464 echo "${ECHO_T}no" >&6
1465 fi
1466
1467   test -n "$ac_ct_CC" && break
1468 done
1469
1470   CC=$ac_ct_CC
1471 fi
1472
1473 fi
1474
1475 test -z "$CC" && { { echo "$as_me:1475: error: no acceptable cc found in \$PATH" >&5
1476 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1477    { (exit 1); exit 1; }; }
1478
1479 # Provide some information about the compiler.
1480 echo "$as_me:1480:" \
1481      "checking for C compiler version" >&5
1482 ac_compiler=`set X $ac_compile; echo $2`
1483 { (eval echo "$as_me:1483: \"$ac_compiler --version </dev/null >&5\"") >&5
1484   (eval $ac_compiler --version </dev/null >&5) 2>&5
1485   ac_status=$?
1486   echo "$as_me:1486: \$? = $ac_status" >&5
1487   (exit $ac_status); }
1488 { (eval echo "$as_me:1488: \"$ac_compiler -v </dev/null >&5\"") >&5
1489   (eval $ac_compiler -v </dev/null >&5) 2>&5
1490   ac_status=$?
1491   echo "$as_me:1491: \$? = $ac_status" >&5
1492   (exit $ac_status); }
1493 { (eval echo "$as_me:1493: \"$ac_compiler -V </dev/null >&5\"") >&5
1494   (eval $ac_compiler -V </dev/null >&5) 2>&5
1495   ac_status=$?
1496   echo "$as_me:1496: \$? = $ac_status" >&5
1497   (exit $ac_status); }
1498
1499 cat >conftest.$ac_ext <<_ACEOF
1500 #line 1500 "configure"
1501 #include "confdefs.h"
1502
1503 int
1504 main ()
1505 {
1506
1507   ;
1508   return 0;
1509 }
1510 _ACEOF
1511 ac_clean_files_save=$ac_clean_files
1512 ac_clean_files="$ac_clean_files a.out a.exe"
1513 # Try to create an executable without -o first, disregard a.out.
1514 # It will help us diagnose broken compilers, and finding out an intuition
1515 # of exeext.
1516 echo "$as_me:1516: checking for C compiler default output" >&5
1517 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1518 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1519 if { (eval echo "$as_me:1519: \"$ac_link_default\"") >&5
1520   (eval $ac_link_default) 2>&5
1521   ac_status=$?
1522   echo "$as_me:1522: \$? = $ac_status" >&5
1523   (exit $ac_status); }; then
1524   # Find the output, starting from the most likely.  This scheme is
1525 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1526 # resort.
1527 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1528                 ls a.out conftest 2>/dev/null;
1529                 ls a.* conftest.* 2>/dev/null`; do
1530   case $ac_file in
1531     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1532     a.out ) # We found the default executable, but exeext='' is most
1533             # certainly right.
1534             break;;
1535     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1536           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1537           export ac_cv_exeext
1538           break;;
1539     * ) break;;
1540   esac
1541 done
1542 else
1543   echo "$as_me: failed program was:" >&5
1544 cat conftest.$ac_ext >&5
1545 { { echo "$as_me:1545: error: C compiler cannot create executables" >&5
1546 echo "$as_me: error: C compiler cannot create executables" >&2;}
1547    { (exit 77); exit 77; }; }
1548 fi
1549
1550 ac_exeext=$ac_cv_exeext
1551 echo "$as_me:1551: result: $ac_file" >&5
1552 echo "${ECHO_T}$ac_file" >&6
1553
1554 # Check the compiler produces executables we can run.  If not, either
1555 # the compiler is broken, or we cross compile.
1556 echo "$as_me:1556: checking whether the C compiler works" >&5
1557 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1558 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1559 # If not cross compiling, check that we can run a simple program.
1560 if test "$cross_compiling" != yes; then
1561   if { ac_try='./$ac_file'
1562   { (eval echo "$as_me:1562: \"$ac_try\"") >&5
1563   (eval $ac_try) 2>&5
1564   ac_status=$?
1565   echo "$as_me:1565: \$? = $ac_status" >&5
1566   (exit $ac_status); }; }; then
1567     cross_compiling=no
1568   else
1569     if test "$cross_compiling" = maybe; then
1570         cross_compiling=yes
1571     else
1572         { { echo "$as_me:1572: error: cannot run C compiled programs.
1573 If you meant to cross compile, use \`--host'." >&5
1574 echo "$as_me: error: cannot run C compiled programs.
1575 If you meant to cross compile, use \`--host'." >&2;}
1576    { (exit 1); exit 1; }; }
1577     fi
1578   fi
1579 fi
1580 echo "$as_me:1580: result: yes" >&5
1581 echo "${ECHO_T}yes" >&6
1582
1583 rm -f a.out a.exe conftest$ac_cv_exeext
1584 ac_clean_files=$ac_clean_files_save
1585 # Check the compiler produces executables we can run.  If not, either
1586 # the compiler is broken, or we cross compile.
1587 echo "$as_me:1587: checking whether we are cross compiling" >&5
1588 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1589 echo "$as_me:1589: result: $cross_compiling" >&5
1590 echo "${ECHO_T}$cross_compiling" >&6
1591
1592 echo "$as_me:1592: checking for executable suffix" >&5
1593 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1594 if { (eval echo "$as_me:1594: \"$ac_link\"") >&5
1595   (eval $ac_link) 2>&5
1596   ac_status=$?
1597   echo "$as_me:1597: \$? = $ac_status" >&5
1598   (exit $ac_status); }; then
1599   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1600 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1601 # work properly (i.e., refer to `conftest.exe'), while it won't with
1602 # `rm'.
1603 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1604   case $ac_file in
1605     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1606     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1607           export ac_cv_exeext
1608           break;;
1609     * ) break;;
1610   esac
1611 done
1612 else
1613   { { echo "$as_me:1613: error: cannot compute EXEEXT: cannot compile and link" >&5
1614 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1615    { (exit 1); exit 1; }; }
1616 fi
1617
1618 rm -f conftest$ac_cv_exeext
1619 echo "$as_me:1619: result: $ac_cv_exeext" >&5
1620 echo "${ECHO_T}$ac_cv_exeext" >&6
1621
1622 rm -f conftest.$ac_ext
1623 EXEEXT=$ac_cv_exeext
1624 ac_exeext=$EXEEXT
1625 echo "$as_me:1625: checking for object suffix" >&5
1626 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1627 if test "${ac_cv_objext+set}" = set; then
1628   echo $ECHO_N "(cached) $ECHO_C" >&6
1629 else
1630   cat >conftest.$ac_ext <<_ACEOF
1631 #line 1631 "configure"
1632 #include "confdefs.h"
1633
1634 int
1635 main ()
1636 {
1637
1638   ;
1639   return 0;
1640 }
1641 _ACEOF
1642 rm -f conftest.o conftest.obj
1643 if { (eval echo "$as_me:1643: \"$ac_compile\"") >&5
1644   (eval $ac_compile) 2>&5
1645   ac_status=$?
1646   echo "$as_me:1646: \$? = $ac_status" >&5
1647   (exit $ac_status); }; then
1648   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1649   case $ac_file in
1650     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1651     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1652        break;;
1653   esac
1654 done
1655 else
1656   echo "$as_me: failed program was:" >&5
1657 cat conftest.$ac_ext >&5
1658 { { echo "$as_me:1658: error: cannot compute OBJEXT: cannot compile" >&5
1659 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1660    { (exit 1); exit 1; }; }
1661 fi
1662
1663 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1664 fi
1665 echo "$as_me:1665: result: $ac_cv_objext" >&5
1666 echo "${ECHO_T}$ac_cv_objext" >&6
1667 OBJEXT=$ac_cv_objext
1668 ac_objext=$OBJEXT
1669 echo "$as_me:1669: checking whether we are using the GNU C compiler" >&5
1670 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1671 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1672   echo $ECHO_N "(cached) $ECHO_C" >&6
1673 else
1674   cat >conftest.$ac_ext <<_ACEOF
1675 #line 1675 "configure"
1676 #include "confdefs.h"
1677
1678 int
1679 main ()
1680 {
1681 #ifndef __GNUC__
1682        choke me
1683 #endif
1684
1685   ;
1686   return 0;
1687 }
1688 _ACEOF
1689 rm -f conftest.$ac_objext
1690 if { (eval echo "$as_me:1690: \"$ac_compile\"") >&5
1691   (eval $ac_compile) 2>&5
1692   ac_status=$?
1693   echo "$as_me:1693: \$? = $ac_status" >&5
1694   (exit $ac_status); } &&
1695          { ac_try='test -s conftest.$ac_objext'
1696   { (eval echo "$as_me:1696: \"$ac_try\"") >&5
1697   (eval $ac_try) 2>&5
1698   ac_status=$?
1699   echo "$as_me:1699: \$? = $ac_status" >&5
1700   (exit $ac_status); }; }; then
1701   ac_compiler_gnu=yes
1702 else
1703   echo "$as_me: failed program was:" >&5
1704 cat conftest.$ac_ext >&5
1705 ac_compiler_gnu=no
1706 fi
1707 rm -f conftest.$ac_objext conftest.$ac_ext
1708 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1709
1710 fi
1711 echo "$as_me:1711: result: $ac_cv_c_compiler_gnu" >&5
1712 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1713 GCC=`test $ac_compiler_gnu = yes && echo yes`
1714 ac_test_CFLAGS=${CFLAGS+set}
1715 ac_save_CFLAGS=$CFLAGS
1716 CFLAGS="-g"
1717 echo "$as_me:1717: checking whether $CC accepts -g" >&5
1718 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1719 if test "${ac_cv_prog_cc_g+set}" = set; then
1720   echo $ECHO_N "(cached) $ECHO_C" >&6
1721 else
1722   cat >conftest.$ac_ext <<_ACEOF
1723 #line 1723 "configure"
1724 #include "confdefs.h"
1725
1726 int
1727 main ()
1728 {
1729
1730   ;
1731   return 0;
1732 }
1733 _ACEOF
1734 rm -f conftest.$ac_objext
1735 if { (eval echo "$as_me:1735: \"$ac_compile\"") >&5
1736   (eval $ac_compile) 2>&5
1737   ac_status=$?
1738   echo "$as_me:1738: \$? = $ac_status" >&5
1739   (exit $ac_status); } &&
1740          { ac_try='test -s conftest.$ac_objext'
1741   { (eval echo "$as_me:1741: \"$ac_try\"") >&5
1742   (eval $ac_try) 2>&5
1743   ac_status=$?
1744   echo "$as_me:1744: \$? = $ac_status" >&5
1745   (exit $ac_status); }; }; then
1746   ac_cv_prog_cc_g=yes
1747 else
1748   echo "$as_me: failed program was:" >&5
1749 cat conftest.$ac_ext >&5
1750 ac_cv_prog_cc_g=no
1751 fi
1752 rm -f conftest.$ac_objext conftest.$ac_ext
1753 fi
1754 echo "$as_me:1754: result: $ac_cv_prog_cc_g" >&5
1755 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1756 if test "$ac_test_CFLAGS" = set; then
1757   CFLAGS=$ac_save_CFLAGS
1758 elif test $ac_cv_prog_cc_g = yes; then
1759   if test "$GCC" = yes; then
1760     CFLAGS="-g -O2"
1761   else
1762     CFLAGS="-g"
1763   fi
1764 else
1765   if test "$GCC" = yes; then
1766     CFLAGS="-O2"
1767   else
1768     CFLAGS=
1769   fi
1770 fi
1771 # Some people use a C++ compiler to compile C.  Since we use `exit',
1772 # in C++ we need to declare it.  In case someone uses the same compiler
1773 # for both compiling C and C++ we need to have the C++ compiler decide
1774 # the declaration of exit, since it's the most demanding environment.
1775 cat >conftest.$ac_ext <<_ACEOF
1776 #ifndef __cplusplus
1777   choke me
1778 #endif
1779 _ACEOF
1780 rm -f conftest.$ac_objext
1781 if { (eval echo "$as_me:1781: \"$ac_compile\"") >&5
1782   (eval $ac_compile) 2>&5
1783   ac_status=$?
1784   echo "$as_me:1784: \$? = $ac_status" >&5
1785   (exit $ac_status); } &&
1786          { ac_try='test -s conftest.$ac_objext'
1787   { (eval echo "$as_me:1787: \"$ac_try\"") >&5
1788   (eval $ac_try) 2>&5
1789   ac_status=$?
1790   echo "$as_me:1790: \$? = $ac_status" >&5
1791   (exit $ac_status); }; }; then
1792   for ac_declaration in \
1793    ''\
1794    '#include <stdlib.h>' \
1795    'extern "C" void std::exit (int) throw (); using std::exit;' \
1796    'extern "C" void std::exit (int); using std::exit;' \
1797    'extern "C" void exit (int) throw ();' \
1798    'extern "C" void exit (int);' \
1799    'void exit (int);'
1800 do
1801   cat >conftest.$ac_ext <<_ACEOF
1802 #line 1802 "configure"
1803 #include "confdefs.h"
1804 #include <stdlib.h>
1805 $ac_declaration
1806 int
1807 main ()
1808 {
1809 exit (42);
1810   ;
1811   return 0;
1812 }
1813 _ACEOF
1814 rm -f conftest.$ac_objext
1815 if { (eval echo "$as_me:1815: \"$ac_compile\"") >&5
1816   (eval $ac_compile) 2>&5
1817   ac_status=$?
1818   echo "$as_me:1818: \$? = $ac_status" >&5
1819   (exit $ac_status); } &&
1820          { ac_try='test -s conftest.$ac_objext'
1821   { (eval echo "$as_me:1821: \"$ac_try\"") >&5
1822   (eval $ac_try) 2>&5
1823   ac_status=$?
1824   echo "$as_me:1824: \$? = $ac_status" >&5
1825   (exit $ac_status); }; }; then
1826   :
1827 else
1828   echo "$as_me: failed program was:" >&5
1829 cat conftest.$ac_ext >&5
1830 continue
1831 fi
1832 rm -f conftest.$ac_objext conftest.$ac_ext
1833   cat >conftest.$ac_ext <<_ACEOF
1834 #line 1834 "configure"
1835 #include "confdefs.h"
1836 $ac_declaration
1837 int
1838 main ()
1839 {
1840 exit (42);
1841   ;
1842   return 0;
1843 }
1844 _ACEOF
1845 rm -f conftest.$ac_objext
1846 if { (eval echo "$as_me:1846: \"$ac_compile\"") >&5
1847   (eval $ac_compile) 2>&5
1848   ac_status=$?
1849   echo "$as_me:1849: \$? = $ac_status" >&5
1850   (exit $ac_status); } &&
1851          { ac_try='test -s conftest.$ac_objext'
1852   { (eval echo "$as_me:1852: \"$ac_try\"") >&5
1853   (eval $ac_try) 2>&5
1854   ac_status=$?
1855   echo "$as_me:1855: \$? = $ac_status" >&5
1856   (exit $ac_status); }; }; then
1857   break
1858 else
1859   echo "$as_me: failed program was:" >&5
1860 cat conftest.$ac_ext >&5
1861 fi
1862 rm -f conftest.$ac_objext conftest.$ac_ext
1863 done
1864 rm -f conftest*
1865 if test -n "$ac_declaration"; then
1866   echo '#ifdef __cplusplus' >>confdefs.h
1867   echo $ac_declaration      >>confdefs.h
1868   echo '#endif'             >>confdefs.h
1869 fi
1870
1871 else
1872   echo "$as_me: failed program was:" >&5
1873 cat conftest.$ac_ext >&5
1874 fi
1875 rm -f conftest.$ac_objext conftest.$ac_ext
1876 ac_ext=c
1877 ac_cpp='$CPP $CPPFLAGS'
1878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1881
1882 ac_ext=c
1883 ac_cpp='$CPP $CPPFLAGS'
1884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1887 echo "$as_me:1887: checking how to run the C preprocessor" >&5
1888 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1889 # On Suns, sometimes $CPP names a directory.
1890 if test -n "$CPP" && test -d "$CPP"; then
1891   CPP=
1892 fi
1893 if test -z "$CPP"; then
1894   if test "${ac_cv_prog_CPP+set}" = set; then
1895   echo $ECHO_N "(cached) $ECHO_C" >&6
1896 else
1897       # Double quotes because CPP needs to be expanded
1898     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1899     do
1900       ac_preproc_ok=false
1901 for ac_c_preproc_warn_flag in '' yes
1902 do
1903   # Use a header file that comes with gcc, so configuring glibc
1904   # with a fresh cross-compiler works.
1905   # On the NeXT, cc -E runs the code through the compiler's parser,
1906   # not just through cpp. "Syntax error" is here to catch this case.
1907   cat >conftest.$ac_ext <<_ACEOF
1908 #line 1908 "configure"
1909 #include "confdefs.h"
1910 #include <assert.h>
1911                      Syntax error
1912 _ACEOF
1913 if { (eval echo "$as_me:1913: \"$ac_cpp conftest.$ac_ext\"") >&5
1914   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1915   ac_status=$?
1916   egrep -v '^ *\+' conftest.er1 >conftest.err
1917   rm -f conftest.er1
1918   cat conftest.err >&5
1919   echo "$as_me:1919: \$? = $ac_status" >&5
1920   (exit $ac_status); } >/dev/null; then
1921   if test -s conftest.err; then
1922     ac_cpp_err=$ac_c_preproc_warn_flag
1923   else
1924     ac_cpp_err=
1925   fi
1926 else
1927   ac_cpp_err=yes
1928 fi
1929 if test -z "$ac_cpp_err"; then
1930   :
1931 else
1932   echo "$as_me: failed program was:" >&5
1933   cat conftest.$ac_ext >&5
1934   # Broken: fails on valid input.
1935 continue
1936 fi
1937 rm -f conftest.err conftest.$ac_ext
1938
1939   # OK, works on sane cases.  Now check whether non-existent headers
1940   # can be detected and how.
1941   cat >conftest.$ac_ext <<_ACEOF
1942 #line 1942 "configure"
1943 #include "confdefs.h"
1944 #include <ac_nonexistent.h>
1945 _ACEOF
1946 if { (eval echo "$as_me:1946: \"$ac_cpp conftest.$ac_ext\"") >&5
1947   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1948   ac_status=$?
1949   egrep -v '^ *\+' conftest.er1 >conftest.err
1950   rm -f conftest.er1
1951   cat conftest.err >&5
1952   echo "$as_me:1952: \$? = $ac_status" >&5
1953   (exit $ac_status); } >/dev/null; then
1954   if test -s conftest.err; then
1955     ac_cpp_err=$ac_c_preproc_warn_flag
1956   else
1957     ac_cpp_err=
1958   fi
1959 else
1960   ac_cpp_err=yes
1961 fi
1962 if test -z "$ac_cpp_err"; then
1963   # Broken: success on invalid input.
1964 continue
1965 else
1966   echo "$as_me: failed program was:" >&5
1967   cat conftest.$ac_ext >&5
1968   # Passes both tests.
1969 ac_preproc_ok=:
1970 break
1971 fi
1972 rm -f conftest.err conftest.$ac_ext
1973
1974 done
1975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1976 rm -f conftest.err conftest.$ac_ext
1977 if $ac_preproc_ok; then
1978   break
1979 fi
1980
1981     done
1982     ac_cv_prog_CPP=$CPP
1983
1984 fi
1985   CPP=$ac_cv_prog_CPP
1986 else
1987   ac_cv_prog_CPP=$CPP
1988 fi
1989 echo "$as_me:1989: result: $CPP" >&5
1990 echo "${ECHO_T}$CPP" >&6
1991 ac_preproc_ok=false
1992 for ac_c_preproc_warn_flag in '' yes
1993 do
1994   # Use a header file that comes with gcc, so configuring glibc
1995   # with a fresh cross-compiler works.
1996   # On the NeXT, cc -E runs the code through the compiler's parser,
1997   # not just through cpp. "Syntax error" is here to catch this case.
1998   cat >conftest.$ac_ext <<_ACEOF
1999 #line 1999 "configure"
2000 #include "confdefs.h"
2001 #include <assert.h>
2002                      Syntax error
2003 _ACEOF
2004 if { (eval echo "$as_me:2004: \"$ac_cpp conftest.$ac_ext\"") >&5
2005   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2006   ac_status=$?
2007   egrep -v '^ *\+' conftest.er1 >conftest.err
2008   rm -f conftest.er1
2009   cat conftest.err >&5
2010   echo "$as_me:2010: \$? = $ac_status" >&5
2011   (exit $ac_status); } >/dev/null; then
2012   if test -s conftest.err; then
2013     ac_cpp_err=$ac_c_preproc_warn_flag
2014   else
2015     ac_cpp_err=
2016   fi
2017 else
2018   ac_cpp_err=yes
2019 fi
2020 if test -z "$ac_cpp_err"; then
2021   :
2022 else
2023   echo "$as_me: failed program was:" >&5
2024   cat conftest.$ac_ext >&5
2025   # Broken: fails on valid input.
2026 continue
2027 fi
2028 rm -f conftest.err conftest.$ac_ext
2029
2030   # OK, works on sane cases.  Now check whether non-existent headers
2031   # can be detected and how.
2032   cat >conftest.$ac_ext <<_ACEOF
2033 #line 2033 "configure"
2034 #include "confdefs.h"
2035 #include <ac_nonexistent.h>
2036 _ACEOF
2037 if { (eval echo "$as_me:2037: \"$ac_cpp conftest.$ac_ext\"") >&5
2038   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2039   ac_status=$?
2040   egrep -v '^ *\+' conftest.er1 >conftest.err
2041   rm -f conftest.er1
2042   cat conftest.err >&5
2043   echo "$as_me:2043: \$? = $ac_status" >&5
2044   (exit $ac_status); } >/dev/null; then
2045   if test -s conftest.err; then
2046     ac_cpp_err=$ac_c_preproc_warn_flag
2047   else
2048     ac_cpp_err=
2049   fi
2050 else
2051   ac_cpp_err=yes
2052 fi
2053 if test -z "$ac_cpp_err"; then
2054   # Broken: success on invalid input.
2055 continue
2056 else
2057   echo "$as_me: failed program was:" >&5
2058   cat conftest.$ac_ext >&5
2059   # Passes both tests.
2060 ac_preproc_ok=:
2061 break
2062 fi
2063 rm -f conftest.err conftest.$ac_ext
2064
2065 done
2066 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2067 rm -f conftest.err conftest.$ac_ext
2068 if $ac_preproc_ok; then
2069   :
2070 else
2071   { { echo "$as_me:2071: error: C preprocessor \"$CPP\" fails sanity check" >&5
2072 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2073    { (exit 1); exit 1; }; }
2074 fi
2075
2076 ac_ext=c
2077 ac_cpp='$CPP $CPPFLAGS'
2078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2081
2082 if test $ac_cv_c_compiler_gnu = yes; then
2083     echo "$as_me:2083: checking whether $CC needs -traditional" >&5
2084 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2085 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2086   echo $ECHO_N "(cached) $ECHO_C" >&6
2087 else
2088     ac_pattern="Autoconf.*'x'"
2089   cat >conftest.$ac_ext <<_ACEOF
2090 #line 2090 "configure"
2091 #include "confdefs.h"
2092 #include <sgtty.h>
2093 Autoconf TIOCGETP
2094 _ACEOF
2095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2096   egrep "$ac_pattern" >/dev/null 2>&1; then
2097   ac_cv_prog_gcc_traditional=yes
2098 else
2099   ac_cv_prog_gcc_traditional=no
2100 fi
2101 rm -f conftest*
2102
2103   if test $ac_cv_prog_gcc_traditional = no; then
2104     cat >conftest.$ac_ext <<_ACEOF
2105 #line 2105 "configure"
2106 #include "confdefs.h"
2107 #include <termio.h>
2108 Autoconf TCGETA
2109 _ACEOF
2110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2111   egrep "$ac_pattern" >/dev/null 2>&1; then
2112   ac_cv_prog_gcc_traditional=yes
2113 fi
2114 rm -f conftest*
2115
2116   fi
2117 fi
2118 echo "$as_me:2118: result: $ac_cv_prog_gcc_traditional" >&5
2119 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2120   if test $ac_cv_prog_gcc_traditional = yes; then
2121     CC="$CC -traditional"
2122   fi
2123 fi
2124
2125 # Extract the first word of "ranlib", so it can be a program name with args.
2126 set dummy ranlib; ac_word=$2
2127 echo "$as_me:2127: checking for $ac_word" >&5
2128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2129 if test "${ac_cv_prog_RANLIB+set}" = set; then
2130   echo $ECHO_N "(cached) $ECHO_C" >&6
2131 else
2132   if test -n "$RANLIB"; then
2133   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2134 else
2135   ac_save_IFS=$IFS; IFS=$ac_path_separator
2136 ac_dummy="$PATH"
2137 for ac_dir in $ac_dummy; do
2138   IFS=$ac_save_IFS
2139   test -z "$ac_dir" && ac_dir=.
2140   $as_executable_p "$ac_dir/$ac_word" || continue
2141 ac_cv_prog_RANLIB="ranlib"
2142 echo "$as_me:2142: found $ac_dir/$ac_word" >&5
2143 break
2144 done
2145
2146   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="true"
2147 fi
2148 fi
2149 RANLIB=$ac_cv_prog_RANLIB
2150 if test -n "$RANLIB"; then
2151   echo "$as_me:2151: result: $RANLIB" >&5
2152 echo "${ECHO_T}$RANLIB" >&6
2153 else
2154   echo "$as_me:2154: result: no" >&5
2155 echo "${ECHO_T}no" >&6
2156 fi
2157
2158 # Find a good install program.  We prefer a C program (faster),
2159 # so one script is as good as another.  But avoid the broken or
2160 # incompatible versions:
2161 # SysV /etc/install, /usr/sbin/install
2162 # SunOS /usr/etc/install
2163 # IRIX /sbin/install
2164 # AIX /bin/install
2165 # AmigaOS /C/install, which installs bootblocks on floppy discs
2166 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2167 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2168 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2169 # ./install, which can be erroneously created by make from ./install.sh.
2170 echo "$as_me:2170: checking for a BSD compatible install" >&5
2171 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2172 if test -z "$INSTALL"; then
2173 if test "${ac_cv_path_install+set}" = set; then
2174   echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176     ac_save_IFS=$IFS; IFS=$ac_path_separator
2177   for ac_dir in $PATH; do
2178     IFS=$ac_save_IFS
2179     # Account for people who put trailing slashes in PATH elements.
2180     case $ac_dir/ in
2181     / | ./ | .// | /cC/* \
2182     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2183     | /usr/ucb/* ) ;;
2184     *)
2185       # OSF1 and SCO ODT 3.0 have their own names for install.
2186       # Don't use installbsd from OSF since it installs stuff as root
2187       # by default.
2188       for ac_prog in ginstall scoinst install; do
2189         if $as_executable_p "$ac_dir/$ac_prog"; then
2190           if test $ac_prog = install &&
2191             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2192             # AIX install.  It has an incompatible calling convention.
2193             :
2194           elif test $ac_prog = install &&
2195             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2196             # program-specific install script used by HP pwplus--don't use.
2197             :
2198           else
2199             ac_cv_path_install="$ac_dir/$ac_prog -c"
2200             break 2
2201           fi
2202         fi
2203       done
2204       ;;
2205     esac
2206   done
2207
2208 fi
2209   if test "${ac_cv_path_install+set}" = set; then
2210     INSTALL=$ac_cv_path_install
2211   else
2212     # As a last resort, use the slow shell script.  We don't cache a
2213     # path for INSTALL within a source directory, because that will
2214     # break other packages using the cache if that directory is
2215     # removed, or if the path is relative.
2216     INSTALL=$ac_install_sh
2217   fi
2218 fi
2219 echo "$as_me:2219: result: $INSTALL" >&5
2220 echo "${ECHO_T}$INSTALL" >&6
2221
2222 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2223 # It thinks the first close brace ends the variable substitution.
2224 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2225
2226 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2227
2228 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2229
2230 echo "$as_me:2230: checking how to copy files" >&5
2231 echo $ECHO_N "checking how to copy files... $ECHO_C" >&6
2232 if test "${cl_cv_prog_cp+set}" = set; then
2233   echo $ECHO_N "(cached) $ECHO_C" >&6
2234 else
2235
2236 echo "blabla" > conftest.x
2237 err=`/bin/sh -c "cp -p conftest.x conftest.y 2>&1"`
2238 if test -z "$err"; then
2239   cl_cv_prog_cp='cp -p'
2240 else
2241   cl_cv_prog_cp='cp'
2242 fi
2243 rm -f conftest*
2244
2245 fi
2246 echo "$as_me:2246: result: $cl_cv_prog_cp" >&5
2247 echo "${ECHO_T}$cl_cv_prog_cp" >&6
2248 CP="$cl_cv_prog_cp"
2249
2250 echo "$as_me:2250: checking how to make hard links" >&5
2251 echo $ECHO_N "checking how to make hard links... $ECHO_C" >&6
2252 if test "${cl_cv_prog_LN+set}" = set; then
2253   echo $ECHO_N "(cached) $ECHO_C" >&6
2254 else
2255
2256 rm -f conftestdata conftestfile
2257 echo data > conftestfile
2258 if ln conftestfile conftestdata 2>/dev/null; then
2259   cl_cv_prog_LN=ln
2260 else
2261   cl_cv_prog_LN="$cl_cv_prog_cp"
2262 fi
2263 rm -f conftestdata conftestfile
2264
2265 fi
2266 echo "$as_me:2266: result: $cl_cv_prog_LN" >&5
2267 echo "${ECHO_T}$cl_cv_prog_LN" >&6
2268 LN="$cl_cv_prog_LN"
2269
2270 echo "$as_me:2270: checking whether ln -s works" >&5
2271 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2272 if test "${cl_cv_prog_LN_S+set}" = set; then
2273   echo $ECHO_N "(cached) $ECHO_C" >&6
2274 else
2275
2276 rm -f conftestdata
2277 if ln -s X conftestdata 2>/dev/null; then
2278   cl_cv_prog_LN_S="ln -s"
2279 else
2280   cl_cv_prog_LN_S="$cl_cv_prog_LN"
2281 fi
2282 rm -f conftestdata
2283
2284 fi
2285 if test "$cl_cv_prog_LN_S" = "ln -s"; then
2286   echo "$as_me:2286: result: yes" >&5
2287 echo "${ECHO_T}yes" >&6
2288 else
2289   echo "$as_me:2289: result: no" >&5
2290 echo "${ECHO_T}no" >&6
2291 fi
2292 LN_S="$cl_cv_prog_LN_S"
2293
2294  ac_aux_dir=${srcdir}/autoconf
2295 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2296 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2297 # Make sure we can run config.sub.
2298 $ac_config_sub sun4 >/dev/null 2>&1 ||
2299   { { echo "$as_me:2299: error: cannot run $ac_config_sub" >&5
2300 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2301    { (exit 1); exit 1; }; }
2302
2303 echo "$as_me:2303: checking build system type" >&5
2304 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2305 if test "${ac_cv_build+set}" = set; then
2306   echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308   ac_cv_build_alias=$build_alias
2309 test -z "$ac_cv_build_alias" &&
2310   ac_cv_build_alias=`$ac_config_guess`
2311 test -z "$ac_cv_build_alias" &&
2312   { { echo "$as_me:2312: error: cannot guess build type; you must specify one" >&5
2313 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2314    { (exit 1); exit 1; }; }
2315 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2316   { { echo "$as_me:2316: error: $ac_config_sub $ac_cv_build_alias failed." >&5
2317 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
2318    { (exit 1); exit 1; }; }
2319
2320 fi
2321 echo "$as_me:2321: result: $ac_cv_build" >&5
2322 echo "${ECHO_T}$ac_cv_build" >&6
2323 build=$ac_cv_build
2324 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2325 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2326 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2327
2328 echo "$as_me:2328: checking host system type" >&5
2329 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2330 if test "${ac_cv_host+set}" = set; then
2331   echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333   ac_cv_host_alias=$host_alias
2334 test -z "$ac_cv_host_alias" &&
2335   ac_cv_host_alias=$ac_cv_build_alias
2336 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2337   { { echo "$as_me:2337: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2338 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2339    { (exit 1); exit 1; }; }
2340
2341 fi
2342 echo "$as_me:2342: result: $ac_cv_host" >&5
2343 echo "${ECHO_T}$ac_cv_host" >&6
2344 host=$ac_cv_host
2345 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2346 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2347 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2348
2349 echo "$as_me:2349: checking for AIX" >&5
2350 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2351 cat >conftest.$ac_ext <<_ACEOF
2352 #line 2352 "configure"
2353 #include "confdefs.h"
2354 #ifdef _AIX
2355   yes
2356 #endif
2357
2358 _ACEOF
2359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2360   egrep "yes" >/dev/null 2>&1; then
2361   echo "$as_me:2361: result: yes" >&5
2362 echo "${ECHO_T}yes" >&6
2363 cat >>confdefs.h <<\EOF
2364 #define _ALL_SOURCE 1
2365 EOF
2366
2367 else
2368   echo "$as_me:2368: result: no" >&5
2369 echo "${ECHO_T}no" >&6
2370 fi
2371 rm -f conftest*
2372
2373 echo "$as_me:2373: checking for minix/config.h" >&5
2374 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2375 if test "${ac_cv_header_minix_config_h+set}" = set; then
2376   echo $ECHO_N "(cached) $ECHO_C" >&6
2377 else
2378   cat >conftest.$ac_ext <<_ACEOF
2379 #line 2379 "configure"
2380 #include "confdefs.h"
2381 #include <minix/config.h>
2382 _ACEOF
2383 if { (eval echo "$as_me:2383: \"$ac_cpp conftest.$ac_ext\"") >&5
2384   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2385   ac_status=$?
2386   egrep -v '^ *\+' conftest.er1 >conftest.err
2387   rm -f conftest.er1
2388   cat conftest.err >&5
2389   echo "$as_me:2389: \$? = $ac_status" >&5
2390   (exit $ac_status); } >/dev/null; then
2391   if test -s conftest.err; then
2392     ac_cpp_err=$ac_c_preproc_warn_flag
2393   else
2394     ac_cpp_err=
2395   fi
2396 else
2397   ac_cpp_err=yes
2398 fi
2399 if test -z "$ac_cpp_err"; then
2400   ac_cv_header_minix_config_h=yes
2401 else
2402   echo "$as_me: failed program was:" >&5
2403   cat conftest.$ac_ext >&5
2404   ac_cv_header_minix_config_h=no
2405 fi
2406 rm -f conftest.err conftest.$ac_ext
2407 fi
2408 echo "$as_me:2408: result: $ac_cv_header_minix_config_h" >&5
2409 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2410 if test $ac_cv_header_minix_config_h = yes; then
2411   MINIX=yes
2412 else
2413   MINIX=
2414 fi
2415
2416 if test "$MINIX" = yes; then
2417
2418 cat >>confdefs.h <<\EOF
2419 #define _POSIX_SOURCE 1
2420 EOF
2421
2422 cat >>confdefs.h <<\EOF
2423 #define _POSIX_1_SOURCE 2
2424 EOF
2425
2426 cat >>confdefs.h <<\EOF
2427 #define _MINIX 1
2428 EOF
2429
2430 fi
2431
2432         echo "$as_me:2432: checking for strerror in -lcposix" >&5
2433 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2434 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2435   echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437   ac_check_lib_save_LIBS=$LIBS
2438 LIBS="-lcposix  $LIBS"
2439 cat >conftest.$ac_ext <<_ACEOF
2440 #line 2440 "configure"
2441 #include "confdefs.h"
2442
2443 /* Override any gcc2 internal prototype to avoid an error.  */
2444 #ifdef __cplusplus
2445 extern "C"
2446 #endif
2447 /* We use char because int might match the return type of a gcc2
2448    builtin and then its argument prototype would still apply.  */
2449 char strerror ();
2450 int
2451 main ()
2452 {
2453 strerror ();
2454   ;
2455   return 0;
2456 }
2457 _ACEOF
2458 rm -f conftest.$ac_objext conftest$ac_exeext
2459 if { (eval echo "$as_me:2459: \"$ac_link\"") >&5
2460   (eval $ac_link) 2>&5
2461   ac_status=$?
2462   echo "$as_me:2462: \$? = $ac_status" >&5
2463   (exit $ac_status); } &&
2464          { ac_try='test -s conftest$ac_exeext'
2465   { (eval echo "$as_me:2465: \"$ac_try\"") >&5
2466   (eval $ac_try) 2>&5
2467   ac_status=$?
2468   echo "$as_me:2468: \$? = $ac_status" >&5
2469   (exit $ac_status); }; }; then
2470   ac_cv_lib_cposix_strerror=yes
2471 else
2472   echo "$as_me: failed program was:" >&5
2473 cat conftest.$ac_ext >&5
2474 ac_cv_lib_cposix_strerror=no
2475 fi
2476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2477 LIBS=$ac_check_lib_save_LIBS
2478 fi
2479 echo "$as_me:2479: result: $ac_cv_lib_cposix_strerror" >&5
2480 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2481 if test $ac_cv_lib_cposix_strerror = yes; then
2482   LIBS="$LIBS -lcposix"
2483 fi
2484
2485 # Check whether --enable-static or --disable-static was given.
2486 if test "${enable_static+set}" = set; then
2487   enableval="$enable_static"
2488   p=${PACKAGE-default}
2489 case $enableval in
2490 yes) enable_static=yes ;;
2491 no) enable_static=no ;;
2492 *)
2493   enable_static=no
2494   # Look at the argument we got.  We use all the common list separators.
2495   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2496   for pkg in $enableval; do
2497     if test "X$pkg" = "X$p"; then
2498       enable_static=yes
2499     fi
2500   done
2501   IFS="$ac_save_ifs"
2502   ;;
2503 esac
2504 else
2505   enable_static=no
2506 fi;
2507 # Check whether --enable-shared or --disable-shared was given.
2508 if test "${enable_shared+set}" = set; then
2509   enableval="$enable_shared"
2510   p=${PACKAGE-default}
2511 case $enableval in
2512 yes) enable_shared=yes ;;
2513 no) enable_shared=no ;;
2514 *)
2515   enable_shared=no
2516   # Look at the argument we got.  We use all the common list separators.
2517   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2518   for pkg in $enableval; do
2519     if test "X$pkg" = "X$p"; then
2520       enable_shared=yes
2521     fi
2522   done
2523   IFS="$ac_save_ifs"
2524   ;;
2525 esac
2526 else
2527   enable_shared=yes
2528 fi;
2529 # Check whether --enable-fast-install or --disable-fast-install was given.
2530 if test "${enable_fast_install+set}" = set; then
2531   enableval="$enable_fast_install"
2532   p=${PACKAGE-default}
2533 case $enableval in
2534 yes) enable_fast_install=yes ;;
2535 no) enable_fast_install=no ;;
2536 *)
2537   enable_fast_install=no
2538   # Look at the argument we got.  We use all the common list separators.
2539   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2540   for pkg in $enableval; do
2541     if test "X$pkg" = "X$p"; then
2542       enable_fast_install=yes
2543     fi
2544   done
2545   IFS="$ac_save_ifs"
2546   ;;
2547 esac
2548 else
2549   enable_fast_install=yes
2550 fi;
2551 # Find the correct PATH separator.  Usually this is `:', but
2552 # DJGPP uses `;' like DOS.
2553 if test "X${PATH_SEPARATOR+set}" != Xset; then
2554   UNAME=${UNAME-`uname 2>/dev/null`}
2555   case X$UNAME in
2556     *-DOS) lt_cv_sys_path_separator=';' ;;
2557     *)     lt_cv_sys_path_separator=':' ;;
2558   esac
2559   PATH_SEPARATOR=$lt_cv_sys_path_separator
2560 fi
2561
2562 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2563 if test "${with_gnu_ld+set}" = set; then
2564   withval="$with_gnu_ld"
2565   test "$withval" = no || with_gnu_ld=yes
2566 else
2567   with_gnu_ld=no
2568 fi;
2569 ac_prog=ld
2570 if test "$GCC" = yes; then
2571   # Check if gcc -print-prog-name=ld gives a path.
2572   echo "$as_me:2572: checking for ld used by GCC" >&5
2573 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2574   case $host in
2575   *-*-mingw*)
2576     # gcc leaves a trailing carriage return which upsets mingw
2577     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2578   *)
2579     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2580   esac
2581   case $ac_prog in
2582     # Accept absolute paths.
2583     [\\/]* | [A-Za-z]:[\\/]*)
2584       re_direlt='/[^/][^/]*/\.\./'
2585       # Canonicalize the path of ld
2586       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2587       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2588         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2589       done
2590       test -z "$LD" && LD="$ac_prog"
2591       ;;
2592   "")
2593     # If it fails, then pretend we aren't using GCC.
2594     ac_prog=ld
2595     ;;
2596   *)
2597     # If it is relative, then search for the first ld in PATH.
2598     with_gnu_ld=unknown
2599     ;;
2600   esac
2601 elif test "$with_gnu_ld" = yes; then
2602   echo "$as_me:2602: checking for GNU ld" >&5
2603 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2604 else
2605   echo "$as_me:2605: checking for non-GNU ld" >&5
2606 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2607 fi
2608 if test "${lt_cv_path_LD+set}" = set; then
2609   echo $ECHO_N "(cached) $ECHO_C" >&6
2610 else
2611   if test -z "$LD"; then
2612   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2613   for ac_dir in $PATH; do
2614     test -z "$ac_dir" && ac_dir=.
2615     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2616       lt_cv_path_LD="$ac_dir/$ac_prog"
2617       # Check to see if the program is GNU ld.  I'd rather use --version,
2618       # but apparently some GNU ld's only accept -v.
2619       # Break only if it was the GNU/non-GNU ld that we prefer.
2620       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2621         test "$with_gnu_ld" != no && break
2622       else
2623         test "$with_gnu_ld" != yes && break
2624       fi
2625     fi
2626   done
2627   IFS="$ac_save_ifs"
2628 else
2629   lt_cv_path_LD="$LD" # Let the user override the test with a path.
2630 fi
2631 fi
2632
2633 LD="$lt_cv_path_LD"
2634 if test -n "$LD"; then
2635   echo "$as_me:2635: result: $LD" >&5
2636 echo "${ECHO_T}$LD" >&6
2637 else
2638   echo "$as_me:2638: result: no" >&5
2639 echo "${ECHO_T}no" >&6
2640 fi
2641 test -z "$LD" && { { echo "$as_me:2641: error: no acceptable ld found in \$PATH" >&5
2642 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2643    { (exit 1); exit 1; }; }
2644 echo "$as_me:2644: checking if the linker ($LD) is GNU ld" >&5
2645 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2646 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2647   echo $ECHO_N "(cached) $ECHO_C" >&6
2648 else
2649   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2650 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2651   lt_cv_prog_gnu_ld=yes
2652 else
2653   lt_cv_prog_gnu_ld=no
2654 fi
2655 fi
2656 echo "$as_me:2656: result: $lt_cv_prog_gnu_ld" >&5
2657 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2658 with_gnu_ld=$lt_cv_prog_gnu_ld
2659
2660 echo "$as_me:2660: checking for $LD option to reload object files" >&5
2661 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2662 if test "${lt_cv_ld_reload_flag+set}" = set; then
2663   echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665   lt_cv_ld_reload_flag='-r'
2666 fi
2667 echo "$as_me:2667: result: $lt_cv_ld_reload_flag" >&5
2668 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2669 reload_flag=$lt_cv_ld_reload_flag
2670 test -n "$reload_flag" && reload_flag=" $reload_flag"
2671
2672 echo "$as_me:2672: checking for BSD-compatible nm" >&5
2673 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2674 if test "${lt_cv_path_NM+set}" = set; then
2675   echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677   if test -n "$NM"; then
2678   # Let the user override the test.
2679   lt_cv_path_NM="$NM"
2680 else
2681   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2682   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2683     test -z "$ac_dir" && ac_dir=.
2684     tmp_nm=$ac_dir/${ac_tool_prefix}nm
2685     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2686       # Check to see if the nm accepts a BSD-compat flag.
2687       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2688       #   nm: unknown option "B" ignored
2689       # Tru64's nm complains that /dev/null is an invalid object file
2690       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2691         lt_cv_path_NM="$tmp_nm -B"
2692         break
2693       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2694         lt_cv_path_NM="$tmp_nm -p"
2695         break
2696       else
2697         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2698         continue # so that we can try to find one that supports BSD flags
2699       fi
2700     fi
2701   done
2702   IFS="$ac_save_ifs"
2703   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2704 fi
2705 fi
2706
2707 NM="$lt_cv_path_NM"
2708 echo "$as_me:2708: result: $NM" >&5
2709 echo "${ECHO_T}$NM" >&6
2710
2711 echo "$as_me:2711: checking how to recognise dependant libraries" >&5
2712 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2713 if test "${lt_cv_deplibs_check_method+set}" = set; then
2714   echo $ECHO_N "(cached) $ECHO_C" >&6
2715 else
2716   lt_cv_file_magic_cmd='$MAGIC_CMD'
2717 lt_cv_file_magic_test_file=
2718 lt_cv_deplibs_check_method='unknown'
2719 # Need to set the preceding variable on all platforms that support
2720 # interlibrary dependencies.
2721 # 'none' -- dependencies not supported.
2722 # `unknown' -- same as none, but documents that we really don't know.
2723 # 'pass_all' -- all dependencies passed with no checks.
2724 # 'test_compile' -- check by making test program.
2725 # 'file_magic [[regex]]' -- check by looking for files in library path
2726 # which responds to the $file_magic_cmd with a given egrep regex.
2727 # If you have `file' or equivalent on your system and you're not sure
2728 # whether `pass_all' will *always* work, you probably want this one.
2729
2730 case $host_os in
2731 aix4* | aix5*)
2732   lt_cv_deplibs_check_method=pass_all
2733   ;;
2734
2735 beos*)
2736   lt_cv_deplibs_check_method=pass_all
2737   ;;
2738
2739 bsdi4*)
2740   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2741   lt_cv_file_magic_cmd='/usr/bin/file -L'
2742   lt_cv_file_magic_test_file=/shlib/libc.so
2743   ;;
2744
2745 cygwin* | mingw* | pw32*)
2746   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2747   lt_cv_file_magic_cmd='$OBJDUMP -f'
2748   ;;
2749
2750 darwin* | rhapsody*)
2751   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2752   lt_cv_file_magic_cmd='/usr/bin/file -L'
2753   case "$host_os" in
2754   rhapsody* | darwin1.[012])
2755     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2756     ;;
2757   *) # Darwin 1.3 on
2758     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2759     ;;
2760   esac
2761   ;;
2762
2763 freebsd*)
2764   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2765     case $host_cpu in
2766     i*86 )
2767       # Not sure whether the presence of OpenBSD here was a mistake.
2768       # Let's accept both of them until this is cleared up.
2769       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2770       lt_cv_file_magic_cmd=/usr/bin/file
2771       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2772       ;;
2773     esac
2774   else
2775     lt_cv_deplibs_check_method=pass_all
2776   fi
2777   ;;
2778
2779 gnu*)
2780   lt_cv_deplibs_check_method=pass_all
2781   ;;
2782
2783 hpux10.20*|hpux11*)
2784   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2785   lt_cv_file_magic_cmd=/usr/bin/file
2786   lt_cv_file_magic_test_file=/usr/lib/libc.sl
2787   ;;
2788
2789 irix5* | irix6*)
2790   case $host_os in
2791   irix5*)
2792     # this will be overridden with pass_all, but let us keep it just in case
2793     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2794     ;;
2795   *)
2796     case $LD in
2797     *-32|*"-32 ") libmagic=32-bit;;
2798     *-n32|*"-n32 ") libmagic=N32;;
2799     *-64|*"-64 ") libmagic=64-bit;;
2800     *) libmagic=never-match;;
2801     esac
2802     # this will be overridden with pass_all, but let us keep it just in case
2803     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2804     ;;
2805   esac
2806   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2807   lt_cv_deplibs_check_method=pass_all
2808   ;;
2809
2810 # This must be Linux ELF.
2811 linux-gnu*)
2812   case $host_cpu in
2813   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2814     lt_cv_deplibs_check_method=pass_all ;;
2815   *)
2816     # glibc up to 2.1.1 does not perform some relocations on ARM
2817     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2818   esac
2819   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2820   ;;
2821
2822 netbsd*)
2823   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2824     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2825   else
2826     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2827   fi
2828   ;;
2829
2830 newos6*)
2831   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2832   lt_cv_file_magic_cmd=/usr/bin/file
2833   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2834   ;;
2835
2836 openbsd*)
2837   lt_cv_file_magic_cmd=/usr/bin/file
2838   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2839   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2840     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2841   else
2842     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2843   fi
2844   ;;
2845
2846 osf3* | osf4* | osf5*)
2847   # this will be overridden with pass_all, but let us keep it just in case
2848   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2849   lt_cv_file_magic_test_file=/shlib/libc.so
2850   lt_cv_deplibs_check_method=pass_all
2851   ;;
2852
2853 sco3.2v5*)
2854   lt_cv_deplibs_check_method=pass_all
2855   ;;
2856
2857 solaris*)
2858   lt_cv_deplibs_check_method=pass_all
2859   lt_cv_file_magic_test_file=/lib/libc.so
2860   ;;
2861
2862 sysv5uw[78]* | sysv4*uw2*)
2863   lt_cv_deplibs_check_method=pass_all
2864   ;;
2865
2866 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2867   case $host_vendor in
2868   motorola)
2869     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]'
2870     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2871     ;;
2872   ncr)
2873     lt_cv_deplibs_check_method=pass_all
2874     ;;
2875   sequent)
2876     lt_cv_file_magic_cmd='/bin/file'
2877     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2878     ;;
2879   sni)
2880     lt_cv_file_magic_cmd='/bin/file'
2881     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2882     lt_cv_file_magic_test_file=/lib/libc.so
2883     ;;
2884   esac
2885   ;;
2886 esac
2887
2888 fi
2889 echo "$as_me:2889: result: $lt_cv_deplibs_check_method" >&5
2890 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2891 file_magic_cmd=$lt_cv_file_magic_cmd
2892 deplibs_check_method=$lt_cv_deplibs_check_method
2893
2894 # Check for command to grab the raw symbol name followed by C symbol from nm.
2895 echo "$as_me:2895: checking command to parse $NM output" >&5
2896 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
2897 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2898   echo $ECHO_N "(cached) $ECHO_C" >&6
2899 else
2900
2901 # These are sane defaults that work on at least a few old systems.
2902 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
2903
2904 # Character class describing NM global symbol codes.
2905 symcode='[BCDEGRST]'
2906
2907 # Regexp to match symbols that can be accessed directly from C.
2908 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2909
2910 # Transform the above into a raw symbol and a C symbol.
2911 symxfrm='\1 \2\3 \3'
2912
2913 # Transform an extracted symbol line into a proper C declaration
2914 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2915
2916 # Transform an extracted symbol line into symbol name and symbol address
2917 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'"
2918
2919 # Define system-specific variables.
2920 case $host_os in
2921 aix*)
2922   symcode='[BCDT]'
2923   ;;
2924 cygwin* | mingw* | pw32*)
2925   symcode='[ABCDGISTW]'
2926   ;;
2927 hpux*) # Its linker distinguishes data from code symbols
2928   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2929   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'"
2930   ;;
2931 irix*)
2932   symcode='[BCDEGRST]'
2933   ;;
2934 solaris* | sysv5*)
2935   symcode='[BDT]'
2936   ;;
2937 sysv4)
2938   symcode='[DFNSTU]'
2939   ;;
2940 esac
2941
2942 # Handle CRLF in mingw tool chain
2943 opt_cr=
2944 case $host_os in
2945 mingw*)
2946   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2947   ;;
2948 esac
2949
2950 # If we're using GNU nm, then use its standard symbol codes.
2951 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2952   symcode='[ABCDGISTW]'
2953 fi
2954
2955 # Try without a prefix undercore, then with it.
2956 for ac_symprfx in "" "_"; do
2957
2958   # Write the raw and C identifiers.
2959 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2960
2961   # Check to see that the pipe works correctly.
2962   pipe_works=no
2963   rm -f conftest*
2964   cat > conftest.$ac_ext <<EOF
2965 #ifdef __cplusplus
2966 extern "C" {
2967 #endif
2968 char nm_test_var;
2969 void nm_test_func(){}
2970 #ifdef __cplusplus
2971 }
2972 #endif
2973 int main(){nm_test_var='a';nm_test_func();return(0);}
2974 EOF
2975
2976   if { (eval echo "$as_me:2976: \"$ac_compile\"") >&5
2977   (eval $ac_compile) 2>&5
2978   ac_status=$?
2979   echo "$as_me:2979: \$? = $ac_status" >&5
2980   (exit $ac_status); }; then
2981     # Now try to grab the symbols.
2982     nlist=conftest.nm
2983     if { (eval echo "$as_me:2983: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
2984   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
2985   ac_status=$?
2986   echo "$as_me:2986: \$? = $ac_status" >&5
2987   (exit $ac_status); } && test -s "$nlist"; then
2988       # Try sorting and uniquifying the output.
2989       if sort "$nlist" | uniq > "$nlist"T; then
2990         mv -f "$nlist"T "$nlist"
2991       else
2992         rm -f "$nlist"T
2993       fi
2994
2995       # Make sure that we snagged all the symbols we need.
2996       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2997         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2998           cat <<EOF > conftest.$ac_ext
2999 #ifdef __cplusplus
3000 extern "C" {
3001 #endif
3002
3003 EOF
3004           # Now generate the symbol file.
3005           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3006
3007           cat <<EOF >> conftest.$ac_ext
3008 #if defined (__STDC__) && __STDC__
3009 # define lt_ptr void *
3010 #else
3011 # define lt_ptr char *
3012 # define const
3013 #endif
3014
3015 /* The mapping between symbol names and symbols. */
3016 const struct {
3017   const char *name;
3018   lt_ptr address;
3019 }
3020 lt_preloaded_symbols[] =
3021 {
3022 EOF
3023           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3024           cat <<\EOF >> conftest.$ac_ext
3025   {0, (lt_ptr) 0}
3026 };
3027
3028 #ifdef __cplusplus
3029 }
3030 #endif
3031 EOF
3032           # Now try linking the two files.
3033           mv conftest.$ac_objext conftstm.$ac_objext
3034           save_LIBS="$LIBS"
3035           save_CFLAGS="$CFLAGS"
3036           LIBS="conftstm.$ac_objext"
3037           CFLAGS="$CFLAGS$no_builtin_flag"
3038           if { (eval echo "$as_me:3038: \"$ac_link\"") >&5
3039   (eval $ac_link) 2>&5
3040   ac_status=$?
3041   echo "$as_me:3041: \$? = $ac_status" >&5
3042   (exit $ac_status); } && test -s conftest; then
3043             pipe_works=yes
3044           fi
3045           LIBS="$save_LIBS"
3046           CFLAGS="$save_CFLAGS"
3047         else
3048           echo "cannot find nm_test_func in $nlist" >&5
3049         fi
3050       else
3051         echo "cannot find nm_test_var in $nlist" >&5
3052       fi
3053     else
3054       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3055     fi
3056   else
3057     echo "$progname: failed program was:" >&5
3058     cat conftest.$ac_ext >&5
3059   fi
3060   rm -f conftest* conftst*
3061
3062   # Do not use the global_symbol_pipe unless it works.
3063   if test "$pipe_works" = yes; then
3064     break
3065   else
3066     lt_cv_sys_global_symbol_pipe=
3067   fi
3068 done
3069
3070 fi
3071
3072 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3073 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3074   global_symbol_to_cdecl=
3075   global_symbol_to_c_name_address=
3076 else
3077   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3078   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3079 fi
3080 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3081 then
3082   echo "$as_me:3082: result: failed" >&5
3083 echo "${ECHO_T}failed" >&6
3084 else
3085   echo "$as_me:3085: result: ok" >&5
3086 echo "${ECHO_T}ok" >&6
3087 fi
3088
3089 for ac_header in dlfcn.h
3090 do
3091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3092 echo "$as_me:3092: checking for $ac_header" >&5
3093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3095   echo $ECHO_N "(cached) $ECHO_C" >&6
3096 else
3097   cat >conftest.$ac_ext <<_ACEOF
3098 #line 3098 "configure"
3099 #include "confdefs.h"
3100 #include <$ac_header>
3101 _ACEOF
3102 if { (eval echo "$as_me:3102: \"$ac_cpp conftest.$ac_ext\"") >&5
3103   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3104   ac_status=$?
3105   egrep -v '^ *\+' conftest.er1 >conftest.err
3106   rm -f conftest.er1
3107   cat conftest.err >&5
3108   echo "$as_me:3108: \$? = $ac_status" >&5
3109   (exit $ac_status); } >/dev/null; then
3110   if test -s conftest.err; then
3111     ac_cpp_err=$ac_c_preproc_warn_flag
3112   else
3113     ac_cpp_err=
3114   fi
3115 else
3116   ac_cpp_err=yes
3117 fi
3118 if test -z "$ac_cpp_err"; then
3119   eval "$as_ac_Header=yes"
3120 else
3121   echo "$as_me: failed program was:" >&5
3122   cat conftest.$ac_ext >&5
3123   eval "$as_ac_Header=no"
3124 fi
3125 rm -f conftest.err conftest.$ac_ext
3126 fi
3127 echo "$as_me:3127: result: `eval echo '${'$as_ac_Header'}'`" >&5
3128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3130   cat >>confdefs.h <<EOF
3131 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3132 EOF
3133
3134 fi
3135 done
3136
3137 # Only perform the check for file, if the check method requires it
3138 case $deplibs_check_method in
3139 file_magic*)
3140   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3141     echo "$as_me:3141: checking for ${ac_tool_prefix}file" >&5
3142 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3143 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3144   echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146   case $MAGIC_CMD in
3147   /*)
3148   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3149   ;;
3150   ?:/*)
3151   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3152   ;;
3153   *)
3154   ac_save_MAGIC_CMD="$MAGIC_CMD"
3155   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3156   ac_dummy="/usr/bin:$PATH"
3157   for ac_dir in $ac_dummy; do
3158     test -z "$ac_dir" && ac_dir=.
3159     if test -f $ac_dir/${ac_tool_prefix}file; then
3160       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3161       if test -n "$file_magic_test_file"; then
3162         case $deplibs_check_method in
3163         "file_magic "*)
3164           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3165           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3166           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3167             egrep "$file_magic_regex" > /dev/null; then
3168             :
3169           else
3170             cat <<EOF 1>&2
3171
3172 *** Warning: the command libtool uses to detect shared libraries,
3173 *** $file_magic_cmd, produces output that libtool cannot recognize.
3174 *** The result is that libtool may fail to recognize shared libraries
3175 *** as such.  This will affect the creation of libtool libraries that
3176 *** depend on shared libraries, but programs linked with such libtool
3177 *** libraries will work regardless of this problem.  Nevertheless, you
3178 *** may want to report the problem to your system manager and/or to
3179 *** bug-libtool@gnu.org
3180
3181 EOF
3182           fi ;;
3183         esac
3184       fi
3185       break
3186     fi
3187   done
3188   IFS="$ac_save_ifs"
3189   MAGIC_CMD="$ac_save_MAGIC_CMD"
3190   ;;
3191 esac
3192 fi
3193
3194 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3195 if test -n "$MAGIC_CMD"; then
3196   echo "$as_me:3196: result: $MAGIC_CMD" >&5
3197 echo "${ECHO_T}$MAGIC_CMD" >&6
3198 else
3199   echo "$as_me:3199: result: no" >&5
3200 echo "${ECHO_T}no" >&6
3201 fi
3202
3203 if test -z "$lt_cv_path_MAGIC_CMD"; then
3204   if test -n "$ac_tool_prefix"; then
3205     echo "$as_me:3205: checking for file" >&5
3206 echo $ECHO_N "checking for file... $ECHO_C" >&6
3207 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3208   echo $ECHO_N "(cached) $ECHO_C" >&6
3209 else
3210   case $MAGIC_CMD in
3211   /*)
3212   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3213   ;;
3214   ?:/*)
3215   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3216   ;;
3217   *)
3218   ac_save_MAGIC_CMD="$MAGIC_CMD"
3219   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3220   ac_dummy="/usr/bin:$PATH"
3221   for ac_dir in $ac_dummy; do
3222     test -z "$ac_dir" && ac_dir=.
3223     if test -f $ac_dir/file; then
3224       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3225       if test -n "$file_magic_test_file"; then
3226         case $deplibs_check_method in
3227         "file_magic "*)
3228           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3229           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3230           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3231             egrep "$file_magic_regex" > /dev/null; then
3232             :
3233           else
3234             cat <<EOF 1>&2
3235
3236 *** Warning: the command libtool uses to detect shared libraries,
3237 *** $file_magic_cmd, produces output that libtool cannot recognize.
3238 *** The result is that libtool may fail to recognize shared libraries
3239 *** as such.  This will affect the creation of libtool libraries that
3240 *** depend on shared libraries, but programs linked with such libtool
3241 *** libraries will work regardless of this problem.  Nevertheless, you
3242 *** may want to report the problem to your system manager and/or to
3243 *** bug-libtool@gnu.org
3244
3245 EOF
3246           fi ;;
3247         esac
3248       fi
3249       break
3250     fi
3251   done
3252   IFS="$ac_save_ifs"
3253   MAGIC_CMD="$ac_save_MAGIC_CMD"
3254   ;;
3255 esac
3256 fi
3257
3258 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3259 if test -n "$MAGIC_CMD"; then
3260   echo "$as_me:3260: result: $MAGIC_CMD" >&5
3261 echo "${ECHO_T}$MAGIC_CMD" >&6
3262 else
3263   echo "$as_me:3263: result: no" >&5
3264 echo "${ECHO_T}no" >&6
3265 fi
3266
3267   else
3268     MAGIC_CMD=:
3269   fi
3270 fi
3271
3272   fi
3273   ;;
3274 esac
3275
3276 if test -n "$ac_tool_prefix"; then
3277   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3278 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3279 echo "$as_me:3279: checking for $ac_word" >&5
3280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3281 if test "${ac_cv_prog_RANLIB+set}" = set; then
3282   echo $ECHO_N "(cached) $ECHO_C" >&6
3283 else
3284   if test -n "$RANLIB"; then
3285   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3286 else
3287   ac_save_IFS=$IFS; IFS=$ac_path_separator
3288 ac_dummy="$PATH"
3289 for ac_dir in $ac_dummy; do
3290   IFS=$ac_save_IFS
3291   test -z "$ac_dir" && ac_dir=.
3292   $as_executable_p "$ac_dir/$ac_word" || continue
3293 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3294 echo "$as_me:3294: found $ac_dir/$ac_word" >&5
3295 break
3296 done
3297
3298 fi
3299 fi
3300 RANLIB=$ac_cv_prog_RANLIB
3301 if test -n "$RANLIB"; then
3302   echo "$as_me:3302: result: $RANLIB" >&5
3303 echo "${ECHO_T}$RANLIB" >&6
3304 else
3305   echo "$as_me:3305: result: no" >&5
3306 echo "${ECHO_T}no" >&6
3307 fi
3308
3309 fi
3310 if test -z "$ac_cv_prog_RANLIB"; then
3311   ac_ct_RANLIB=$RANLIB
3312   # Extract the first word of "ranlib", so it can be a program name with args.
3313 set dummy ranlib; ac_word=$2
3314 echo "$as_me:3314: checking for $ac_word" >&5
3315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3316 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3317   echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319   if test -n "$ac_ct_RANLIB"; then
3320   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3321 else
3322   ac_save_IFS=$IFS; IFS=$ac_path_separator
3323 ac_dummy="$PATH"
3324 for ac_dir in $ac_dummy; do
3325   IFS=$ac_save_IFS
3326   test -z "$ac_dir" && ac_dir=.
3327   $as_executable_p "$ac_dir/$ac_word" || continue
3328 ac_cv_prog_ac_ct_RANLIB="ranlib"
3329 echo "$as_me:3329: found $ac_dir/$ac_word" >&5
3330 break
3331 done
3332
3333   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3334 fi
3335 fi
3336 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3337 if test -n "$ac_ct_RANLIB"; then
3338   echo "$as_me:3338: result: $ac_ct_RANLIB" >&5
3339 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3340 else
3341   echo "$as_me:3341: result: no" >&5
3342 echo "${ECHO_T}no" >&6
3343 fi
3344
3345   RANLIB=$ac_ct_RANLIB
3346 else
3347   RANLIB="$ac_cv_prog_RANLIB"
3348 fi
3349
3350 if test -n "$ac_tool_prefix"; then
3351   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3352 set dummy ${ac_tool_prefix}strip; ac_word=$2
3353 echo "$as_me:3353: checking for $ac_word" >&5
3354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3355 if test "${ac_cv_prog_STRIP+set}" = set; then
3356   echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358   if test -n "$STRIP"; then
3359   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3360 else
3361   ac_save_IFS=$IFS; IFS=$ac_path_separator
3362 ac_dummy="$PATH"
3363 for ac_dir in $ac_dummy; do
3364   IFS=$ac_save_IFS
3365   test -z "$ac_dir" && ac_dir=.
3366   $as_executable_p "$ac_dir/$ac_word" || continue
3367 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3368 echo "$as_me:3368: found $ac_dir/$ac_word" >&5
3369 break
3370 done
3371
3372 fi
3373 fi
3374 STRIP=$ac_cv_prog_STRIP
3375 if test -n "$STRIP"; then
3376   echo "$as_me:3376: result: $STRIP" >&5
3377 echo "${ECHO_T}$STRIP" >&6
3378 else
3379   echo "$as_me:3379: result: no" >&5
3380 echo "${ECHO_T}no" >&6
3381 fi
3382
3383 fi
3384 if test -z "$ac_cv_prog_STRIP"; then
3385   ac_ct_STRIP=$STRIP
3386   # Extract the first word of "strip", so it can be a program name with args.
3387 set dummy strip; ac_word=$2
3388 echo "$as_me:3388: checking for $ac_word" >&5
3389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3390 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3391   echo $ECHO_N "(cached) $ECHO_C" >&6
3392 else
3393   if test -n "$ac_ct_STRIP"; then
3394   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3395 else
3396   ac_save_IFS=$IFS; IFS=$ac_path_separator
3397 ac_dummy="$PATH"
3398 for ac_dir in $ac_dummy; do
3399   IFS=$ac_save_IFS
3400   test -z "$ac_dir" && ac_dir=.
3401   $as_executable_p "$ac_dir/$ac_word" || continue
3402 ac_cv_prog_ac_ct_STRIP="strip"
3403 echo "$as_me:3403: found $ac_dir/$ac_word" >&5
3404 break
3405 done
3406
3407   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3408 fi
3409 fi
3410 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3411 if test -n "$ac_ct_STRIP"; then
3412   echo "$as_me:3412: result: $ac_ct_STRIP" >&5
3413 echo "${ECHO_T}$ac_ct_STRIP" >&6
3414 else
3415   echo "$as_me:3415: result: no" >&5
3416 echo "${ECHO_T}no" >&6
3417 fi
3418
3419   STRIP=$ac_ct_STRIP
3420 else
3421   STRIP="$ac_cv_prog_STRIP"
3422 fi
3423
3424 enable_dlopen=no
3425 enable_win32_dll=no
3426
3427 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3428 if test "${enable_libtool_lock+set}" = set; then
3429   enableval="$enable_libtool_lock"
3430
3431 fi;
3432 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3433
3434 # Some flags need to be propagated to the compiler or linker for good
3435 # libtool support.
3436 case $host in
3437 *-*-irix6*)
3438   # Find out which ABI we are using.
3439   echo '#line 3439 "configure"' > conftest.$ac_ext
3440   if { (eval echo "$as_me:3440: \"$ac_compile\"") >&5
3441   (eval $ac_compile) 2>&5
3442   ac_status=$?
3443   echo "$as_me:3443: \$? = $ac_status" >&5
3444   (exit $ac_status); }; then
3445     case `/usr/bin/file conftest.$ac_objext` in
3446     *32-bit*)
3447       LD="${LD-ld} -32"
3448       ;;
3449     *N32*)
3450       LD="${LD-ld} -n32"
3451       ;;
3452     *64-bit*)
3453       LD="${LD-ld} -64"
3454       ;;
3455     esac
3456   fi
3457   rm -rf conftest*
3458   ;;
3459
3460 *-*-sco3.2v5*)
3461   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3462   SAVE_CFLAGS="$CFLAGS"
3463   CFLAGS="$CFLAGS -belf"
3464   echo "$as_me:3464: checking whether the C compiler needs -belf" >&5
3465 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3466 if test "${lt_cv_cc_needs_belf+set}" = set; then
3467   echo $ECHO_N "(cached) $ECHO_C" >&6
3468 else
3469
3470      ac_ext=c
3471 ac_cpp='$CPP $CPPFLAGS'
3472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3475
3476      cat >conftest.$ac_ext <<_ACEOF
3477 #line 3477 "configure"
3478 #include "confdefs.h"
3479
3480 int
3481 main ()
3482 {
3483
3484   ;
3485   return 0;
3486 }
3487 _ACEOF
3488 rm -f conftest.$ac_objext conftest$ac_exeext
3489 if { (eval echo "$as_me:3489: \"$ac_link\"") >&5
3490   (eval $ac_link) 2>&5
3491   ac_status=$?
3492   echo "$as_me:3492: \$? = $ac_status" >&5
3493   (exit $ac_status); } &&
3494          { ac_try='test -s conftest$ac_exeext'
3495   { (eval echo "$as_me:3495: \"$ac_try\"") >&5
3496   (eval $ac_try) 2>&5
3497   ac_status=$?
3498   echo "$as_me:3498: \$? = $ac_status" >&5
3499   (exit $ac_status); }; }; then
3500   lt_cv_cc_needs_belf=yes
3501 else
3502   echo "$as_me: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3504 lt_cv_cc_needs_belf=no
3505 fi
3506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3507      ac_ext=c
3508 ac_cpp='$CPP $CPPFLAGS'
3509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3512
3513 fi
3514 echo "$as_me:3514: result: $lt_cv_cc_needs_belf" >&5
3515 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3516   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3517     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3518     CFLAGS="$SAVE_CFLAGS"
3519   fi
3520   ;;
3521
3522 esac
3523
3524 # Sed substitution that helps us do robust quoting.  It backslashifies
3525 # metacharacters that are still active within double-quoted strings.
3526 Xsed='sed -e s/^X//'
3527 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3528
3529 # Same as above, but do not quote variable references.
3530 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3531
3532 # Sed substitution to delay expansion of an escaped shell variable in a
3533 # double_quote_subst'ed string.
3534 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3535
3536 # Constants:
3537 rm="rm -f"
3538
3539 # Global variables:
3540 default_ofile=libtool
3541 can_build_shared=yes
3542
3543 # All known linkers require a `.a' archive for static linking (except M$VC,
3544 # which needs '.lib').
3545 libext=a
3546 ltmain="$ac_aux_dir/ltmain.sh"
3547 ofile="$default_ofile"
3548 with_gnu_ld="$lt_cv_prog_gnu_ld"
3549 need_locks="$enable_libtool_lock"
3550
3551 old_CC="$CC"
3552 old_CFLAGS="$CFLAGS"
3553
3554 # Set sane defaults for various variables
3555 test -z "$AR" && AR=ar
3556 test -z "$AR_FLAGS" && AR_FLAGS=cru
3557 test -z "$AS" && AS=as
3558 test -z "$CC" && CC=cc
3559 test -z "$DLLTOOL" && DLLTOOL=dlltool
3560 test -z "$LD" && LD=ld
3561 test -z "$LN_S" && LN_S="ln -s"
3562 test -z "$MAGIC_CMD" && MAGIC_CMD=file
3563 test -z "$NM" && NM=nm
3564 test -z "$OBJDUMP" && OBJDUMP=objdump
3565 test -z "$RANLIB" && RANLIB=:
3566 test -z "$STRIP" && STRIP=:
3567 test -z "$ac_objext" && ac_objext=o
3568
3569 if test x"$host" != x"$build"; then
3570   ac_tool_prefix=${host_alias}-
3571 else
3572   ac_tool_prefix=
3573 fi
3574
3575 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3576 case $host_os in
3577 linux-gnu*) ;;
3578 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3579 esac
3580
3581 case $host_os in
3582 aix3*)
3583   # AIX sometimes has problems with the GCC collect2 program.  For some
3584   # reason, if we set the COLLECT_NAMES environment variable, the problems
3585   # vanish in a puff of smoke.
3586   if test "X${COLLECT_NAMES+set}" != Xset; then
3587     COLLECT_NAMES=
3588     export COLLECT_NAMES
3589   fi
3590   ;;
3591 esac
3592
3593 # Determine commands to create old-style static archives.
3594 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3595 old_postinstall_cmds='chmod 644 $oldlib'
3596 old_postuninstall_cmds=
3597
3598 if test -n "$RANLIB"; then
3599   case $host_os in
3600   openbsd*)
3601     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3602     ;;
3603   *)
3604     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3605     ;;
3606   esac
3607   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3608 fi
3609
3610 # Allow CC to be a program name with arguments.
3611 set dummy $CC
3612 compiler="$2"
3613
3614 echo "$as_me:3614: checking for objdir" >&5
3615 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
3616 rm -f .libs 2>/dev/null
3617 mkdir .libs 2>/dev/null
3618 if test -d .libs; then
3619   objdir=.libs
3620 else
3621   # MS-DOS does not allow filenames that begin with a dot.
3622   objdir=_libs
3623 fi
3624 rmdir .libs 2>/dev/null
3625 echo "$as_me:3625: result: $objdir" >&5
3626 echo "${ECHO_T}$objdir" >&6
3627
3628 # Check whether --with-pic or --without-pic was given.
3629 if test "${with_pic+set}" = set; then
3630   withval="$with_pic"
3631   pic_mode="$withval"
3632 else
3633   pic_mode=default
3634 fi;
3635 test -z "$pic_mode" && pic_mode=default
3636
3637 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
3638 # in isolation, and that seeing it set (from the cache) indicates that
3639 # the associated values are set (in the cache) correctly too.
3640 echo "$as_me:3640: checking for $compiler option to produce PIC" >&5
3641 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
3642 if test "${lt_cv_prog_cc_pic+set}" = set; then
3643   echo $ECHO_N "(cached) $ECHO_C" >&6
3644 else
3645    lt_cv_prog_cc_pic=
3646   lt_cv_prog_cc_shlib=
3647   lt_cv_prog_cc_wl=
3648   lt_cv_prog_cc_static=
3649   lt_cv_prog_cc_no_builtin=
3650   lt_cv_prog_cc_can_build_shared=$can_build_shared
3651
3652   if test "$GCC" = yes; then
3653     lt_cv_prog_cc_wl='-Wl,'
3654     lt_cv_prog_cc_static='-static'
3655
3656     case $host_os in
3657     aix*)
3658       # Below there is a dirty hack to force normal static linking with -ldl
3659       # The problem is because libdl dynamically linked with both libc and
3660       # libC (AIX C++ library), which obviously doesn't included in libraries
3661       # list by gcc. This cause undefined symbols with -static flags.
3662       # This hack allows C programs to be linked with "-static -ldl", but
3663       # not sure about C++ programs.
3664       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
3665       ;;
3666     amigaos*)
3667       # FIXME: we need at least 68020 code to build shared libraries, but
3668       # adding the `-m68020' flag to GCC prevents building anything better,
3669       # like `-m68040'.
3670       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
3671       ;;
3672     beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
3673       # PIC is the default for these OSes.
3674       ;;
3675     darwin* | rhapsody*)
3676       # PIC is the default on this platform
3677       # Common symbols not allowed in MH_DYLIB files
3678       lt_cv_prog_cc_pic='-fno-common'
3679       ;;
3680     cygwin* | mingw* | pw32* | os2*)
3681       # This hack is so that the source file can tell whether it is being
3682       # built for inclusion in a dll (and should export symbols for example).
3683       lt_cv_prog_cc_pic='-DDLL_EXPORT'
3684       ;;
3685     sysv4*MP*)
3686       if test -d /usr/nec; then
3687          lt_cv_prog_cc_pic=-Kconform_pic
3688       fi
3689       ;;
3690     *)
3691       lt_cv_prog_cc_pic='-fPIC'
3692       ;;
3693     esac
3694   else
3695     # PORTME Check for PIC flags for the system compiler.
3696     case $host_os in
3697     aix3* | aix4* | aix5*)
3698       lt_cv_prog_cc_wl='-Wl,'
3699       # All AIX code is PIC.
3700       if test "$host_cpu" = ia64; then
3701         # AIX 5 now supports IA64 processor
3702         lt_cv_prog_cc_static='-Bstatic'
3703       else
3704         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
3705       fi
3706       ;;
3707
3708     hpux9* | hpux10* | hpux11*)
3709       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
3710       lt_cv_prog_cc_wl='-Wl,'
3711       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
3712       lt_cv_prog_cc_pic='+Z'
3713       ;;
3714
3715     irix5* | irix6*)
3716       lt_cv_prog_cc_wl='-Wl,'
3717       lt_cv_prog_cc_static='-non_shared'
3718       # PIC (with -KPIC) is the default.
3719       ;;
3720
3721     linux*)
3722       echo '__INTEL_COMPILER' > conftest.$ac_ext
3723       if $CC -E conftest.$ac_ext >/dev/null | grep __INTEL_COMPILER >/dev/null
3724       then
3725         lt_cv_prog_cc_can_build_shared=no
3726       else
3727         # Intel icc
3728         lt_cv_prog_cc_pic='-KPIC'
3729         lt_cv_prog_cc_static='-static'
3730         lt_cv_prog_cc_wl='-Qoption,ld,'
3731       fi
3732       ;;
3733
3734     cygwin* | mingw* | pw32* | os2*)
3735       # This hack is so that the source file can tell whether it is being
3736       # built for inclusion in a dll (and should export symbols for example).
3737       lt_cv_prog_cc_pic='-DDLL_EXPORT'
3738       ;;
3739
3740     newsos6)
3741       lt_cv_prog_cc_pic='-KPIC'
3742       lt_cv_prog_cc_static='-Bstatic'
3743       ;;
3744
3745     osf3* | osf4* | osf5*)
3746       # All OSF/1 code is PIC.
3747       lt_cv_prog_cc_wl='-Wl,'
3748       lt_cv_prog_cc_static='-non_shared'
3749       ;;
3750
3751     sco3.2v5*)
3752       lt_cv_prog_cc_pic='-Kpic'
3753       lt_cv_prog_cc_static='-dn'
3754       lt_cv_prog_cc_shlib='-belf'
3755       ;;
3756
3757     solaris*)
3758       lt_cv_prog_cc_pic='-KPIC'
3759       lt_cv_prog_cc_static='-Bstatic'
3760       lt_cv_prog_cc_wl='-Wl,'
3761       ;;
3762
3763     sunos4*)
3764       lt_cv_prog_cc_pic='-PIC'
3765       lt_cv_prog_cc_static='-Bstatic'
3766       lt_cv_prog_cc_wl='-Qoption ld '
3767       ;;
3768
3769     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3770       lt_cv_prog_cc_pic='-KPIC'
3771       lt_cv_prog_cc_static='-Bstatic'
3772       if test "x$host_vendor" = xsni; then
3773         lt_cv_prog_cc_wl='-LD'
3774       else
3775         lt_cv_prog_cc_wl='-Wl,'
3776       fi
3777       ;;
3778
3779     uts4*)
3780       lt_cv_prog_cc_pic='-pic'
3781       lt_cv_prog_cc_static='-Bstatic'
3782       ;;
3783
3784     sysv4*MP*)
3785       if test -d /usr/nec ;then
3786         lt_cv_prog_cc_pic='-Kconform_pic'
3787         lt_cv_prog_cc_static='-Bstatic'
3788       fi
3789       ;;
3790
3791     *)
3792       lt_cv_prog_cc_can_build_shared=no
3793       ;;
3794     esac
3795   fi
3796
3797 fi
3798
3799 if test -z "$lt_cv_prog_cc_pic"; then
3800   echo "$as_me:3800: result: none" >&5
3801 echo "${ECHO_T}none" >&6
3802 else
3803   echo "$as_me:3803: result: $lt_cv_prog_cc_pic" >&5
3804 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
3805
3806   # Check to make sure the pic_flag actually works.
3807   echo "$as_me:3807: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
3808 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
3809   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
3810   echo $ECHO_N "(cached) $ECHO_C" >&6
3811 else
3812       save_CFLAGS="$CFLAGS"
3813     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
3814     cat >conftest.$ac_ext <<_ACEOF
3815 #line 3815 "configure"
3816 #include "confdefs.h"
3817
3818 int
3819 main ()
3820 {
3821
3822   ;
3823   return 0;
3824 }
3825 _ACEOF
3826 rm -f conftest.$ac_objext
3827 if { (eval echo "$as_me:3827: \"$ac_compile\"") >&5
3828   (eval $ac_compile) 2>&5
3829   ac_status=$?
3830   echo "$as_me:3830: \$? = $ac_status" >&5
3831   (exit $ac_status); } &&
3832          { ac_try='test -s conftest.$ac_objext'
3833   { (eval echo "$as_me:3833: \"$ac_try\"") >&5
3834   (eval $ac_try) 2>&5
3835   ac_status=$?
3836   echo "$as_me:3836: \$? = $ac_status" >&5
3837   (exit $ac_status); }; }; then
3838         case $host_os in
3839       hpux9* | hpux10* | hpux11*)
3840         # On HP-UX, both CC and GCC only warn that PIC is supported... then
3841         # they create non-PIC objects.  So, if there were any warnings, we
3842         # assume that PIC is not supported.
3843         if test -s conftest.err; then
3844           lt_cv_prog_cc_pic_works=no
3845         else
3846           lt_cv_prog_cc_pic_works=yes
3847         fi
3848         ;;
3849       *)
3850         lt_cv_prog_cc_pic_works=yes
3851         ;;
3852       esac
3853
3854 else
3855   echo "$as_me: failed program was:" >&5
3856 cat conftest.$ac_ext >&5
3857       lt_cv_prog_cc_pic_works=no
3858
3859 fi
3860 rm -f conftest.$ac_objext conftest.$ac_ext
3861     CFLAGS="$save_CFLAGS"
3862
3863 fi
3864
3865   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
3866     lt_cv_prog_cc_pic=
3867     lt_cv_prog_cc_can_build_shared=no
3868   else
3869     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
3870   fi
3871
3872   echo "$as_me:3872: result: $lt_cv_prog_cc_pic_works" >&5
3873 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
3874 fi
3875
3876 # Check for any special shared library compilation flags.
3877 if test -n "$lt_cv_prog_cc_shlib"; then
3878   { echo "$as_me:3878: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
3879 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
3880   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
3881   else
3882    { echo "$as_me:3882: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
3883 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
3884     lt_cv_prog_cc_can_build_shared=no
3885   fi
3886 fi
3887
3888 echo "$as_me:3888: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
3889 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
3890 if test "${lt_cv_prog_cc_static_works+set}" = set; then
3891   echo $ECHO_N "(cached) $ECHO_C" >&6
3892 else
3893     lt_cv_prog_cc_static_works=no
3894   save_LDFLAGS="$LDFLAGS"
3895   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
3896   cat >conftest.$ac_ext <<_ACEOF
3897 #line 3897 "configure"
3898 #include "confdefs.h"
3899
3900 int
3901 main ()
3902 {
3903
3904   ;
3905   return 0;
3906 }
3907 _ACEOF
3908 rm -f conftest.$ac_objext conftest$ac_exeext
3909 if { (eval echo "$as_me:3909: \"$ac_link\"") >&5
3910   (eval $ac_link) 2>&5
3911   ac_status=$?
3912   echo "$as_me:3912: \$? = $ac_status" >&5
3913   (exit $ac_status); } &&
3914          { ac_try='test -s conftest$ac_exeext'
3915   { (eval echo "$as_me:3915: \"$ac_try\"") >&5
3916   (eval $ac_try) 2>&5
3917   ac_status=$?
3918   echo "$as_me:3918: \$? = $ac_status" >&5
3919   (exit $ac_status); }; }; then
3920   lt_cv_prog_cc_static_works=yes
3921 else
3922   echo "$as_me: failed program was:" >&5
3923 cat conftest.$ac_ext >&5
3924 fi
3925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3926   LDFLAGS="$save_LDFLAGS"
3927
3928 fi
3929
3930 # Belt *and* braces to stop my trousers falling down:
3931 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
3932 echo "$as_me:3932: result: $lt_cv_prog_cc_static_works" >&5
3933 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
3934
3935 pic_flag="$lt_cv_prog_cc_pic"
3936 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
3937 wl="$lt_cv_prog_cc_wl"
3938 link_static_flag="$lt_cv_prog_cc_static"
3939 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
3940 can_build_shared="$lt_cv_prog_cc_can_build_shared"
3941
3942 # Check to see if options -o and -c are simultaneously supported by compiler
3943 echo "$as_me:3943: checking if $compiler supports -c -o file.$ac_objext" >&5
3944 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
3945 if test "${lt_cv_compiler_c_o+set}" = set; then
3946   echo $ECHO_N "(cached) $ECHO_C" >&6
3947 else
3948
3949 $rm -r conftest 2>/dev/null
3950 mkdir conftest
3951 cd conftest
3952 echo "int some_variable = 0;" > conftest.$ac_ext
3953 mkdir out
3954 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
3955 # that will create temporary files in the current directory regardless of
3956 # the output directory.  Thus, making CWD read-only will cause this test
3957 # to fail, enabling locking or at least warning the user not to do parallel
3958 # builds.
3959 chmod -w .
3960 save_CFLAGS="$CFLAGS"
3961 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
3962 compiler_c_o=no
3963 if { (eval echo configure:3963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
3964   # The compiler can only warn and ignore the option if not recognized
3965   # So say no if there are warnings
3966   if test -s out/conftest.err; then
3967     lt_cv_compiler_c_o=no
3968   else
3969     lt_cv_compiler_c_o=yes
3970   fi
3971 else
3972   # Append any errors to the config.log.
3973   cat out/conftest.err 1>&5
3974   lt_cv_compiler_c_o=no
3975 fi
3976 CFLAGS="$save_CFLAGS"
3977 chmod u+w .
3978 $rm conftest* out/*
3979 rmdir out
3980 cd ..
3981 rmdir conftest
3982 $rm -r conftest 2>/dev/null
3983
3984 fi
3985
3986 compiler_c_o=$lt_cv_compiler_c_o
3987 echo "$as_me:3987: result: $compiler_c_o" >&5
3988 echo "${ECHO_T}$compiler_c_o" >&6
3989
3990 if test x"$compiler_c_o" = x"yes"; then
3991   # Check to see if we can write to a .lo
3992   echo "$as_me:3992: checking if $compiler supports -c -o file.lo" >&5
3993 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
3994   if test "${lt_cv_compiler_o_lo+set}" = set; then
3995   echo $ECHO_N "(cached) $ECHO_C" >&6
3996 else
3997
3998   lt_cv_compiler_o_lo=no
3999   save_CFLAGS="$CFLAGS"
4000   CFLAGS="$CFLAGS -c -o conftest.lo"
4001   save_objext="$ac_objext"
4002   ac_objext=lo
4003   cat >conftest.$ac_ext <<_ACEOF
4004 #line 4004 "configure"
4005 #include "confdefs.h"
4006
4007 int
4008 main ()
4009 {
4010 int some_variable = 0;
4011   ;
4012   return 0;
4013 }
4014 _ACEOF
4015 rm -f conftest.$ac_objext
4016 if { (eval echo "$as_me:4016: \"$ac_compile\"") >&5
4017   (eval $ac_compile) 2>&5
4018   ac_status=$?
4019   echo "$as_me:4019: \$? = $ac_status" >&5
4020   (exit $ac_status); } &&
4021          { ac_try='test -s conftest.$ac_objext'
4022   { (eval echo "$as_me:4022: \"$ac_try\"") >&5
4023   (eval $ac_try) 2>&5
4024   ac_status=$?
4025   echo "$as_me:4025: \$? = $ac_status" >&5
4026   (exit $ac_status); }; }; then
4027       # The compiler can only warn and ignore the option if not recognized
4028     # So say no if there are warnings
4029     if test -s conftest.err; then
4030       lt_cv_compiler_o_lo=no
4031     else
4032       lt_cv_compiler_o_lo=yes
4033     fi
4034
4035 else
4036   echo "$as_me: failed program was:" >&5
4037 cat conftest.$ac_ext >&5
4038 fi
4039 rm -f conftest.$ac_objext conftest.$ac_ext
4040   ac_objext="$save_objext"
4041   CFLAGS="$save_CFLAGS"
4042
4043 fi
4044
4045   compiler_o_lo=$lt_cv_compiler_o_lo
4046   echo "$as_me:4046: result: $compiler_o_lo" >&5
4047 echo "${ECHO_T}$compiler_o_lo" >&6
4048 else
4049   compiler_o_lo=no
4050 fi
4051
4052 # Check to see if we can do hard links to lock some files if needed
4053 hard_links="nottested"
4054 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4055   # do not overwrite the value of need_locks provided by the user
4056   echo "$as_me:4056: checking if we can lock with hard links" >&5
4057 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4058   hard_links=yes
4059   $rm conftest*
4060   ln conftest.a conftest.b 2>/dev/null && hard_links=no
4061   touch conftest.a
4062   ln conftest.a conftest.b 2>&5 || hard_links=no
4063   ln conftest.a conftest.b 2>/dev/null && hard_links=no
4064   echo "$as_me:4064: result: $hard_links" >&5
4065 echo "${ECHO_T}$hard_links" >&6
4066   if test "$hard_links" = no; then
4067     { echo "$as_me:4067: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4068 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4069     need_locks=warn
4070   fi
4071 else
4072   need_locks=no
4073 fi
4074
4075 if test "$GCC" = yes; then
4076   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4077   echo "$as_me:4077: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4078 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4079   echo "int some_variable = 0;" > conftest.$ac_ext
4080   save_CFLAGS="$CFLAGS"
4081   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4082   compiler_rtti_exceptions=no
4083   cat >conftest.$ac_ext <<_ACEOF
4084 #line 4084 "configure"
4085 #include "confdefs.h"
4086
4087 int
4088 main ()
4089 {
4090 int some_variable = 0;
4091   ;
4092   return 0;
4093 }
4094 _ACEOF
4095 rm -f conftest.$ac_objext
4096 if { (eval echo "$as_me:4096: \"$ac_compile\"") >&5
4097   (eval $ac_compile) 2>&5
4098   ac_status=$?
4099   echo "$as_me:4099: \$? = $ac_status" >&5
4100   (exit $ac_status); } &&
4101          { ac_try='test -s conftest.$ac_objext'
4102   { (eval echo "$as_me:4102: \"$ac_try\"") >&5
4103   (eval $ac_try) 2>&5
4104   ac_status=$?
4105   echo "$as_me:4105: \$? = $ac_status" >&5
4106   (exit $ac_status); }; }; then
4107       # The compiler can only warn and ignore the option if not recognized
4108     # So say no if there are warnings
4109     if test -s conftest.err; then
4110       compiler_rtti_exceptions=no
4111     else
4112       compiler_rtti_exceptions=yes
4113     fi
4114
4115 else
4116   echo "$as_me: failed program was:" >&5
4117 cat conftest.$ac_ext >&5
4118 fi
4119 rm -f conftest.$ac_objext conftest.$ac_ext
4120   CFLAGS="$save_CFLAGS"
4121   echo "$as_me:4121: result: $compiler_rtti_exceptions" >&5
4122 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4123
4124   if test "$compiler_rtti_exceptions" = "yes"; then
4125     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4126   else
4127     no_builtin_flag=' -fno-builtin'
4128   fi
4129 fi
4130
4131 # See if the linker supports building shared libraries.
4132 echo "$as_me:4132: checking whether the linker ($LD) supports shared libraries" >&5
4133 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4134
4135 allow_undefined_flag=
4136 no_undefined_flag=
4137 need_lib_prefix=unknown
4138 need_version=unknown
4139 # when you set need_version to no, make sure it does not cause -set_version
4140 # flags to be left without arguments
4141 archive_cmds=
4142 archive_expsym_cmds=
4143 old_archive_from_new_cmds=
4144 old_archive_from_expsyms_cmds=
4145 export_dynamic_flag_spec=
4146 whole_archive_flag_spec=
4147 thread_safe_flag_spec=
4148 hardcode_into_libs=no
4149 hardcode_libdir_flag_spec=
4150 hardcode_libdir_separator=
4151 hardcode_direct=no
4152 hardcode_minus_L=no
4153 hardcode_shlibpath_var=unsupported
4154 runpath_var=
4155 link_all_deplibs=unknown
4156 always_export_symbols=no
4157 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4158 # include_expsyms should be a list of space-separated symbols to be *always*
4159 # included in the symbol list
4160 include_expsyms=
4161 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4162 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4163 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4164 # as well as any symbol that contains `d'.
4165 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4166 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4167 # platforms (ab)use it in PIC code, but their linkers get confused if
4168 # the symbol is explicitly referenced.  Since portable code cannot
4169 # rely on this symbol name, it's probably fine to never include it in
4170 # preloaded symbol tables.
4171 extract_expsyms_cmds=
4172
4173 case $host_os in
4174 cygwin* | mingw* | pw32*)
4175   # FIXME: the MSVC++ port hasn't been tested in a loooong time
4176   # When not using gcc, we currently assume that we are using
4177   # Microsoft Visual C++.
4178   if test "$GCC" != yes; then
4179     with_gnu_ld=no
4180   fi
4181   ;;
4182 openbsd*)
4183   with_gnu_ld=no
4184   ;;
4185 esac
4186
4187 ld_shlibs=yes
4188 if test "$with_gnu_ld" = yes; then
4189   # If archive_cmds runs LD, not CC, wlarc should be empty
4190   wlarc='${wl}'
4191
4192   # See if GNU ld supports shared libraries.
4193   case $host_os in
4194   aix3* | aix4* | aix5*)
4195     # On AIX, the GNU linker is very broken
4196     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4197     ld_shlibs=no
4198     cat <<EOF 1>&2
4199
4200 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4201 *** to be unable to reliably create shared libraries on AIX.
4202 *** Therefore, libtool is disabling shared libraries support.  If you
4203 *** really care for shared libraries, you may want to modify your PATH
4204 *** so that a non-GNU linker is found, and then restart.
4205
4206 EOF
4207     ;;
4208
4209   amigaos*)
4210     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)'
4211     hardcode_libdir_flag_spec='-L$libdir'
4212     hardcode_minus_L=yes
4213
4214     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4215     # that the semantics of dynamic libraries on AmigaOS, at least up
4216     # to version 4, is to share data among multiple programs linked
4217     # with the same dynamic library.  Since this doesn't match the
4218     # behavior of shared libraries on other platforms, we can use
4219     # them.
4220     ld_shlibs=no
4221     ;;
4222
4223   beos*)
4224     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4225       allow_undefined_flag=unsupported
4226       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4227       # support --undefined.  This deserves some investigation.  FIXME
4228       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4229     else
4230       ld_shlibs=no
4231     fi
4232     ;;
4233
4234   cygwin* | mingw* | pw32*)
4235     # hardcode_libdir_flag_spec is actually meaningless, as there is
4236     # no search path for DLLs.
4237     hardcode_libdir_flag_spec='-L$libdir'
4238     allow_undefined_flag=unsupported
4239     always_export_symbols=yes
4240
4241     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4242       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4243       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4244       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4245       else $CC -o impgen impgen.c ; fi)~
4246       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4247
4248     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4249
4250     # cygwin and mingw dlls have different entry points and sets of symbols
4251     # to exclude.
4252     # FIXME: what about values for MSVC?
4253     dll_entry=__cygwin_dll_entry@12
4254     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4255     case $host_os in
4256     mingw*)
4257       # mingw values
4258       dll_entry=_DllMainCRTStartup@12
4259       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4260       ;;
4261     esac
4262
4263     # mingw and cygwin differ, and it's simplest to just exclude the union
4264     # of the two symbol sets.
4265     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4266
4267     # recent cygwin and mingw systems supply a stub DllMain which the user
4268     # can override, but on older systems we have to supply one (in ltdll.c)
4269     if test "x$lt_cv_need_dllmain" = "xyes"; then
4270       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4271       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~
4272         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4273     else
4274       ltdll_obj=
4275       ltdll_cmds=
4276     fi
4277
4278     # Extract the symbol export list from an `--export-all' def file,
4279     # then regenerate the def file from the symbol export list, so that
4280     # the compiled dll only exports the symbol export list.
4281     # Be careful not to strip the DATA tag left be newer dlltools.
4282     export_symbols_cmds="$ltdll_cmds"'
4283       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4284       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4285
4286     # If the export-symbols file already is a .def file (1st line
4287     # is EXPORTS), use it as is.
4288     # If DATA tags from a recent dlltool are present, honour them!
4289     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4290         cp $export_symbols $output_objdir/$soname-def;
4291       else
4292         echo EXPORTS > $output_objdir/$soname-def;
4293         _lt_hint=1;
4294         cat $export_symbols | while read symbol; do
4295          set dummy \$symbol;
4296          case \$# in
4297            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4298            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4299          esac;
4300          _lt_hint=`expr 1 + \$_lt_hint`;
4301         done;
4302       fi~
4303       '"$ltdll_cmds"'
4304       $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~
4305       $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~
4306       $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~
4307       $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~
4308       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4309     ;;
4310
4311   netbsd*)
4312     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4313       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4314       wlarc=
4315     else
4316       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4317       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4318     fi
4319     ;;
4320
4321   solaris* | sysv5*)
4322     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4323       ld_shlibs=no
4324       cat <<EOF 1>&2
4325
4326 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4327 *** create shared libraries on Solaris systems.  Therefore, libtool
4328 *** is disabling shared libraries support.  We urge you to upgrade GNU
4329 *** binutils to release 2.9.1 or newer.  Another option is to modify
4330 *** your PATH or compiler configuration so that the native linker is
4331 *** used, and then restart.
4332
4333 EOF
4334     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4335       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4336       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4337     else
4338       ld_shlibs=no
4339     fi
4340     ;;
4341
4342   sunos4*)
4343     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4344     wlarc=
4345     hardcode_direct=yes
4346     hardcode_shlibpath_var=no
4347     ;;
4348
4349   *)
4350     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4351       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4352       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4353     else
4354       ld_shlibs=no
4355     fi
4356     ;;
4357   esac
4358
4359   if test "$ld_shlibs" = yes; then
4360     runpath_var=LD_RUN_PATH
4361     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4362     export_dynamic_flag_spec='${wl}--export-dynamic'
4363     case $host_os in
4364     cygwin* | mingw* | pw32*)
4365       # dlltool doesn't understand --whole-archive et. al.
4366       whole_archive_flag_spec=
4367       ;;
4368     *)
4369       # ancient GNU ld didn't support --whole-archive et. al.
4370       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4371         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4372       else
4373         whole_archive_flag_spec=
4374       fi
4375       ;;
4376     esac
4377   fi
4378 else
4379   # PORTME fill in a description of your system's linker (not GNU ld)
4380   case $host_os in
4381   aix3*)
4382     allow_undefined_flag=unsupported
4383     always_export_symbols=yes
4384     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'
4385     # Note: this linker hardcodes the directories in LIBPATH if there
4386     # are no directories specified by -L.
4387     hardcode_minus_L=yes
4388     if test "$GCC" = yes && test -z "$link_static_flag"; then
4389       # Neither direct hardcoding nor static linking is supported with a
4390       # broken collect2.
4391       hardcode_direct=unsupported
4392     fi
4393     ;;
4394
4395   aix4* | aix5*)
4396     if test "$host_cpu" = ia64; then
4397       # On IA64, the linker does run time linking by default, so we don't
4398       # have to do anything special.
4399       aix_use_runtimelinking=no
4400       exp_sym_flag='-Bexport'
4401       no_entry_flag=""
4402     else
4403       aix_use_runtimelinking=no
4404
4405       # Test if we are trying to use run time linking or normal
4406       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4407       # need to do runtime linking.
4408       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
4409         for ld_flag in $LDFLAGS; do
4410           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4411             aix_use_runtimelinking=yes
4412             break
4413           fi
4414         done
4415       esac
4416
4417       exp_sym_flag='-bexport'
4418       no_entry_flag='-bnoentry'
4419     fi
4420
4421     # When large executables or shared objects are built, AIX ld can
4422     # have problems creating the table of contents.  If linking a library
4423     # or program results in "error TOC overflow" add -mminimal-toc to
4424     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
4425     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4426
4427     hardcode_direct=yes
4428     archive_cmds=''
4429     hardcode_libdir_separator=':'
4430     if test "$GCC" = yes; then
4431       case $host_os in aix4.[012]|aix4.[012].*)
4432         collect2name=`${CC} -print-prog-name=collect2`
4433         if test -f "$collect2name" && \
4434           strings "$collect2name" | grep resolve_lib_name >/dev/null
4435         then
4436           # We have reworked collect2
4437           hardcode_direct=yes
4438         else
4439           # We have old collect2
4440           hardcode_direct=unsupported
4441           # It fails to find uninstalled libraries when the uninstalled
4442           # path is not listed in the libpath.  Setting hardcode_minus_L
4443           # to unsupported forces relinking
4444           hardcode_minus_L=yes
4445           hardcode_libdir_flag_spec='-L$libdir'
4446           hardcode_libdir_separator=
4447         fi
4448       esac
4449
4450       shared_flag='-shared'
4451     else
4452       # not using gcc
4453       if test "$host_cpu" = ia64; then
4454         shared_flag='${wl}-G'
4455       else
4456         if test "$aix_use_runtimelinking" = yes; then
4457           shared_flag='${wl}-G'
4458         else
4459           shared_flag='${wl}-bM:SRE'
4460         fi
4461       fi
4462     fi
4463
4464     # It seems that -bexpall can do strange things, so it is better to
4465     # generate a list of symbols to export.
4466     always_export_symbols=yes
4467     if test "$aix_use_runtimelinking" = yes; then
4468       # Warning - without using the other runtime loading flags (-brtl),
4469       # -berok will link without error, but may produce a broken library.
4470       allow_undefined_flag='-berok'
4471       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4472       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"
4473     else
4474       if test "$host_cpu" = ia64; then
4475         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4476         allow_undefined_flag="-z nodefs"
4477         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"
4478       else
4479         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4480         # Warning - without using the other run time loading flags,
4481         # -berok will link without error, but may produce a broken library.
4482         allow_undefined_flag='${wl}-berok'
4483         # This is a bit strange, but is similar to how AIX traditionally builds
4484         # it's shared libraries.
4485         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'
4486       fi
4487     fi
4488     ;;
4489
4490   amigaos*)
4491     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)'
4492     hardcode_libdir_flag_spec='-L$libdir'
4493     hardcode_minus_L=yes
4494     # see comment about different semantics on the GNU ld section
4495     ld_shlibs=no
4496     ;;
4497
4498   cygwin* | mingw* | pw32*)
4499     # When not using gcc, we currently assume that we are using
4500     # Microsoft Visual C++.
4501     # hardcode_libdir_flag_spec is actually meaningless, as there is
4502     # no search path for DLLs.
4503     hardcode_libdir_flag_spec=' '
4504     allow_undefined_flag=unsupported
4505     # Tell ltmain to make .lib files, not .a files.
4506     libext=lib
4507     # FIXME: Setting linknames here is a bad hack.
4508     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4509     # The linker will automatically build a .lib file if we build a DLL.
4510     old_archive_from_new_cmds='true'
4511     # FIXME: Should let the user specify the lib program.
4512     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4513     fix_srcfile_path='`cygpath -w "$srcfile"`'
4514     ;;
4515
4516   darwin* | rhapsody*)
4517     case "$host_os" in
4518     rhapsody* | darwin1.[012])
4519       allow_undefined_flag='-undefined suppress'
4520       ;;
4521     *) # Darwin 1.3 on
4522       allow_undefined_flag='-flat_namespace -undefined suppress'
4523       ;;
4524     esac
4525     # FIXME: Relying on posixy $() will cause problems for
4526     #        cross-compilation, but unfortunately the echo tests do not
4527     #        yet detect zsh echo's removal of \ escapes.
4528     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'
4529     # We need to add '_' to the symbols in $export_symbols first
4530     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4531     hardcode_direct=yes
4532     hardcode_shlibpath_var=no
4533     whole_archive_flag_spec='-all_load $convenience'
4534     ;;
4535
4536   freebsd1*)
4537     ld_shlibs=no
4538     ;;
4539
4540   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4541   # support.  Future versions do this automatically, but an explicit c++rt0.o
4542   # does not break anything, and helps significantly (at the cost of a little
4543   # extra space).
4544   freebsd2.2*)
4545     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4546     hardcode_libdir_flag_spec='-R$libdir'
4547     hardcode_direct=yes
4548     hardcode_shlibpath_var=no
4549     ;;
4550
4551   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4552   freebsd2*)
4553     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4554     hardcode_direct=yes
4555     hardcode_minus_L=yes
4556     hardcode_shlibpath_var=no
4557     ;;
4558
4559   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4560   freebsd*)
4561     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4562     hardcode_libdir_flag_spec='-R$libdir'
4563     hardcode_direct=yes
4564     hardcode_shlibpath_var=no
4565     ;;
4566
4567   hpux9* | hpux10* | hpux11*)
4568     case $host_os in
4569     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' ;;
4570     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4571     esac
4572     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4573     hardcode_libdir_separator=:
4574     hardcode_direct=yes
4575     hardcode_minus_L=yes # Not in the search PATH, but as the default
4576                          # location of the library.
4577     export_dynamic_flag_spec='${wl}-E'
4578     ;;
4579
4580   irix5* | irix6*)
4581     if test "$GCC" = yes; then
4582       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'
4583     else
4584       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'
4585     fi
4586     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4587     hardcode_libdir_separator=:
4588     link_all_deplibs=yes
4589     ;;
4590
4591   netbsd*)
4592     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4593       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
4594     else
4595       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
4596     fi
4597     hardcode_libdir_flag_spec='-R$libdir'
4598     hardcode_direct=yes
4599     hardcode_shlibpath_var=no
4600     ;;
4601
4602   newsos6)
4603     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4604     hardcode_direct=yes
4605     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4606     hardcode_libdir_separator=:
4607     hardcode_shlibpath_var=no
4608     ;;
4609
4610   openbsd*)
4611     hardcode_direct=yes
4612     hardcode_shlibpath_var=no
4613     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4614       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4615       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4616       export_dynamic_flag_spec='${wl}-E'
4617     else
4618       case "$host_os" in
4619       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
4620         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4621         hardcode_libdir_flag_spec='-R$libdir'
4622         ;;
4623       *)
4624         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4625         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4626         ;;
4627       esac
4628     fi
4629     ;;
4630
4631   os2*)
4632     hardcode_libdir_flag_spec='-L$libdir'
4633     hardcode_minus_L=yes
4634     allow_undefined_flag=unsupported
4635     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'
4636     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4637     ;;
4638
4639   osf3*)
4640     if test "$GCC" = yes; then
4641       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4642       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'
4643     else
4644       allow_undefined_flag=' -expect_unresolved \*'
4645       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'
4646     fi
4647     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4648     hardcode_libdir_separator=:
4649     ;;
4650
4651   osf4* | osf5*)        # as osf3* with the addition of -msym flag
4652     if test "$GCC" = yes; then
4653       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4654       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'
4655       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4656     else
4657       allow_undefined_flag=' -expect_unresolved \*'
4658       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'
4659       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4660       $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'
4661
4662       #Both c and cxx compiler support -rpath directly
4663       hardcode_libdir_flag_spec='-rpath $libdir'
4664     fi
4665     hardcode_libdir_separator=:
4666     ;;
4667
4668   sco3.2v5*)
4669     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4670     hardcode_shlibpath_var=no
4671     runpath_var=LD_RUN_PATH
4672     hardcode_runpath_var=yes
4673     export_dynamic_flag_spec='${wl}-Bexport'
4674     ;;
4675
4676   solaris*)
4677     # gcc --version < 3.0 without binutils cannot create self contained
4678     # shared libraries reliably, requiring libgcc.a to resolve some of
4679     # the object symbols generated in some cases.  Libraries that use
4680     # assert need libgcc.a to resolve __eprintf, for example.  Linking
4681     # a copy of libgcc.a into every shared library to guarantee resolving
4682     # such symbols causes other problems:  According to Tim Van Holder
4683     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
4684     # (to the application) exception stack for one thing.
4685     no_undefined_flag=' -z defs'
4686     if test "$GCC" = yes; then
4687       case `$CC --version 2>/dev/null` in
4688       [12].*)
4689         cat <<EOF 1>&2
4690
4691 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
4692 *** create self contained shared libraries on Solaris systems, without
4693 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
4694 *** -no-undefined support, which will at least allow you to build shared
4695 *** libraries.  However, you may find that when you link such libraries
4696 *** into an application without using GCC, you have to manually add
4697 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
4698 *** upgrade to a newer version of GCC.  Another option is to rebuild your
4699 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
4700
4701 EOF
4702         no_undefined_flag=
4703         ;;
4704       esac
4705     fi
4706     # $CC -shared without GNU ld will not create a library from C++
4707     # object files and a static libstdc++, better avoid it by now
4708     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4709     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4710                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4711     hardcode_libdir_flag_spec='-R$libdir'
4712     hardcode_shlibpath_var=no
4713     case $host_os in
4714     solaris2.[0-5] | solaris2.[0-5].*) ;;
4715     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4716       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
4717     esac
4718     link_all_deplibs=yes
4719     ;;
4720
4721   sunos4*)
4722     if test "x$host_vendor" = xsequent; then
4723       # Use $CC to link under sequent, because it throws in some extra .o
4724       # files that make .init and .fini sections work.
4725       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4726     else
4727       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4728     fi
4729     hardcode_libdir_flag_spec='-L$libdir'
4730     hardcode_direct=yes
4731     hardcode_minus_L=yes
4732     hardcode_shlibpath_var=no
4733     ;;
4734
4735   sysv4)
4736     if test "x$host_vendor" = xsno; then
4737       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
4738       hardcode_direct=yes # is this really true???
4739     else
4740       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4741       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
4742     fi
4743     runpath_var='LD_RUN_PATH'
4744     hardcode_shlibpath_var=no
4745     ;;
4746
4747   sysv4.3*)
4748     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4749     hardcode_shlibpath_var=no
4750     export_dynamic_flag_spec='-Bexport'
4751     ;;
4752
4753   sysv5*)
4754     no_undefined_flag=' -z text'
4755     # $CC -shared without GNU ld will not create a library from C++
4756     # object files and a static libstdc++, better avoid it by now
4757     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4758     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4759                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4760     hardcode_libdir_flag_spec=
4761     hardcode_shlibpath_var=no
4762     runpath_var='LD_RUN_PATH'
4763     ;;
4764
4765   uts4*)
4766     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4767     hardcode_libdir_flag_spec='-L$libdir'
4768     hardcode_shlibpath_var=no
4769     ;;
4770
4771   dgux*)
4772     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4773     hardcode_libdir_flag_spec='-L$libdir'
4774     hardcode_shlibpath_var=no
4775     ;;
4776
4777   sysv4*MP*)
4778     if test -d /usr/nec; then
4779       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4780       hardcode_shlibpath_var=no
4781       runpath_var=LD_RUN_PATH
4782       hardcode_runpath_var=yes
4783       ld_shlibs=yes
4784     fi
4785     ;;
4786
4787   sysv4.2uw2*)
4788     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4789     hardcode_direct=yes
4790     hardcode_minus_L=no
4791     hardcode_shlibpath_var=no
4792     hardcode_runpath_var=yes
4793     runpath_var=LD_RUN_PATH
4794     ;;
4795
4796   sysv5uw7* | unixware7*)
4797     no_undefined_flag='${wl}-z ${wl}text'
4798     if test "$GCC" = yes; then
4799       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4800     else
4801       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4802     fi
4803     runpath_var='LD_RUN_PATH'
4804     hardcode_shlibpath_var=no
4805     ;;
4806
4807   *)
4808     ld_shlibs=no
4809     ;;
4810   esac
4811 fi
4812 echo "$as_me:4812: result: $ld_shlibs" >&5
4813 echo "${ECHO_T}$ld_shlibs" >&6
4814 test "$ld_shlibs" = no && can_build_shared=no
4815
4816 # Check hardcoding attributes.
4817 echo "$as_me:4817: checking how to hardcode library paths into programs" >&5
4818 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
4819 hardcode_action=
4820 if test -n "$hardcode_libdir_flag_spec" || \
4821    test -n "$runpath_var"; then
4822
4823   # We can hardcode non-existant directories.
4824   if test "$hardcode_direct" != no &&
4825      # If the only mechanism to avoid hardcoding is shlibpath_var, we
4826      # have to relink, otherwise we might link with an installed library
4827      # when we should be linking with a yet-to-be-installed one
4828      ## test "$hardcode_shlibpath_var" != no &&
4829      test "$hardcode_minus_L" != no; then
4830     # Linking always hardcodes the temporary library directory.
4831     hardcode_action=relink
4832   else
4833     # We can link without hardcoding, and we can hardcode nonexisting dirs.
4834     hardcode_action=immediate
4835   fi
4836 else
4837   # We cannot hardcode anything, or else we can only hardcode existing
4838   # directories.
4839   hardcode_action=unsupported
4840 fi
4841 echo "$as_me:4841: result: $hardcode_action" >&5
4842 echo "${ECHO_T}$hardcode_action" >&6
4843
4844 striplib=
4845 old_striplib=
4846 echo "$as_me:4846: checking whether stripping libraries is possible" >&5
4847 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
4848 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
4849   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
4850   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
4851   echo "$as_me:4851: result: yes" >&5
4852 echo "${ECHO_T}yes" >&6
4853 else
4854   echo "$as_me:4854: result: no" >&5
4855 echo "${ECHO_T}no" >&6
4856 fi
4857
4858 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4859 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4860
4861 # PORTME Fill in your ld.so characteristics
4862 echo "$as_me:4862: checking dynamic linker characteristics" >&5
4863 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4864 library_names_spec=
4865 libname_spec='lib$name'
4866 soname_spec=
4867 postinstall_cmds=
4868 postuninstall_cmds=
4869 finish_cmds=
4870 finish_eval=
4871 shlibpath_var=
4872 shlibpath_overrides_runpath=unknown
4873 version_type=none
4874 dynamic_linker="$host_os ld.so"
4875 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4876 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4877
4878 case $host_os in
4879 aix3*)
4880   version_type=linux
4881   library_names_spec='${libname}${release}.so$versuffix $libname.a'
4882   shlibpath_var=LIBPATH
4883
4884   # AIX has no versioning support, so we append a major version to the name.
4885   soname_spec='${libname}${release}.so$major'
4886   ;;
4887
4888 aix4* | aix5*)
4889   version_type=linux
4890   if test "$host_cpu" = ia64; then
4891     # AIX 5 supports IA64
4892     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
4893     shlibpath_var=LD_LIBRARY_PATH
4894   else
4895     # With GCC up to 2.95.x, collect2 would create an import file
4896     # for dependence libraries.  The import file would start with
4897     # the line `#! .'.  This would cause the generated library to
4898     # depend on `.', always an invalid library.  This was fixed in
4899     # development snapshots of GCC prior to 3.0.
4900     case $host_os in
4901       aix4 | aix4.[01] | aix4.[01].*)
4902         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4903              echo ' yes '
4904              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4905           :
4906         else
4907           can_build_shared=no
4908         fi
4909         ;;
4910     esac
4911     # AIX (on Power*) has no versioning support, so currently we can
4912     # not hardcode correct soname into executable. Probably we can
4913     # add versioning support to collect2, so additional links can
4914     # be useful in future.
4915     if test "$aix_use_runtimelinking" = yes; then
4916       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4917       # instead of lib<name>.a to let people know that these are not
4918       # typical AIX shared libraries.
4919       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4920     else
4921       # We preserve .a as extension for shared libraries through AIX4.2
4922       # and later when we are not doing run time linking.
4923       library_names_spec='${libname}${release}.a $libname.a'
4924       soname_spec='${libname}${release}.so$major'
4925     fi
4926     shlibpath_var=LIBPATH
4927   fi
4928   ;;
4929
4930 amigaos*)
4931   library_names_spec='$libname.ixlibrary $libname.a'
4932   # Create ${libname}_ixlibrary.a entries in /sys/libs.
4933   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'
4934   ;;
4935
4936 beos*)
4937   library_names_spec='${libname}.so'
4938   dynamic_linker="$host_os ld.so"
4939   shlibpath_var=LIBRARY_PATH
4940   ;;
4941
4942 bsdi4*)
4943   version_type=linux
4944   need_version=no
4945   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4946   soname_spec='${libname}${release}.so$major'
4947   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4948   shlibpath_var=LD_LIBRARY_PATH
4949   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4950   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4951   export_dynamic_flag_spec=-rdynamic
4952   # the default ld.so.conf also contains /usr/contrib/lib and
4953   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4954   # libtool to hard-code these into programs
4955   ;;
4956
4957 cygwin* | mingw* | pw32*)
4958   version_type=windows
4959   need_version=no
4960   need_lib_prefix=no
4961   case $GCC,$host_os in
4962   yes,cygwin*)
4963     library_names_spec='$libname.dll.a'
4964     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4965     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
4966       dldir=$destdir/`dirname \$dlpath`~
4967       test -d \$dldir || mkdir -p \$dldir~
4968       $install_prog .libs/$dlname \$dldir/$dlname'
4969     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
4970       dlpath=$dir/\$dldll~
4971        $rm \$dlpath'
4972     ;;
4973   yes,mingw*)
4974     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4975     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
4976     ;;
4977   yes,pw32*)
4978     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
4979     ;;
4980   *)
4981     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
4982     ;;
4983   esac
4984   dynamic_linker='Win32 ld.exe'
4985   # FIXME: first we should search . and the directory the executable is in
4986   shlibpath_var=PATH
4987   ;;
4988
4989 darwin* | rhapsody*)
4990   dynamic_linker="$host_os dyld"
4991   version_type=darwin
4992   need_lib_prefix=no
4993   need_version=no
4994   # FIXME: Relying on posixy $() will cause problems for
4995   #        cross-compilation, but unfortunately the echo tests do not
4996   #        yet detect zsh echo's removal of \ escapes.
4997   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)'
4998   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
4999   shlibpath_overrides_runpath=yes
5000   shlibpath_var=DYLD_LIBRARY_PATH
5001   ;;
5002
5003 freebsd1*)
5004   dynamic_linker=no
5005   ;;
5006
5007 freebsd*)
5008   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5009   version_type=freebsd-$objformat
5010   case $version_type in
5011     freebsd-elf*)
5012       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5013       need_version=no
5014       need_lib_prefix=no
5015       ;;
5016     freebsd-*)
5017       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5018       need_version=yes
5019       ;;
5020   esac
5021   shlibpath_var=LD_LIBRARY_PATH
5022   case $host_os in
5023   freebsd2*)
5024     shlibpath_overrides_runpath=yes
5025     ;;
5026   *)
5027     shlibpath_overrides_runpath=no
5028     hardcode_into_libs=yes
5029     ;;
5030   esac
5031   ;;
5032
5033 gnu*)
5034   version_type=linux
5035   need_lib_prefix=no
5036   need_version=no
5037   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5038   soname_spec='${libname}${release}.so$major'
5039   shlibpath_var=LD_LIBRARY_PATH
5040   hardcode_into_libs=yes
5041   ;;
5042
5043 hpux9* | hpux10* | hpux11*)
5044   # Give a soname corresponding to the major version so that dld.sl refuses to
5045   # link against other versions.
5046   dynamic_linker="$host_os dld.sl"
5047   version_type=sunos
5048   need_lib_prefix=no
5049   need_version=no
5050   shlibpath_var=SHLIB_PATH
5051   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5052   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5053   soname_spec='${libname}${release}.sl$major'
5054   # HP-UX runs *really* slowly unless shared libraries are mode 555.
5055   postinstall_cmds='chmod 555 $lib'
5056   ;;
5057
5058 irix5* | irix6*)
5059   version_type=irix
5060   need_lib_prefix=no
5061   need_version=no
5062   soname_spec='${libname}${release}.so$major'
5063   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5064   case $host_os in
5065   irix5*)
5066     libsuff= shlibsuff=
5067     ;;
5068   *)
5069     case $LD in # libtool.m4 will add one of these switches to LD
5070     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5071     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5072     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5073     *) libsuff= shlibsuff= libmagic=never-match;;
5074     esac
5075     ;;
5076   esac
5077   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5078   shlibpath_overrides_runpath=no
5079   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5080   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5081   ;;
5082
5083 # No shared lib support for Linux oldld, aout, or coff.
5084 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5085   dynamic_linker=no
5086   ;;
5087
5088 # This must be Linux ELF.
5089 linux-gnu*)
5090   version_type=linux
5091   need_lib_prefix=no
5092   need_version=no
5093   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5094   soname_spec='${libname}${release}.so$major'
5095   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5096   shlibpath_var=LD_LIBRARY_PATH
5097   shlibpath_overrides_runpath=no
5098   # This implies no fast_install, which is unacceptable.
5099   # Some rework will be needed to allow for fast_install
5100   # before this can be enabled.
5101   hardcode_into_libs=yes
5102
5103   # We used to test for /lib/ld.so.1 and disable shared libraries on
5104   # powerpc, because MkLinux only supported shared libraries with the
5105   # GNU dynamic linker.  Since this was broken with cross compilers,
5106   # most powerpc-linux boxes support dynamic linking these days and
5107   # people can always --disable-shared, the test was removed, and we
5108   # assume the GNU/Linux dynamic linker is in use.
5109   dynamic_linker='GNU/Linux ld.so'
5110   ;;
5111
5112 netbsd*)
5113   version_type=sunos
5114   need_lib_prefix=no
5115   need_version=no
5116   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5117     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5118     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5119     dynamic_linker='NetBSD (a.out) ld.so'
5120   else
5121     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5122     soname_spec='${libname}${release}.so$major'
5123     dynamic_linker='NetBSD ld.elf_so'
5124   fi
5125   shlibpath_var=LD_LIBRARY_PATH
5126   shlibpath_overrides_runpath=yes
5127   hardcode_into_libs=yes
5128   ;;
5129
5130 newsos6)
5131   version_type=linux
5132   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5133   shlibpath_var=LD_LIBRARY_PATH
5134   shlibpath_overrides_runpath=yes
5135   ;;
5136
5137 openbsd*)
5138   version_type=sunos
5139   need_lib_prefix=no
5140   need_version=no
5141   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5142     case "$host_os" in
5143     openbsd2.[89] | openbsd2.[89].*)
5144       shlibpath_overrides_runpath=no
5145       ;;
5146     *)
5147       shlibpath_overrides_runpath=yes
5148       ;;
5149     esac
5150   else
5151     shlibpath_overrides_runpath=yes
5152   fi
5153   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5154   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5155   shlibpath_var=LD_LIBRARY_PATH
5156   ;;
5157
5158 os2*)
5159   libname_spec='$name'
5160   need_lib_prefix=no
5161   library_names_spec='$libname.dll $libname.a'
5162   dynamic_linker='OS/2 ld.exe'
5163   shlibpath_var=LIBPATH
5164   ;;
5165
5166 osf3* | osf4* | osf5*)
5167   version_type=osf
5168   need_version=no
5169   soname_spec='${libname}${release}.so'
5170   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5171   shlibpath_var=LD_LIBRARY_PATH
5172   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5173   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5174   ;;
5175
5176 sco3.2v5*)
5177   version_type=osf
5178   soname_spec='${libname}${release}.so$major'
5179   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5180   shlibpath_var=LD_LIBRARY_PATH
5181   ;;
5182
5183 solaris*)
5184   version_type=linux
5185   need_lib_prefix=no
5186   need_version=no
5187   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5188   soname_spec='${libname}${release}.so$major'
5189   shlibpath_var=LD_LIBRARY_PATH
5190   shlibpath_overrides_runpath=yes
5191   hardcode_into_libs=yes
5192   # ldd complains unless libraries are executable
5193   postinstall_cmds='chmod +x $lib'
5194   ;;
5195
5196 sunos4*)
5197   version_type=sunos
5198   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5199   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5200   shlibpath_var=LD_LIBRARY_PATH
5201   shlibpath_overrides_runpath=yes
5202   if test "$with_gnu_ld" = yes; then
5203     need_lib_prefix=no
5204   fi
5205   need_version=yes
5206   ;;
5207
5208 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5209   version_type=linux
5210   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5211   soname_spec='${libname}${release}.so$major'
5212   shlibpath_var=LD_LIBRARY_PATH
5213   case $host_vendor in
5214     sni)
5215       shlibpath_overrides_runpath=no
5216       ;;
5217     motorola)
5218       need_lib_prefix=no
5219       need_version=no
5220       shlibpath_overrides_runpath=no
5221       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5222       ;;
5223   esac
5224   ;;
5225
5226 uts4*)
5227   version_type=linux
5228   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5229   soname_spec='${libname}${release}.so$major'
5230   shlibpath_var=LD_LIBRARY_PATH
5231   ;;
5232
5233 dgux*)
5234   version_type=linux
5235   need_lib_prefix=no
5236   need_version=no
5237   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5238   soname_spec='${libname}${release}.so$major'
5239   shlibpath_var=LD_LIBRARY_PATH
5240   ;;
5241
5242 sysv4*MP*)
5243   if test -d /usr/nec ;then
5244     version_type=linux
5245     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5246     soname_spec='$libname.so.$major'
5247     shlibpath_var=LD_LIBRARY_PATH
5248   fi
5249   ;;
5250
5251 *)
5252   dynamic_linker=no
5253   ;;
5254 esac
5255 echo "$as_me:5255: result: $dynamic_linker" >&5
5256 echo "${ECHO_T}$dynamic_linker" >&6
5257 test "$dynamic_linker" = no && can_build_shared=no
5258
5259 # Report the final consequences.
5260 echo "$as_me:5260: checking if libtool supports shared libraries" >&5
5261 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5262 echo "$as_me:5262: result: $can_build_shared" >&5
5263 echo "${ECHO_T}$can_build_shared" >&6
5264
5265 echo "$as_me:5265: checking whether to build shared libraries" >&5
5266 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5267 test "$can_build_shared" = "no" && enable_shared=no
5268
5269 # On AIX, shared libraries and static libraries use the same namespace, and
5270 # are all built from PIC.
5271 case "$host_os" in
5272 aix3*)
5273   test "$enable_shared" = yes && enable_static=no
5274   if test -n "$RANLIB"; then
5275     archive_cmds="$archive_cmds~\$RANLIB \$lib"
5276     postinstall_cmds='$RANLIB $lib'
5277   fi
5278   ;;
5279
5280 aix4*)
5281   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5282     test "$enable_shared" = yes && enable_static=no
5283   fi
5284   ;;
5285 esac
5286 echo "$as_me:5286: result: $enable_shared" >&5
5287 echo "${ECHO_T}$enable_shared" >&6
5288
5289 echo "$as_me:5289: checking whether to build static libraries" >&5
5290 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
5291 # Make sure either enable_shared or enable_static is yes.
5292 test "$enable_shared" = yes || enable_static=yes
5293 echo "$as_me:5293: result: $enable_static" >&5
5294 echo "${ECHO_T}$enable_static" >&6
5295
5296 if test "$hardcode_action" = relink; then
5297   # Fast installation is not supported
5298   enable_fast_install=no
5299 elif test "$shlibpath_overrides_runpath" = yes ||
5300      test "$enable_shared" = no; then
5301   # Fast installation is not necessary
5302   enable_fast_install=needless
5303 fi
5304
5305 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5306 if test "$GCC" = yes; then
5307   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5308 fi
5309
5310 if test "x$enable_dlopen" != xyes; then
5311   enable_dlopen=unknown
5312   enable_dlopen_self=unknown
5313   enable_dlopen_self_static=unknown
5314 else
5315   lt_cv_dlopen=no
5316   lt_cv_dlopen_libs=
5317
5318   case $host_os in
5319   beos*)
5320     lt_cv_dlopen="load_add_on"
5321     lt_cv_dlopen_libs=
5322     lt_cv_dlopen_self=yes
5323     ;;
5324
5325   cygwin* | mingw* | pw32*)
5326     lt_cv_dlopen="LoadLibrary"
5327     lt_cv_dlopen_libs=
5328    ;;
5329
5330   *)
5331     echo "$as_me:5331: checking for shl_load" >&5
5332 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5333 if test "${ac_cv_func_shl_load+set}" = set; then
5334   echo $ECHO_N "(cached) $ECHO_C" >&6
5335 else
5336   cat >conftest.$ac_ext <<_ACEOF
5337 #line 5337 "configure"
5338 #include "confdefs.h"
5339 /* System header to define __stub macros and hopefully few prototypes,
5340     which can conflict with char shl_load (); below.  */
5341 #include <assert.h>
5342 /* Override any gcc2 internal prototype to avoid an error.  */
5343 #ifdef __cplusplus
5344 extern "C"
5345 #endif
5346 /* We use char because int might match the return type of a gcc2
5347    builtin and then its argument prototype would still apply.  */
5348 char shl_load ();
5349 char (*f) ();
5350
5351 int
5352 main ()
5353 {
5354 /* The GNU C library defines this for functions which it implements
5355     to always fail with ENOSYS.  Some functions are actually named
5356     something starting with __ and the normal name is an alias.  */
5357 #if defined (__stub_shl_load) || defined (__stub___shl_load)
5358 choke me
5359 #else
5360 f = shl_load;
5361 #endif
5362
5363   ;
5364   return 0;
5365 }
5366 _ACEOF
5367 rm -f conftest.$ac_objext conftest$ac_exeext
5368 if { (eval echo "$as_me:5368: \"$ac_link\"") >&5
5369   (eval $ac_link) 2>&5
5370   ac_status=$?
5371   echo "$as_me:5371: \$? = $ac_status" >&5
5372   (exit $ac_status); } &&
5373          { ac_try='test -s conftest$ac_exeext'
5374   { (eval echo "$as_me:5374: \"$ac_try\"") >&5
5375   (eval $ac_try) 2>&5
5376   ac_status=$?
5377   echo "$as_me:5377: \$? = $ac_status" >&5
5378   (exit $ac_status); }; }; then
5379   ac_cv_func_shl_load=yes
5380 else
5381   echo "$as_me: failed program was:" >&5
5382 cat conftest.$ac_ext >&5
5383 ac_cv_func_shl_load=no
5384 fi
5385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5386 fi
5387 echo "$as_me:5387: result: $ac_cv_func_shl_load" >&5
5388 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5389 if test $ac_cv_func_shl_load = yes; then
5390   lt_cv_dlopen="shl_load"
5391 else
5392   echo "$as_me:5392: checking for shl_load in -ldld" >&5
5393 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5394 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5395   echo $ECHO_N "(cached) $ECHO_C" >&6
5396 else
5397   ac_check_lib_save_LIBS=$LIBS
5398 LIBS="-ldld  $LIBS"
5399 cat >conftest.$ac_ext <<_ACEOF
5400 #line 5400 "configure"
5401 #include "confdefs.h"
5402
5403 /* Override any gcc2 internal prototype to avoid an error.  */
5404 #ifdef __cplusplus
5405 extern "C"
5406 #endif
5407 /* We use char because int might match the return type of a gcc2
5408    builtin and then its argument prototype would still apply.  */
5409 char shl_load ();
5410 int
5411 main ()
5412 {
5413 shl_load ();
5414   ;
5415   return 0;
5416 }
5417 _ACEOF
5418 rm -f conftest.$ac_objext conftest$ac_exeext
5419 if { (eval echo "$as_me:5419: \"$ac_link\"") >&5
5420   (eval $ac_link) 2>&5
5421   ac_status=$?
5422   echo "$as_me:5422: \$? = $ac_status" >&5
5423   (exit $ac_status); } &&
5424          { ac_try='test -s conftest$ac_exeext'
5425   { (eval echo "$as_me:5425: \"$ac_try\"") >&5
5426   (eval $ac_try) 2>&5
5427   ac_status=$?
5428   echo "$as_me:5428: \$? = $ac_status" >&5
5429   (exit $ac_status); }; }; then
5430   ac_cv_lib_dld_shl_load=yes
5431 else
5432   echo "$as_me: failed program was:" >&5
5433 cat conftest.$ac_ext >&5
5434 ac_cv_lib_dld_shl_load=no
5435 fi
5436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5437 LIBS=$ac_check_lib_save_LIBS
5438 fi
5439 echo "$as_me:5439: result: $ac_cv_lib_dld_shl_load" >&5
5440 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5441 if test $ac_cv_lib_dld_shl_load = yes; then
5442   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
5443 else
5444   echo "$as_me:5444: checking for dlopen" >&5
5445 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5446 if test "${ac_cv_func_dlopen+set}" = set; then
5447   echo $ECHO_N "(cached) $ECHO_C" >&6
5448 else
5449   cat >conftest.$ac_ext <<_ACEOF
5450 #line 5450 "configure"
5451 #include "confdefs.h"
5452 /* System header to define __stub macros and hopefully few prototypes,
5453     which can conflict with char dlopen (); below.  */
5454 #include <assert.h>
5455 /* Override any gcc2 internal prototype to avoid an error.  */
5456 #ifdef __cplusplus
5457 extern "C"
5458 #endif
5459 /* We use char because int might match the return type of a gcc2
5460    builtin and then its argument prototype would still apply.  */
5461 char dlopen ();
5462 char (*f) ();
5463
5464 int
5465 main ()
5466 {
5467 /* The GNU C library defines this for functions which it implements
5468     to always fail with ENOSYS.  Some functions are actually named
5469     something starting with __ and the normal name is an alias.  */
5470 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5471 choke me
5472 #else
5473 f = dlopen;
5474 #endif
5475
5476   ;
5477   return 0;
5478 }
5479 _ACEOF
5480 rm -f conftest.$ac_objext conftest$ac_exeext
5481 if { (eval echo "$as_me:5481: \"$ac_link\"") >&5
5482   (eval $ac_link) 2>&5
5483   ac_status=$?
5484   echo "$as_me:5484: \$? = $ac_status" >&5
5485   (exit $ac_status); } &&
5486          { ac_try='test -s conftest$ac_exeext'
5487   { (eval echo "$as_me:5487: \"$ac_try\"") >&5
5488   (eval $ac_try) 2>&5
5489   ac_status=$?
5490   echo "$as_me:5490: \$? = $ac_status" >&5
5491   (exit $ac_status); }; }; then
5492   ac_cv_func_dlopen=yes
5493 else
5494   echo "$as_me: failed program was:" >&5
5495 cat conftest.$ac_ext >&5
5496 ac_cv_func_dlopen=no
5497 fi
5498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5499 fi
5500 echo "$as_me:5500: result: $ac_cv_func_dlopen" >&5
5501 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
5502 if test $ac_cv_func_dlopen = yes; then
5503   lt_cv_dlopen="dlopen"
5504 else
5505   echo "$as_me:5505: checking for dlopen in -ldl" >&5
5506 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5507 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5508   echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510   ac_check_lib_save_LIBS=$LIBS
5511 LIBS="-ldl  $LIBS"
5512 cat >conftest.$ac_ext <<_ACEOF
5513 #line 5513 "configure"
5514 #include "confdefs.h"
5515
5516 /* Override any gcc2 internal prototype to avoid an error.  */
5517 #ifdef __cplusplus
5518 extern "C"
5519 #endif
5520 /* We use char because int might match the return type of a gcc2
5521    builtin and then its argument prototype would still apply.  */
5522 char dlopen ();
5523 int
5524 main ()
5525 {
5526 dlopen ();
5527   ;
5528   return 0;
5529 }
5530 _ACEOF
5531 rm -f conftest.$ac_objext conftest$ac_exeext
5532 if { (eval echo "$as_me:5532: \"$ac_link\"") >&5
5533   (eval $ac_link) 2>&5
5534   ac_status=$?
5535   echo "$as_me:5535: \$? = $ac_status" >&5
5536   (exit $ac_status); } &&
5537          { ac_try='test -s conftest$ac_exeext'
5538   { (eval echo "$as_me:5538: \"$ac_try\"") >&5
5539   (eval $ac_try) 2>&5
5540   ac_status=$?
5541   echo "$as_me:5541: \$? = $ac_status" >&5
5542   (exit $ac_status); }; }; then
5543   ac_cv_lib_dl_dlopen=yes
5544 else
5545   echo "$as_me: failed program was:" >&5
5546 cat conftest.$ac_ext >&5
5547 ac_cv_lib_dl_dlopen=no
5548 fi
5549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5550 LIBS=$ac_check_lib_save_LIBS
5551 fi
5552 echo "$as_me:5552: result: $ac_cv_lib_dl_dlopen" >&5
5553 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5554 if test $ac_cv_lib_dl_dlopen = yes; then
5555   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5556 else
5557   echo "$as_me:5557: checking for dlopen in -lsvld" >&5
5558 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
5559 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
5560   echo $ECHO_N "(cached) $ECHO_C" >&6
5561 else
5562   ac_check_lib_save_LIBS=$LIBS
5563 LIBS="-lsvld  $LIBS"
5564 cat >conftest.$ac_ext <<_ACEOF
5565 #line 5565 "configure"
5566 #include "confdefs.h"
5567
5568 /* Override any gcc2 internal prototype to avoid an error.  */
5569 #ifdef __cplusplus
5570 extern "C"
5571 #endif
5572 /* We use char because int might match the return type of a gcc2
5573    builtin and then its argument prototype would still apply.  */
5574 char dlopen ();
5575 int
5576 main ()
5577 {
5578 dlopen ();
5579   ;
5580   return 0;
5581 }
5582 _ACEOF
5583 rm -f conftest.$ac_objext conftest$ac_exeext
5584 if { (eval echo "$as_me:5584: \"$ac_link\"") >&5
5585   (eval $ac_link) 2>&5
5586   ac_status=$?
5587   echo "$as_me:5587: \$? = $ac_status" >&5
5588   (exit $ac_status); } &&
5589          { ac_try='test -s conftest$ac_exeext'
5590   { (eval echo "$as_me:5590: \"$ac_try\"") >&5
5591   (eval $ac_try) 2>&5
5592   ac_status=$?
5593   echo "$as_me:5593: \$? = $ac_status" >&5
5594   (exit $ac_status); }; }; then
5595   ac_cv_lib_svld_dlopen=yes
5596 else
5597   echo "$as_me: failed program was:" >&5
5598 cat conftest.$ac_ext >&5
5599 ac_cv_lib_svld_dlopen=no
5600 fi
5601 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5602 LIBS=$ac_check_lib_save_LIBS
5603 fi
5604 echo "$as_me:5604: result: $ac_cv_lib_svld_dlopen" >&5
5605 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
5606 if test $ac_cv_lib_svld_dlopen = yes; then
5607   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5608 else
5609   echo "$as_me:5609: checking for dld_link in -ldld" >&5
5610 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
5611 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
5612   echo $ECHO_N "(cached) $ECHO_C" >&6
5613 else
5614   ac_check_lib_save_LIBS=$LIBS
5615 LIBS="-ldld  $LIBS"
5616 cat >conftest.$ac_ext <<_ACEOF
5617 #line 5617 "configure"
5618 #include "confdefs.h"
5619
5620 /* Override any gcc2 internal prototype to avoid an error.  */
5621 #ifdef __cplusplus
5622 extern "C"
5623 #endif
5624 /* We use char because int might match the return type of a gcc2
5625    builtin and then its argument prototype would still apply.  */
5626 char dld_link ();
5627 int
5628 main ()
5629 {
5630 dld_link ();
5631   ;
5632   return 0;
5633 }
5634 _ACEOF
5635 rm -f conftest.$ac_objext conftest$ac_exeext
5636 if { (eval echo "$as_me:5636: \"$ac_link\"") >&5
5637   (eval $ac_link) 2>&5
5638   ac_status=$?
5639   echo "$as_me:5639: \$? = $ac_status" >&5
5640   (exit $ac_status); } &&
5641          { ac_try='test -s conftest$ac_exeext'
5642   { (eval echo "$as_me:5642: \"$ac_try\"") >&5
5643   (eval $ac_try) 2>&5
5644   ac_status=$?
5645   echo "$as_me:5645: \$? = $ac_status" >&5
5646   (exit $ac_status); }; }; then
5647   ac_cv_lib_dld_dld_link=yes
5648 else
5649   echo "$as_me: failed program was:" >&5
5650 cat conftest.$ac_ext >&5
5651 ac_cv_lib_dld_dld_link=no
5652 fi
5653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5654 LIBS=$ac_check_lib_save_LIBS
5655 fi
5656 echo "$as_me:5656: result: $ac_cv_lib_dld_dld_link" >&5
5657 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
5658 if test $ac_cv_lib_dld_dld_link = yes; then
5659   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
5660 fi
5661
5662 fi
5663
5664 fi
5665
5666 fi
5667
5668 fi
5669
5670 fi
5671
5672     ;;
5673   esac
5674
5675   if test "x$lt_cv_dlopen" != xno; then
5676     enable_dlopen=yes
5677   else
5678     enable_dlopen=no
5679   fi
5680
5681   case $lt_cv_dlopen in
5682   dlopen)
5683     save_CPPFLAGS="$CPPFLAGS"
5684         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
5685
5686     save_LDFLAGS="$LDFLAGS"
5687     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
5688
5689     save_LIBS="$LIBS"
5690     LIBS="$lt_cv_dlopen_libs $LIBS"
5691
5692     echo "$as_me:5692: checking whether a program can dlopen itself" >&5
5693 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
5694 if test "${lt_cv_dlopen_self+set}" = set; then
5695   echo $ECHO_N "(cached) $ECHO_C" >&6
5696 else
5697           if test "$cross_compiling" = yes; then :
5698   lt_cv_dlopen_self=cross
5699 else
5700     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5701   lt_status=$lt_dlunknown
5702   cat > conftest.$ac_ext <<EOF
5703 #line 5703 "configure"
5704 #include "confdefs.h"
5705
5706 #if HAVE_DLFCN_H
5707 #include <dlfcn.h>
5708 #endif
5709
5710 #include <stdio.h>
5711
5712 #ifdef RTLD_GLOBAL
5713 #  define LT_DLGLOBAL           RTLD_GLOBAL
5714 #else
5715 #  ifdef DL_GLOBAL
5716 #    define LT_DLGLOBAL         DL_GLOBAL
5717 #  else
5718 #    define LT_DLGLOBAL         0
5719 #  endif
5720 #endif
5721
5722 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5723    find out it does not work in some platform. */
5724 #ifndef LT_DLLAZY_OR_NOW
5725 #  ifdef RTLD_LAZY
5726 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
5727 #  else
5728 #    ifdef DL_LAZY
5729 #      define LT_DLLAZY_OR_NOW          DL_LAZY
5730 #    else
5731 #      ifdef RTLD_NOW
5732 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
5733 #      else
5734 #        ifdef DL_NOW
5735 #          define LT_DLLAZY_OR_NOW      DL_NOW
5736 #        else
5737 #          define LT_DLLAZY_OR_NOW      0
5738 #        endif
5739 #      endif
5740 #    endif
5741 #  endif
5742 #endif
5743
5744 #ifdef __cplusplus
5745 extern "C" void exit (int);
5746 #endif
5747
5748 void fnord() { int i=42;}
5749 int main ()
5750 {
5751   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5752   int status = $lt_dlunknown;
5753
5754   if (self)
5755     {
5756       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
5757       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5758       /* dlclose (self); */
5759     }
5760
5761     exit (status);
5762 }
5763 EOF
5764   if { (eval echo "$as_me:5764: \"$ac_link\"") >&5
5765   (eval $ac_link) 2>&5
5766   ac_status=$?
5767   echo "$as_me:5767: \$? = $ac_status" >&5
5768   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5769     (./conftest; exit; ) 2>/dev/null
5770     lt_status=$?
5771     case x$lt_status in
5772       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
5773       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
5774       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
5775     esac
5776   else :
5777     # compilation failed
5778     lt_cv_dlopen_self=no
5779   fi
5780 fi
5781 rm -fr conftest*
5782
5783 fi
5784 echo "$as_me:5784: result: $lt_cv_dlopen_self" >&5
5785 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
5786
5787     if test "x$lt_cv_dlopen_self" = xyes; then
5788       LDFLAGS="$LDFLAGS $link_static_flag"
5789       echo "$as_me:5789: checking whether a statically linked program can dlopen itself" >&5
5790 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
5791 if test "${lt_cv_dlopen_self_static+set}" = set; then
5792   echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794           if test "$cross_compiling" = yes; then :
5795   lt_cv_dlopen_self_static=cross
5796 else
5797     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5798   lt_status=$lt_dlunknown
5799   cat > conftest.$ac_ext <<EOF
5800 #line 5800 "configure"
5801 #include "confdefs.h"
5802
5803 #if HAVE_DLFCN_H
5804 #include <dlfcn.h>
5805 #endif
5806
5807 #include <stdio.h>
5808
5809 #ifdef RTLD_GLOBAL
5810 #  define LT_DLGLOBAL           RTLD_GLOBAL
5811 #else
5812 #  ifdef DL_GLOBAL
5813 #    define LT_DLGLOBAL         DL_GLOBAL
5814 #  else
5815 #    define LT_DLGLOBAL         0
5816 #  endif
5817 #endif
5818
5819 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5820    find out it does not work in some platform. */
5821 #ifndef LT_DLLAZY_OR_NOW
5822 #  ifdef RTLD_LAZY
5823 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
5824 #  else
5825 #    ifdef DL_LAZY
5826 #      define LT_DLLAZY_OR_NOW          DL_LAZY
5827 #    else
5828 #      ifdef RTLD_NOW
5829 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
5830 #      else
5831 #        ifdef DL_NOW
5832 #          define LT_DLLAZY_OR_NOW      DL_NOW
5833 #        else
5834 #          define LT_DLLAZY_OR_NOW      0
5835 #        endif
5836 #      endif
5837 #    endif
5838 #  endif
5839 #endif
5840
5841 #ifdef __cplusplus
5842 extern "C" void exit (int);
5843 #endif
5844
5845 void fnord() { int i=42;}
5846 int main ()
5847 {
5848   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5849   int status = $lt_dlunknown;
5850
5851   if (self)
5852     {
5853       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
5854       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5855       /* dlclose (self); */
5856     }
5857
5858     exit (status);
5859 }
5860 EOF
5861   if { (eval echo "$as_me:5861: \"$ac_link\"") >&5
5862   (eval $ac_link) 2>&5
5863   ac_status=$?
5864   echo "$as_me:5864: \$? = $ac_status" >&5
5865   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5866     (./conftest; exit; ) 2>/dev/null
5867     lt_status=$?
5868     case x$lt_status in
5869       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
5870       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
5871       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
5872     esac
5873   else :
5874     # compilation failed
5875     lt_cv_dlopen_self_static=no
5876   fi
5877 fi
5878 rm -fr conftest*
5879
5880 fi
5881 echo "$as_me:5881: result: $lt_cv_dlopen_self_static" >&5
5882 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
5883     fi
5884
5885     CPPFLAGS="$save_CPPFLAGS"
5886     LDFLAGS="$save_LDFLAGS"
5887     LIBS="$save_LIBS"
5888     ;;
5889   esac
5890
5891   case $lt_cv_dlopen_self in
5892   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
5893   *) enable_dlopen_self=unknown ;;
5894   esac
5895
5896   case $lt_cv_dlopen_self_static in
5897   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
5898   *) enable_dlopen_self_static=unknown ;;
5899   esac
5900 fi
5901
5902 if test "$enable_shared" = yes && test "$GCC" = yes; then
5903   case $archive_cmds in
5904   *'~'*)
5905     # FIXME: we may have to deal with multi-command sequences.
5906     ;;
5907   '$CC '*)
5908     # Test whether the compiler implicitly links with -lc since on some
5909     # systems, -lgcc has to come before -lc. If gcc already passes -lc
5910     # to ld, don't add -lc before -lgcc.
5911     echo "$as_me:5911: checking whether -lc should be explicitly linked in" >&5
5912 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
5913     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
5914   echo $ECHO_N "(cached) $ECHO_C" >&6
5915 else
5916   $rm conftest*
5917     echo 'static int dummy;' > conftest.$ac_ext
5918
5919     if { (eval echo "$as_me:5919: \"$ac_compile\"") >&5
5920   (eval $ac_compile) 2>&5
5921   ac_status=$?
5922   echo "$as_me:5922: \$? = $ac_status" >&5
5923   (exit $ac_status); }; then
5924       soname=conftest
5925       lib=conftest
5926       libobjs=conftest.$ac_objext
5927       deplibs=
5928       wl=$lt_cv_prog_cc_wl
5929       compiler_flags=-v
5930       linker_flags=-v
5931       verstring=
5932       output_objdir=.
5933       libname=conftest
5934       save_allow_undefined_flag=$allow_undefined_flag
5935       allow_undefined_flag=
5936       if { (eval echo "$as_me:5936: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
5937   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
5938   ac_status=$?
5939   echo "$as_me:5939: \$? = $ac_status" >&5
5940   (exit $ac_status); }
5941       then
5942         lt_cv_archive_cmds_need_lc=no
5943       else
5944         lt_cv_archive_cmds_need_lc=yes
5945       fi
5946       allow_undefined_flag=$save_allow_undefined_flag
5947     else
5948       cat conftest.err 1>&5
5949     fi
5950     $rm conftest*
5951
5952 fi
5953
5954     echo "$as_me:5954: result: $lt_cv_archive_cmds_need_lc" >&5
5955 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
5956     ;;
5957   esac
5958 fi
5959 need_lc=${lt_cv_archive_cmds_need_lc-yes}
5960
5961 # The second clause should only fire when bootstrapping the
5962 # libtool distribution, otherwise you forgot to ship ltmain.sh
5963 # with your package, and you will get complaints that there are
5964 # no rules to generate ltmain.sh.
5965 if test -f "$ltmain"; then
5966   :
5967 else
5968   # If there is no Makefile yet, we rely on a make rule to execute
5969   # `config.status --recheck' to rerun these tests and create the
5970   # libtool script then.
5971   test -f Makefile && make "$ltmain"
5972 fi
5973
5974 if test -f "$ltmain"; then
5975   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
5976   $rm -f "${ofile}T"
5977
5978   echo creating $ofile
5979
5980   # Now quote all the things that may contain metacharacters while being
5981   # careful not to overquote the AC_SUBSTed values.  We take copies of the
5982   # variables and quote the copies for generation of the libtool script.
5983   for var in echo old_CC old_CFLAGS \
5984     AR AR_FLAGS CC LD LN_S NM SHELL \
5985     reload_flag reload_cmds wl \
5986     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
5987     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
5988     library_names_spec soname_spec \
5989     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
5990     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
5991     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
5992     old_striplib striplib file_magic_cmd export_symbols_cmds \
5993     deplibs_check_method allow_undefined_flag no_undefined_flag \
5994     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
5995     global_symbol_to_c_name_address \
5996     hardcode_libdir_flag_spec hardcode_libdir_separator  \
5997     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5998     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
5999
6000     case $var in
6001     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6002     old_postinstall_cmds | old_postuninstall_cmds | \
6003     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6004     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6005     postinstall_cmds | postuninstall_cmds | \
6006     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6007       # Double-quote double-evaled strings.
6008       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6009       ;;
6010     *)
6011       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6012       ;;
6013     esac
6014   done
6015
6016   cat <<__EOF__ > "${ofile}T"
6017 #! $SHELL
6018
6019 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6020 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6021 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6022 #
6023 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6024 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6025 #
6026 # This program is free software; you can redistribute it and/or modify
6027 # it under the terms of the GNU General Public License as published by
6028 # the Free Software Foundation; either version 2 of the License, or
6029 # (at your option) any later version.
6030 #
6031 # This program is distributed in the hope that it will be useful, but
6032 # WITHOUT ANY WARRANTY; without even the implied warranty of
6033 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
6034 # General Public License for more details.
6035 #
6036 # You should have received a copy of the GNU General Public License
6037 # along with this program; if not, write to the Free Software
6038 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6039 #
6040 # As a special exception to the GNU General Public License, if you
6041 # distribute this file as part of a program that contains a
6042 # configuration script generated by Autoconf, you may include it under
6043 # the same distribution terms that you use for the rest of that program.
6044
6045 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6046 Xsed="sed -e s/^X//"
6047
6048 # The HP-UX ksh and POSIX shell print the target directory to stdout
6049 # if CDPATH is set.
6050 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6051
6052 # ### BEGIN LIBTOOL CONFIG
6053
6054 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6055
6056 # Shell to use when invoking shell scripts.
6057 SHELL=$lt_SHELL
6058
6059 # Whether or not to build shared libraries.
6060 build_libtool_libs=$enable_shared
6061
6062 # Whether or not to build static libraries.
6063 build_old_libs=$enable_static
6064
6065 # Whether or not to add -lc for building shared libraries.
6066 build_libtool_need_lc=$need_lc
6067
6068 # Whether or not to optimize for fast installation.
6069 fast_install=$enable_fast_install
6070
6071 # The host system.
6072 host_alias=$host_alias
6073 host=$host
6074
6075 # An echo program that does not interpret backslashes.
6076 echo=$lt_echo
6077
6078 # The archiver.
6079 AR=$lt_AR
6080 AR_FLAGS=$lt_AR_FLAGS
6081
6082 # The default C compiler.
6083 CC=$lt_CC
6084
6085 # Is the compiler the GNU C compiler?
6086 with_gcc=$GCC
6087
6088 # The linker used to build libraries.
6089 LD=$lt_LD
6090
6091 # Whether we need hard or soft links.
6092 LN_S=$lt_LN_S
6093
6094 # A BSD-compatible nm program.
6095 NM=$lt_NM
6096
6097 # A symbol stripping program
6098 STRIP=$STRIP
6099
6100 # Used to examine libraries when file_magic_cmd begins "file"
6101 MAGIC_CMD=$MAGIC_CMD
6102
6103 # Used on cygwin: DLL creation program.
6104 DLLTOOL="$DLLTOOL"
6105
6106 # Used on cygwin: object dumper.
6107 OBJDUMP="$OBJDUMP"
6108
6109 # Used on cygwin: assembler.
6110 AS="$AS"
6111
6112 # The name of the directory that contains temporary libtool files.
6113 objdir=$objdir
6114
6115 # How to create reloadable object files.
6116 reload_flag=$lt_reload_flag
6117 reload_cmds=$lt_reload_cmds
6118
6119 # How to pass a linker flag through the compiler.
6120 wl=$lt_wl
6121
6122 # Object file suffix (normally "o").
6123 objext="$ac_objext"
6124
6125 # Old archive suffix (normally "a").
6126 libext="$libext"
6127
6128 # Executable file suffix (normally "").
6129 exeext="$exeext"
6130
6131 # Additional compiler flags for building library objects.
6132 pic_flag=$lt_pic_flag
6133 pic_mode=$pic_mode
6134
6135 # Does compiler simultaneously support -c and -o options?
6136 compiler_c_o=$lt_compiler_c_o
6137
6138 # Can we write directly to a .lo ?
6139 compiler_o_lo=$lt_compiler_o_lo
6140
6141 # Must we lock files when doing compilation ?
6142 need_locks=$lt_need_locks
6143
6144 # Do we need the lib prefix for modules?
6145 need_lib_prefix=$need_lib_prefix
6146
6147 # Do we need a version for libraries?
6148 need_version=$need_version
6149
6150 # Whether dlopen is supported.
6151 dlopen_support=$enable_dlopen
6152
6153 # Whether dlopen of programs is supported.
6154 dlopen_self=$enable_dlopen_self
6155
6156 # Whether dlopen of statically linked programs is supported.
6157 dlopen_self_static=$enable_dlopen_self_static
6158
6159 # Compiler flag to prevent dynamic linking.
6160 link_static_flag=$lt_link_static_flag
6161
6162 # Compiler flag to turn off builtin functions.
6163 no_builtin_flag=$lt_no_builtin_flag
6164
6165 # Compiler flag to allow reflexive dlopens.
6166 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6167
6168 # Compiler flag to generate shared objects directly from archives.
6169 whole_archive_flag_spec=$lt_whole_archive_flag_spec
6170
6171 # Compiler flag to generate thread-safe objects.
6172 thread_safe_flag_spec=$lt_thread_safe_flag_spec
6173
6174 # Library versioning type.
6175 version_type=$version_type
6176
6177 # Format of library name prefix.
6178 libname_spec=$lt_libname_spec
6179
6180 # List of archive names.  First name is the real one, the rest are links.
6181 # The last name is the one that the linker finds with -lNAME.
6182 library_names_spec=$lt_library_names_spec
6183
6184 # The coded name of the library, if different from the real name.
6185 soname_spec=$lt_soname_spec
6186
6187 # Commands used to build and install an old-style archive.
6188 RANLIB=$lt_RANLIB
6189 old_archive_cmds=$lt_old_archive_cmds
6190 old_postinstall_cmds=$lt_old_postinstall_cmds
6191 old_postuninstall_cmds=$lt_old_postuninstall_cmds
6192
6193 # Create an old-style archive from a shared archive.
6194 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6195
6196 # Create a temporary old-style archive to link instead of a shared archive.
6197 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6198
6199 # Commands used to build and install a shared archive.
6200 archive_cmds=$lt_archive_cmds
6201 archive_expsym_cmds=$lt_archive_expsym_cmds
6202 postinstall_cmds=$lt_postinstall_cmds
6203 postuninstall_cmds=$lt_postuninstall_cmds
6204
6205 # Commands to strip libraries.
6206 old_striplib=$lt_old_striplib
6207 striplib=$lt_striplib
6208
6209 # Method to check whether dependent libraries are shared objects.
6210 deplibs_check_method=$lt_deplibs_check_method
6211
6212 # Command to use when deplibs_check_method == file_magic.
6213 file_magic_cmd=$lt_file_magic_cmd
6214
6215 # Flag that allows shared libraries with undefined symbols to be built.
6216 allow_undefined_flag=$lt_allow_undefined_flag
6217
6218 # Flag that forces no undefined symbols.
6219 no_undefined_flag=$lt_no_undefined_flag
6220
6221 # Commands used to finish a libtool library installation in a directory.
6222 finish_cmds=$lt_finish_cmds
6223
6224 # Same as above, but a single script fragment to be evaled but not shown.
6225 finish_eval=$lt_finish_eval
6226
6227 # Take the output of nm and produce a listing of raw symbols and C names.
6228 global_symbol_pipe=$lt_global_symbol_pipe
6229
6230 # Transform the output of nm in a proper C declaration
6231 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6232
6233 # Transform the output of nm in a C name address pair
6234 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
6235
6236 # This is the shared library runtime path variable.
6237 runpath_var=$runpath_var
6238
6239 # This is the shared library path variable.
6240 shlibpath_var=$shlibpath_var
6241
6242 # Is shlibpath searched before the hard-coded library search path?
6243 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6244
6245 # How to hardcode a shared library path into an executable.
6246 hardcode_action=$hardcode_action
6247
6248 # Whether we should hardcode library paths into libraries.
6249 hardcode_into_libs=$hardcode_into_libs
6250
6251 # Flag to hardcode \$libdir into a binary during linking.
6252 # This must work even if \$libdir does not exist.
6253 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6254
6255 # Whether we need a single -rpath flag with a separated argument.
6256 hardcode_libdir_separator=$lt_hardcode_libdir_separator
6257
6258 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6259 # resulting binary.
6260 hardcode_direct=$hardcode_direct
6261
6262 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6263 # resulting binary.
6264 hardcode_minus_L=$hardcode_minus_L
6265
6266 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6267 # the resulting binary.
6268 hardcode_shlibpath_var=$hardcode_shlibpath_var
6269
6270 # Variables whose values should be saved in libtool wrapper scripts and
6271 # restored at relink time.
6272 variables_saved_for_relink="$variables_saved_for_relink"
6273
6274 # Whether libtool must link a program against all its dependency libraries.
6275 link_all_deplibs=$link_all_deplibs
6276
6277 # Compile-time system search path for libraries
6278 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6279
6280 # Run-time system search path for libraries
6281 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6282
6283 # Fix the shell variable \$srcfile for the compiler.
6284 fix_srcfile_path="$fix_srcfile_path"
6285
6286 # Set to yes if exported symbols are required.
6287 always_export_symbols=$always_export_symbols
6288
6289 # The commands to list exported symbols.
6290 export_symbols_cmds=$lt_export_symbols_cmds
6291
6292 # The commands to extract the exported symbol list from a shared archive.
6293 extract_expsyms_cmds=$lt_extract_expsyms_cmds
6294
6295 # Symbols that should not be listed in the preloaded symbols.
6296 exclude_expsyms=$lt_exclude_expsyms
6297
6298 # Symbols that must always be exported.
6299 include_expsyms=$lt_include_expsyms
6300
6301 # ### END LIBTOOL CONFIG
6302
6303 __EOF__
6304
6305   case $host_os in
6306   aix3*)
6307     cat <<\EOF >> "${ofile}T"
6308
6309 # AIX sometimes has problems with the GCC collect2 program.  For some
6310 # reason, if we set the COLLECT_NAMES environment variable, the problems
6311 # vanish in a puff of smoke.
6312 if test "X${COLLECT_NAMES+set}" != Xset; then
6313   COLLECT_NAMES=
6314   export COLLECT_NAMES
6315 fi
6316 EOF
6317     ;;
6318   esac
6319
6320   case $host_os in
6321   cygwin* | mingw* | pw32* | os2*)
6322     cat <<'EOF' >> "${ofile}T"
6323       # This is a source program that is used to create dlls on Windows
6324       # Don't remove nor modify the starting and closing comments
6325 # /* ltdll.c starts here */
6326 # #define WIN32_LEAN_AND_MEAN
6327 # #include <windows.h>
6328 # #undef WIN32_LEAN_AND_MEAN
6329 # #include <stdio.h>
6330 #
6331 # #ifndef __CYGWIN__
6332 # #  ifdef __CYGWIN32__
6333 # #    define __CYGWIN__ __CYGWIN32__
6334 # #  endif
6335 # #endif
6336 #
6337 # #ifdef __cplusplus
6338 # extern "C" {
6339 # #endif
6340 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6341 # #ifdef __cplusplus
6342 # }
6343 # #endif
6344 #
6345 # #ifdef __CYGWIN__
6346 # #include <cygwin/cygwin_dll.h>
6347 # DECLARE_CYGWIN_DLL( DllMain );
6348 # #endif
6349 # HINSTANCE __hDllInstance_base;
6350 #
6351 # BOOL APIENTRY
6352 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6353 # {
6354 #   __hDllInstance_base = hInst;
6355 #   return TRUE;
6356 # }
6357 # /* ltdll.c ends here */
6358         # This is a source program that is used to create import libraries
6359         # on Windows for dlls which lack them. Don't remove nor modify the
6360         # starting and closing comments
6361 # /* impgen.c starts here */
6362 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
6363 #
6364 #  This file is part of GNU libtool.
6365 #
6366 #  This program is free software; you can redistribute it and/or modify
6367 #  it under the terms of the GNU General Public License as published by
6368 #  the Free Software Foundation; either version 2 of the License, or
6369 #  (at your option) any later version.
6370 #
6371 #  This program is distributed in the hope that it will be useful,
6372 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
6373 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6374 #  GNU General Public License for more details.
6375 #
6376 #  You should have received a copy of the GNU General Public License
6377 #  along with this program; if not, write to the Free Software
6378 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6379 #  */
6380 #
6381 # #include <stdio.h>            /* for printf() */
6382 # #include <unistd.h>           /* for open(), lseek(), read() */
6383 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
6384 # #include <string.h>           /* for strdup() */
6385 #
6386 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
6387 # #ifndef O_BINARY
6388 # #define O_BINARY 0
6389 # #endif
6390 #
6391 # static unsigned int
6392 # pe_get16 (fd, offset)
6393 #      int fd;
6394 #      int offset;
6395 # {
6396 #   unsigned char b[2];
6397 #   lseek (fd, offset, SEEK_SET);
6398 #   read (fd, b, 2);
6399 #   return b[0] + (b[1]<<8);
6400 # }
6401 #
6402 # static unsigned int
6403 # pe_get32 (fd, offset)
6404 #     int fd;
6405 #     int offset;
6406 # {
6407 #   unsigned char b[4];
6408 #   lseek (fd, offset, SEEK_SET);
6409 #   read (fd, b, 4);
6410 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6411 # }
6412 #
6413 # static unsigned int
6414 # pe_as32 (ptr)
6415 #      void *ptr;
6416 # {
6417 #   unsigned char *b = ptr;
6418 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6419 # }
6420 #
6421 # int
6422 # main (argc, argv)
6423 #     int argc;
6424 #     char *argv[];
6425 # {
6426 #     int dll;
6427 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6428 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
6429 #     unsigned long name_rvas, nexp;
6430 #     unsigned char *expdata, *erva;
6431 #     char *filename, *dll_name;
6432 #
6433 #     filename = argv[1];
6434 #
6435 #     dll = open(filename, O_RDONLY|O_BINARY);
6436 #     if (dll < 1)
6437 #       return 1;
6438 #
6439 #     dll_name = filename;
6440 #
6441 #     for (i=0; filename[i]; i++)
6442 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
6443 #           dll_name = filename + i +1;
6444 #
6445 #     pe_header_offset = pe_get32 (dll, 0x3c);
6446 #     opthdr_ofs = pe_header_offset + 4 + 20;
6447 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
6448 #
6449 #     if (num_entries < 1) /* no exports */
6450 #       return 1;
6451 #
6452 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
6453 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
6454 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6455 #     secptr = (pe_header_offset + 4 + 20 +
6456 #             pe_get16 (dll, pe_header_offset + 4 + 16));
6457 #
6458 #     expptr = 0;
6459 #     for (i = 0; i < nsections; i++)
6460 #     {
6461 #       char sname[8];
6462 #       unsigned long secptr1 = secptr + 40 * i;
6463 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6464 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6465 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6466 #       lseek(dll, secptr1, SEEK_SET);
6467 #       read(dll, sname, 8);
6468 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
6469 #       {
6470 #           expptr = fptr + (export_rva - vaddr);
6471 #           if (export_rva + export_size > vaddr + vsize)
6472 #               export_size = vsize - (export_rva - vaddr);
6473 #           break;
6474 #       }
6475 #     }
6476 #
6477 #     expdata = (unsigned char*)malloc(export_size);
6478 #     lseek (dll, expptr, SEEK_SET);
6479 #     read (dll, expdata, export_size);
6480 #     erva = expdata - export_rva;
6481 #
6482 #     nexp = pe_as32 (expdata+24);
6483 #     name_rvas = pe_as32 (expdata+32);
6484 #
6485 #     printf ("EXPORTS\n");
6486 #     for (i = 0; i<nexp; i++)
6487 #     {
6488 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6489 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6490 #     }
6491 #
6492 #     return 0;
6493 # }
6494 # /* impgen.c ends here */
6495
6496 EOF
6497     ;;
6498   esac
6499
6500   # We use sed instead of cat because bash on DJGPP gets confused if
6501   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
6502   # text mode, it properly converts lines to CR/LF.  This bash problem
6503   # is reportedly fixed, but why not run on old versions too?
6504   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
6505
6506   mv -f "${ofile}T" "$ofile" || \
6507     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
6508   chmod +x "$ofile"
6509 fi
6510
6511 # This can be used to rebuild libtool when needed
6512 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
6513
6514 # Always use our own libtool.
6515 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6516
6517 # Prevent multiple expansion
6518
6519       if test "X$prefix" = "XNONE"; then
6520     acl_final_prefix="$ac_default_prefix"
6521   else
6522     acl_final_prefix="$prefix"
6523   fi
6524   if test "X$exec_prefix" = "XNONE"; then
6525     acl_final_exec_prefix='${prefix}'
6526   else
6527     acl_final_exec_prefix="$exec_prefix"
6528   fi
6529   acl_save_prefix="$prefix"
6530   prefix="$acl_final_prefix"
6531   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6532   prefix="$acl_save_prefix"
6533
6534 # Check whether --with-gnu-ld or --without-gnu-ld was given.
6535 if test "${with_gnu_ld+set}" = set; then
6536   withval="$with_gnu_ld"
6537   test "$withval" = no || with_gnu_ld=yes
6538 else
6539   with_gnu_ld=no
6540 fi;
6541 ac_prog=ld
6542 if test "$GCC" = yes; then
6543   # Check if gcc -print-prog-name=ld gives a path.
6544   echo "$as_me:6544: checking for ld used by GCC" >&5
6545 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6546   case $host in
6547   *-*-mingw*)
6548     # gcc leaves a trailing carriage return which upsets mingw
6549     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6550   *)
6551     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6552   esac
6553   case $ac_prog in
6554     # Accept absolute paths.
6555     [\\/]* | [A-Za-z]:[\\/]*)
6556       re_direlt='/[^/][^/]*/\.\./'
6557       # Canonicalize the path of ld
6558       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6559       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6560         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6561       done
6562       test -z "$LD" && LD="$ac_prog"
6563       ;;
6564   "")
6565     # If it fails, then pretend we aren't using GCC.
6566     ac_prog=ld
6567     ;;
6568   *)
6569     # If it is relative, then search for the first ld in PATH.
6570     with_gnu_ld=unknown
6571     ;;
6572   esac
6573 elif test "$with_gnu_ld" = yes; then
6574   echo "$as_me:6574: checking for GNU ld" >&5
6575 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6576 else
6577   echo "$as_me:6577: checking for non-GNU ld" >&5
6578 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6579 fi
6580 if test "${acl_cv_path_LD+set}" = set; then
6581   echo $ECHO_N "(cached) $ECHO_C" >&6
6582 else
6583   if test -z "$LD"; then
6584   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6585   for ac_dir in $PATH; do
6586     test -z "$ac_dir" && ac_dir=.
6587     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6588       acl_cv_path_LD="$ac_dir/$ac_prog"
6589       # Check to see if the program is GNU ld.  I'd rather use --version,
6590       # but apparently some GNU ld's only accept -v.
6591       # Break only if it was the GNU/non-GNU ld that we prefer.
6592       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6593         test "$with_gnu_ld" != no && break
6594       else
6595         test "$with_gnu_ld" != yes && break
6596       fi
6597     fi
6598   done
6599   IFS="$ac_save_ifs"
6600 else
6601   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6602 fi
6603 fi
6604
6605 LD="$acl_cv_path_LD"
6606 if test -n "$LD"; then
6607   echo "$as_me:6607: result: $LD" >&5
6608 echo "${ECHO_T}$LD" >&6
6609 else
6610   echo "$as_me:6610: result: no" >&5
6611 echo "${ECHO_T}no" >&6
6612 fi
6613 test -z "$LD" && { { echo "$as_me:6613: error: no acceptable ld found in \$PATH" >&5
6614 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6615    { (exit 1); exit 1; }; }
6616 echo "$as_me:6616: checking if the linker ($LD) is GNU ld" >&5
6617 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6618 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6619   echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6622 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6623   acl_cv_prog_gnu_ld=yes
6624 else
6625   acl_cv_prog_gnu_ld=no
6626 fi
6627 fi
6628 echo "$as_me:6628: result: $acl_cv_prog_gnu_ld" >&5
6629 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
6630 with_gnu_ld=$acl_cv_prog_gnu_ld
6631
6632                                                 echo "$as_me:6632: checking for shared library run path origin" >&5
6633 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
6634 if test "${acl_cv_rpath+set}" = set; then
6635   echo $ECHO_N "(cached) $ECHO_C" >&6
6636 else
6637
6638     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6639     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6640     . ./conftest.sh
6641     rm -f ./conftest.sh
6642     acl_cv_rpath=done
6643
6644 fi
6645 echo "$as_me:6645: result: $acl_cv_rpath" >&5
6646 echo "${ECHO_T}$acl_cv_rpath" >&6
6647   wl="$acl_cv_wl"
6648   libext="$acl_cv_libext"
6649   shlibext="$acl_cv_shlibext"
6650   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6651   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6652   hardcode_direct="$acl_cv_hardcode_direct"
6653   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6654   sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
6655   sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
6656
6657     use_additional=yes
6658
6659   acl_save_prefix="$prefix"
6660   prefix="$acl_final_prefix"
6661   acl_save_exec_prefix="$exec_prefix"
6662   exec_prefix="$acl_final_exec_prefix"
6663
6664     eval additional_includedir=\"$includedir\"
6665     eval additional_libdir=\"$libdir\"
6666
6667   exec_prefix="$acl_save_exec_prefix"
6668   prefix="$acl_save_prefix"
6669
6670 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
6671 if test "${with_libiconv_prefix+set}" = set; then
6672   withval="$with_libiconv_prefix"
6673
6674     if test "X$withval" = "Xno"; then
6675       use_additional=no
6676     else
6677       if test "X$withval" = "X"; then
6678
6679   acl_save_prefix="$prefix"
6680   prefix="$acl_final_prefix"
6681   acl_save_exec_prefix="$exec_prefix"
6682   exec_prefix="$acl_final_exec_prefix"
6683
6684           eval additional_includedir=\"$includedir\"
6685           eval additional_libdir=\"$libdir\"
6686
6687   exec_prefix="$acl_save_exec_prefix"
6688   prefix="$acl_save_prefix"
6689
6690       else
6691         additional_includedir="$withval/include"
6692         additional_libdir="$withval/lib"
6693       fi
6694     fi
6695
6696 fi;
6697       LIBICONV=
6698   LTLIBICONV=
6699   INCICONV=
6700   rpathdirs=
6701   ltrpathdirs=
6702   names_already_handled=
6703   names_next_round='iconv '
6704   while test -n "$names_next_round"; do
6705     names_this_round="$names_next_round"
6706     names_next_round=
6707     for name in $names_this_round; do
6708       already_handled=
6709       for n in $names_already_handled; do
6710         if test "$n" = "$name"; then
6711           already_handled=yes
6712           break
6713         fi
6714       done
6715       if test -z "$already_handled"; then
6716         names_already_handled="$names_already_handled $name"
6717                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6718         eval value=\"\$HAVE_LIB$uppername\"
6719         if test -n "$value"; then
6720           if test "$value" = yes; then
6721             eval value=\"\$LIB$uppername\"
6722             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6723             eval value=\"\$LTLIB$uppername\"
6724             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6725           else
6726                                     :
6727           fi
6728         else
6729                               found_dir=
6730           found_la=
6731           found_so=
6732           found_a=
6733           if test $use_additional = yes; then
6734             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6735               found_dir="$additional_libdir"
6736               found_so="$additional_libdir/lib$name.$shlibext"
6737               if test -f "$additional_libdir/lib$name.la"; then
6738                 found_la="$additional_libdir/lib$name.la"
6739               fi
6740             else
6741               if test -f "$additional_libdir/lib$name.$libext"; then
6742                 found_dir="$additional_libdir"
6743                 found_a="$additional_libdir/lib$name.$libext"
6744                 if test -f "$additional_libdir/lib$name.la"; then
6745                   found_la="$additional_libdir/lib$name.la"
6746                 fi
6747               fi
6748             fi
6749           fi
6750           if test "X$found_dir" = "X"; then
6751             for x in $LDFLAGS $LTLIBICONV; do
6752
6753   acl_save_prefix="$prefix"
6754   prefix="$acl_final_prefix"
6755   acl_save_exec_prefix="$exec_prefix"
6756   exec_prefix="$acl_final_exec_prefix"
6757   eval x=\"$x\"
6758   exec_prefix="$acl_save_exec_prefix"
6759   prefix="$acl_save_prefix"
6760
6761               case "$x" in
6762                 -L*)
6763                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6764                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6765                     found_dir="$dir"
6766                     found_so="$dir/lib$name.$shlibext"
6767                     if test -f "$dir/lib$name.la"; then
6768                       found_la="$dir/lib$name.la"
6769                     fi
6770                   else
6771                     if test -f "$dir/lib$name.$libext"; then
6772                       found_dir="$dir"
6773                       found_a="$dir/lib$name.$libext"
6774                       if test -f "$dir/lib$name.la"; then
6775                         found_la="$dir/lib$name.la"
6776                       fi
6777                     fi
6778                   fi
6779                   ;;
6780               esac
6781               if test "X$found_dir" != "X"; then
6782                 break
6783               fi
6784             done
6785           fi
6786           if test "X$found_dir" != "X"; then
6787                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6788             if test "X$found_so" != "X"; then
6789                                                         if test "X$found_dir" = "X/usr/lib"; then
6790                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6791               else
6792                                                                                 haveit=
6793                 for x in $ltrpathdirs; do
6794                   if test "X$x" = "X$found_dir"; then
6795                     haveit=yes
6796                     break
6797                   fi
6798                 done
6799                 if test -z "$haveit"; then
6800                   ltrpathdirs="$ltrpathdirs $found_dir"
6801                 fi
6802                                 if test "$hardcode_direct" = yes; then
6803                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6804                 else
6805                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6806                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6807                                                             haveit=
6808                     for x in $rpathdirs; do
6809                       if test "X$x" = "X$found_dir"; then
6810                         haveit=yes
6811                         break
6812                       fi
6813                     done
6814                     if test -z "$haveit"; then
6815                       rpathdirs="$rpathdirs $found_dir"
6816                     fi
6817                   else
6818                                                                                 haveit=
6819                     for x in $LDFLAGS $LIBICONV; do
6820
6821   acl_save_prefix="$prefix"
6822   prefix="$acl_final_prefix"
6823   acl_save_exec_prefix="$exec_prefix"
6824   exec_prefix="$acl_final_exec_prefix"
6825   eval x=\"$x\"
6826   exec_prefix="$acl_save_exec_prefix"
6827   prefix="$acl_save_prefix"
6828
6829                       if test "X$x" = "X-L$found_dir"; then
6830                         haveit=yes
6831                         break
6832                       fi
6833                     done
6834                     if test -z "$haveit"; then
6835                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6836                     fi
6837                     if test "$hardcode_minus_L" != no; then
6838                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6839                     else
6840                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6841                     fi
6842                   fi
6843                 fi
6844               fi
6845             else
6846               if test "X$found_a" != "X"; then
6847                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6848               else
6849                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6850               fi
6851             fi
6852                         additional_includedir=
6853             case "$found_dir" in
6854               */lib | */lib/)
6855                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6856                 additional_includedir="$basedir/include"
6857                 ;;
6858             esac
6859             if test "X$additional_includedir" != "X"; then
6860                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6861                 haveit=
6862                 if test "X$additional_includedir" = "X/usr/local/include"; then
6863                   if test -n "$GCC"; then
6864                     case $host_os in
6865                       linux*) haveit=yes;;
6866                     esac
6867                   fi
6868                 fi
6869                 if test -z "$haveit"; then
6870                   for x in $CPPFLAGS $INCICONV; do
6871
6872   acl_save_prefix="$prefix"
6873   prefix="$acl_final_prefix"
6874   acl_save_exec_prefix="$exec_prefix"
6875   exec_prefix="$acl_final_exec_prefix"
6876   eval x=\"$x\"
6877   exec_prefix="$acl_save_exec_prefix"
6878   prefix="$acl_save_prefix"
6879
6880                     if test "X$x" = "X-I$additional_includedir"; then
6881                       haveit=yes
6882                       break
6883                     fi
6884                   done
6885                   if test -z "$haveit"; then
6886                     if test -d "$additional_includedir"; then
6887                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6888                     fi
6889                   fi
6890                 fi
6891               fi
6892             fi
6893                         if test -n "$found_la"; then
6894                                                         save_libdir="$libdir"
6895               case "$found_la" in
6896                 */* | *\\*) . "$found_la" ;;
6897                 *) . "./$found_la" ;;
6898               esac
6899               libdir="$save_libdir"
6900                             for dep in $dependency_libs; do
6901                 case "$dep" in
6902                   -L*)
6903                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6904                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6905                       haveit=
6906                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6907                         if test -n "$GCC"; then
6908                           case $host_os in
6909                             linux*) haveit=yes;;
6910                           esac
6911                         fi
6912                       fi
6913                       if test -z "$haveit"; then
6914                         haveit=
6915                         for x in $LDFLAGS $LIBICONV; do
6916
6917   acl_save_prefix="$prefix"
6918   prefix="$acl_final_prefix"
6919   acl_save_exec_prefix="$exec_prefix"
6920   exec_prefix="$acl_final_exec_prefix"
6921   eval x=\"$x\"
6922   exec_prefix="$acl_save_exec_prefix"
6923   prefix="$acl_save_prefix"
6924
6925                           if test "X$x" = "X-L$additional_libdir"; then
6926                             haveit=yes
6927                             break
6928                           fi
6929                         done
6930                         if test -z "$haveit"; then
6931                           if test -d "$additional_libdir"; then
6932                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6933                           fi
6934                         fi
6935                         haveit=
6936                         for x in $LDFLAGS $LTLIBICONV; do
6937
6938   acl_save_prefix="$prefix"
6939   prefix="$acl_final_prefix"
6940   acl_save_exec_prefix="$exec_prefix"
6941   exec_prefix="$acl_final_exec_prefix"
6942   eval x=\"$x\"
6943   exec_prefix="$acl_save_exec_prefix"
6944   prefix="$acl_save_prefix"
6945
6946                           if test "X$x" = "X-L$additional_libdir"; then
6947                             haveit=yes
6948                             break
6949                           fi
6950                         done
6951                         if test -z "$haveit"; then
6952                           if test -d "$additional_libdir"; then
6953                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6954                           fi
6955                         fi
6956                       fi
6957                     fi
6958                     ;;
6959                   -R*)
6960                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6961                                                             haveit=
6962                     for x in $rpathdirs; do
6963                       if test "X$x" = "X$dir"; then
6964                         haveit=yes
6965                         break
6966                       fi
6967                     done
6968                     if test -z "$haveit"; then
6969                       rpathdirs="$rpathdirs $dir"
6970                     fi
6971                                                             haveit=
6972                     for x in $ltrpathdirs; do
6973                       if test "X$x" = "X$dir"; then
6974                         haveit=yes
6975                         break
6976                       fi
6977                     done
6978                     if test -z "$haveit"; then
6979                       ltrpathdirs="$ltrpathdirs $dir"
6980                     fi
6981                     ;;
6982                   -l*)
6983                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6984                     ;;
6985                   *.la)
6986                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6987                     ;;
6988                   *)
6989                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6990                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6991                     ;;
6992                 esac
6993               done
6994             fi
6995           else
6996                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6997             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6998           fi
6999         fi
7000       fi
7001     done
7002   done
7003   if test "X$rpathdirs" != "X"; then
7004     if test -n "$hardcode_libdir_separator"; then
7005                         alldirs=
7006       for found_dir in $rpathdirs; do
7007         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7008       done
7009             acl_save_libdir="$libdir"
7010       libdir="$alldirs"
7011       eval flag=\"$hardcode_libdir_flag_spec\"
7012       libdir="$acl_save_libdir"
7013       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7014     else
7015             for found_dir in $rpathdirs; do
7016         acl_save_libdir="$libdir"
7017         libdir="$found_dir"
7018         eval flag=\"$hardcode_libdir_flag_spec\"
7019         libdir="$acl_save_libdir"
7020         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7021       done
7022     fi
7023   fi
7024   if test "X$ltrpathdirs" != "X"; then
7025             for found_dir in $ltrpathdirs; do
7026       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7027     done
7028   fi
7029
7030           am_save_CPPFLAGS="$CPPFLAGS"
7031
7032   for element in $INCICONV; do
7033     haveit=
7034     for x in $CPPFLAGS; do
7035
7036   acl_save_prefix="$prefix"
7037   prefix="$acl_final_prefix"
7038   acl_save_exec_prefix="$exec_prefix"
7039   exec_prefix="$acl_final_exec_prefix"
7040   eval x=\"$x\"
7041   exec_prefix="$acl_save_exec_prefix"
7042   prefix="$acl_save_prefix"
7043
7044       if test "X$x" = "X$element"; then
7045         haveit=yes
7046         break
7047       fi
7048     done
7049     if test -z "$haveit"; then
7050       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7051     fi
7052   done
7053
7054   echo "$as_me:7054: checking for iconv" >&5
7055 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7056 if test "${am_cv_func_iconv+set}" = set; then
7057   echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059
7060     am_cv_func_iconv="no, consider installing GNU libiconv"
7061     am_cv_lib_iconv=no
7062     cat >conftest.$ac_ext <<_ACEOF
7063 #line 7063 "configure"
7064 #include "confdefs.h"
7065 #include <stdlib.h>
7066 #include <iconv.h>
7067 int
7068 main ()
7069 {
7070 iconv_t cd = iconv_open("","");
7071        iconv(cd,NULL,NULL,NULL,NULL);
7072        iconv_close(cd);
7073   ;
7074   return 0;
7075 }
7076 _ACEOF
7077 rm -f conftest.$ac_objext conftest$ac_exeext
7078 if { (eval echo "$as_me:7078: \"$ac_link\"") >&5
7079   (eval $ac_link) 2>&5
7080   ac_status=$?
7081   echo "$as_me:7081: \$? = $ac_status" >&5
7082   (exit $ac_status); } &&
7083          { ac_try='test -s conftest$ac_exeext'
7084   { (eval echo "$as_me:7084: \"$ac_try\"") >&5
7085   (eval $ac_try) 2>&5
7086   ac_status=$?
7087   echo "$as_me:7087: \$? = $ac_status" >&5
7088   (exit $ac_status); }; }; then
7089   am_cv_func_iconv=yes
7090 else
7091   echo "$as_me: failed program was:" >&5
7092 cat conftest.$ac_ext >&5
7093 fi
7094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7095     if test "$am_cv_func_iconv" != yes; then
7096       am_save_LIBS="$LIBS"
7097       LIBS="$LIBS $LIBICONV"
7098       cat >conftest.$ac_ext <<_ACEOF
7099 #line 7099 "configure"
7100 #include "confdefs.h"
7101 #include <stdlib.h>
7102 #include <iconv.h>
7103 int
7104 main ()
7105 {
7106 iconv_t cd = iconv_open("","");
7107          iconv(cd,NULL,NULL,NULL,NULL);
7108          iconv_close(cd);
7109   ;
7110   return 0;
7111 }
7112 _ACEOF
7113 rm -f conftest.$ac_objext conftest$ac_exeext
7114 if { (eval echo "$as_me:7114: \"$ac_link\"") >&5
7115   (eval $ac_link) 2>&5
7116   ac_status=$?
7117   echo "$as_me:7117: \$? = $ac_status" >&5
7118   (exit $ac_status); } &&
7119          { ac_try='test -s conftest$ac_exeext'
7120   { (eval echo "$as_me:7120: \"$ac_try\"") >&5
7121   (eval $ac_try) 2>&5
7122   ac_status=$?
7123   echo "$as_me:7123: \$? = $ac_status" >&5
7124   (exit $ac_status); }; }; then
7125   am_cv_lib_iconv=yes
7126         am_cv_func_iconv=yes
7127 else
7128   echo "$as_me: failed program was:" >&5
7129 cat conftest.$ac_ext >&5
7130 fi
7131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7132       LIBS="$am_save_LIBS"
7133     fi
7134
7135 fi
7136 echo "$as_me:7136: result: $am_cv_func_iconv" >&5
7137 echo "${ECHO_T}$am_cv_func_iconv" >&6
7138   if test "$am_cv_func_iconv" = yes; then
7139
7140 cat >>confdefs.h <<\EOF
7141 #define HAVE_ICONV 1
7142 EOF
7143
7144   fi
7145   if test "$am_cv_lib_iconv" = yes; then
7146     echo "$as_me:7146: checking how to link with libiconv" >&5
7147 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
7148     echo "$as_me:7148: result: $LIBICONV" >&5
7149 echo "${ECHO_T}$LIBICONV" >&6
7150   else
7151             CPPFLAGS="$am_save_CPPFLAGS"
7152     LIBICONV=
7153     LTLIBICONV=
7154   fi
7155
7156   if test "$am_cv_func_iconv" = yes; then
7157     echo "$as_me:7157: checking for iconv declaration" >&5
7158 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7159     if test "${am_cv_proto_iconv+set}" = set; then
7160   echo $ECHO_N "(cached) $ECHO_C" >&6
7161 else
7162
7163       cat >conftest.$ac_ext <<_ACEOF
7164 #line 7164 "configure"
7165 #include "confdefs.h"
7166
7167 #include <stdlib.h>
7168 #include <iconv.h>
7169 extern
7170 #ifdef __cplusplus
7171 "C"
7172 #endif
7173 #if defined(__STDC__) || defined(__cplusplus)
7174 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7175 #else
7176 size_t iconv();
7177 #endif
7178
7179 int
7180 main ()
7181 {
7182
7183   ;
7184   return 0;
7185 }
7186 _ACEOF
7187 rm -f conftest.$ac_objext
7188 if { (eval echo "$as_me:7188: \"$ac_compile\"") >&5
7189   (eval $ac_compile) 2>&5
7190   ac_status=$?
7191   echo "$as_me:7191: \$? = $ac_status" >&5
7192   (exit $ac_status); } &&
7193          { ac_try='test -s conftest.$ac_objext'
7194   { (eval echo "$as_me:7194: \"$ac_try\"") >&5
7195   (eval $ac_try) 2>&5
7196   ac_status=$?
7197   echo "$as_me:7197: \$? = $ac_status" >&5
7198   (exit $ac_status); }; }; then
7199   am_cv_proto_iconv_arg1=""
7200 else
7201   echo "$as_me: failed program was:" >&5
7202 cat conftest.$ac_ext >&5
7203 am_cv_proto_iconv_arg1="const"
7204 fi
7205 rm -f conftest.$ac_objext conftest.$ac_ext
7206       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7207 fi
7208
7209     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7210     echo "$as_me:7210: result: ${ac_t:-
7211          }$am_cv_proto_iconv" >&5
7212 echo "${ECHO_T}${ac_t:-
7213          }$am_cv_proto_iconv" >&6
7214
7215 cat >>confdefs.h <<EOF
7216 #define ICONV_CONST $am_cv_proto_iconv_arg1
7217 EOF
7218
7219   fi
7220
7221         MKINSTALLDIRS=
7222   if test -n "$ac_aux_dir"; then
7223     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7224   fi
7225   if test -z "$MKINSTALLDIRS"; then
7226     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7227   fi
7228
7229         # Extract the first word of "msgfmt", so it can be a program name with args.
7230 set dummy msgfmt; ac_word=$2
7231 echo "$as_me:7231: checking for $ac_word" >&5
7232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7233 if test "${ac_cv_path_MSGFMT+set}" = set; then
7234   echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236   case "$MSGFMT" in
7237   /*)
7238   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7239   ;;
7240   *)
7241   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7242   for ac_dir in $PATH; do
7243     test -z "$ac_dir" && ac_dir=.
7244     if test -f $ac_dir/$ac_word; then
7245       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
7246      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7247         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7248         break
7249       fi
7250     fi
7251   done
7252   IFS="$ac_save_ifs"
7253   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7254   ;;
7255 esac
7256 fi
7257 MSGFMT="$ac_cv_path_MSGFMT"
7258 if test "$MSGFMT" != ":"; then
7259   echo "$as_me:7259: result: $MSGFMT" >&5
7260 echo "${ECHO_T}$MSGFMT" >&6
7261 else
7262   echo "$as_me:7262: result: no" >&5
7263 echo "${ECHO_T}no" >&6
7264 fi
7265
7266   # Extract the first word of "gmsgfmt", so it can be a program name with args.
7267 set dummy gmsgfmt; ac_word=$2
7268 echo "$as_me:7268: checking for $ac_word" >&5
7269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7270 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7271   echo $ECHO_N "(cached) $ECHO_C" >&6
7272 else
7273   case $GMSGFMT in
7274   [\\/]* | ?:[\\/]*)
7275   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7276   ;;
7277   *)
7278   ac_save_IFS=$IFS; IFS=$ac_path_separator
7279 ac_dummy="$PATH"
7280 for ac_dir in $ac_dummy; do
7281   IFS=$ac_save_IFS
7282   test -z "$ac_dir" && ac_dir=.
7283   if $as_executable_p "$ac_dir/$ac_word"; then
7284    ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7285    echo "$as_me:7285: found $ac_dir/$ac_word" >&5
7286    break
7287 fi
7288 done
7289
7290   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7291   ;;
7292 esac
7293 fi
7294 GMSGFMT=$ac_cv_path_GMSGFMT
7295
7296 if test -n "$GMSGFMT"; then
7297   echo "$as_me:7297: result: $GMSGFMT" >&5
7298 echo "${ECHO_T}$GMSGFMT" >&6
7299 else
7300   echo "$as_me:7300: result: no" >&5
7301 echo "${ECHO_T}no" >&6
7302 fi
7303
7304         # Extract the first word of "xgettext", so it can be a program name with args.
7305 set dummy xgettext; ac_word=$2
7306 echo "$as_me:7306: checking for $ac_word" >&5
7307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7308 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7309   echo $ECHO_N "(cached) $ECHO_C" >&6
7310 else
7311   case "$XGETTEXT" in
7312   /*)
7313   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7314   ;;
7315   *)
7316   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7317   for ac_dir in $PATH; do
7318     test -z "$ac_dir" && ac_dir=.
7319     if test -f $ac_dir/$ac_word; then
7320       if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
7321      (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7322         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7323         break
7324       fi
7325     fi
7326   done
7327   IFS="$ac_save_ifs"
7328   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7329   ;;
7330 esac
7331 fi
7332 XGETTEXT="$ac_cv_path_XGETTEXT"
7333 if test "$XGETTEXT" != ":"; then
7334   echo "$as_me:7334: result: $XGETTEXT" >&5
7335 echo "${ECHO_T}$XGETTEXT" >&6
7336 else
7337   echo "$as_me:7337: result: no" >&5
7338 echo "${ECHO_T}no" >&6
7339 fi
7340
7341     rm -f messages.po
7342
7343     # Extract the first word of "msgmerge", so it can be a program name with args.
7344 set dummy msgmerge; ac_word=$2
7345 echo "$as_me:7345: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7347 if test "${ac_cv_path_MSGMERGE+set}" = set; then
7348   echo $ECHO_N "(cached) $ECHO_C" >&6
7349 else
7350   case "$MSGMERGE" in
7351   /*)
7352   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7353   ;;
7354   *)
7355   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7356   for ac_dir in $PATH; do
7357     test -z "$ac_dir" && ac_dir=.
7358     if test -f $ac_dir/$ac_word; then
7359       if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7360         ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
7361         break
7362       fi
7363     fi
7364   done
7365   IFS="$ac_save_ifs"
7366   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7367   ;;
7368 esac
7369 fi
7370 MSGMERGE="$ac_cv_path_MSGMERGE"
7371 if test "$MSGMERGE" != ":"; then
7372   echo "$as_me:7372: result: $MSGMERGE" >&5
7373 echo "${ECHO_T}$MSGMERGE" >&6
7374 else
7375   echo "$as_me:7375: result: no" >&5
7376 echo "${ECHO_T}no" >&6
7377 fi
7378
7379       if test "$GMSGFMT" != ":"; then
7380             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7381        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7382       : ;
7383     else
7384       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7385       echo "$as_me:7385: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7386 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
7387       GMSGFMT=":"
7388     fi
7389   fi
7390
7391       if test "$XGETTEXT" != ":"; then
7392             if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
7393        (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7394       : ;
7395     else
7396       echo "$as_me:7396: result: found xgettext program is not GNU xgettext; ignore it" >&5
7397 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
7398       XGETTEXT=":"
7399     fi
7400         rm -f messages.po
7401   fi
7402
7403   ac_config_commands="$ac_config_commands default-1"
7404
7405   echo "$as_me:7405: checking whether NLS is requested" >&5
7406 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7407     # Check whether --enable-nls or --disable-nls was given.
7408 if test "${enable_nls+set}" = set; then
7409   enableval="$enable_nls"
7410   USE_NLS=$enableval
7411 else
7412   USE_NLS=yes
7413 fi;
7414   echo "$as_me:7414: result: $USE_NLS" >&5
7415 echo "${ECHO_T}$USE_NLS" >&6
7416
7417   LIBINTL=
7418   LTLIBINTL=
7419   POSUB=
7420
7421     if test "$USE_NLS" = "yes"; then
7422     gt_use_preinstalled_gnugettext=no
7423
7424         echo "$as_me:7424: checking for GNU gettext in libc" >&5
7425 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
7426 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
7427   echo $ECHO_N "(cached) $ECHO_C" >&6
7428 else
7429   cat >conftest.$ac_ext <<_ACEOF
7430 #line 7430 "configure"
7431 #include "confdefs.h"
7432 #include <libintl.h>
7433 extern int _nl_msg_cat_cntr;
7434 extern int *_nl_domain_bindings;
7435 int
7436 main ()
7437 {
7438 bindtextdomain ("", "");
7439 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
7440   ;
7441   return 0;
7442 }
7443 _ACEOF
7444 rm -f conftest.$ac_objext conftest$ac_exeext
7445 if { (eval echo "$as_me:7445: \"$ac_link\"") >&5
7446   (eval $ac_link) 2>&5
7447   ac_status=$?
7448   echo "$as_me:7448: \$? = $ac_status" >&5
7449   (exit $ac_status); } &&
7450          { ac_try='test -s conftest$ac_exeext'
7451   { (eval echo "$as_me:7451: \"$ac_try\"") >&5
7452   (eval $ac_try) 2>&5
7453   ac_status=$?
7454   echo "$as_me:7454: \$? = $ac_status" >&5
7455   (exit $ac_status); }; }; then
7456   gt_cv_func_gnugettext1_libc=yes
7457 else
7458   echo "$as_me: failed program was:" >&5
7459 cat conftest.$ac_ext >&5
7460 gt_cv_func_gnugettext1_libc=no
7461 fi
7462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7463 fi
7464 echo "$as_me:7464: result: $gt_cv_func_gnugettext1_libc" >&5
7465 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
7466
7467         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7468
7469     use_additional=yes
7470
7471   acl_save_prefix="$prefix"
7472   prefix="$acl_final_prefix"
7473   acl_save_exec_prefix="$exec_prefix"
7474   exec_prefix="$acl_final_exec_prefix"
7475
7476     eval additional_includedir=\"$includedir\"
7477     eval additional_libdir=\"$libdir\"
7478
7479   exec_prefix="$acl_save_exec_prefix"
7480   prefix="$acl_save_prefix"
7481
7482 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7483 if test "${with_libiconv_prefix+set}" = set; then
7484   withval="$with_libiconv_prefix"
7485
7486     if test "X$withval" = "Xno"; then
7487       use_additional=no
7488     else
7489       if test "X$withval" = "X"; then
7490
7491   acl_save_prefix="$prefix"
7492   prefix="$acl_final_prefix"
7493   acl_save_exec_prefix="$exec_prefix"
7494   exec_prefix="$acl_final_exec_prefix"
7495
7496           eval additional_includedir=\"$includedir\"
7497           eval additional_libdir=\"$libdir\"
7498
7499   exec_prefix="$acl_save_exec_prefix"
7500   prefix="$acl_save_prefix"
7501
7502       else
7503         additional_includedir="$withval/include"
7504         additional_libdir="$withval/lib"
7505       fi
7506     fi
7507
7508 fi;
7509       LIBICONV=
7510   LTLIBICONV=
7511   INCICONV=
7512   rpathdirs=
7513   ltrpathdirs=
7514   names_already_handled=
7515   names_next_round='iconv '
7516   while test -n "$names_next_round"; do
7517     names_this_round="$names_next_round"
7518     names_next_round=
7519     for name in $names_this_round; do
7520       already_handled=
7521       for n in $names_already_handled; do
7522         if test "$n" = "$name"; then
7523           already_handled=yes
7524           break
7525         fi
7526       done
7527       if test -z "$already_handled"; then
7528         names_already_handled="$names_already_handled $name"
7529                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7530         eval value=\"\$HAVE_LIB$uppername\"
7531         if test -n "$value"; then
7532           if test "$value" = yes; then
7533             eval value=\"\$LIB$uppername\"
7534             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7535             eval value=\"\$LTLIB$uppername\"
7536             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7537           else
7538                                     :
7539           fi
7540         else
7541                               found_dir=
7542           found_la=
7543           found_so=
7544           found_a=
7545           if test $use_additional = yes; then
7546             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7547               found_dir="$additional_libdir"
7548               found_so="$additional_libdir/lib$name.$shlibext"
7549               if test -f "$additional_libdir/lib$name.la"; then
7550                 found_la="$additional_libdir/lib$name.la"
7551               fi
7552             else
7553               if test -f "$additional_libdir/lib$name.$libext"; then
7554                 found_dir="$additional_libdir"
7555                 found_a="$additional_libdir/lib$name.$libext"
7556                 if test -f "$additional_libdir/lib$name.la"; then
7557                   found_la="$additional_libdir/lib$name.la"
7558                 fi
7559               fi
7560             fi
7561           fi
7562           if test "X$found_dir" = "X"; then
7563             for x in $LDFLAGS $LTLIBICONV; do
7564
7565   acl_save_prefix="$prefix"
7566   prefix="$acl_final_prefix"
7567   acl_save_exec_prefix="$exec_prefix"
7568   exec_prefix="$acl_final_exec_prefix"
7569   eval x=\"$x\"
7570   exec_prefix="$acl_save_exec_prefix"
7571   prefix="$acl_save_prefix"
7572
7573               case "$x" in
7574                 -L*)
7575                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7576                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7577                     found_dir="$dir"
7578                     found_so="$dir/lib$name.$shlibext"
7579                     if test -f "$dir/lib$name.la"; then
7580                       found_la="$dir/lib$name.la"
7581                     fi
7582                   else
7583                     if test -f "$dir/lib$name.$libext"; then
7584                       found_dir="$dir"
7585                       found_a="$dir/lib$name.$libext"
7586                       if test -f "$dir/lib$name.la"; then
7587                         found_la="$dir/lib$name.la"
7588                       fi
7589                     fi
7590                   fi
7591                   ;;
7592               esac
7593               if test "X$found_dir" != "X"; then
7594                 break
7595               fi
7596             done
7597           fi
7598           if test "X$found_dir" != "X"; then
7599                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7600             if test "X$found_so" != "X"; then
7601                                                         if test "X$found_dir" = "X/usr/lib"; then
7602                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7603               else
7604                                                                                 haveit=
7605                 for x in $ltrpathdirs; do
7606                   if test "X$x" = "X$found_dir"; then
7607                     haveit=yes
7608                     break
7609                   fi
7610                 done
7611                 if test -z "$haveit"; then
7612                   ltrpathdirs="$ltrpathdirs $found_dir"
7613                 fi
7614                                 if test "$hardcode_direct" = yes; then
7615                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7616                 else
7617                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7618                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7619                                                             haveit=
7620                     for x in $rpathdirs; do
7621                       if test "X$x" = "X$found_dir"; then
7622                         haveit=yes
7623                         break
7624                       fi
7625                     done
7626                     if test -z "$haveit"; then
7627                       rpathdirs="$rpathdirs $found_dir"
7628                     fi
7629                   else
7630                                                                                 haveit=
7631                     for x in $LDFLAGS $LIBICONV; do
7632
7633   acl_save_prefix="$prefix"
7634   prefix="$acl_final_prefix"
7635   acl_save_exec_prefix="$exec_prefix"
7636   exec_prefix="$acl_final_exec_prefix"
7637   eval x=\"$x\"
7638   exec_prefix="$acl_save_exec_prefix"
7639   prefix="$acl_save_prefix"
7640
7641                       if test "X$x" = "X-L$found_dir"; then
7642                         haveit=yes
7643                         break
7644                       fi
7645                     done
7646                     if test -z "$haveit"; then
7647                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7648                     fi
7649                     if test "$hardcode_minus_L" != no; then
7650                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7651                     else
7652                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7653                     fi
7654                   fi
7655                 fi
7656               fi
7657             else
7658               if test "X$found_a" != "X"; then
7659                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7660               else
7661                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7662               fi
7663             fi
7664                         additional_includedir=
7665             case "$found_dir" in
7666               */lib | */lib/)
7667                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7668                 additional_includedir="$basedir/include"
7669                 ;;
7670             esac
7671             if test "X$additional_includedir" != "X"; then
7672                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7673                 haveit=
7674                 if test "X$additional_includedir" = "X/usr/local/include"; then
7675                   if test -n "$GCC"; then
7676                     case $host_os in
7677                       linux*) haveit=yes;;
7678                     esac
7679                   fi
7680                 fi
7681                 if test -z "$haveit"; then
7682                   for x in $CPPFLAGS $INCICONV; do
7683
7684   acl_save_prefix="$prefix"
7685   prefix="$acl_final_prefix"
7686   acl_save_exec_prefix="$exec_prefix"
7687   exec_prefix="$acl_final_exec_prefix"
7688   eval x=\"$x\"
7689   exec_prefix="$acl_save_exec_prefix"
7690   prefix="$acl_save_prefix"
7691
7692                     if test "X$x" = "X-I$additional_includedir"; then
7693                       haveit=yes
7694                       break
7695                     fi
7696                   done
7697                   if test -z "$haveit"; then
7698                     if test -d "$additional_includedir"; then
7699                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7700                     fi
7701                   fi
7702                 fi
7703               fi
7704             fi
7705                         if test -n "$found_la"; then
7706                                                         save_libdir="$libdir"
7707               case "$found_la" in
7708                 */* | *\\*) . "$found_la" ;;
7709                 *) . "./$found_la" ;;
7710               esac
7711               libdir="$save_libdir"
7712                             for dep in $dependency_libs; do
7713                 case "$dep" in
7714                   -L*)
7715                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7716                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7717                       haveit=
7718                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7719                         if test -n "$GCC"; then
7720                           case $host_os in
7721                             linux*) haveit=yes;;
7722                           esac
7723                         fi
7724                       fi
7725                       if test -z "$haveit"; then
7726                         haveit=
7727                         for x in $LDFLAGS $LIBICONV; do
7728
7729   acl_save_prefix="$prefix"
7730   prefix="$acl_final_prefix"
7731   acl_save_exec_prefix="$exec_prefix"
7732   exec_prefix="$acl_final_exec_prefix"
7733   eval x=\"$x\"
7734   exec_prefix="$acl_save_exec_prefix"
7735   prefix="$acl_save_prefix"
7736
7737                           if test "X$x" = "X-L$additional_libdir"; then
7738                             haveit=yes
7739                             break
7740                           fi
7741                         done
7742                         if test -z "$haveit"; then
7743                           if test -d "$additional_libdir"; then
7744                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7745                           fi
7746                         fi
7747                         haveit=
7748                         for x in $LDFLAGS $LTLIBICONV; do
7749
7750   acl_save_prefix="$prefix"
7751   prefix="$acl_final_prefix"
7752   acl_save_exec_prefix="$exec_prefix"
7753   exec_prefix="$acl_final_exec_prefix"
7754   eval x=\"$x\"
7755   exec_prefix="$acl_save_exec_prefix"
7756   prefix="$acl_save_prefix"
7757
7758                           if test "X$x" = "X-L$additional_libdir"; then
7759                             haveit=yes
7760                             break
7761                           fi
7762                         done
7763                         if test -z "$haveit"; then
7764                           if test -d "$additional_libdir"; then
7765                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7766                           fi
7767                         fi
7768                       fi
7769                     fi
7770                     ;;
7771                   -R*)
7772                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7773                                                             haveit=
7774                     for x in $rpathdirs; do
7775                       if test "X$x" = "X$dir"; then
7776                         haveit=yes
7777                         break
7778                       fi
7779                     done
7780                     if test -z "$haveit"; then
7781                       rpathdirs="$rpathdirs $dir"
7782                     fi
7783                                                             haveit=
7784                     for x in $ltrpathdirs; do
7785                       if test "X$x" = "X$dir"; then
7786                         haveit=yes
7787                         break
7788                       fi
7789                     done
7790                     if test -z "$haveit"; then
7791                       ltrpathdirs="$ltrpathdirs $dir"
7792                     fi
7793                     ;;
7794                   -l*)
7795                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7796                     ;;
7797                   *.la)
7798                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7799                     ;;
7800                   *)
7801                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7802                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7803                     ;;
7804                 esac
7805               done
7806             fi
7807           else
7808                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7809             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7810           fi
7811         fi
7812       fi
7813     done
7814   done
7815   if test "X$rpathdirs" != "X"; then
7816     if test -n "$hardcode_libdir_separator"; then
7817                         alldirs=
7818       for found_dir in $rpathdirs; do
7819         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7820       done
7821             acl_save_libdir="$libdir"
7822       libdir="$alldirs"
7823       eval flag=\"$hardcode_libdir_flag_spec\"
7824       libdir="$acl_save_libdir"
7825       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7826     else
7827             for found_dir in $rpathdirs; do
7828         acl_save_libdir="$libdir"
7829         libdir="$found_dir"
7830         eval flag=\"$hardcode_libdir_flag_spec\"
7831         libdir="$acl_save_libdir"
7832         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7833       done
7834     fi
7835   fi
7836   if test "X$ltrpathdirs" != "X"; then
7837             for found_dir in $ltrpathdirs; do
7838       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7839     done
7840   fi
7841
7842           am_save_CPPFLAGS="$CPPFLAGS"
7843
7844   for element in $INCICONV; do
7845     haveit=
7846     for x in $CPPFLAGS; do
7847
7848   acl_save_prefix="$prefix"
7849   prefix="$acl_final_prefix"
7850   acl_save_exec_prefix="$exec_prefix"
7851   exec_prefix="$acl_final_exec_prefix"
7852   eval x=\"$x\"
7853   exec_prefix="$acl_save_exec_prefix"
7854   prefix="$acl_save_prefix"
7855
7856       if test "X$x" = "X$element"; then
7857         haveit=yes
7858         break
7859       fi
7860     done
7861     if test -z "$haveit"; then
7862       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7863     fi
7864   done
7865
7866   echo "$as_me:7866: checking for iconv" >&5
7867 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7868 if test "${am_cv_func_iconv+set}" = set; then
7869   echo $ECHO_N "(cached) $ECHO_C" >&6
7870 else
7871
7872     am_cv_func_iconv="no, consider installing GNU libiconv"
7873     am_cv_lib_iconv=no
7874     cat >conftest.$ac_ext <<_ACEOF
7875 #line 7875 "configure"
7876 #include "confdefs.h"
7877 #include <stdlib.h>
7878 #include <iconv.h>
7879 int
7880 main ()
7881 {
7882 iconv_t cd = iconv_open("","");
7883        iconv(cd,NULL,NULL,NULL,NULL);
7884        iconv_close(cd);
7885   ;
7886   return 0;
7887 }
7888 _ACEOF
7889 rm -f conftest.$ac_objext conftest$ac_exeext
7890 if { (eval echo "$as_me:7890: \"$ac_link\"") >&5
7891   (eval $ac_link) 2>&5
7892   ac_status=$?
7893   echo "$as_me:7893: \$? = $ac_status" >&5
7894   (exit $ac_status); } &&
7895          { ac_try='test -s conftest$ac_exeext'
7896   { (eval echo "$as_me:7896: \"$ac_try\"") >&5
7897   (eval $ac_try) 2>&5
7898   ac_status=$?
7899   echo "$as_me:7899: \$? = $ac_status" >&5
7900   (exit $ac_status); }; }; then
7901   am_cv_func_iconv=yes
7902 else
7903   echo "$as_me: failed program was:" >&5
7904 cat conftest.$ac_ext >&5
7905 fi
7906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7907     if test "$am_cv_func_iconv" != yes; then
7908       am_save_LIBS="$LIBS"
7909       LIBS="$LIBS $LIBICONV"
7910       cat >conftest.$ac_ext <<_ACEOF
7911 #line 7911 "configure"
7912 #include "confdefs.h"
7913 #include <stdlib.h>
7914 #include <iconv.h>
7915 int
7916 main ()
7917 {
7918 iconv_t cd = iconv_open("","");
7919          iconv(cd,NULL,NULL,NULL,NULL);
7920          iconv_close(cd);
7921   ;
7922   return 0;
7923 }
7924 _ACEOF
7925 rm -f conftest.$ac_objext conftest$ac_exeext
7926 if { (eval echo "$as_me:7926: \"$ac_link\"") >&5
7927   (eval $ac_link) 2>&5
7928   ac_status=$?
7929   echo "$as_me:7929: \$? = $ac_status" >&5
7930   (exit $ac_status); } &&
7931          { ac_try='test -s conftest$ac_exeext'
7932   { (eval echo "$as_me:7932: \"$ac_try\"") >&5
7933   (eval $ac_try) 2>&5
7934   ac_status=$?
7935   echo "$as_me:7935: \$? = $ac_status" >&5
7936   (exit $ac_status); }; }; then
7937   am_cv_lib_iconv=yes
7938         am_cv_func_iconv=yes
7939 else
7940   echo "$as_me: failed program was:" >&5
7941 cat conftest.$ac_ext >&5
7942 fi
7943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7944       LIBS="$am_save_LIBS"
7945     fi
7946
7947 fi
7948 echo "$as_me:7948: result: $am_cv_func_iconv" >&5
7949 echo "${ECHO_T}$am_cv_func_iconv" >&6
7950   if test "$am_cv_func_iconv" = yes; then
7951
7952 cat >>confdefs.h <<\EOF
7953 #define HAVE_ICONV 1
7954 EOF
7955
7956   fi
7957   if test "$am_cv_lib_iconv" = yes; then
7958     echo "$as_me:7958: checking how to link with libiconv" >&5
7959 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
7960     echo "$as_me:7960: result: $LIBICONV" >&5
7961 echo "${ECHO_T}$LIBICONV" >&6
7962   else
7963             CPPFLAGS="$am_save_CPPFLAGS"
7964     LIBICONV=
7965     LTLIBICONV=
7966   fi
7967
7968     use_additional=yes
7969
7970   acl_save_prefix="$prefix"
7971   prefix="$acl_final_prefix"
7972   acl_save_exec_prefix="$exec_prefix"
7973   exec_prefix="$acl_final_exec_prefix"
7974
7975     eval additional_includedir=\"$includedir\"
7976     eval additional_libdir=\"$libdir\"
7977
7978   exec_prefix="$acl_save_exec_prefix"
7979   prefix="$acl_save_prefix"
7980
7981 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
7982 if test "${with_libintl_prefix+set}" = set; then
7983   withval="$with_libintl_prefix"
7984
7985     if test "X$withval" = "Xno"; then
7986       use_additional=no
7987     else
7988       if test "X$withval" = "X"; then
7989
7990   acl_save_prefix="$prefix"
7991   prefix="$acl_final_prefix"
7992   acl_save_exec_prefix="$exec_prefix"
7993   exec_prefix="$acl_final_exec_prefix"
7994
7995           eval additional_includedir=\"$includedir\"
7996           eval additional_libdir=\"$libdir\"
7997
7998   exec_prefix="$acl_save_exec_prefix"
7999   prefix="$acl_save_prefix"
8000
8001       else
8002         additional_includedir="$withval/include"
8003         additional_libdir="$withval/lib"
8004       fi
8005     fi
8006
8007 fi;
8008       LIBINTL=
8009   LTLIBINTL=
8010   INCINTL=
8011   rpathdirs=
8012   ltrpathdirs=
8013   names_already_handled=
8014   names_next_round='intl '
8015   while test -n "$names_next_round"; do
8016     names_this_round="$names_next_round"
8017     names_next_round=
8018     for name in $names_this_round; do
8019       already_handled=
8020       for n in $names_already_handled; do
8021         if test "$n" = "$name"; then
8022           already_handled=yes
8023           break
8024         fi
8025       done
8026       if test -z "$already_handled"; then
8027         names_already_handled="$names_already_handled $name"
8028                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8029         eval value=\"\$HAVE_LIB$uppername\"
8030         if test -n "$value"; then
8031           if test "$value" = yes; then
8032             eval value=\"\$LIB$uppername\"
8033             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8034             eval value=\"\$LTLIB$uppername\"
8035             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8036           else
8037                                     :
8038           fi
8039         else
8040                               found_dir=
8041           found_la=
8042           found_so=
8043           found_a=
8044           if test $use_additional = yes; then
8045             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8046               found_dir="$additional_libdir"
8047               found_so="$additional_libdir/lib$name.$shlibext"
8048               if test -f "$additional_libdir/lib$name.la"; then
8049                 found_la="$additional_libdir/lib$name.la"
8050               fi
8051             else
8052               if test -f "$additional_libdir/lib$name.$libext"; then
8053                 found_dir="$additional_libdir"
8054                 found_a="$additional_libdir/lib$name.$libext"
8055                 if test -f "$additional_libdir/lib$name.la"; then
8056                   found_la="$additional_libdir/lib$name.la"
8057                 fi
8058               fi
8059             fi
8060           fi
8061           if test "X$found_dir" = "X"; then
8062             for x in $LDFLAGS $LTLIBINTL; do
8063
8064   acl_save_prefix="$prefix"
8065   prefix="$acl_final_prefix"
8066   acl_save_exec_prefix="$exec_prefix"
8067   exec_prefix="$acl_final_exec_prefix"
8068   eval x=\"$x\"
8069   exec_prefix="$acl_save_exec_prefix"
8070   prefix="$acl_save_prefix"
8071
8072               case "$x" in
8073                 -L*)
8074                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8075                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8076                     found_dir="$dir"
8077                     found_so="$dir/lib$name.$shlibext"
8078                     if test -f "$dir/lib$name.la"; then
8079                       found_la="$dir/lib$name.la"
8080                     fi
8081                   else
8082                     if test -f "$dir/lib$name.$libext"; then
8083                       found_dir="$dir"
8084                       found_a="$dir/lib$name.$libext"
8085                       if test -f "$dir/lib$name.la"; then
8086                         found_la="$dir/lib$name.la"
8087                       fi
8088                     fi
8089                   fi
8090                   ;;
8091               esac
8092               if test "X$found_dir" != "X"; then
8093                 break
8094               fi
8095             done
8096           fi
8097           if test "X$found_dir" != "X"; then
8098                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8099             if test "X$found_so" != "X"; then
8100                                                         if test "X$found_dir" = "X/usr/lib"; then
8101                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8102               else
8103                                                                                 haveit=
8104                 for x in $ltrpathdirs; do
8105                   if test "X$x" = "X$found_dir"; then
8106                     haveit=yes
8107                     break
8108                   fi
8109                 done
8110                 if test -z "$haveit"; then
8111                   ltrpathdirs="$ltrpathdirs $found_dir"
8112                 fi
8113                                 if test "$hardcode_direct" = yes; then
8114                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8115                 else
8116                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8117                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8118                                                             haveit=
8119                     for x in $rpathdirs; do
8120                       if test "X$x" = "X$found_dir"; then
8121                         haveit=yes
8122                         break
8123                       fi
8124                     done
8125                     if test -z "$haveit"; then
8126                       rpathdirs="$rpathdirs $found_dir"
8127                     fi
8128                   else
8129                                                                                 haveit=
8130                     for x in $LDFLAGS $LIBINTL; do
8131
8132   acl_save_prefix="$prefix"
8133   prefix="$acl_final_prefix"
8134   acl_save_exec_prefix="$exec_prefix"
8135   exec_prefix="$acl_final_exec_prefix"
8136   eval x=\"$x\"
8137   exec_prefix="$acl_save_exec_prefix"
8138   prefix="$acl_save_prefix"
8139
8140                       if test "X$x" = "X-L$found_dir"; then
8141                         haveit=yes
8142                         break
8143                       fi
8144                     done
8145                     if test -z "$haveit"; then
8146                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8147                     fi
8148                     if test "$hardcode_minus_L" != no; then
8149                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8150                     else
8151                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8152                     fi
8153                   fi
8154                 fi
8155               fi
8156             else
8157               if test "X$found_a" != "X"; then
8158                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8159               else
8160                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8161               fi
8162             fi
8163                         additional_includedir=
8164             case "$found_dir" in
8165               */lib | */lib/)
8166                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8167                 additional_includedir="$basedir/include"
8168                 ;;
8169             esac
8170             if test "X$additional_includedir" != "X"; then
8171                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8172                 haveit=
8173                 if test "X$additional_includedir" = "X/usr/local/include"; then
8174                   if test -n "$GCC"; then
8175                     case $host_os in
8176                       linux*) haveit=yes;;
8177                     esac
8178                   fi
8179                 fi
8180                 if test -z "$haveit"; then
8181                   for x in $CPPFLAGS $INCINTL; do
8182
8183   acl_save_prefix="$prefix"
8184   prefix="$acl_final_prefix"
8185   acl_save_exec_prefix="$exec_prefix"
8186   exec_prefix="$acl_final_exec_prefix"
8187   eval x=\"$x\"
8188   exec_prefix="$acl_save_exec_prefix"
8189   prefix="$acl_save_prefix"
8190
8191                     if test "X$x" = "X-I$additional_includedir"; then
8192                       haveit=yes
8193                       break
8194                     fi
8195                   done
8196                   if test -z "$haveit"; then
8197                     if test -d "$additional_includedir"; then
8198                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8199                     fi
8200                   fi
8201                 fi
8202               fi
8203             fi
8204                         if test -n "$found_la"; then
8205                                                         save_libdir="$libdir"
8206               case "$found_la" in
8207                 */* | *\\*) . "$found_la" ;;
8208                 *) . "./$found_la" ;;
8209               esac
8210               libdir="$save_libdir"
8211                             for dep in $dependency_libs; do
8212                 case "$dep" in
8213                   -L*)
8214                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8215                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8216                       haveit=
8217                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8218                         if test -n "$GCC"; then
8219                           case $host_os in
8220                             linux*) haveit=yes;;
8221                           esac
8222                         fi
8223                       fi
8224                       if test -z "$haveit"; then
8225                         haveit=
8226                         for x in $LDFLAGS $LIBINTL; do
8227
8228   acl_save_prefix="$prefix"
8229   prefix="$acl_final_prefix"
8230   acl_save_exec_prefix="$exec_prefix"
8231   exec_prefix="$acl_final_exec_prefix"
8232   eval x=\"$x\"
8233   exec_prefix="$acl_save_exec_prefix"
8234   prefix="$acl_save_prefix"
8235
8236                           if test "X$x" = "X-L$additional_libdir"; then
8237                             haveit=yes
8238                             break
8239                           fi
8240                         done
8241                         if test -z "$haveit"; then
8242                           if test -d "$additional_libdir"; then
8243                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8244                           fi
8245                         fi
8246                         haveit=
8247                         for x in $LDFLAGS $LTLIBINTL; do
8248
8249   acl_save_prefix="$prefix"
8250   prefix="$acl_final_prefix"
8251   acl_save_exec_prefix="$exec_prefix"
8252   exec_prefix="$acl_final_exec_prefix"
8253   eval x=\"$x\"
8254   exec_prefix="$acl_save_exec_prefix"
8255   prefix="$acl_save_prefix"
8256
8257                           if test "X$x" = "X-L$additional_libdir"; then
8258                             haveit=yes
8259                             break
8260                           fi
8261                         done
8262                         if test -z "$haveit"; then
8263                           if test -d "$additional_libdir"; then
8264                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8265                           fi
8266                         fi
8267                       fi
8268                     fi
8269                     ;;
8270                   -R*)
8271                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8272                                                             haveit=
8273                     for x in $rpathdirs; do
8274                       if test "X$x" = "X$dir"; then
8275                         haveit=yes
8276                         break
8277                       fi
8278                     done
8279                     if test -z "$haveit"; then
8280                       rpathdirs="$rpathdirs $dir"
8281                     fi
8282                                                             haveit=
8283                     for x in $ltrpathdirs; do
8284                       if test "X$x" = "X$dir"; then
8285                         haveit=yes
8286                         break
8287                       fi
8288                     done
8289                     if test -z "$haveit"; then
8290                       ltrpathdirs="$ltrpathdirs $dir"
8291                     fi
8292                     ;;
8293                   -l*)
8294                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8295                     ;;
8296                   *.la)
8297                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8298                     ;;
8299                   *)
8300                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8301                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8302                     ;;
8303                 esac
8304               done
8305             fi
8306           else
8307                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8308             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8309           fi
8310         fi
8311       fi
8312     done
8313   done
8314   if test "X$rpathdirs" != "X"; then
8315     if test -n "$hardcode_libdir_separator"; then
8316                         alldirs=
8317       for found_dir in $rpathdirs; do
8318         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8319       done
8320             acl_save_libdir="$libdir"
8321       libdir="$alldirs"
8322       eval flag=\"$hardcode_libdir_flag_spec\"
8323       libdir="$acl_save_libdir"
8324       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8325     else
8326             for found_dir in $rpathdirs; do
8327         acl_save_libdir="$libdir"
8328         libdir="$found_dir"
8329         eval flag=\"$hardcode_libdir_flag_spec\"
8330         libdir="$acl_save_libdir"
8331         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8332       done
8333     fi
8334   fi
8335   if test "X$ltrpathdirs" != "X"; then
8336             for found_dir in $ltrpathdirs; do
8337       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8338     done
8339   fi
8340
8341           echo "$as_me:8341: checking for GNU gettext in libintl" >&5
8342 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
8343 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
8344   echo $ECHO_N "(cached) $ECHO_C" >&6
8345 else
8346   gt_save_CPPFLAGS="$CPPFLAGS"
8347             CPPFLAGS="$CPPFLAGS $INCINTL"
8348             gt_save_LIBS="$LIBS"
8349             LIBS="$LIBS $LIBINTL"
8350                         cat >conftest.$ac_ext <<_ACEOF
8351 #line 8351 "configure"
8352 #include "confdefs.h"
8353 #include <libintl.h>
8354 extern int _nl_msg_cat_cntr;
8355 extern
8356 #ifdef __cplusplus
8357 "C"
8358 #endif
8359 const char *_nl_expand_alias ();
8360 int
8361 main ()
8362 {
8363 bindtextdomain ("", "");
8364 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8365   ;
8366   return 0;
8367 }
8368 _ACEOF
8369 rm -f conftest.$ac_objext conftest$ac_exeext
8370 if { (eval echo "$as_me:8370: \"$ac_link\"") >&5
8371   (eval $ac_link) 2>&5
8372   ac_status=$?
8373   echo "$as_me:8373: \$? = $ac_status" >&5
8374   (exit $ac_status); } &&
8375          { ac_try='test -s conftest$ac_exeext'
8376   { (eval echo "$as_me:8376: \"$ac_try\"") >&5
8377   (eval $ac_try) 2>&5
8378   ac_status=$?
8379   echo "$as_me:8379: \$? = $ac_status" >&5
8380   (exit $ac_status); }; }; then
8381   gt_cv_func_gnugettext1_libintl=yes
8382 else
8383   echo "$as_me: failed program was:" >&5
8384 cat conftest.$ac_ext >&5
8385 gt_cv_func_gnugettext1_libintl=no
8386 fi
8387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8388                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
8389               LIBS="$LIBS $LIBICONV"
8390               cat >conftest.$ac_ext <<_ACEOF
8391 #line 8391 "configure"
8392 #include "confdefs.h"
8393 #include <libintl.h>
8394 extern int _nl_msg_cat_cntr;
8395 extern
8396 #ifdef __cplusplus
8397 "C"
8398 #endif
8399 const char *_nl_expand_alias ();
8400 int
8401 main ()
8402 {
8403 bindtextdomain ("", "");
8404 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8405   ;
8406   return 0;
8407 }
8408 _ACEOF
8409 rm -f conftest.$ac_objext conftest$ac_exeext
8410 if { (eval echo "$as_me:8410: \"$ac_link\"") >&5
8411   (eval $ac_link) 2>&5
8412   ac_status=$?
8413   echo "$as_me:8413: \$? = $ac_status" >&5
8414   (exit $ac_status); } &&
8415          { ac_try='test -s conftest$ac_exeext'
8416   { (eval echo "$as_me:8416: \"$ac_try\"") >&5
8417   (eval $ac_try) 2>&5
8418   ac_status=$?
8419   echo "$as_me:8419: \$? = $ac_status" >&5
8420   (exit $ac_status); }; }; then
8421   LIBINTL="$LIBINTL $LIBICONV"
8422                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8423                 gt_cv_func_gnugettext1_libintl=yes
8424
8425 else
8426   echo "$as_me: failed program was:" >&5
8427 cat conftest.$ac_ext >&5
8428 fi
8429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8430             fi
8431             CPPFLAGS="$gt_save_CPPFLAGS"
8432             LIBS="$gt_save_LIBS"
8433 fi
8434 echo "$as_me:8434: result: $gt_cv_func_gnugettext1_libintl" >&5
8435 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
8436         fi
8437
8438                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
8439            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
8440                 && test "$PACKAGE" != gettext; }; then
8441           gt_use_preinstalled_gnugettext=yes
8442         else
8443                     LIBINTL=
8444           LTLIBINTL=
8445           INCINTL=
8446         fi
8447
8448     if test "$gt_use_preinstalled_gnugettext" = "yes" \
8449        || test "$nls_cv_use_gnu_gettext" = "yes"; then
8450
8451 cat >>confdefs.h <<\EOF
8452 #define ENABLE_NLS 1
8453 EOF
8454
8455     else
8456       USE_NLS=no
8457     fi
8458   fi
8459
8460   if test "$USE_NLS" = "yes"; then
8461
8462     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8463       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
8464         echo "$as_me:8464: checking how to link with libintl" >&5
8465 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
8466         echo "$as_me:8466: result: $LIBINTL" >&5
8467 echo "${ECHO_T}$LIBINTL" >&6
8468
8469   for element in $INCINTL; do
8470     haveit=
8471     for x in $CPPFLAGS; do
8472
8473   acl_save_prefix="$prefix"
8474   prefix="$acl_final_prefix"
8475   acl_save_exec_prefix="$exec_prefix"
8476   exec_prefix="$acl_final_exec_prefix"
8477   eval x=\"$x\"
8478   exec_prefix="$acl_save_exec_prefix"
8479   prefix="$acl_save_prefix"
8480
8481       if test "X$x" = "X$element"; then
8482         haveit=yes
8483         break
8484       fi
8485     done
8486     if test -z "$haveit"; then
8487       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8488     fi
8489   done
8490
8491       fi
8492
8493 cat >>confdefs.h <<\EOF
8494 #define HAVE_GETTEXT 1
8495 EOF
8496
8497 cat >>confdefs.h <<\EOF
8498 #define HAVE_DCGETTEXT 1
8499 EOF
8500
8501     fi
8502
8503         POSUB=po
8504   fi
8505
8506     INTLLIBS="$LIBINTL"
8507
8508 for ac_header in locale.h
8509 do
8510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8511 echo "$as_me:8511: checking for $ac_header" >&5
8512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8514   echo $ECHO_N "(cached) $ECHO_C" >&6
8515 else
8516   cat >conftest.$ac_ext <<_ACEOF
8517 #line 8517 "configure"
8518 #include "confdefs.h"
8519 #include <$ac_header>
8520 _ACEOF
8521 if { (eval echo "$as_me:8521: \"$ac_cpp conftest.$ac_ext\"") >&5
8522   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8523   ac_status=$?
8524   egrep -v '^ *\+' conftest.er1 >conftest.err
8525   rm -f conftest.er1
8526   cat conftest.err >&5
8527   echo "$as_me:8527: \$? = $ac_status" >&5
8528   (exit $ac_status); } >/dev/null; then
8529   if test -s conftest.err; then
8530     ac_cpp_err=$ac_c_preproc_warn_flag
8531   else
8532     ac_cpp_err=
8533   fi
8534 else
8535   ac_cpp_err=yes
8536 fi
8537 if test -z "$ac_cpp_err"; then
8538   eval "$as_ac_Header=yes"
8539 else
8540   echo "$as_me: failed program was:" >&5
8541   cat conftest.$ac_ext >&5
8542   eval "$as_ac_Header=no"
8543 fi
8544 rm -f conftest.err conftest.$ac_ext
8545 fi
8546 echo "$as_me:8546: result: `eval echo '${'$as_ac_Header'}'`" >&5
8547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8549   cat >>confdefs.h <<EOF
8550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8551 EOF
8552
8553 fi
8554 done
8555
8556 for ac_header in stdlib.h
8557 do
8558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8559 echo "$as_me:8559: checking for $ac_header" >&5
8560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8562   echo $ECHO_N "(cached) $ECHO_C" >&6
8563 else
8564   cat >conftest.$ac_ext <<_ACEOF
8565 #line 8565 "configure"
8566 #include "confdefs.h"
8567 #include <$ac_header>
8568 _ACEOF
8569 if { (eval echo "$as_me:8569: \"$ac_cpp conftest.$ac_ext\"") >&5
8570   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8571   ac_status=$?
8572   egrep -v '^ *\+' conftest.er1 >conftest.err
8573   rm -f conftest.er1
8574   cat conftest.err >&5
8575   echo "$as_me:8575: \$? = $ac_status" >&5
8576   (exit $ac_status); } >/dev/null; then
8577   if test -s conftest.err; then
8578     ac_cpp_err=$ac_c_preproc_warn_flag
8579   else
8580     ac_cpp_err=
8581   fi
8582 else
8583   ac_cpp_err=yes
8584 fi
8585 if test -z "$ac_cpp_err"; then
8586   eval "$as_ac_Header=yes"
8587 else
8588   echo "$as_me: failed program was:" >&5
8589   cat conftest.$ac_ext >&5
8590   eval "$as_ac_Header=no"
8591 fi
8592 rm -f conftest.err conftest.$ac_ext
8593 fi
8594 echo "$as_me:8594: result: `eval echo '${'$as_ac_Header'}'`" >&5
8595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8597   cat >>confdefs.h <<EOF
8598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8599 EOF
8600
8601 fi
8602 done
8603
8604    echo "$as_me:8604: checking for mbstate_t" >&5
8605 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
8606 if test "${ac_cv_type_mbstate_t+set}" = set; then
8607   echo $ECHO_N "(cached) $ECHO_C" >&6
8608 else
8609   cat >conftest.$ac_ext <<_ACEOF
8610 #line 8610 "configure"
8611 #include "confdefs.h"
8612
8613 #if HAVE_STDLIB_H
8614 # include <stdlib.h>
8615 #endif
8616 #include <wchar.h>
8617 int
8618 main ()
8619 {
8620 mbstate_t x; return sizeof x;
8621   ;
8622   return 0;
8623 }
8624 _ACEOF
8625 rm -f conftest.$ac_objext
8626 if { (eval echo "$as_me:8626: \"$ac_compile\"") >&5
8627   (eval $ac_compile) 2>&5
8628   ac_status=$?
8629   echo "$as_me:8629: \$? = $ac_status" >&5
8630   (exit $ac_status); } &&
8631          { ac_try='test -s conftest.$ac_objext'
8632   { (eval echo "$as_me:8632: \"$ac_try\"") >&5
8633   (eval $ac_try) 2>&5
8634   ac_status=$?
8635   echo "$as_me:8635: \$? = $ac_status" >&5
8636   (exit $ac_status); }; }; then
8637   ac_cv_type_mbstate_t=yes
8638 else
8639   echo "$as_me: failed program was:" >&5
8640 cat conftest.$ac_ext >&5
8641 ac_cv_type_mbstate_t=no
8642 fi
8643 rm -f conftest.$ac_objext conftest.$ac_ext
8644 fi
8645 echo "$as_me:8645: result: $ac_cv_type_mbstate_t" >&5
8646 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
8647    if test $ac_cv_type_mbstate_t = no; then
8648
8649 cat >>confdefs.h <<\EOF
8650 #define mbstate_t int
8651 EOF
8652
8653    fi
8654
8655 if test "$am_cv_func_iconv" = yes -a -z "$am_cv_proto_iconv_arg1"; then
8656   ICONV_CONST=""
8657 else
8658   ICONV_CONST="const"
8659 fi
8660
8661 for ac_func in mbrtowc wcrtomb mbsinit setlocale
8662 do
8663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8664 echo "$as_me:8664: checking for $ac_func" >&5
8665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8666 if eval "test \"\${$as_ac_var+set}\" = set"; then
8667   echo $ECHO_N "(cached) $ECHO_C" >&6
8668 else
8669   cat >conftest.$ac_ext <<_ACEOF
8670 #line 8670 "configure"
8671 #include "confdefs.h"
8672 /* System header to define __stub macros and hopefully few prototypes,
8673     which can conflict with char $ac_func (); below.  */
8674 #include <assert.h>
8675 /* Override any gcc2 internal prototype to avoid an error.  */
8676 #ifdef __cplusplus
8677 extern "C"
8678 #endif
8679 /* We use char because int might match the return type of a gcc2
8680    builtin and then its argument prototype would still apply.  */
8681 char $ac_func ();
8682 char (*f) ();
8683
8684 int
8685 main ()
8686 {
8687 /* The GNU C library defines this for functions which it implements
8688     to always fail with ENOSYS.  Some functions are actually named
8689     something starting with __ and the normal name is an alias.  */
8690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8691 choke me
8692 #else
8693 f = $ac_func;
8694 #endif
8695
8696   ;
8697   return 0;
8698 }
8699 _ACEOF
8700 rm -f conftest.$ac_objext conftest$ac_exeext
8701 if { (eval echo "$as_me:8701: \"$ac_link\"") >&5
8702   (eval $ac_link) 2>&5
8703   ac_status=$?
8704   echo "$as_me:8704: \$? = $ac_status" >&5
8705   (exit $ac_status); } &&
8706          { ac_try='test -s conftest$ac_exeext'
8707   { (eval echo "$as_me:8707: \"$ac_try\"") >&5
8708   (eval $ac_try) 2>&5
8709   ac_status=$?
8710   echo "$as_me:8710: \$? = $ac_status" >&5
8711   (exit $ac_status); }; }; then
8712   eval "$as_ac_var=yes"
8713 else
8714   echo "$as_me: failed program was:" >&5
8715 cat conftest.$ac_ext >&5
8716 eval "$as_ac_var=no"
8717 fi
8718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8719 fi
8720 echo "$as_me:8720: result: `eval echo '${'$as_ac_var'}'`" >&5
8721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8722 if test `eval echo '${'$as_ac_var'}'` = yes; then
8723   cat >>confdefs.h <<EOF
8724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8725 EOF
8726
8727 fi
8728 done
8729
8730 for ac_header in wchar.h
8731 do
8732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8733 echo "$as_me:8733: checking for $ac_header" >&5
8734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8736   echo $ECHO_N "(cached) $ECHO_C" >&6
8737 else
8738   cat >conftest.$ac_ext <<_ACEOF
8739 #line 8739 "configure"
8740 #include "confdefs.h"
8741 #include <$ac_header>
8742 _ACEOF
8743 if { (eval echo "$as_me:8743: \"$ac_cpp conftest.$ac_ext\"") >&5
8744   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8745   ac_status=$?
8746   egrep -v '^ *\+' conftest.er1 >conftest.err
8747   rm -f conftest.er1
8748   cat conftest.err >&5
8749   echo "$as_me:8749: \$? = $ac_status" >&5
8750   (exit $ac_status); } >/dev/null; then
8751   if test -s conftest.err; then
8752     ac_cpp_err=$ac_c_preproc_warn_flag
8753   else
8754     ac_cpp_err=
8755   fi
8756 else
8757   ac_cpp_err=yes
8758 fi
8759 if test -z "$ac_cpp_err"; then
8760   eval "$as_ac_Header=yes"
8761 else
8762   echo "$as_me: failed program was:" >&5
8763   cat conftest.$ac_ext >&5
8764   eval "$as_ac_Header=no"
8765 fi
8766 rm -f conftest.err conftest.$ac_ext
8767 fi
8768 echo "$as_me:8768: result: `eval echo '${'$as_ac_Header'}'`" >&5
8769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8771   cat >>confdefs.h <<EOF
8772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8773 EOF
8774
8775 fi
8776 done
8777
8778   echo "$as_me:8778: checking for EILSEQ" >&5
8779 echo $ECHO_N "checking for EILSEQ... $ECHO_C" >&6
8780 if test "${ac_cv_decl_EILSEQ+set}" = set; then
8781   echo $ECHO_N "(cached) $ECHO_C" >&6
8782 else
8783
8784     cat >conftest.$ac_ext <<_ACEOF
8785 #line 8785 "configure"
8786 #include "confdefs.h"
8787
8788 #include <errno.h>
8789 #ifdef EILSEQ
8790 yes
8791 #endif
8792
8793 _ACEOF
8794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8795   egrep "yes" >/dev/null 2>&1; then
8796   have_eilseq=1
8797 fi
8798 rm -f conftest*
8799
8800     if test -n "$have_eilseq"; then
8801             ac_cv_decl_EILSEQ=yes
8802     else
8803       cat >conftest.$ac_ext <<_ACEOF
8804 #line 8804 "configure"
8805 #include "confdefs.h"
8806
8807 #include <errno.h>
8808 #if HAVE_WCHAR_H
8809 #include <wchar.h>
8810 #endif
8811 #ifdef EILSEQ
8812 yes
8813 #endif
8814
8815 _ACEOF
8816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8817   egrep "yes" >/dev/null 2>&1; then
8818   have_eilseq=1
8819 fi
8820 rm -f conftest*
8821
8822       if test -n "$have_eilseq"; then
8823                         if test "$cross_compiling" = yes; then
8824   # Depending upon the size, compute the lo and hi bounds.
8825 cat >conftest.$ac_ext <<_ACEOF
8826 #line 8826 "configure"
8827 #include "confdefs.h"
8828
8829 #include <errno.h>
8830 #if HAVE_WCHAR_H
8831 #include <wchar.h>
8832 #endif
8833 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8834 #include <stdio.h>
8835 #include <stdlib.h>
8836
8837 int
8838 main ()
8839 {
8840 int _array_ [1 - 2 * !((EILSEQ) >= 0)]
8841   ;
8842   return 0;
8843 }
8844 _ACEOF
8845 rm -f conftest.$ac_objext
8846 if { (eval echo "$as_me:8846: \"$ac_compile\"") >&5
8847   (eval $ac_compile) 2>&5
8848   ac_status=$?
8849   echo "$as_me:8849: \$? = $ac_status" >&5
8850   (exit $ac_status); } &&
8851          { ac_try='test -s conftest.$ac_objext'
8852   { (eval echo "$as_me:8852: \"$ac_try\"") >&5
8853   (eval $ac_try) 2>&5
8854   ac_status=$?
8855   echo "$as_me:8855: \$? = $ac_status" >&5
8856   (exit $ac_status); }; }; then
8857   ac_lo=0 ac_mid=0
8858   while :; do
8859     cat >conftest.$ac_ext <<_ACEOF
8860 #line 8860 "configure"
8861 #include "confdefs.h"
8862
8863 #include <errno.h>
8864 #if HAVE_WCHAR_H
8865 #include <wchar.h>
8866 #endif
8867 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8868 #include <stdio.h>
8869 #include <stdlib.h>
8870
8871 int
8872 main ()
8873 {
8874 int _array_ [1 - 2 * !((EILSEQ) <= $ac_mid)]
8875   ;
8876   return 0;
8877 }
8878 _ACEOF
8879 rm -f conftest.$ac_objext
8880 if { (eval echo "$as_me:8880: \"$ac_compile\"") >&5
8881   (eval $ac_compile) 2>&5
8882   ac_status=$?
8883   echo "$as_me:8883: \$? = $ac_status" >&5
8884   (exit $ac_status); } &&
8885          { ac_try='test -s conftest.$ac_objext'
8886   { (eval echo "$as_me:8886: \"$ac_try\"") >&5
8887   (eval $ac_try) 2>&5
8888   ac_status=$?
8889   echo "$as_me:8889: \$? = $ac_status" >&5
8890   (exit $ac_status); }; }; then
8891   ac_hi=$ac_mid; break
8892 else
8893   echo "$as_me: failed program was:" >&5
8894 cat conftest.$ac_ext >&5
8895 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
8896 fi
8897 rm -f conftest.$ac_objext conftest.$ac_ext
8898   done
8899 else
8900   echo "$as_me: failed program was:" >&5
8901 cat conftest.$ac_ext >&5
8902 ac_hi=-1 ac_mid=-1
8903   while :; do
8904     cat >conftest.$ac_ext <<_ACEOF
8905 #line 8905 "configure"
8906 #include "confdefs.h"
8907
8908 #include <errno.h>
8909 #if HAVE_WCHAR_H
8910 #include <wchar.h>
8911 #endif
8912 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8913 #include <stdio.h>
8914 #include <stdlib.h>
8915
8916 int
8917 main ()
8918 {
8919 int _array_ [1 - 2 * !((EILSEQ) >= $ac_mid)]
8920   ;
8921   return 0;
8922 }
8923 _ACEOF
8924 rm -f conftest.$ac_objext
8925 if { (eval echo "$as_me:8925: \"$ac_compile\"") >&5
8926   (eval $ac_compile) 2>&5
8927   ac_status=$?
8928   echo "$as_me:8928: \$? = $ac_status" >&5
8929   (exit $ac_status); } &&
8930          { ac_try='test -s conftest.$ac_objext'
8931   { (eval echo "$as_me:8931: \"$ac_try\"") >&5
8932   (eval $ac_try) 2>&5
8933   ac_status=$?
8934   echo "$as_me:8934: \$? = $ac_status" >&5
8935   (exit $ac_status); }; }; then
8936   ac_lo=$ac_mid; break
8937 else
8938   echo "$as_me: failed program was:" >&5
8939 cat conftest.$ac_ext >&5
8940 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
8941 fi
8942 rm -f conftest.$ac_objext conftest.$ac_ext
8943   done
8944 fi
8945 rm -f conftest.$ac_objext conftest.$ac_ext
8946 # Binary search between lo and hi bounds.
8947 while test "x$ac_lo" != "x$ac_hi"; do
8948   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8949   cat >conftest.$ac_ext <<_ACEOF
8950 #line 8950 "configure"
8951 #include "confdefs.h"
8952
8953 #include <errno.h>
8954 #if HAVE_WCHAR_H
8955 #include <wchar.h>
8956 #endif
8957 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8958 #include <stdio.h>
8959 #include <stdlib.h>
8960
8961 int
8962 main ()
8963 {
8964 int _array_ [1 - 2 * !((EILSEQ) <= $ac_mid)]
8965   ;
8966   return 0;
8967 }
8968 _ACEOF
8969 rm -f conftest.$ac_objext
8970 if { (eval echo "$as_me:8970: \"$ac_compile\"") >&5
8971   (eval $ac_compile) 2>&5
8972   ac_status=$?
8973   echo "$as_me:8973: \$? = $ac_status" >&5
8974   (exit $ac_status); } &&
8975          { ac_try='test -s conftest.$ac_objext'
8976   { (eval echo "$as_me:8976: \"$ac_try\"") >&5
8977   (eval $ac_try) 2>&5
8978   ac_status=$?
8979   echo "$as_me:8979: \$? = $ac_status" >&5
8980   (exit $ac_status); }; }; then
8981   ac_hi=$ac_mid
8982 else
8983   echo "$as_me: failed program was:" >&5
8984 cat conftest.$ac_ext >&5
8985 ac_lo=`expr $ac_mid + 1`
8986 fi
8987 rm -f conftest.$ac_objext conftest.$ac_ext
8988 done
8989 ac_cv_decl_EILSEQ=$ac_lo
8990 else
8991   if test "$cross_compiling" = yes; then
8992   { { echo "$as_me:8992: error: cannot run test program while cross compiling" >&5
8993 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8994    { (exit 1); exit 1; }; }
8995 else
8996   cat >conftest.$ac_ext <<_ACEOF
8997 #line 8997 "configure"
8998 #include "confdefs.h"
8999
9000 #include <errno.h>
9001 #if HAVE_WCHAR_H
9002 #include <wchar.h>
9003 #endif
9004 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
9005 #include <stdio.h>
9006 #include <stdlib.h>
9007
9008 int
9009 main ()
9010 {
9011 FILE *f = fopen ("conftest.val", "w");
9012 if (!f)
9013   exit (1);
9014 fprintf (f, "%d", (EILSEQ));
9015 fclose (f);
9016   ;
9017   return 0;
9018 }
9019 _ACEOF
9020 rm -f conftest$ac_exeext
9021 if { (eval echo "$as_me:9021: \"$ac_link\"") >&5
9022   (eval $ac_link) 2>&5
9023   ac_status=$?
9024   echo "$as_me:9024: \$? = $ac_status" >&5
9025   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9026   { (eval echo "$as_me:9026: \"$ac_try\"") >&5
9027   (eval $ac_try) 2>&5
9028   ac_status=$?
9029   echo "$as_me:9029: \$? = $ac_status" >&5
9030   (exit $ac_status); }; }; then
9031   ac_cv_decl_EILSEQ=`cat conftest.val`
9032 else
9033   echo "$as_me: program exited with status $ac_status" >&5
9034 echo "$as_me: failed program was:" >&5
9035 cat conftest.$ac_ext >&5
9036 fi
9037 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9038 fi
9039 fi
9040 rm -f conftest.val
9041       else
9042                                 ac_cv_decl_EILSEQ=ENOENT
9043       fi
9044     fi
9045
9046 fi
9047 echo "$as_me:9047: result: $ac_cv_decl_EILSEQ" >&5
9048 echo "${ECHO_T}$ac_cv_decl_EILSEQ" >&6
9049   if test "$ac_cv_decl_EILSEQ" != yes; then
9050
9051 cat >>confdefs.h <<EOF
9052 #define EILSEQ $ac_cv_decl_EILSEQ
9053 EOF
9054
9055     EILSEQ="$ac_cv_decl_EILSEQ"
9056
9057   fi
9058
9059 echo "$as_me:9059: checking byte ordering" >&5
9060 echo $ECHO_N "checking byte ordering... $ECHO_C" >&6
9061 if test "${cl_cv_sys_endian+set}" = set; then
9062   echo $ECHO_N "(cached) $ECHO_C" >&6
9063 else
9064
9065 if test "$cross_compiling" = yes; then
9066   : # must guess the endianness
9067
9068 else
9069   cat >conftest.$ac_ext <<_ACEOF
9070 #line 9070 "configure"
9071 #include "confdefs.h"
9072 int main () {
9073   /* Are we little or big endian?  From Harbison&Steele.  */
9074   union
9075   {
9076     long l;
9077     char c[sizeof (long)];
9078   } u;
9079   u.l = 1;
9080   exit (u.c[0] == 1);
9081 }
9082 _ACEOF
9083 rm -f conftest$ac_exeext
9084 if { (eval echo "$as_me:9084: \"$ac_link\"") >&5
9085   (eval $ac_link) 2>&5
9086   ac_status=$?
9087   echo "$as_me:9087: \$? = $ac_status" >&5
9088   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9089   { (eval echo "$as_me:9089: \"$ac_try\"") >&5
9090   (eval $ac_try) 2>&5
9091   ac_status=$?
9092   echo "$as_me:9092: \$? = $ac_status" >&5
9093   (exit $ac_status); }; }; then
9094   cl_cv_sys_endian="big endian"
9095 else
9096   echo "$as_me: program exited with status $ac_status" >&5
9097 echo "$as_me: failed program was:" >&5
9098 cat conftest.$ac_ext >&5
9099 cl_cv_sys_endian="little endian"
9100 fi
9101 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9102 fi
9103 if test -z "$cl_cv_sys_endian"; then
9104 cat >conftest.$ac_ext <<_ACEOF
9105 #line 9105 "configure"
9106 #include "confdefs.h"
9107 #if defined(m68k) || defined(__m68k__) || defined(mc68000) || defined(mc68020) || defined(__mc68020__) || defined(sparc) || defined(__sparc__) || defined(MIPSEB) || defined(__MIPSEB__) || defined(hppa) || defined(__hppa) || defined(m88000) || defined(__m88k__)
9108   yes
9109 #endif
9110
9111 _ACEOF
9112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9113   egrep "yes" >/dev/null 2>&1; then
9114   cl_cv_sys_endian="big endian"
9115 fi
9116 rm -f conftest*
9117
9118 fi
9119 if test -z "$cl_cv_sys_endian"; then
9120 cat >conftest.$ac_ext <<_ACEOF
9121 #line 9121 "configure"
9122 #include "confdefs.h"
9123 #if defined(i386) || defined(__i386) || defined(__i386__) || defined(_I386) || defined(MIPSEL) || defined(__MIPSEL__) || defined(__alpha)
9124   yes
9125 #endif
9126
9127 _ACEOF
9128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9129   egrep "yes" >/dev/null 2>&1; then
9130   cl_cv_sys_endian="little endian"
9131 fi
9132 rm -f conftest*
9133
9134 fi
9135 if test -z "$cl_cv_sys_endian"; then
9136 cl_cv_sys_endian="guessing little endian"
9137 fi
9138
9139 fi
9140 echo "$as_me:9140: result: $cl_cv_sys_endian" >&5
9141 echo "${ECHO_T}$cl_cv_sys_endian" >&6
9142 case "$cl_cv_sys_endian" in
9143   *little*) cat >>confdefs.h <<\EOF
9144 #define WORDS_LITTLEENDIAN 1
9145 EOF
9146  ;;
9147   *big*)    ;;
9148 esac
9149
9150 OS=""
9151 case "$host_os" in
9152   linux*)   OS="linux" ;;
9153   solaris*) OS="solaris" ;;
9154   osf*)     OS="osf" ;;
9155 esac
9156 if test -n "$OS"; then
9157
9158   PLUGLIB="libiconv_plug.so"
9159 else
9160   PLUGLIB=""
9161 fi
9162
9163 if test -d "${srcdir}/tests"; then
9164   TESTS_MAKEFILE=tests/Makefile
9165 else
9166   TESTS_MAKEFILE=""
9167 fi
9168
9169 subdirs="$subdirs libcharset"
9170
9171 ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile po/Makefile.in man/Makefile ${TESTS_MAKEFILE} include/iconv.h"
9172 cat >confcache <<\_ACEOF
9173 # This file is a shell script that caches the results of configure
9174 # tests run on this system so they can be shared between configure
9175 # scripts and configure runs, see configure's option --config-cache.
9176 # It is not useful on other systems.  If it contains results you don't
9177 # want to keep, you may remove or edit it.
9178 #
9179 # config.status only pays attention to the cache file if you give it
9180 # the --recheck option to rerun configure.
9181 #
9182 # `ac_cv_env_foo' variables (set or unset) will be overriden when
9183 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9184 # following values.
9185
9186 _ACEOF
9187
9188 # The following way of writing the cache mishandles newlines in values,
9189 # but we know of no workaround that is simple, portable, and efficient.
9190 # So, don't put newlines in cache variables' values.
9191 # Ultrix sh set writes to stderr and can't be redirected directly,
9192 # and sets the high bit in the cache file unless we assign to the vars.
9193 {
9194   (set) 2>&1 |
9195     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9196     *ac_space=\ *)
9197       # `set' does not quote correctly, so add quotes (double-quote
9198       # substitution turns \\\\ into \\, and sed turns \\ into \).
9199       sed -n \
9200         "s/'/'\\\\''/g;
9201           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9202       ;;
9203     *)
9204       # `set' quotes correctly as required by POSIX, so do not add quotes.
9205       sed -n \
9206         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9207       ;;
9208     esac;
9209 } |
9210   sed '
9211      t clear
9212      : clear
9213      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9214      t end
9215      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9216      : end' >>confcache
9217 if cmp -s $cache_file confcache; then :; else
9218   if test -w $cache_file; then
9219     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9220     cat confcache >$cache_file
9221   else
9222     echo "not updating unwritable cache $cache_file"
9223   fi
9224 fi
9225 rm -f confcache
9226
9227 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9228 # Let make expand exec_prefix.
9229 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9230
9231 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9232 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9233 # trailing colons and then remove the whole line if VPATH becomes empty
9234 # (actually we leave an empty line to preserve line numbers).
9235 if test "x$srcdir" = x.; then
9236   ac_vpsub='/^[         ]*VPATH[        ]*=/{
9237 s/:*\$(srcdir):*/:/;
9238 s/:*\${srcdir}:*/:/;
9239 s/:*@srcdir@:*/:/;
9240 s/^\([^=]*=[    ]*\):*/\1/;
9241 s/:*$//;
9242 s/^[^=]*=[      ]*$//;
9243 }'
9244 fi
9245
9246 DEFS=-DHAVE_CONFIG_H
9247
9248 : ${CONFIG_STATUS=./config.status}
9249 ac_clean_files_save=$ac_clean_files
9250 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9251 { echo "$as_me:9251: creating $CONFIG_STATUS" >&5
9252 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9253 cat >$CONFIG_STATUS <<_ACEOF
9254 #! $SHELL
9255 # Generated automatically by configure.
9256 # Run this file to recreate the current configuration.
9257 # Compiler output produced by configure, useful for debugging
9258 # configure, is in config.log if it exists.
9259
9260 debug=false
9261 SHELL=\${CONFIG_SHELL-$SHELL}
9262 ac_cs_invocation="\$0 \$@"
9263
9264 _ACEOF
9265
9266 cat >>$CONFIG_STATUS <<\_ACEOF
9267 # Be Bourne compatible
9268 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9269   emulate sh
9270   NULLCMD=:
9271 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9272   set -o posix
9273 fi
9274
9275 # Name of the executable.
9276 as_me=`echo "$0" |sed 's,.*[\\/],,'`
9277
9278 if expr a : '\(a\)' >/dev/null 2>&1; then
9279   as_expr=expr
9280 else
9281   as_expr=false
9282 fi
9283
9284 rm -f conf$$ conf$$.exe conf$$.file
9285 echo >conf$$.file
9286 if ln -s conf$$.file conf$$ 2>/dev/null; then
9287   # We could just check for DJGPP; but this test a) works b) is more generic
9288   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9289   if test -f conf$$.exe; then
9290     # Don't use ln at all; we don't have any links
9291     as_ln_s='cp -p'
9292   else
9293     as_ln_s='ln -s'
9294   fi
9295 elif ln conf$$.file conf$$ 2>/dev/null; then
9296   as_ln_s=ln
9297 else
9298   as_ln_s='cp -p'
9299 fi
9300 rm -f conf$$ conf$$.exe conf$$.file
9301
9302 as_executable_p="test -f"
9303
9304 # Support unset when possible.
9305 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9306   as_unset=unset
9307 else
9308   as_unset=false
9309 fi
9310
9311 # NLS nuisances.
9312 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
9313 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
9314 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
9315 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
9316 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
9317 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
9318 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
9319 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
9320
9321 # IFS
9322 # We need space, tab and new line, in precisely that order.
9323 as_nl='
9324 '
9325 IFS="   $as_nl"
9326
9327 # CDPATH.
9328 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
9329
9330 exec 6>&1
9331
9332 _ACEOF
9333
9334 # Files that config.status was made for.
9335 if test -n "$ac_config_files"; then
9336   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9337 fi
9338
9339 if test -n "$ac_config_headers"; then
9340   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9341 fi
9342
9343 if test -n "$ac_config_links"; then
9344   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9345 fi
9346
9347 if test -n "$ac_config_commands"; then
9348   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9349 fi
9350
9351 cat >>$CONFIG_STATUS <<\EOF
9352
9353 ac_cs_usage="\
9354 \`$as_me' instantiates files from templates according to the
9355 current configuration.
9356
9357 Usage: $0 [OPTIONS] [FILE]...
9358
9359   -h, --help       print this help, then exit
9360   -V, --version    print version number, then exit
9361   -d, --debug      don't remove temporary files
9362       --recheck    update $as_me by reconfiguring in the same conditions
9363   --file=FILE[:TEMPLATE]
9364                    instantiate the configuration file FILE
9365   --header=FILE[:TEMPLATE]
9366                    instantiate the configuration header FILE
9367
9368 Configuration files:
9369 $config_files
9370
9371 Configuration headers:
9372 $config_headers
9373
9374 Configuration commands:
9375 $config_commands
9376
9377 Report bugs to <bug-autoconf@gnu.org>."
9378 EOF
9379
9380 cat >>$CONFIG_STATUS <<EOF
9381 ac_cs_version="\\
9382 libiconv config.status 1.8
9383 configured by $0, generated by GNU Autoconf 2.52,
9384   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9385
9386 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9387 Free Software Foundation, Inc.
9388 This config.status script is free software; the Free Software Foundation
9389 gives unlimited permission to copy, distribute and modify it."
9390 srcdir=$srcdir
9391 INSTALL="$INSTALL"
9392 EOF
9393
9394 cat >>$CONFIG_STATUS <<\EOF
9395 # If no file are specified by the user, then we need to provide default
9396 # value.  By we need to know if files were specified by the user.
9397 ac_need_defaults=:
9398 while test $# != 0
9399 do
9400   case $1 in
9401   --*=*)
9402     ac_option=`expr "x$1" : 'x\([^=]*\)='`
9403     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9404     shift
9405     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
9406     shift
9407     ;;
9408   -*);;
9409   *) # This is not an option, so the user has probably given explicit
9410      # arguments.
9411      ac_need_defaults=false;;
9412   esac
9413
9414   case $1 in
9415   # Handling of the options.
9416 EOF
9417 cat >>$CONFIG_STATUS <<EOF
9418   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9419     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9420     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9421 EOF
9422 cat >>$CONFIG_STATUS <<\EOF
9423   --version | --vers* | -V )
9424     echo "$ac_cs_version"; exit 0 ;;
9425   --he | --h)
9426     # Conflict between --help and --header
9427     { { echo "$as_me:9427: error: ambiguous option: $1
9428 Try \`$0 --help' for more information." >&5
9429 echo "$as_me: error: ambiguous option: $1
9430 Try \`$0 --help' for more information." >&2;}
9431    { (exit 1); exit 1; }; };;
9432   --help | --hel | -h )
9433     echo "$ac_cs_usage"; exit 0 ;;
9434   --debug | --d* | -d )
9435     debug=: ;;
9436   --file | --fil | --fi | --f )
9437     shift
9438     CONFIG_FILES="$CONFIG_FILES $1"
9439     ac_need_defaults=false;;
9440   --header | --heade | --head | --hea )
9441     shift
9442     CONFIG_HEADERS="$CONFIG_HEADERS $1"
9443     ac_need_defaults=false;;
9444
9445   # This is an error.
9446   -*) { { echo "$as_me:9446: error: unrecognized option: $1
9447 Try \`$0 --help' for more information." >&5
9448 echo "$as_me: error: unrecognized option: $1
9449 Try \`$0 --help' for more information." >&2;}
9450    { (exit 1); exit 1; }; } ;;
9451
9452   *) ac_config_targets="$ac_config_targets $1" ;;
9453
9454   esac
9455   shift
9456 done
9457
9458 exec 5>>config.log
9459 cat >&5 << _ACEOF
9460
9461 ## ----------------------- ##
9462 ## Running config.status.  ##
9463 ## ----------------------- ##
9464
9465 This file was extended by $as_me (libiconv 1.8) 2.52, executed with
9466   CONFIG_FILES    = $CONFIG_FILES
9467   CONFIG_HEADERS  = $CONFIG_HEADERS
9468   CONFIG_LINKS    = $CONFIG_LINKS
9469   CONFIG_COMMANDS = $CONFIG_COMMANDS
9470   > $ac_cs_invocation
9471 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9472
9473 _ACEOF
9474 EOF
9475
9476 cat >>$CONFIG_STATUS <<EOF
9477 #
9478 # INIT-COMMANDS section.
9479 #
9480
9481 # Capture the value of obsolete $ALL_LINGUAS because we need it to compute
9482     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
9483     # from automake.
9484     eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
9485     # Capture the value of LINGUAS because we need it to compute CATALOGS.
9486     LINGUAS="${LINGUAS-%UNSET%}"
9487
9488 EOF
9489
9490 cat >>$CONFIG_STATUS <<\EOF
9491 for ac_config_target in $ac_config_targets
9492 do
9493   case "$ac_config_target" in
9494   # Handling of arguments.
9495   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9496   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
9497   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9498   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9499   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
9500   "${TESTS_MAKEFILE}" ) CONFIG_FILES="$CONFIG_FILES ${TESTS_MAKEFILE}" ;;
9501   "include/iconv.h" ) CONFIG_FILES="$CONFIG_FILES include/iconv.h" ;;
9502   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9503   "lib/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
9504   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
9505   *) { { echo "$as_me:9505: error: invalid argument: $ac_config_target" >&5
9506 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9507    { (exit 1); exit 1; }; };;
9508   esac
9509 done
9510
9511 # If the user did not use the arguments to specify the items to instantiate,
9512 # then the envvar interface is used.  Set only those that are not.
9513 # We use the long form for the default assignment because of an extremely
9514 # bizarre bug on SunOS 4.1.3.
9515 if $ac_need_defaults; then
9516   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9517   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9518   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9519 fi
9520
9521 # Create a temporary directory, and hook for its removal unless debugging.
9522 $debug ||
9523 {
9524   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9525   trap '{ (exit 1); exit 1; }' 1 2 13 15
9526 }
9527
9528 # Create a (secure) tmp directory for tmp files.
9529 : ${TMPDIR=/tmp}
9530 {
9531   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9532   test -n "$tmp" && test -d "$tmp"
9533 }  ||
9534 {
9535   tmp=$TMPDIR/cs$$-$RANDOM
9536   (umask 077 && mkdir $tmp)
9537 } ||
9538 {
9539    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9540    { (exit 1); exit 1; }
9541 }
9542
9543 EOF
9544
9545 cat >>$CONFIG_STATUS <<EOF
9546
9547 #
9548 # CONFIG_FILES section.
9549 #
9550
9551 # No need to generate the scripts if there are no CONFIG_FILES.
9552 # This happens for instance when ./config.status config.h
9553 if test -n "\$CONFIG_FILES"; then
9554   # Protect against being on the right side of a sed subst in config.status.
9555   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9556    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9557 s,@SHELL@,$SHELL,;t t
9558 s,@exec_prefix@,$exec_prefix,;t t
9559 s,@prefix@,$prefix,;t t
9560 s,@program_transform_name@,$program_transform_name,;t t
9561 s,@bindir@,$bindir,;t t
9562 s,@sbindir@,$sbindir,;t t
9563 s,@libexecdir@,$libexecdir,;t t
9564 s,@datadir@,$datadir,;t t
9565 s,@sysconfdir@,$sysconfdir,;t t
9566 s,@sharedstatedir@,$sharedstatedir,;t t
9567 s,@localstatedir@,$localstatedir,;t t
9568 s,@libdir@,$libdir,;t t
9569 s,@includedir@,$includedir,;t t
9570 s,@oldincludedir@,$oldincludedir,;t t
9571 s,@infodir@,$infodir,;t t
9572 s,@mandir@,$mandir,;t t
9573 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9574 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9575 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9576 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9577 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9578 s,@build_alias@,$build_alias,;t t
9579 s,@host_alias@,$host_alias,;t t
9580 s,@target_alias@,$target_alias,;t t
9581 s,@ECHO_C@,$ECHO_C,;t t
9582 s,@ECHO_N@,$ECHO_N,;t t
9583 s,@ECHO_T@,$ECHO_T,;t t
9584 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9585 s,@DEFS@,$DEFS,;t t
9586 s,@LIBS@,$LIBS,;t t
9587 s,@PACKAGE@,$PACKAGE,;t t
9588 s,@VERSION@,$VERSION,;t t
9589 s,@SET_MAKE@,$SET_MAKE,;t t
9590 s,@USE_EXTRA_ENCODINGS@,$USE_EXTRA_ENCODINGS,;t t
9591 s,@CC@,$CC,;t t
9592 s,@CFLAGS@,$CFLAGS,;t t
9593 s,@LDFLAGS@,$LDFLAGS,;t t
9594 s,@CPPFLAGS@,$CPPFLAGS,;t t
9595 s,@ac_ct_CC@,$ac_ct_CC,;t t
9596 s,@EXEEXT@,$EXEEXT,;t t
9597 s,@OBJEXT@,$OBJEXT,;t t
9598 s,@CPP@,$CPP,;t t
9599 s,@RANLIB@,$RANLIB,;t t
9600 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9601 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9602 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9603 s,@CP@,$CP,;t t
9604 s,@LN@,$LN,;t t
9605 s,@LN_S@,$LN_S,;t t
9606 s,@build@,$build,;t t
9607 s,@build_cpu@,$build_cpu,;t t
9608 s,@build_vendor@,$build_vendor,;t t
9609 s,@build_os@,$build_os,;t t
9610 s,@host@,$host,;t t
9611 s,@host_cpu@,$host_cpu,;t t
9612 s,@host_vendor@,$host_vendor,;t t
9613 s,@host_os@,$host_os,;t t
9614 s,@ECHO@,$ECHO,;t t
9615 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9616 s,@STRIP@,$STRIP,;t t
9617 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9618 s,@LIBTOOL@,$LIBTOOL,;t t
9619 s,@LIBICONV@,$LIBICONV,;t t
9620 s,@LTLIBICONV@,$LTLIBICONV,;t t
9621 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9622 s,@MSGFMT@,$MSGFMT,;t t
9623 s,@GMSGFMT@,$GMSGFMT,;t t
9624 s,@XGETTEXT@,$XGETTEXT,;t t
9625 s,@MSGMERGE@,$MSGMERGE,;t t
9626 s,@USE_NLS@,$USE_NLS,;t t
9627 s,@INTLLIBS@,$INTLLIBS,;t t
9628 s,@LIBINTL@,$LIBINTL,;t t
9629 s,@LTLIBINTL@,$LTLIBINTL,;t t
9630 s,@POSUB@,$POSUB,;t t
9631 s,@ICONV_CONST@,$ICONV_CONST,;t t
9632 s,@EILSEQ@,$EILSEQ,;t t
9633 s,@OS@,$OS,;t t
9634 s,@GCC@,$GCC,;t t
9635 s,@PLUGLIB@,$PLUGLIB,;t t
9636 s,@subdirs@,$subdirs,;t t
9637 CEOF
9638
9639 EOF
9640
9641   cat >>$CONFIG_STATUS <<\EOF
9642   # Split the substitutions into bite-sized pieces for seds with
9643   # small command number limits, like on Digital OSF/1 and HP-UX.
9644   ac_max_sed_lines=48
9645   ac_sed_frag=1 # Number of current file.
9646   ac_beg=1 # First line for current file.
9647   ac_end=$ac_max_sed_lines # Line after last line for current file.
9648   ac_more_lines=:
9649   ac_sed_cmds=
9650   while $ac_more_lines; do
9651     if test $ac_beg -gt 1; then
9652       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9653     else
9654       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9655     fi
9656     if test ! -s $tmp/subs.frag; then
9657       ac_more_lines=false
9658     else
9659       # The purpose of the label and of the branching condition is to
9660       # speed up the sed processing (if there are no `@' at all, there
9661       # is no need to browse any of the substitutions).
9662       # These are the two extra sed commands mentioned above.
9663       (echo ':t
9664   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9665       if test -z "$ac_sed_cmds"; then
9666         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9667       else
9668         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9669       fi
9670       ac_sed_frag=`expr $ac_sed_frag + 1`
9671       ac_beg=$ac_end
9672       ac_end=`expr $ac_end + $ac_max_sed_lines`
9673     fi
9674   done
9675   if test -z "$ac_sed_cmds"; then
9676     ac_sed_cmds=cat
9677   fi
9678 fi # test -n "$CONFIG_FILES"
9679
9680 EOF
9681 cat >>$CONFIG_STATUS <<\EOF
9682 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9683   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9684   case $ac_file in
9685   - | *:- | *:-:* ) # input from stdin
9686         cat >$tmp/stdin
9687         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9688         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9689   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9690         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9691   * )   ac_file_in=$ac_file.in ;;
9692   esac
9693
9694   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9695   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9696          X"$ac_file" : 'X\(//\)[^/]' \| \
9697          X"$ac_file" : 'X\(//\)$' \| \
9698          X"$ac_file" : 'X\(/\)' \| \
9699          .     : '\(.\)' 2>/dev/null ||
9700 echo X"$ac_file" |
9701     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9702           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9703           /^X\(\/\/\)$/{ s//\1/; q; }
9704           /^X\(\/\).*/{ s//\1/; q; }
9705           s/.*/./; q'`
9706   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9707     { case "$ac_dir" in
9708   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9709   *)                      as_incr_dir=.;;
9710 esac
9711 as_dummy="$ac_dir"
9712 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9713   case $as_mkdir_dir in
9714     # Skip DOS drivespec
9715     ?:) as_incr_dir=$as_mkdir_dir ;;
9716     *)
9717       as_incr_dir=$as_incr_dir/$as_mkdir_dir
9718       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
9719     ;;
9720   esac
9721 done; }
9722
9723     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
9724     # A "../" for each directory in $ac_dir_suffix.
9725     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
9726   else
9727     ac_dir_suffix= ac_dots=
9728   fi
9729
9730   case $srcdir in
9731   .)  ac_srcdir=.
9732       if test -z "$ac_dots"; then
9733          ac_top_srcdir=.
9734       else
9735          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
9736       fi ;;
9737   [\\/]* | ?:[\\/]* )
9738       ac_srcdir=$srcdir$ac_dir_suffix;
9739       ac_top_srcdir=$srcdir ;;
9740   *) # Relative path.
9741     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
9742     ac_top_srcdir=$ac_dots$srcdir ;;
9743   esac
9744
9745   case $INSTALL in
9746   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9747   *) ac_INSTALL=$ac_dots$INSTALL ;;
9748   esac
9749
9750   if test x"$ac_file" != x-; then
9751     { echo "$as_me:9751: creating $ac_file" >&5
9752 echo "$as_me: creating $ac_file" >&6;}
9753     rm -f "$ac_file"
9754   fi
9755   # Let's still pretend it is `configure' which instantiates (i.e., don't
9756   # use $as_me), people would be surprised to read:
9757   #    /* config.h.  Generated automatically by config.status.  */
9758   configure_input="Generated automatically from `echo $ac_file_in |
9759                                                  sed 's,.*/,,'` by configure."
9760
9761   # First look for the input files in the build tree, otherwise in the
9762   # src tree.
9763   ac_file_inputs=`IFS=:
9764     for f in $ac_file_in; do
9765       case $f in
9766       -) echo $tmp/stdin ;;
9767       [\\/$]*)
9768          # Absolute (can't be DOS-style, as IFS=:)
9769          test -f "$f" || { { echo "$as_me:9769: error: cannot find input file: $f" >&5
9770 echo "$as_me: error: cannot find input file: $f" >&2;}
9771    { (exit 1); exit 1; }; }
9772          echo $f;;
9773       *) # Relative
9774          if test -f "$f"; then
9775            # Build tree
9776            echo $f
9777          elif test -f "$srcdir/$f"; then
9778            # Source tree
9779            echo $srcdir/$f
9780          else
9781            # /dev/null tree
9782            { { echo "$as_me:9782: error: cannot find input file: $f" >&5
9783 echo "$as_me: error: cannot find input file: $f" >&2;}
9784    { (exit 1); exit 1; }; }
9785          fi;;
9786       esac
9787     done` || { (exit 1); exit 1; }
9788 EOF
9789 cat >>$CONFIG_STATUS <<EOF
9790   sed "$ac_vpsub
9791 $extrasub
9792 EOF
9793 cat >>$CONFIG_STATUS <<\EOF
9794 :t
9795 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9796 s,@configure_input@,$configure_input,;t t
9797 s,@srcdir@,$ac_srcdir,;t t
9798 s,@top_srcdir@,$ac_top_srcdir,;t t
9799 s,@INSTALL@,$ac_INSTALL,;t t
9800 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9801   rm -f $tmp/stdin
9802   if test x"$ac_file" != x-; then
9803     mv $tmp/out $ac_file
9804   else
9805     cat $tmp/out
9806     rm -f $tmp/out
9807   fi
9808
9809 done
9810 EOF
9811 cat >>$CONFIG_STATUS <<\EOF
9812
9813 #
9814 # CONFIG_HEADER section.
9815 #
9816
9817 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9818 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9819 #
9820 # ac_d sets the value in "#define NAME VALUE" lines.
9821 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
9822 ac_dB='[        ].*$,\1#\2'
9823 ac_dC=' '
9824 ac_dD=',;t'
9825 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9826 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9827 ac_uB='$,\1#\2define\3'
9828 ac_uC=' '
9829 ac_uD=',;t'
9830
9831 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9832   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9833   case $ac_file in
9834   - | *:- | *:-:* ) # input from stdin
9835         cat >$tmp/stdin
9836         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9837         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9838   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9839         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9840   * )   ac_file_in=$ac_file.in ;;
9841   esac
9842
9843   test x"$ac_file" != x- && { echo "$as_me:9843: creating $ac_file" >&5
9844 echo "$as_me: creating $ac_file" >&6;}
9845
9846   # First look for the input files in the build tree, otherwise in the
9847   # src tree.
9848   ac_file_inputs=`IFS=:
9849     for f in $ac_file_in; do
9850       case $f in
9851       -) echo $tmp/stdin ;;
9852       [\\/$]*)
9853          # Absolute (can't be DOS-style, as IFS=:)
9854          test -f "$f" || { { echo "$as_me:9854: error: cannot find input file: $f" >&5
9855 echo "$as_me: error: cannot find input file: $f" >&2;}
9856    { (exit 1); exit 1; }; }
9857          echo $f;;
9858       *) # Relative
9859          if test -f "$f"; then
9860            # Build tree
9861            echo $f
9862          elif test -f "$srcdir/$f"; then
9863            # Source tree
9864            echo $srcdir/$f
9865          else
9866            # /dev/null tree
9867            { { echo "$as_me:9867: error: cannot find input file: $f" >&5
9868 echo "$as_me: error: cannot find input file: $f" >&2;}
9869    { (exit 1); exit 1; }; }
9870          fi;;
9871       esac
9872     done` || { (exit 1); exit 1; }
9873   # Remove the trailing spaces.
9874   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
9875
9876 EOF
9877
9878 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9879 # `conftest.undefs', that substitutes the proper values into
9880 # config.h.in to produce config.h.  The first handles `#define'
9881 # templates, and the second `#undef' templates.
9882 # And first: Protect against being on the right side of a sed subst in
9883 # config.status.  Protect against being in an unquoted here document
9884 # in config.status.
9885 rm -f conftest.defines conftest.undefs
9886 # Using a here document instead of a string reduces the quoting nightmare.
9887 # Putting comments in sed scripts is not portable.
9888 #
9889 # `end' is used to avoid that the second main sed command (meant for
9890 # 0-ary CPP macros) applies to n-ary macro definitions.
9891 # See the Autoconf documentation for `clear'.
9892 cat >confdef2sed.sed <<\EOF
9893 s/[\\&,]/\\&/g
9894 s,[\\$`],\\&,g
9895 t clear
9896 : clear
9897 s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
9898 t end
9899 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9900 : end
9901 EOF
9902 # If some macros were called several times there might be several times
9903 # the same #defines, which is useless.  Nevertheless, we may not want to
9904 # sort them, since we want the *last* AC-DEFINE to be honored.
9905 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9906 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9907 rm -f confdef2sed.sed
9908
9909 # This sed command replaces #undef with comments.  This is necessary, for
9910 # example, in the case of _POSIX_SOURCE, which is predefined and required
9911 # on some systems where configure will not decide to define it.
9912 cat >>conftest.undefs <<\EOF
9913 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9914 EOF
9915
9916 # Break up conftest.defines because some shells have a limit on the size
9917 # of here documents, and old seds have small limits too (100 cmds).
9918 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9919 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9920 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9921 echo '  :' >>$CONFIG_STATUS
9922 rm -f conftest.tail
9923 while grep . conftest.defines >/dev/null
9924 do
9925   # Write a limited-size here document to $tmp/defines.sed.
9926   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9927   # Speed up: don't consider the non `#define' lines.
9928   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
9929   # Work around the forget-to-reset-the-flag bug.
9930   echo 't clr' >>$CONFIG_STATUS
9931   echo ': clr' >>$CONFIG_STATUS
9932   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9933   echo 'CEOF
9934   sed -f $tmp/defines.sed $tmp/in >$tmp/out
9935   rm -f $tmp/in
9936   mv $tmp/out $tmp/in
9937 ' >>$CONFIG_STATUS
9938   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9939   rm -f conftest.defines
9940   mv conftest.tail conftest.defines
9941 done
9942 rm -f conftest.defines
9943 echo '  fi # egrep' >>$CONFIG_STATUS
9944 echo >>$CONFIG_STATUS
9945
9946 # Break up conftest.undefs because some shells have a limit on the size
9947 # of here documents, and old seds have small limits too (100 cmds).
9948 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9949 rm -f conftest.tail
9950 while grep . conftest.undefs >/dev/null
9951 do
9952   # Write a limited-size here document to $tmp/undefs.sed.
9953   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9954   # Speed up: don't consider the non `#undef'
9955   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
9956   # Work around the forget-to-reset-the-flag bug.
9957   echo 't clr' >>$CONFIG_STATUS
9958   echo ': clr' >>$CONFIG_STATUS
9959   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9960   echo 'CEOF
9961   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9962   rm -f $tmp/in
9963   mv $tmp/out $tmp/in
9964 ' >>$CONFIG_STATUS
9965   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9966   rm -f conftest.undefs
9967   mv conftest.tail conftest.undefs
9968 done
9969 rm -f conftest.undefs
9970
9971 cat >>$CONFIG_STATUS <<\EOF
9972   # Let's still pretend it is `configure' which instantiates (i.e., don't
9973   # use $as_me), people would be surprised to read:
9974   #    /* config.h.  Generated automatically by config.status.  */
9975   if test x"$ac_file" = x-; then
9976     echo "/* Generated automatically by configure.  */" >$tmp/config.h
9977   else
9978     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
9979   fi
9980   cat $tmp/in >>$tmp/config.h
9981   rm -f $tmp/in
9982   if test x"$ac_file" != x-; then
9983     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
9984       { echo "$as_me:9984: $ac_file is unchanged" >&5
9985 echo "$as_me: $ac_file is unchanged" >&6;}
9986     else
9987       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9988          X"$ac_file" : 'X\(//\)[^/]' \| \
9989          X"$ac_file" : 'X\(//\)$' \| \
9990          X"$ac_file" : 'X\(/\)' \| \
9991          .     : '\(.\)' 2>/dev/null ||
9992 echo X"$ac_file" |
9993     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9994           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9995           /^X\(\/\/\)$/{ s//\1/; q; }
9996           /^X\(\/\).*/{ s//\1/; q; }
9997           s/.*/./; q'`
9998       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9999         { case "$ac_dir" in
10000   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10001   *)                      as_incr_dir=.;;
10002 esac
10003 as_dummy="$ac_dir"
10004 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10005   case $as_mkdir_dir in
10006     # Skip DOS drivespec
10007     ?:) as_incr_dir=$as_mkdir_dir ;;
10008     *)
10009       as_incr_dir=$as_incr_dir/$as_mkdir_dir
10010       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
10011     ;;
10012   esac
10013 done; }
10014
10015       fi
10016       rm -f $ac_file
10017       mv $tmp/config.h $ac_file
10018     fi
10019   else
10020     cat $tmp/config.h
10021     rm -f $tmp/config.h
10022   fi
10023 done
10024 EOF
10025 cat >>$CONFIG_STATUS <<\EOF
10026
10027 #
10028 # CONFIG_COMMANDS section.
10029 #
10030 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10031   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10032   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10033
10034   case $ac_dest in
10035     default-1 )
10036     for ac_file in $CONFIG_FILES; do
10037       # Support "outfile[:infile[:infile...]]"
10038       case "$ac_file" in
10039         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10040       esac
10041       # PO directories have a Makefile.in generated from Makefile.in.in.
10042       case "$ac_file" in */Makefile.in)
10043         # Adjust a relative srcdir.
10044         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10045         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10046         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10047         # In autoconf-2.13 it is called $ac_given_srcdir.
10048         # In autoconf-2.50 it is called $srcdir.
10049         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10050         case "$ac_given_srcdir" in
10051           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10052           /*) top_srcdir="$ac_given_srcdir" ;;
10053           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
10054         esac
10055         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10056           rm -f "$ac_dir/POTFILES"
10057           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10058           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10059           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
10060           # on $ac_dir but don't depend on user-specified configuration
10061           # parameters.
10062           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10063             # The LINGUAS file contains the set of available languages.
10064             if test -n "$ALL_LINGUAS"; then
10065               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10066             fi
10067             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10068             # Hide the ALL_LINGUAS assigment from automake.
10069             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10070           fi
10071           case "$ac_given_srcdir" in
10072             .) srcdirpre= ;;
10073             *) srcdirpre='$(srcdir)/' ;;
10074           esac
10075           POFILES=
10076           GMOFILES=
10077           UPDATEPOFILES=
10078           DUMMYPOFILES=
10079           for lang in $ALL_LINGUAS; do
10080             POFILES="$POFILES $srcdirpre$lang.po"
10081             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10082             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10083             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10084           done
10085           # CATALOGS depends on both $ac_dir and the user's LINGUAS
10086           # environment variable.
10087           INST_LINGUAS=
10088           if test -n "$ALL_LINGUAS"; then
10089             for presentlang in $ALL_LINGUAS; do
10090               useit=no
10091               if test "%UNSET%" != "$LINGUAS"; then
10092                 desiredlanguages="$LINGUAS"
10093               else
10094                 desiredlanguages="$ALL_LINGUAS"
10095               fi
10096               for desiredlang in $desiredlanguages; do
10097                 # Use the presentlang catalog if desiredlang is
10098                 #   a. equal to presentlang, or
10099                 #   b. a variant of presentlang (because in this case,
10100                 #      presentlang can be used as a fallback for messages
10101                 #      which are not translated in the desiredlang catalog).
10102                 case "$desiredlang" in
10103                   "$presentlang"*) useit=yes;;
10104                 esac
10105               done
10106               if test $useit = yes; then
10107                 INST_LINGUAS="$INST_LINGUAS $presentlang"
10108               fi
10109             done
10110           fi
10111           CATALOGS=
10112           if test -n "$INST_LINGUAS"; then
10113             for lang in $INST_LINGUAS; do
10114               CATALOGS="$CATALOGS $lang.gmo"
10115             done
10116           fi
10117           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10118           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10119           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10120             if test -f "$f"; then
10121               case "$f" in
10122                 *.orig | *.bak | *~) ;;
10123                 *) cat "$f" >> "$ac_dir/Makefile" ;;
10124               esac
10125             fi
10126           done
10127         fi
10128         ;;
10129       esac
10130     done ;;
10131   esac
10132 done
10133 EOF
10134
10135 cat >>$CONFIG_STATUS <<\EOF
10136
10137 { (exit 0); exit 0; }
10138 EOF
10139 chmod +x $CONFIG_STATUS
10140 ac_clean_files=$ac_clean_files_save
10141
10142 # configure is writing to config.log, and then calls config.status.
10143 # config.status does its own redirection, appending to config.log.
10144 # Unfortunately, on DOS this fails, as config.log is still kept open
10145 # by configure, so config.status won't be able to write to it; its
10146 # output is simply discarded.  So we exec the FD to /dev/null,
10147 # effectively closing config.log, so it can be properly (re)opened and
10148 # appended to by config.status.  When coming back to configure, we
10149 # need to make the FD available again.
10150 if test "$no_create" != yes; then
10151   ac_cs_success=:
10152   exec 5>/dev/null
10153   $SHELL $CONFIG_STATUS || ac_cs_success=false
10154   exec 5>>config.log
10155   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10156   # would make configure fail if this is the last instruction.
10157   $ac_cs_success || { (exit 1); exit 1; }
10158 fi
10159
10160 #
10161 # CONFIG_SUBDIRS section.
10162 #
10163 if test "$no_recursion" != yes; then
10164
10165   # Remove --cache-file and --srcdir arguments so they do not pile up.
10166   ac_sub_configure_args=
10167   ac_prev=
10168   for ac_arg in $ac_configure_args; do
10169     if test -n "$ac_prev"; then
10170       ac_prev=
10171       continue
10172     fi
10173     case $ac_arg in
10174     -cache-file | --cache-file | --cache-fil | --cache-fi \
10175     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10176       ac_prev=cache_file ;;
10177     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10178     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10179     | --c=*)
10180       ;;
10181     --config-cache | -C)
10182       ;;
10183     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10184       ac_prev=srcdir ;;
10185     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10186       ;;
10187     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
10188     esac
10189   done
10190
10191   for ac_subdir in : $subdirs; do test "x$ac_subdir" = x: && continue
10192
10193     # Do not complain, so a configure script can configure whichever
10194     # parts of a large source tree are present.
10195     test -d $srcdir/$ac_subdir || continue
10196
10197     { echo "$as_me:10197: configuring in $ac_subdir" >&5
10198 echo "$as_me: configuring in $ac_subdir" >&6;}
10199     case $srcdir in
10200     .) ;;
10201     *) { case "./$ac_subdir" in
10202   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10203   *)                      as_incr_dir=.;;
10204 esac
10205 as_dummy="./$ac_subdir"
10206 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10207   case $as_mkdir_dir in
10208     # Skip DOS drivespec
10209     ?:) as_incr_dir=$as_mkdir_dir ;;
10210     *)
10211       as_incr_dir=$as_incr_dir/$as_mkdir_dir
10212       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
10213     ;;
10214   esac
10215 done; }
10216
10217        if test -d ./$ac_subdir; then :;
10218        else
10219          { { echo "$as_me:10219: error: cannot create \`pwd\`/$ac_subdir" >&5
10220 echo "$as_me: error: cannot create \`pwd\`/$ac_subdir" >&2;}
10221    { (exit 1); exit 1; }; }
10222        fi
10223        ;;
10224     esac
10225
10226     ac_popdir=`pwd`
10227     cd $ac_subdir
10228
10229     # A "../" for each directory in /$ac_subdir.
10230     ac_dots=`echo $ac_subdir |
10231              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
10232
10233     case $srcdir in
10234     .) # No --srcdir option.  We are building in place.
10235       ac_sub_srcdir=$srcdir ;;
10236     [\\/]* | ?:[\\/]* ) # Absolute path.
10237       ac_sub_srcdir=$srcdir/$ac_subdir ;;
10238     *) # Relative path.
10239       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
10240     esac
10241
10242     # Check for guested configure; otherwise get Cygnus style configure.
10243     if test -f $ac_sub_srcdir/configure.gnu; then
10244       ac_sub_configure="$SHELL '$ac_sub_srcdir/configure.gnu'"
10245     elif test -f $ac_sub_srcdir/configure; then
10246       ac_sub_configure="$SHELL '$ac_sub_srcdir/configure'"
10247     elif test -f $ac_sub_srcdir/configure.in; then
10248       ac_sub_configure=$ac_configure
10249     else
10250       { echo "$as_me:10250: WARNING: no configuration information is in $ac_subdir" >&5
10251 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2;}
10252       ac_sub_configure=
10253     fi
10254
10255     # The recursion is here.
10256     if test -n "$ac_sub_configure"; then
10257       # Make the cache file name correct relative to the subdirectory.
10258       case $cache_file in
10259       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10260       *) # Relative path.
10261         ac_sub_cache_file=$ac_dots$cache_file ;;
10262       esac
10263
10264       { echo "$as_me:10264: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&5
10265 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&6;}
10266       # The eval makes quoting arguments work.
10267       eval $ac_sub_configure $ac_sub_configure_args \
10268            --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir ||
10269         { { echo "$as_me:10269: error: $ac_sub_configure failed for $ac_subdir" >&5
10270 echo "$as_me: error: $ac_sub_configure failed for $ac_subdir" >&2;}
10271    { (exit 1); exit 1; }; }
10272     fi
10273
10274     cd $ac_popdir
10275   done
10276 fi
10277