packaging: changed asan macro check for "bad %if condition"
[platform/upstream/prelink.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
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 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
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
241
242
243
244 # Check that we are running under the correct shell.
245 SHELL=${CONFIG_SHELL-/bin/sh}
246
247 case X$ECHO in
248 X*--fallback-echo)
249   # Remove one level of quotation (which was required for Make).
250   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
251   ;;
252 esac
253
254 echo=${ECHO-echo}
255 if test "X$1" = X--no-reexec; then
256   # Discard the --no-reexec flag, and continue.
257   shift
258 elif test "X$1" = X--fallback-echo; then
259   # Avoid inline document here, it may be left over
260   :
261 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
262   # Yippee, $echo works!
263   :
264 else
265   # Restart under the correct shell.
266   exec $SHELL "$0" --no-reexec ${1+"$@"}
267 fi
268
269 if test "X$1" = X--fallback-echo; then
270   # used as fallback echo
271   shift
272   cat <<EOF
273 $*
274 EOF
275   exit 0
276 fi
277
278 # The HP-UX ksh and POSIX shell print the target directory to stdout
279 # if CDPATH is set.
280 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
281
282 if test -z "$ECHO"; then
283 if test "X${echo_test_string+set}" != Xset; then
284 # find a string as large as possible, as long as the shell can cope with it
285   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
286     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
287     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
288        echo_test_string="`eval $cmd`" &&
289        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
290     then
291       break
292     fi
293   done
294 fi
295
296 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
297    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
298    test "X$echo_testing_string" = "X$echo_test_string"; then
299   :
300 else
301   # The Solaris, AIX, and Digital Unix default echo programs unquote
302   # backslashes.  This makes it impossible to quote backslashes using
303   #   echo "$something" | sed 's/\\/\\\\/g'
304   #
305   # So, first we look for a working echo in the user's PATH.
306
307   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308   for dir in $PATH /usr/ucb; do
309     IFS="$lt_save_ifs"
310     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313        test "X$echo_testing_string" = "X$echo_test_string"; then
314       echo="$dir/echo"
315       break
316     fi
317   done
318   IFS="$lt_save_ifs"
319
320   if test "X$echo" = Xecho; then
321     # We didn't find a better echo, so look for alternatives.
322     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
323        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
324        test "X$echo_testing_string" = "X$echo_test_string"; then
325       # This shell has a builtin print -r that does the trick.
326       echo='print -r'
327     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
328          test "X$CONFIG_SHELL" != X/bin/ksh; then
329       # If we have ksh, try running configure again with it.
330       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331       export ORIGINAL_CONFIG_SHELL
332       CONFIG_SHELL=/bin/ksh
333       export CONFIG_SHELL
334       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335     else
336       # Try using printf.
337       echo='printf %s\n'
338       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
339          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
340          test "X$echo_testing_string" = "X$echo_test_string"; then
341         # Cool, printf works
342         :
343       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344            test "X$echo_testing_string" = 'X\t' &&
345            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346            test "X$echo_testing_string" = "X$echo_test_string"; then
347         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348         export CONFIG_SHELL
349         SHELL="$CONFIG_SHELL"
350         export SHELL
351         echo="$CONFIG_SHELL $0 --fallback-echo"
352       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353            test "X$echo_testing_string" = 'X\t' &&
354            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355            test "X$echo_testing_string" = "X$echo_test_string"; then
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       else
358         # maybe with a smaller string...
359         prev=:
360
361         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
363           then
364             break
365           fi
366           prev="$cmd"
367         done
368
369         if test "$prev" != 'sed 50q "$0"'; then
370           echo_test_string=`eval $prev`
371           export echo_test_string
372           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373         else
374           # Oops.  We lost completely, so just stick with echo.
375           echo=echo
376         fi
377       fi
378     fi
379   fi
380 fi
381 fi
382
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 ECHO=$echo
386 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
394
395 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
396
397 # Name of the host.
398 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
399 # so uname gets run too.
400 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
401
402 exec 6>&1
403
404 #
405 # Initializations.
406 #
407 ac_default_prefix=/usr/local
408 ac_config_libobj_dir=.
409 cross_compiling=no
410 subdirs=
411 MFLAGS=
412 MAKEFLAGS=
413 SHELL=${CONFIG_SHELL-/bin/sh}
414
415 # Maximum number of lines to put in a shell here document.
416 # This variable seems obsolete.  It should probably be removed, and
417 # only ac_max_sed_lines should be used.
418 : ${ac_max_here_lines=38}
419
420 # Identity of this package.
421 PACKAGE_NAME=
422 PACKAGE_TARNAME=
423 PACKAGE_VERSION=
424 PACKAGE_STRING=
425 PACKAGE_BUGREPORT=
426
427 ac_unique_file="src/prelink.c"
428 # Factoring default headers for most tests.
429 ac_includes_default="\
430 #include <stdio.h>
431 #if HAVE_SYS_TYPES_H
432 # include <sys/types.h>
433 #endif
434 #if HAVE_SYS_STAT_H
435 # include <sys/stat.h>
436 #endif
437 #if STDC_HEADERS
438 # include <stdlib.h>
439 # include <stddef.h>
440 #else
441 # if HAVE_STDLIB_H
442 #  include <stdlib.h>
443 # endif
444 #endif
445 #if HAVE_STRING_H
446 # if !STDC_HEADERS && HAVE_MEMORY_H
447 #  include <memory.h>
448 # endif
449 # include <string.h>
450 #endif
451 #if HAVE_STRINGS_H
452 # include <strings.h>
453 #endif
454 #if HAVE_INTTYPES_H
455 # include <inttypes.h>
456 #else
457 # if HAVE_STDINT_H
458 #  include <stdint.h>
459 # endif
460 #endif
461 #if HAVE_UNISTD_H
462 # include <unistd.h>
463 #endif"
464
465 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE CPP EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL GELFINCLUDE LIBGELF LIBOBJS LTLIBOBJS'
466 ac_subst_files=''
467
468 # Initialize some variables set by options.
469 ac_init_help=
470 ac_init_version=false
471 # The variables have the same names as the options, with
472 # dashes changed to underlines.
473 cache_file=/dev/null
474 exec_prefix=NONE
475 no_create=
476 no_recursion=
477 prefix=NONE
478 program_prefix=NONE
479 program_suffix=NONE
480 program_transform_name=s,x,x,
481 silent=
482 site=
483 srcdir=
484 verbose=
485 x_includes=NONE
486 x_libraries=NONE
487
488 # Installation directory options.
489 # These are left unexpanded so users can "make install exec_prefix=/foo"
490 # and all the variables that are supposed to be based on exec_prefix
491 # by default will actually change.
492 # Use braces instead of parens because sh, perl, etc. also accept them.
493 bindir='${exec_prefix}/bin'
494 sbindir='${exec_prefix}/sbin'
495 libexecdir='${exec_prefix}/libexec'
496 datadir='${prefix}/share'
497 sysconfdir='${prefix}/etc'
498 sharedstatedir='${prefix}/com'
499 localstatedir='${prefix}/var'
500 libdir='${exec_prefix}/lib'
501 includedir='${prefix}/include'
502 oldincludedir='/usr/include'
503 infodir='${prefix}/info'
504 mandir='${prefix}/man'
505
506 ac_prev=
507 for ac_option
508 do
509   # If the previous option needs an argument, assign it.
510   if test -n "$ac_prev"; then
511     eval "$ac_prev=\$ac_option"
512     ac_prev=
513     continue
514   fi
515
516   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
517
518   # Accept the important Cygnus configure options, so we can diagnose typos.
519
520   case $ac_option in
521
522   -bindir | --bindir | --bindi | --bind | --bin | --bi)
523     ac_prev=bindir ;;
524   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
525     bindir=$ac_optarg ;;
526
527   -build | --build | --buil | --bui | --bu)
528     ac_prev=build_alias ;;
529   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
530     build_alias=$ac_optarg ;;
531
532   -cache-file | --cache-file | --cache-fil | --cache-fi \
533   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
534     ac_prev=cache_file ;;
535   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
536   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
537     cache_file=$ac_optarg ;;
538
539   --config-cache | -C)
540     cache_file=config.cache ;;
541
542   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
543     ac_prev=datadir ;;
544   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
545   | --da=*)
546     datadir=$ac_optarg ;;
547
548   -disable-* | --disable-*)
549     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
550     # Reject names that are not valid shell variable names.
551     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553    { (exit 1); exit 1; }; }
554     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555     eval "enable_$ac_feature=no" ;;
556
557   -enable-* | --enable-*)
558     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
559     # Reject names that are not valid shell variable names.
560     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
562    { (exit 1); exit 1; }; }
563     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
564     case $ac_option in
565       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
566       *) ac_optarg=yes ;;
567     esac
568     eval "enable_$ac_feature='$ac_optarg'" ;;
569
570   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572   | --exec | --exe | --ex)
573     ac_prev=exec_prefix ;;
574   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576   | --exec=* | --exe=* | --ex=*)
577     exec_prefix=$ac_optarg ;;
578
579   -gas | --gas | --ga | --g)
580     # Obsolete; use --with-gas.
581     with_gas=yes ;;
582
583   -help | --help | --hel | --he | -h)
584     ac_init_help=long ;;
585   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
586     ac_init_help=recursive ;;
587   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
588     ac_init_help=short ;;
589
590   -host | --host | --hos | --ho)
591     ac_prev=host_alias ;;
592   -host=* | --host=* | --hos=* | --ho=*)
593     host_alias=$ac_optarg ;;
594
595   -includedir | --includedir | --includedi | --included | --include \
596   | --includ | --inclu | --incl | --inc)
597     ac_prev=includedir ;;
598   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
599   | --includ=* | --inclu=* | --incl=* | --inc=*)
600     includedir=$ac_optarg ;;
601
602   -infodir | --infodir | --infodi | --infod | --info | --inf)
603     ac_prev=infodir ;;
604   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
605     infodir=$ac_optarg ;;
606
607   -libdir | --libdir | --libdi | --libd)
608     ac_prev=libdir ;;
609   -libdir=* | --libdir=* | --libdi=* | --libd=*)
610     libdir=$ac_optarg ;;
611
612   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
613   | --libexe | --libex | --libe)
614     ac_prev=libexecdir ;;
615   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
616   | --libexe=* | --libex=* | --libe=*)
617     libexecdir=$ac_optarg ;;
618
619   -localstatedir | --localstatedir | --localstatedi | --localstated \
620   | --localstate | --localstat | --localsta | --localst \
621   | --locals | --local | --loca | --loc | --lo)
622     ac_prev=localstatedir ;;
623   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
624   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
625   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
626     localstatedir=$ac_optarg ;;
627
628   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
629     ac_prev=mandir ;;
630   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
631     mandir=$ac_optarg ;;
632
633   -nfp | --nfp | --nf)
634     # Obsolete; use --without-fp.
635     with_fp=no ;;
636
637   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
638   | --no-cr | --no-c | -n)
639     no_create=yes ;;
640
641   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
642   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
643     no_recursion=yes ;;
644
645   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
646   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
647   | --oldin | --oldi | --old | --ol | --o)
648     ac_prev=oldincludedir ;;
649   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
650   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
651   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
652     oldincludedir=$ac_optarg ;;
653
654   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
655     ac_prev=prefix ;;
656   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
657     prefix=$ac_optarg ;;
658
659   -program-prefix | --program-prefix | --program-prefi | --program-pref \
660   | --program-pre | --program-pr | --program-p)
661     ac_prev=program_prefix ;;
662   -program-prefix=* | --program-prefix=* | --program-prefi=* \
663   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
664     program_prefix=$ac_optarg ;;
665
666   -program-suffix | --program-suffix | --program-suffi | --program-suff \
667   | --program-suf | --program-su | --program-s)
668     ac_prev=program_suffix ;;
669   -program-suffix=* | --program-suffix=* | --program-suffi=* \
670   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
671     program_suffix=$ac_optarg ;;
672
673   -program-transform-name | --program-transform-name \
674   | --program-transform-nam | --program-transform-na \
675   | --program-transform-n | --program-transform- \
676   | --program-transform | --program-transfor \
677   | --program-transfo | --program-transf \
678   | --program-trans | --program-tran \
679   | --progr-tra | --program-tr | --program-t)
680     ac_prev=program_transform_name ;;
681   -program-transform-name=* | --program-transform-name=* \
682   | --program-transform-nam=* | --program-transform-na=* \
683   | --program-transform-n=* | --program-transform-=* \
684   | --program-transform=* | --program-transfor=* \
685   | --program-transfo=* | --program-transf=* \
686   | --program-trans=* | --program-tran=* \
687   | --progr-tra=* | --program-tr=* | --program-t=*)
688     program_transform_name=$ac_optarg ;;
689
690   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
691   | -silent | --silent | --silen | --sile | --sil)
692     silent=yes ;;
693
694   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
695     ac_prev=sbindir ;;
696   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
697   | --sbi=* | --sb=*)
698     sbindir=$ac_optarg ;;
699
700   -sharedstatedir | --sharedstatedir | --sharedstatedi \
701   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
702   | --sharedst | --shareds | --shared | --share | --shar \
703   | --sha | --sh)
704     ac_prev=sharedstatedir ;;
705   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
706   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
707   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
708   | --sha=* | --sh=*)
709     sharedstatedir=$ac_optarg ;;
710
711   -site | --site | --sit)
712     ac_prev=site ;;
713   -site=* | --site=* | --sit=*)
714     site=$ac_optarg ;;
715
716   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
717     ac_prev=srcdir ;;
718   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
719     srcdir=$ac_optarg ;;
720
721   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
722   | --syscon | --sysco | --sysc | --sys | --sy)
723     ac_prev=sysconfdir ;;
724   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
725   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
726     sysconfdir=$ac_optarg ;;
727
728   -target | --target | --targe | --targ | --tar | --ta | --t)
729     ac_prev=target_alias ;;
730   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
731     target_alias=$ac_optarg ;;
732
733   -v | -verbose | --verbose | --verbos | --verbo | --verb)
734     verbose=yes ;;
735
736   -version | --version | --versio | --versi | --vers | -V)
737     ac_init_version=: ;;
738
739   -with-* | --with-*)
740     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
741     # Reject names that are not valid shell variable names.
742     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
743       { echo "$as_me: error: invalid package name: $ac_package" >&2
744    { (exit 1); exit 1; }; }
745     ac_package=`echo $ac_package| sed 's/-/_/g'`
746     case $ac_option in
747       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
748       *) ac_optarg=yes ;;
749     esac
750     eval "with_$ac_package='$ac_optarg'" ;;
751
752   -without-* | --without-*)
753     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
754     # Reject names that are not valid shell variable names.
755     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756       { echo "$as_me: error: invalid package name: $ac_package" >&2
757    { (exit 1); exit 1; }; }
758     ac_package=`echo $ac_package | sed 's/-/_/g'`
759     eval "with_$ac_package=no" ;;
760
761   --x)
762     # Obsolete; use --with-x.
763     with_x=yes ;;
764
765   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
766   | --x-incl | --x-inc | --x-in | --x-i)
767     ac_prev=x_includes ;;
768   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
769   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
770     x_includes=$ac_optarg ;;
771
772   -x-libraries | --x-libraries | --x-librarie | --x-librari \
773   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
774     ac_prev=x_libraries ;;
775   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
776   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
777     x_libraries=$ac_optarg ;;
778
779   -*) { echo "$as_me: error: unrecognized option: $ac_option
780 Try \`$0 --help' for more information." >&2
781    { (exit 1); exit 1; }; }
782     ;;
783
784   *=*)
785     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
786     # Reject names that are not valid shell variable names.
787     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
788       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
789    { (exit 1); exit 1; }; }
790     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
791     eval "$ac_envvar='$ac_optarg'"
792     export $ac_envvar ;;
793
794   *)
795     # FIXME: should be removed in autoconf 3.0.
796     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
797     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
798       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
799     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
800     ;;
801
802   esac
803 done
804
805 if test -n "$ac_prev"; then
806   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
807   { echo "$as_me: error: missing argument to $ac_option" >&2
808    { (exit 1); exit 1; }; }
809 fi
810
811 # Be sure to have absolute paths.
812 for ac_var in exec_prefix prefix
813 do
814   eval ac_val=$`echo $ac_var`
815   case $ac_val in
816     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
817     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
818    { (exit 1); exit 1; }; };;
819   esac
820 done
821
822 # Be sure to have absolute paths.
823 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824               localstatedir libdir includedir oldincludedir infodir mandir
825 do
826   eval ac_val=$`echo $ac_var`
827   case $ac_val in
828     [\\/$]* | ?:[\\/]* ) ;;
829     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830    { (exit 1); exit 1; }; };;
831   esac
832 done
833
834 # There might be people who depend on the old broken behavior: `$host'
835 # used to hold the argument of --host etc.
836 # FIXME: To remove some day.
837 build=$build_alias
838 host=$host_alias
839 target=$target_alias
840
841 # FIXME: To remove some day.
842 if test "x$host_alias" != x; then
843   if test "x$build_alias" = x; then
844     cross_compiling=maybe
845     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
846     If a cross compiler is detected then cross compile mode will be used." >&2
847   elif test "x$build_alias" != "x$host_alias"; then
848     cross_compiling=yes
849   fi
850 fi
851
852 ac_tool_prefix=
853 test -n "$host_alias" && ac_tool_prefix=$host_alias-
854
855 test "$silent" = yes && exec 6>/dev/null
856
857
858 # Find the source files, if location was not specified.
859 if test -z "$srcdir"; then
860   ac_srcdir_defaulted=yes
861   # Try the directory containing this script, then its parent.
862   ac_confdir=`(dirname "$0") 2>/dev/null ||
863 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
864          X"$0" : 'X\(//\)[^/]' \| \
865          X"$0" : 'X\(//\)$' \| \
866          X"$0" : 'X\(/\)' \| \
867          .     : '\(.\)' 2>/dev/null ||
868 echo X"$0" |
869     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
870           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
871           /^X\(\/\/\)$/{ s//\1/; q; }
872           /^X\(\/\).*/{ s//\1/; q; }
873           s/.*/./; q'`
874   srcdir=$ac_confdir
875   if test ! -r $srcdir/$ac_unique_file; then
876     srcdir=..
877   fi
878 else
879   ac_srcdir_defaulted=no
880 fi
881 if test ! -r $srcdir/$ac_unique_file; then
882   if test "$ac_srcdir_defaulted" = yes; then
883     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
884    { (exit 1); exit 1; }; }
885   else
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
887    { (exit 1); exit 1; }; }
888   fi
889 fi
890 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
891   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
892    { (exit 1); exit 1; }; }
893 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
894 ac_env_build_alias_set=${build_alias+set}
895 ac_env_build_alias_value=$build_alias
896 ac_cv_env_build_alias_set=${build_alias+set}
897 ac_cv_env_build_alias_value=$build_alias
898 ac_env_host_alias_set=${host_alias+set}
899 ac_env_host_alias_value=$host_alias
900 ac_cv_env_host_alias_set=${host_alias+set}
901 ac_cv_env_host_alias_value=$host_alias
902 ac_env_target_alias_set=${target_alias+set}
903 ac_env_target_alias_value=$target_alias
904 ac_cv_env_target_alias_set=${target_alias+set}
905 ac_cv_env_target_alias_value=$target_alias
906 ac_env_CC_set=${CC+set}
907 ac_env_CC_value=$CC
908 ac_cv_env_CC_set=${CC+set}
909 ac_cv_env_CC_value=$CC
910 ac_env_CFLAGS_set=${CFLAGS+set}
911 ac_env_CFLAGS_value=$CFLAGS
912 ac_cv_env_CFLAGS_set=${CFLAGS+set}
913 ac_cv_env_CFLAGS_value=$CFLAGS
914 ac_env_LDFLAGS_set=${LDFLAGS+set}
915 ac_env_LDFLAGS_value=$LDFLAGS
916 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_cv_env_LDFLAGS_value=$LDFLAGS
918 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
919 ac_env_CPPFLAGS_value=$CPPFLAGS
920 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
922 ac_env_CXX_set=${CXX+set}
923 ac_env_CXX_value=$CXX
924 ac_cv_env_CXX_set=${CXX+set}
925 ac_cv_env_CXX_value=$CXX
926 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
927 ac_env_CXXFLAGS_value=$CXXFLAGS
928 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
929 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
930 ac_env_CPP_set=${CPP+set}
931 ac_env_CPP_value=$CPP
932 ac_cv_env_CPP_set=${CPP+set}
933 ac_cv_env_CPP_value=$CPP
934 ac_env_CXXCPP_set=${CXXCPP+set}
935 ac_env_CXXCPP_value=$CXXCPP
936 ac_cv_env_CXXCPP_set=${CXXCPP+set}
937 ac_cv_env_CXXCPP_value=$CXXCPP
938 ac_env_F77_set=${F77+set}
939 ac_env_F77_value=$F77
940 ac_cv_env_F77_set=${F77+set}
941 ac_cv_env_F77_value=$F77
942 ac_env_FFLAGS_set=${FFLAGS+set}
943 ac_env_FFLAGS_value=$FFLAGS
944 ac_cv_env_FFLAGS_set=${FFLAGS+set}
945 ac_cv_env_FFLAGS_value=$FFLAGS
946
947 #
948 # Report the --help message.
949 #
950 if test "$ac_init_help" = "long"; then
951   # Omit some internal or obsolete options to make the list less imposing.
952   # This message is too long to be a string in the A/UX 3.1 sh.
953   cat <<_ACEOF
954 \`configure' configures this package to adapt to many kinds of systems.
955
956 Usage: $0 [OPTION]... [VAR=VALUE]...
957
958 To assign environment variables (e.g., CC, CFLAGS...), specify them as
959 VAR=VALUE.  See below for descriptions of some of the useful variables.
960
961 Defaults for the options are specified in brackets.
962
963 Configuration:
964   -h, --help              display this help and exit
965       --help=short        display options specific to this package
966       --help=recursive    display the short help of all the included packages
967   -V, --version           display version information and exit
968   -q, --quiet, --silent   do not print \`checking...' messages
969       --cache-file=FILE   cache test results in FILE [disabled]
970   -C, --config-cache      alias for \`--cache-file=config.cache'
971   -n, --no-create         do not create output files
972       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
973
974 _ACEOF
975
976   cat <<_ACEOF
977 Installation directories:
978   --prefix=PREFIX         install architecture-independent files in PREFIX
979                           [$ac_default_prefix]
980   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
981                           [PREFIX]
982
983 By default, \`make install' will install all the files in
984 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
985 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
986 for instance \`--prefix=\$HOME'.
987
988 For better control, use the options below.
989
990 Fine tuning of the installation directories:
991   --bindir=DIR           user executables [EPREFIX/bin]
992   --sbindir=DIR          system admin executables [EPREFIX/sbin]
993   --libexecdir=DIR       program executables [EPREFIX/libexec]
994   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
995   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
996   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
997   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
998   --libdir=DIR           object code libraries [EPREFIX/lib]
999   --includedir=DIR       C header files [PREFIX/include]
1000   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1001   --infodir=DIR          info documentation [PREFIX/info]
1002   --mandir=DIR           man documentation [PREFIX/man]
1003 _ACEOF
1004
1005   cat <<\_ACEOF
1006
1007 Program names:
1008   --program-prefix=PREFIX            prepend PREFIX to installed program names
1009   --program-suffix=SUFFIX            append SUFFIX to installed program names
1010   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1011
1012 System types:
1013   --build=BUILD     configure for building on BUILD [guessed]
1014   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1015 _ACEOF
1016 fi
1017
1018 if test -n "$ac_init_help"; then
1019
1020   cat <<\_ACEOF
1021
1022 Optional Features:
1023   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1024   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1025   --disable-dependency-tracking Speeds up one-time builds
1026   --enable-dependency-tracking  Do not reject slow dependency extractors
1027   --enable-shared[=PKGS]
1028                           build shared libraries [default=yes]
1029   --enable-static[=PKGS]
1030                           build static libraries [default=yes]
1031   --enable-fast-install[=PKGS]
1032                           optimize for fast installation [default=yes]
1033   --disable-libtool-lock  avoid locking (might break parallel builds)
1034   --disable-64-bit        only support 32-bit ELF
1035   --disable-largefile     omit support for large files
1036
1037 Optional Packages:
1038   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1039   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1040   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1041   --with-pic              try to use only PIC/non-PIC objects [default=use
1042                           both]
1043   --with-tags[=TAGS]
1044                           include additional configurations [automatic]
1045
1046 Some influential environment variables:
1047   CC          C compiler command
1048   CFLAGS      C compiler flags
1049   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1050               nonstandard directory <lib dir>
1051   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1052               headers in a nonstandard directory <include dir>
1053   CXX         C++ compiler command
1054   CXXFLAGS    C++ compiler flags
1055   CPP         C preprocessor
1056   CXXCPP      C++ preprocessor
1057   F77         Fortran 77 compiler command
1058   FFLAGS      Fortran 77 compiler flags
1059
1060 Use these variables to override the choices made by `configure' or to help
1061 it to find libraries and programs with nonstandard names/locations.
1062
1063 _ACEOF
1064 fi
1065
1066 if test "$ac_init_help" = "recursive"; then
1067   # If there are subdirs, report their specific --help.
1068   ac_popdir=`pwd`
1069   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1070     test -d $ac_dir || continue
1071     ac_builddir=.
1072
1073 if test "$ac_dir" != .; then
1074   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1075   # A "../" for each directory in $ac_dir_suffix.
1076   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1077 else
1078   ac_dir_suffix= ac_top_builddir=
1079 fi
1080
1081 case $srcdir in
1082   .)  # No --srcdir option.  We are building in place.
1083     ac_srcdir=.
1084     if test -z "$ac_top_builddir"; then
1085        ac_top_srcdir=.
1086     else
1087        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1088     fi ;;
1089   [\\/]* | ?:[\\/]* )  # Absolute path.
1090     ac_srcdir=$srcdir$ac_dir_suffix;
1091     ac_top_srcdir=$srcdir ;;
1092   *) # Relative path.
1093     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1094     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1095 esac
1096 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1097 # absolute.
1098 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1099 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1100 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1101 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1102
1103     cd $ac_dir
1104     # Check for guested configure; otherwise get Cygnus style configure.
1105     if test -f $ac_srcdir/configure.gnu; then
1106       echo
1107       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1108     elif test -f $ac_srcdir/configure; then
1109       echo
1110       $SHELL $ac_srcdir/configure  --help=recursive
1111     elif test -f $ac_srcdir/configure.ac ||
1112            test -f $ac_srcdir/configure.in; then
1113       echo
1114       $ac_configure --help
1115     else
1116       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1117     fi
1118     cd $ac_popdir
1119   done
1120 fi
1121
1122 test -n "$ac_init_help" && exit 0
1123 if $ac_init_version; then
1124   cat <<\_ACEOF
1125
1126 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1127 Free Software Foundation, Inc.
1128 This configure script is free software; the Free Software Foundation
1129 gives unlimited permission to copy, distribute and modify it.
1130 _ACEOF
1131   exit 0
1132 fi
1133 exec 5>config.log
1134 cat >&5 <<_ACEOF
1135 This file contains any messages produced by compilers while
1136 running configure, to aid debugging if configure makes a mistake.
1137
1138 It was created by $as_me, which was
1139 generated by GNU Autoconf 2.57.  Invocation command line was
1140
1141   $ $0 $@
1142
1143 _ACEOF
1144 {
1145 cat <<_ASUNAME
1146 ## --------- ##
1147 ## Platform. ##
1148 ## --------- ##
1149
1150 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1151 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1152 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1153 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1154 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1155
1156 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1157 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1158
1159 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1160 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1161 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1162 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1163 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1164 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1165 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1166
1167 _ASUNAME
1168
1169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1170 for as_dir in $PATH
1171 do
1172   IFS=$as_save_IFS
1173   test -z "$as_dir" && as_dir=.
1174   echo "PATH: $as_dir"
1175 done
1176
1177 } >&5
1178
1179 cat >&5 <<_ACEOF
1180
1181
1182 ## ----------- ##
1183 ## Core tests. ##
1184 ## ----------- ##
1185
1186 _ACEOF
1187
1188
1189 # Keep a trace of the command line.
1190 # Strip out --no-create and --no-recursion so they do not pile up.
1191 # Strip out --silent because we don't want to record it for future runs.
1192 # Also quote any args containing shell meta-characters.
1193 # Make two passes to allow for proper duplicate-argument suppression.
1194 ac_configure_args=
1195 ac_configure_args0=
1196 ac_configure_args1=
1197 ac_sep=
1198 ac_must_keep_next=false
1199 for ac_pass in 1 2
1200 do
1201   for ac_arg
1202   do
1203     case $ac_arg in
1204     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1205     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1206     | -silent | --silent | --silen | --sile | --sil)
1207       continue ;;
1208     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1209       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1210     esac
1211     case $ac_pass in
1212     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1213     2)
1214       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1215       if test $ac_must_keep_next = true; then
1216         ac_must_keep_next=false # Got value, back to normal.
1217       else
1218         case $ac_arg in
1219           *=* | --config-cache | -C | -disable-* | --disable-* \
1220           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1221           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1222           | -with-* | --with-* | -without-* | --without-* | --x)
1223             case "$ac_configure_args0 " in
1224               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1225             esac
1226             ;;
1227           -* ) ac_must_keep_next=true ;;
1228         esac
1229       fi
1230       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1231       # Get rid of the leading space.
1232       ac_sep=" "
1233       ;;
1234     esac
1235   done
1236 done
1237 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1238 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1239
1240 # When interrupted or exit'd, cleanup temporary files, and complete
1241 # config.log.  We remove comments because anyway the quotes in there
1242 # would cause problems or look ugly.
1243 # WARNING: Be sure not to use single quotes in there, as some shells,
1244 # such as our DU 5.0 friend, will then `close' the trap.
1245 trap 'exit_status=$?
1246   # Save into config.log some information that might help in debugging.
1247   {
1248     echo
1249
1250     cat <<\_ASBOX
1251 ## ---------------- ##
1252 ## Cache variables. ##
1253 ## ---------------- ##
1254 _ASBOX
1255     echo
1256     # The following way of writing the cache mishandles newlines in values,
1257 {
1258   (set) 2>&1 |
1259     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1260     *ac_space=\ *)
1261       sed -n \
1262         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1263           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1264       ;;
1265     *)
1266       sed -n \
1267         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1268       ;;
1269     esac;
1270 }
1271     echo
1272
1273     cat <<\_ASBOX
1274 ## ----------------- ##
1275 ## Output variables. ##
1276 ## ----------------- ##
1277 _ASBOX
1278     echo
1279     for ac_var in $ac_subst_vars
1280     do
1281       eval ac_val=$`echo $ac_var`
1282       echo "$ac_var='"'"'$ac_val'"'"'"
1283     done | sort
1284     echo
1285
1286     if test -n "$ac_subst_files"; then
1287       cat <<\_ASBOX
1288 ## ------------- ##
1289 ## Output files. ##
1290 ## ------------- ##
1291 _ASBOX
1292       echo
1293       for ac_var in $ac_subst_files
1294       do
1295         eval ac_val=$`echo $ac_var`
1296         echo "$ac_var='"'"'$ac_val'"'"'"
1297       done | sort
1298       echo
1299     fi
1300
1301     if test -s confdefs.h; then
1302       cat <<\_ASBOX
1303 ## ----------- ##
1304 ## confdefs.h. ##
1305 ## ----------- ##
1306 _ASBOX
1307       echo
1308       sed "/^$/d" confdefs.h | sort
1309       echo
1310     fi
1311     test "$ac_signal" != 0 &&
1312       echo "$as_me: caught signal $ac_signal"
1313     echo "$as_me: exit $exit_status"
1314   } >&5
1315   rm -f core core.* *.core &&
1316   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1317     exit $exit_status
1318      ' 0
1319 for ac_signal in 1 2 13 15; do
1320   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1321 done
1322 ac_signal=0
1323
1324 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1325 rm -rf conftest* confdefs.h
1326 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1327 echo >confdefs.h
1328
1329 # Predefined preprocessor variables.
1330
1331 cat >>confdefs.h <<_ACEOF
1332 #define PACKAGE_NAME "$PACKAGE_NAME"
1333 _ACEOF
1334
1335
1336 cat >>confdefs.h <<_ACEOF
1337 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1338 _ACEOF
1339
1340
1341 cat >>confdefs.h <<_ACEOF
1342 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1343 _ACEOF
1344
1345
1346 cat >>confdefs.h <<_ACEOF
1347 #define PACKAGE_STRING "$PACKAGE_STRING"
1348 _ACEOF
1349
1350
1351 cat >>confdefs.h <<_ACEOF
1352 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1353 _ACEOF
1354
1355
1356 # Let the site file select an alternate cache file if it wants to.
1357 # Prefer explicitly selected file to automatically selected ones.
1358 if test -z "$CONFIG_SITE"; then
1359   if test "x$prefix" != xNONE; then
1360     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1361   else
1362     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1363   fi
1364 fi
1365 for ac_site_file in $CONFIG_SITE; do
1366   if test -r "$ac_site_file"; then
1367     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1368 echo "$as_me: loading site script $ac_site_file" >&6;}
1369     sed 's/^/| /' "$ac_site_file" >&5
1370     . "$ac_site_file"
1371   fi
1372 done
1373
1374 if test -r "$cache_file"; then
1375   # Some versions of bash will fail to source /dev/null (special
1376   # files actually), so we avoid doing that.
1377   if test -f "$cache_file"; then
1378     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1379 echo "$as_me: loading cache $cache_file" >&6;}
1380     case $cache_file in
1381       [\\/]* | ?:[\\/]* ) . $cache_file;;
1382       *)                      . ./$cache_file;;
1383     esac
1384   fi
1385 else
1386   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1387 echo "$as_me: creating cache $cache_file" >&6;}
1388   >$cache_file
1389 fi
1390
1391 # Check that the precious variables saved in the cache have kept the same
1392 # value.
1393 ac_cache_corrupted=false
1394 for ac_var in `(set) 2>&1 |
1395                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1396   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1397   eval ac_new_set=\$ac_env_${ac_var}_set
1398   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1399   eval ac_new_val="\$ac_env_${ac_var}_value"
1400   case $ac_old_set,$ac_new_set in
1401     set,)
1402       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1403 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1404       ac_cache_corrupted=: ;;
1405     ,set)
1406       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1407 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1408       ac_cache_corrupted=: ;;
1409     ,);;
1410     *)
1411       if test "x$ac_old_val" != "x$ac_new_val"; then
1412         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1413 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1414         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1415 echo "$as_me:   former value:  $ac_old_val" >&2;}
1416         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1417 echo "$as_me:   current value: $ac_new_val" >&2;}
1418         ac_cache_corrupted=:
1419       fi;;
1420   esac
1421   # Pass precious variables to config.status.
1422   if test "$ac_new_set" = set; then
1423     case $ac_new_val in
1424     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1425       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1426     *) ac_arg=$ac_var=$ac_new_val ;;
1427     esac
1428     case " $ac_configure_args " in
1429       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1430       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1431     esac
1432   fi
1433 done
1434 if $ac_cache_corrupted; then
1435   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1436 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1437   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1438 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1439    { (exit 1); exit 1; }; }
1440 fi
1441
1442 ac_ext=c
1443 ac_cpp='$CPP $CPPFLAGS'
1444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466 # Add the stamp file to the list of files AC keeps track of,
1467 # along with our hook.
1468           ac_config_headers="$ac_config_headers config.h"
1469
1470
1471
1472                         ac_aux_dir=
1473 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1474   if test -f $ac_dir/install-sh; then
1475     ac_aux_dir=$ac_dir
1476     ac_install_sh="$ac_aux_dir/install-sh -c"
1477     break
1478   elif test -f $ac_dir/install.sh; then
1479     ac_aux_dir=$ac_dir
1480     ac_install_sh="$ac_aux_dir/install.sh -c"
1481     break
1482   elif test -f $ac_dir/shtool; then
1483     ac_aux_dir=$ac_dir
1484     ac_install_sh="$ac_aux_dir/shtool install -c"
1485     break
1486   fi
1487 done
1488 if test -z "$ac_aux_dir"; then
1489   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1491    { (exit 1); exit 1; }; }
1492 fi
1493 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1494 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1495 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1496
1497 # Make sure we can run config.sub.
1498 $ac_config_sub sun4 >/dev/null 2>&1 ||
1499   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1500 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1501    { (exit 1); exit 1; }; }
1502
1503 echo "$as_me:$LINENO: checking build system type" >&5
1504 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1505 if test "${ac_cv_build+set}" = set; then
1506   echo $ECHO_N "(cached) $ECHO_C" >&6
1507 else
1508   ac_cv_build_alias=$build_alias
1509 test -z "$ac_cv_build_alias" &&
1510   ac_cv_build_alias=`$ac_config_guess`
1511 test -z "$ac_cv_build_alias" &&
1512   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1513 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1514    { (exit 1); exit 1; }; }
1515 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1516   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1517 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1518    { (exit 1); exit 1; }; }
1519
1520 fi
1521 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1522 echo "${ECHO_T}$ac_cv_build" >&6
1523 build=$ac_cv_build
1524 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1527
1528
1529 echo "$as_me:$LINENO: checking host system type" >&5
1530 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1531 if test "${ac_cv_host+set}" = set; then
1532   echo $ECHO_N "(cached) $ECHO_C" >&6
1533 else
1534   ac_cv_host_alias=$host_alias
1535 test -z "$ac_cv_host_alias" &&
1536   ac_cv_host_alias=$ac_cv_build_alias
1537 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1538   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1539 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1540    { (exit 1); exit 1; }; }
1541
1542 fi
1543 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1544 echo "${ECHO_T}$ac_cv_host" >&6
1545 host=$ac_cv_host
1546 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1547 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1548 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1549
1550
1551
1552 am__api_version="1.6"
1553 # Find a good install program.  We prefer a C program (faster),
1554 # so one script is as good as another.  But avoid the broken or
1555 # incompatible versions:
1556 # SysV /etc/install, /usr/sbin/install
1557 # SunOS /usr/etc/install
1558 # IRIX /sbin/install
1559 # AIX /bin/install
1560 # AmigaOS /C/install, which installs bootblocks on floppy discs
1561 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1562 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1563 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1564 # ./install, which can be erroneously created by make from ./install.sh.
1565 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1566 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1567 if test -z "$INSTALL"; then
1568 if test "${ac_cv_path_install+set}" = set; then
1569   echo $ECHO_N "(cached) $ECHO_C" >&6
1570 else
1571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1572 for as_dir in $PATH
1573 do
1574   IFS=$as_save_IFS
1575   test -z "$as_dir" && as_dir=.
1576   # Account for people who put trailing slashes in PATH elements.
1577 case $as_dir/ in
1578   ./ | .// | /cC/* | \
1579   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1580   /usr/ucb/* ) ;;
1581   *)
1582     # OSF1 and SCO ODT 3.0 have their own names for install.
1583     # Don't use installbsd from OSF since it installs stuff as root
1584     # by default.
1585     for ac_prog in ginstall scoinst install; do
1586       for ac_exec_ext in '' $ac_executable_extensions; do
1587         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1588           if test $ac_prog = install &&
1589             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1590             # AIX install.  It has an incompatible calling convention.
1591             :
1592           elif test $ac_prog = install &&
1593             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1594             # program-specific install script used by HP pwplus--don't use.
1595             :
1596           else
1597             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1598             break 3
1599           fi
1600         fi
1601       done
1602     done
1603     ;;
1604 esac
1605 done
1606
1607
1608 fi
1609   if test "${ac_cv_path_install+set}" = set; then
1610     INSTALL=$ac_cv_path_install
1611   else
1612     # As a last resort, use the slow shell script.  We don't cache a
1613     # path for INSTALL within a source directory, because that will
1614     # break other packages using the cache if that directory is
1615     # removed, or if the path is relative.
1616     INSTALL=$ac_install_sh
1617   fi
1618 fi
1619 echo "$as_me:$LINENO: result: $INSTALL" >&5
1620 echo "${ECHO_T}$INSTALL" >&6
1621
1622 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1623 # It thinks the first close brace ends the variable substitution.
1624 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1625
1626 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1627
1628 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1629
1630 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1631 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1632 # Just in case
1633 sleep 1
1634 echo timestamp > conftest.file
1635 # Do `set' in a subshell so we don't clobber the current shell's
1636 # arguments.  Must try -L first in case configure is actually a
1637 # symlink; some systems play weird games with the mod time of symlinks
1638 # (eg FreeBSD returns the mod time of the symlink's containing
1639 # directory).
1640 if (
1641    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1642    if test "$*" = "X"; then
1643       # -L didn't work.
1644       set X `ls -t $srcdir/configure conftest.file`
1645    fi
1646    rm -f conftest.file
1647    if test "$*" != "X $srcdir/configure conftest.file" \
1648       && test "$*" != "X conftest.file $srcdir/configure"; then
1649
1650       # If neither matched, then we have a broken ls.  This can happen
1651       # if, for instance, CONFIG_SHELL is bash and it inherits a
1652       # broken ls alias from the environment.  This has actually
1653       # happened.  Such a system could not be considered "sane".
1654       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1655 alias in your environment" >&5
1656 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1657 alias in your environment" >&2;}
1658    { (exit 1); exit 1; }; }
1659    fi
1660
1661    test "$2" = conftest.file
1662    )
1663 then
1664    # Ok.
1665    :
1666 else
1667    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1668 Check your system clock" >&5
1669 echo "$as_me: error: newly created file is older than distributed files!
1670 Check your system clock" >&2;}
1671    { (exit 1); exit 1; }; }
1672 fi
1673 echo "$as_me:$LINENO: result: yes" >&5
1674 echo "${ECHO_T}yes" >&6
1675 test "$program_prefix" != NONE &&
1676   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1677 # Use a double $ so make ignores it.
1678 test "$program_suffix" != NONE &&
1679   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1680 # Double any \ or $.  echo might interpret backslashes.
1681 # By default was `s,x,x', remove it if useless.
1682 cat <<\_ACEOF >conftest.sed
1683 s/[\\$]/&&/g;s/;s,x,x,$//
1684 _ACEOF
1685 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1686 rm conftest.sed
1687
1688
1689 # expand $ac_aux_dir to an absolute path
1690 am_aux_dir=`cd $ac_aux_dir && pwd`
1691
1692 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1693 # Use eval to expand $SHELL
1694 if eval "$MISSING --run true"; then
1695   am_missing_run="$MISSING --run "
1696 else
1697   am_missing_run=
1698   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1699 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1700 fi
1701
1702 for ac_prog in gawk mawk nawk awk
1703 do
1704   # Extract the first word of "$ac_prog", so it can be a program name with args.
1705 set dummy $ac_prog; ac_word=$2
1706 echo "$as_me:$LINENO: checking for $ac_word" >&5
1707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708 if test "${ac_cv_prog_AWK+set}" = set; then
1709   echo $ECHO_N "(cached) $ECHO_C" >&6
1710 else
1711   if test -n "$AWK"; then
1712   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1713 else
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 for as_dir in $PATH
1716 do
1717   IFS=$as_save_IFS
1718   test -z "$as_dir" && as_dir=.
1719   for ac_exec_ext in '' $ac_executable_extensions; do
1720   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721     ac_cv_prog_AWK="$ac_prog"
1722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723     break 2
1724   fi
1725 done
1726 done
1727
1728 fi
1729 fi
1730 AWK=$ac_cv_prog_AWK
1731 if test -n "$AWK"; then
1732   echo "$as_me:$LINENO: result: $AWK" >&5
1733 echo "${ECHO_T}$AWK" >&6
1734 else
1735   echo "$as_me:$LINENO: result: no" >&5
1736 echo "${ECHO_T}no" >&6
1737 fi
1738
1739   test -n "$AWK" && break
1740 done
1741
1742 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1743 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1744 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1745 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1746   echo $ECHO_N "(cached) $ECHO_C" >&6
1747 else
1748   cat >conftest.make <<\_ACEOF
1749 all:
1750         @echo 'ac_maketemp="$(MAKE)"'
1751 _ACEOF
1752 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1753 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1754 if test -n "$ac_maketemp"; then
1755   eval ac_cv_prog_make_${ac_make}_set=yes
1756 else
1757   eval ac_cv_prog_make_${ac_make}_set=no
1758 fi
1759 rm -f conftest.make
1760 fi
1761 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1762   echo "$as_me:$LINENO: result: yes" >&5
1763 echo "${ECHO_T}yes" >&6
1764   SET_MAKE=
1765 else
1766   echo "$as_me:$LINENO: result: no" >&5
1767 echo "${ECHO_T}no" >&6
1768   SET_MAKE="MAKE=${MAKE-make}"
1769 fi
1770
1771  # test to see if srcdir already configured
1772 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1773    test -f $srcdir/config.status; then
1774   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1775 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1776    { (exit 1); exit 1; }; }
1777 fi
1778
1779 # Define the identity of the package.
1780  PACKAGE=prelink
1781  VERSION=0.0
1782
1783
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE "$PACKAGE"
1786 _ACEOF
1787
1788
1789 cat >>confdefs.h <<_ACEOF
1790 #define VERSION "$VERSION"
1791 _ACEOF
1792
1793 # Some tools Automake needs.
1794
1795 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1796
1797
1798 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1799
1800
1801 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1802
1803
1804 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1805
1806
1807 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1808
1809
1810 AMTAR=${AMTAR-"${am_missing_run}tar"}
1811
1812 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1813
1814 # Installed binaries are usually stripped using `strip' when the user
1815 # run `make install-strip'.  However `strip' might not be the right
1816 # tool to use in cross-compilation environments, therefore Automake
1817 # will honor the `STRIP' environment variable to overrule this program.
1818 if test "$cross_compiling" != no; then
1819   if test -n "$ac_tool_prefix"; then
1820   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1821 set dummy ${ac_tool_prefix}strip; ac_word=$2
1822 echo "$as_me:$LINENO: checking for $ac_word" >&5
1823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824 if test "${ac_cv_prog_STRIP+set}" = set; then
1825   echo $ECHO_N "(cached) $ECHO_C" >&6
1826 else
1827   if test -n "$STRIP"; then
1828   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1829 else
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831 for as_dir in $PATH
1832 do
1833   IFS=$as_save_IFS
1834   test -z "$as_dir" && as_dir=.
1835   for ac_exec_ext in '' $ac_executable_extensions; do
1836   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839     break 2
1840   fi
1841 done
1842 done
1843
1844 fi
1845 fi
1846 STRIP=$ac_cv_prog_STRIP
1847 if test -n "$STRIP"; then
1848   echo "$as_me:$LINENO: result: $STRIP" >&5
1849 echo "${ECHO_T}$STRIP" >&6
1850 else
1851   echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1853 fi
1854
1855 fi
1856 if test -z "$ac_cv_prog_STRIP"; then
1857   ac_ct_STRIP=$STRIP
1858   # Extract the first word of "strip", so it can be a program name with args.
1859 set dummy strip; ac_word=$2
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1863   echo $ECHO_N "(cached) $ECHO_C" >&6
1864 else
1865   if test -n "$ac_ct_STRIP"; then
1866   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1867 else
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 for as_dir in $PATH
1870 do
1871   IFS=$as_save_IFS
1872   test -z "$as_dir" && as_dir=.
1873   for ac_exec_ext in '' $ac_executable_extensions; do
1874   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875     ac_cv_prog_ac_ct_STRIP="strip"
1876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877     break 2
1878   fi
1879 done
1880 done
1881
1882   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1883 fi
1884 fi
1885 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1886 if test -n "$ac_ct_STRIP"; then
1887   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1888 echo "${ECHO_T}$ac_ct_STRIP" >&6
1889 else
1890   echo "$as_me:$LINENO: result: no" >&5
1891 echo "${ECHO_T}no" >&6
1892 fi
1893
1894   STRIP=$ac_ct_STRIP
1895 else
1896   STRIP="$ac_cv_prog_STRIP"
1897 fi
1898
1899 fi
1900 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1901
1902 # We need awk for the "check" target.  The system "awk" is bad on
1903 # some platforms.
1904
1905
1906
1907
1908 ALL_LINGUAS=
1909
1910 ac_ext=c
1911 ac_cpp='$CPP $CPPFLAGS'
1912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1915 if test -n "$ac_tool_prefix"; then
1916   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1917 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1918 echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1920 if test "${ac_cv_prog_CC+set}" = set; then
1921   echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923   if test -n "$CC"; then
1924   ac_cv_prog_CC="$CC" # Let the user override the test.
1925 else
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 for as_dir in $PATH
1928 do
1929   IFS=$as_save_IFS
1930   test -z "$as_dir" && as_dir=.
1931   for ac_exec_ext in '' $ac_executable_extensions; do
1932   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935     break 2
1936   fi
1937 done
1938 done
1939
1940 fi
1941 fi
1942 CC=$ac_cv_prog_CC
1943 if test -n "$CC"; then
1944   echo "$as_me:$LINENO: result: $CC" >&5
1945 echo "${ECHO_T}$CC" >&6
1946 else
1947   echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1949 fi
1950
1951 fi
1952 if test -z "$ac_cv_prog_CC"; then
1953   ac_ct_CC=$CC
1954   # Extract the first word of "gcc", so it can be a program name with args.
1955 set dummy gcc; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1959   echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961   if test -n "$ac_ct_CC"; then
1962   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967   IFS=$as_save_IFS
1968   test -z "$as_dir" && as_dir=.
1969   for ac_exec_ext in '' $ac_executable_extensions; do
1970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971     ac_cv_prog_ac_ct_CC="gcc"
1972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973     break 2
1974   fi
1975 done
1976 done
1977
1978 fi
1979 fi
1980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1981 if test -n "$ac_ct_CC"; then
1982   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1983 echo "${ECHO_T}$ac_ct_CC" >&6
1984 else
1985   echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1987 fi
1988
1989   CC=$ac_ct_CC
1990 else
1991   CC="$ac_cv_prog_CC"
1992 fi
1993
1994 if test -z "$CC"; then
1995   if test -n "$ac_tool_prefix"; then
1996   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1997 set dummy ${ac_tool_prefix}cc; ac_word=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_CC+set}" = set; then
2001   echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003   if test -n "$CC"; then
2004   ac_cv_prog_CC="$CC" # Let the user override the test.
2005 else
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 for as_dir in $PATH
2008 do
2009   IFS=$as_save_IFS
2010   test -z "$as_dir" && as_dir=.
2011   for ac_exec_ext in '' $ac_executable_extensions; do
2012   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013     ac_cv_prog_CC="${ac_tool_prefix}cc"
2014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015     break 2
2016   fi
2017 done
2018 done
2019
2020 fi
2021 fi
2022 CC=$ac_cv_prog_CC
2023 if test -n "$CC"; then
2024   echo "$as_me:$LINENO: result: $CC" >&5
2025 echo "${ECHO_T}$CC" >&6
2026 else
2027   echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6
2029 fi
2030
2031 fi
2032 if test -z "$ac_cv_prog_CC"; then
2033   ac_ct_CC=$CC
2034   # Extract the first word of "cc", so it can be a program name with args.
2035 set dummy cc; ac_word=$2
2036 echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2039   echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041   if test -n "$ac_ct_CC"; then
2042   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2043 else
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 for as_dir in $PATH
2046 do
2047   IFS=$as_save_IFS
2048   test -z "$as_dir" && as_dir=.
2049   for ac_exec_ext in '' $ac_executable_extensions; do
2050   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2051     ac_cv_prog_ac_ct_CC="cc"
2052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053     break 2
2054   fi
2055 done
2056 done
2057
2058 fi
2059 fi
2060 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2061 if test -n "$ac_ct_CC"; then
2062   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2063 echo "${ECHO_T}$ac_ct_CC" >&6
2064 else
2065   echo "$as_me:$LINENO: result: no" >&5
2066 echo "${ECHO_T}no" >&6
2067 fi
2068
2069   CC=$ac_ct_CC
2070 else
2071   CC="$ac_cv_prog_CC"
2072 fi
2073
2074 fi
2075 if test -z "$CC"; then
2076   # Extract the first word of "cc", so it can be a program name with args.
2077 set dummy cc; ac_word=$2
2078 echo "$as_me:$LINENO: checking for $ac_word" >&5
2079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2080 if test "${ac_cv_prog_CC+set}" = set; then
2081   echo $ECHO_N "(cached) $ECHO_C" >&6
2082 else
2083   if test -n "$CC"; then
2084   ac_cv_prog_CC="$CC" # Let the user override the test.
2085 else
2086   ac_prog_rejected=no
2087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 for as_dir in $PATH
2089 do
2090   IFS=$as_save_IFS
2091   test -z "$as_dir" && as_dir=.
2092   for ac_exec_ext in '' $ac_executable_extensions; do
2093   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2094     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2095        ac_prog_rejected=yes
2096        continue
2097      fi
2098     ac_cv_prog_CC="cc"
2099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100     break 2
2101   fi
2102 done
2103 done
2104
2105 if test $ac_prog_rejected = yes; then
2106   # We found a bogon in the path, so make sure we never use it.
2107   set dummy $ac_cv_prog_CC
2108   shift
2109   if test $# != 0; then
2110     # We chose a different compiler from the bogus one.
2111     # However, it has the same basename, so the bogon will be chosen
2112     # first if we set CC to just the basename; use the full file name.
2113     shift
2114     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2115   fi
2116 fi
2117 fi
2118 fi
2119 CC=$ac_cv_prog_CC
2120 if test -n "$CC"; then
2121   echo "$as_me:$LINENO: result: $CC" >&5
2122 echo "${ECHO_T}$CC" >&6
2123 else
2124   echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6
2126 fi
2127
2128 fi
2129 if test -z "$CC"; then
2130   if test -n "$ac_tool_prefix"; then
2131   for ac_prog in cl
2132   do
2133     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2135 echo "$as_me:$LINENO: checking for $ac_word" >&5
2136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2137 if test "${ac_cv_prog_CC+set}" = set; then
2138   echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140   if test -n "$CC"; then
2141   ac_cv_prog_CC="$CC" # Let the user override the test.
2142 else
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 for as_dir in $PATH
2145 do
2146   IFS=$as_save_IFS
2147   test -z "$as_dir" && as_dir=.
2148   for ac_exec_ext in '' $ac_executable_extensions; do
2149   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2150     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152     break 2
2153   fi
2154 done
2155 done
2156
2157 fi
2158 fi
2159 CC=$ac_cv_prog_CC
2160 if test -n "$CC"; then
2161   echo "$as_me:$LINENO: result: $CC" >&5
2162 echo "${ECHO_T}$CC" >&6
2163 else
2164   echo "$as_me:$LINENO: result: no" >&5
2165 echo "${ECHO_T}no" >&6
2166 fi
2167
2168     test -n "$CC" && break
2169   done
2170 fi
2171 if test -z "$CC"; then
2172   ac_ct_CC=$CC
2173   for ac_prog in cl
2174 do
2175   # Extract the first word of "$ac_prog", so it can be a program name with args.
2176 set dummy $ac_prog; ac_word=$2
2177 echo "$as_me:$LINENO: checking for $ac_word" >&5
2178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2179 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2180   echo $ECHO_N "(cached) $ECHO_C" >&6
2181 else
2182   if test -n "$ac_ct_CC"; then
2183   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2184 else
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 for as_dir in $PATH
2187 do
2188   IFS=$as_save_IFS
2189   test -z "$as_dir" && as_dir=.
2190   for ac_exec_ext in '' $ac_executable_extensions; do
2191   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2192     ac_cv_prog_ac_ct_CC="$ac_prog"
2193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194     break 2
2195   fi
2196 done
2197 done
2198
2199 fi
2200 fi
2201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2202 if test -n "$ac_ct_CC"; then
2203   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2204 echo "${ECHO_T}$ac_ct_CC" >&6
2205 else
2206   echo "$as_me:$LINENO: result: no" >&5
2207 echo "${ECHO_T}no" >&6
2208 fi
2209
2210   test -n "$ac_ct_CC" && break
2211 done
2212
2213   CC=$ac_ct_CC
2214 fi
2215
2216 fi
2217
2218
2219 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2220 See \`config.log' for more details." >&5
2221 echo "$as_me: error: no acceptable C compiler found in \$PATH
2222 See \`config.log' for more details." >&2;}
2223    { (exit 1); exit 1; }; }
2224
2225 # Provide some information about the compiler.
2226 echo "$as_me:$LINENO:" \
2227      "checking for C compiler version" >&5
2228 ac_compiler=`set X $ac_compile; echo $2`
2229 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2230   (eval $ac_compiler --version </dev/null >&5) 2>&5
2231   ac_status=$?
2232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233   (exit $ac_status); }
2234 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2235   (eval $ac_compiler -v </dev/null >&5) 2>&5
2236   ac_status=$?
2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238   (exit $ac_status); }
2239 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2240   (eval $ac_compiler -V </dev/null >&5) 2>&5
2241   ac_status=$?
2242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243   (exit $ac_status); }
2244
2245 cat >conftest.$ac_ext <<_ACEOF
2246 #line $LINENO "configure"
2247 /* confdefs.h.  */
2248 _ACEOF
2249 cat confdefs.h >>conftest.$ac_ext
2250 cat >>conftest.$ac_ext <<_ACEOF
2251 /* end confdefs.h.  */
2252
2253 int
2254 main ()
2255 {
2256
2257   ;
2258   return 0;
2259 }
2260 _ACEOF
2261 ac_clean_files_save=$ac_clean_files
2262 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2263 # Try to create an executable without -o first, disregard a.out.
2264 # It will help us diagnose broken compilers, and finding out an intuition
2265 # of exeext.
2266 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2267 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2268 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2269 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2270   (eval $ac_link_default) 2>&5
2271   ac_status=$?
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); }; then
2274   # Find the output, starting from the most likely.  This scheme is
2275 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2276 # resort.
2277
2278 # Be careful to initialize this variable, since it used to be cached.
2279 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2280 ac_cv_exeext=
2281 # b.out is created by i960 compilers.
2282 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2283 do
2284   test -f "$ac_file" || continue
2285   case $ac_file in
2286     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2287         ;;
2288     conftest.$ac_ext )
2289         # This is the source file.
2290         ;;
2291     [ab].out )
2292         # We found the default executable, but exeext='' is most
2293         # certainly right.
2294         break;;
2295     *.* )
2296         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2297         # FIXME: I believe we export ac_cv_exeext for Libtool,
2298         # but it would be cool to find out if it's true.  Does anybody
2299         # maintain Libtool? --akim.
2300         export ac_cv_exeext
2301         break;;
2302     * )
2303         break;;
2304   esac
2305 done
2306 else
2307   echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.$ac_ext >&5
2309
2310 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2311 See \`config.log' for more details." >&5
2312 echo "$as_me: error: C compiler cannot create executables
2313 See \`config.log' for more details." >&2;}
2314    { (exit 77); exit 77; }; }
2315 fi
2316
2317 ac_exeext=$ac_cv_exeext
2318 echo "$as_me:$LINENO: result: $ac_file" >&5
2319 echo "${ECHO_T}$ac_file" >&6
2320
2321 # Check the compiler produces executables we can run.  If not, either
2322 # the compiler is broken, or we cross compile.
2323 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2324 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2325 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2326 # If not cross compiling, check that we can run a simple program.
2327 if test "$cross_compiling" != yes; then
2328   if { ac_try='./$ac_file'
2329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330   (eval $ac_try) 2>&5
2331   ac_status=$?
2332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333   (exit $ac_status); }; }; then
2334     cross_compiling=no
2335   else
2336     if test "$cross_compiling" = maybe; then
2337         cross_compiling=yes
2338     else
2339         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2340 If you meant to cross compile, use \`--host'.
2341 See \`config.log' for more details." >&5
2342 echo "$as_me: error: cannot run C compiled programs.
2343 If you meant to cross compile, use \`--host'.
2344 See \`config.log' for more details." >&2;}
2345    { (exit 1); exit 1; }; }
2346     fi
2347   fi
2348 fi
2349 echo "$as_me:$LINENO: result: yes" >&5
2350 echo "${ECHO_T}yes" >&6
2351
2352 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2353 ac_clean_files=$ac_clean_files_save
2354 # Check the compiler produces executables we can run.  If not, either
2355 # the compiler is broken, or we cross compile.
2356 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2357 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2358 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2359 echo "${ECHO_T}$cross_compiling" >&6
2360
2361 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2362 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2364   (eval $ac_link) 2>&5
2365   ac_status=$?
2366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367   (exit $ac_status); }; then
2368   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2369 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2370 # work properly (i.e., refer to `conftest.exe'), while it won't with
2371 # `rm'.
2372 for ac_file in conftest.exe conftest conftest.*; do
2373   test -f "$ac_file" || continue
2374   case $ac_file in
2375     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2376     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2377           export ac_cv_exeext
2378           break;;
2379     * ) break;;
2380   esac
2381 done
2382 else
2383   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2384 See \`config.log' for more details." >&5
2385 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2386 See \`config.log' for more details." >&2;}
2387    { (exit 1); exit 1; }; }
2388 fi
2389
2390 rm -f conftest$ac_cv_exeext
2391 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2392 echo "${ECHO_T}$ac_cv_exeext" >&6
2393
2394 rm -f conftest.$ac_ext
2395 EXEEXT=$ac_cv_exeext
2396 ac_exeext=$EXEEXT
2397 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2398 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2399 if test "${ac_cv_objext+set}" = set; then
2400   echo $ECHO_N "(cached) $ECHO_C" >&6
2401 else
2402   cat >conftest.$ac_ext <<_ACEOF
2403 #line $LINENO "configure"
2404 /* confdefs.h.  */
2405 _ACEOF
2406 cat confdefs.h >>conftest.$ac_ext
2407 cat >>conftest.$ac_ext <<_ACEOF
2408 /* end confdefs.h.  */
2409
2410 int
2411 main ()
2412 {
2413
2414   ;
2415   return 0;
2416 }
2417 _ACEOF
2418 rm -f conftest.o conftest.obj
2419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2420   (eval $ac_compile) 2>&5
2421   ac_status=$?
2422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); }; then
2424   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2425   case $ac_file in
2426     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2427     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2428        break;;
2429   esac
2430 done
2431 else
2432   echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2434
2435 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2438 See \`config.log' for more details." >&2;}
2439    { (exit 1); exit 1; }; }
2440 fi
2441
2442 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2443 fi
2444 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2445 echo "${ECHO_T}$ac_cv_objext" >&6
2446 OBJEXT=$ac_cv_objext
2447 ac_objext=$OBJEXT
2448 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2449 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2450 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2451   echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453   cat >conftest.$ac_ext <<_ACEOF
2454 #line $LINENO "configure"
2455 /* confdefs.h.  */
2456 _ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h.  */
2460
2461 int
2462 main ()
2463 {
2464 #ifndef __GNUC__
2465        choke me
2466 #endif
2467
2468   ;
2469   return 0;
2470 }
2471 _ACEOF
2472 rm -f conftest.$ac_objext
2473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2474   (eval $ac_compile) 2>&5
2475   ac_status=$?
2476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477   (exit $ac_status); } &&
2478          { ac_try='test -s conftest.$ac_objext'
2479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480   (eval $ac_try) 2>&5
2481   ac_status=$?
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); }; }; then
2484   ac_compiler_gnu=yes
2485 else
2486   echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2488
2489 ac_compiler_gnu=no
2490 fi
2491 rm -f conftest.$ac_objext conftest.$ac_ext
2492 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2493
2494 fi
2495 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2496 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2497 GCC=`test $ac_compiler_gnu = yes && echo yes`
2498 ac_test_CFLAGS=${CFLAGS+set}
2499 ac_save_CFLAGS=$CFLAGS
2500 CFLAGS="-g"
2501 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2502 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2503 if test "${ac_cv_prog_cc_g+set}" = set; then
2504   echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506   cat >conftest.$ac_ext <<_ACEOF
2507 #line $LINENO "configure"
2508 /* confdefs.h.  */
2509 _ACEOF
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h.  */
2513
2514 int
2515 main ()
2516 {
2517
2518   ;
2519   return 0;
2520 }
2521 _ACEOF
2522 rm -f conftest.$ac_objext
2523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2524   (eval $ac_compile) 2>&5
2525   ac_status=$?
2526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527   (exit $ac_status); } &&
2528          { ac_try='test -s conftest.$ac_objext'
2529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530   (eval $ac_try) 2>&5
2531   ac_status=$?
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); }; }; then
2534   ac_cv_prog_cc_g=yes
2535 else
2536   echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2538
2539 ac_cv_prog_cc_g=no
2540 fi
2541 rm -f conftest.$ac_objext conftest.$ac_ext
2542 fi
2543 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2544 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2545 if test "$ac_test_CFLAGS" = set; then
2546   CFLAGS=$ac_save_CFLAGS
2547 elif test $ac_cv_prog_cc_g = yes; then
2548   if test "$GCC" = yes; then
2549     CFLAGS="-g -O2"
2550   else
2551     CFLAGS="-g"
2552   fi
2553 else
2554   if test "$GCC" = yes; then
2555     CFLAGS="-O2"
2556   else
2557     CFLAGS=
2558   fi
2559 fi
2560 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2561 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2562 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2563   echo $ECHO_N "(cached) $ECHO_C" >&6
2564 else
2565   ac_cv_prog_cc_stdc=no
2566 ac_save_CC=$CC
2567 cat >conftest.$ac_ext <<_ACEOF
2568 #line $LINENO "configure"
2569 /* confdefs.h.  */
2570 _ACEOF
2571 cat confdefs.h >>conftest.$ac_ext
2572 cat >>conftest.$ac_ext <<_ACEOF
2573 /* end confdefs.h.  */
2574 #include <stdarg.h>
2575 #include <stdio.h>
2576 #include <sys/types.h>
2577 #include <sys/stat.h>
2578 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2579 struct buf { int x; };
2580 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2581 static char *e (p, i)
2582      char **p;
2583      int i;
2584 {
2585   return p[i];
2586 }
2587 static char *f (char * (*g) (char **, int), char **p, ...)
2588 {
2589   char *s;
2590   va_list v;
2591   va_start (v,p);
2592   s = g (p, va_arg (v,int));
2593   va_end (v);
2594   return s;
2595 }
2596 int test (int i, double x);
2597 struct s1 {int (*f) (int a);};
2598 struct s2 {int (*f) (double a);};
2599 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2600 int argc;
2601 char **argv;
2602 int
2603 main ()
2604 {
2605 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2606   ;
2607   return 0;
2608 }
2609 _ACEOF
2610 # Don't try gcc -ansi; that turns off useful extensions and
2611 # breaks some systems' header files.
2612 # AIX                   -qlanglvl=ansi
2613 # Ultrix and OSF/1      -std1
2614 # HP-UX 10.20 and later -Ae
2615 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2616 # SVR4                  -Xc -D__EXTENSIONS__
2617 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2618 do
2619   CC="$ac_save_CC $ac_arg"
2620   rm -f conftest.$ac_objext
2621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2622   (eval $ac_compile) 2>&5
2623   ac_status=$?
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); } &&
2626          { ac_try='test -s conftest.$ac_objext'
2627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628   (eval $ac_try) 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); }; }; then
2632   ac_cv_prog_cc_stdc=$ac_arg
2633 break
2634 else
2635   echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2637
2638 fi
2639 rm -f conftest.$ac_objext
2640 done
2641 rm -f conftest.$ac_ext conftest.$ac_objext
2642 CC=$ac_save_CC
2643
2644 fi
2645
2646 case "x$ac_cv_prog_cc_stdc" in
2647   x|xno)
2648     echo "$as_me:$LINENO: result: none needed" >&5
2649 echo "${ECHO_T}none needed" >&6 ;;
2650   *)
2651     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2652 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2653     CC="$CC $ac_cv_prog_cc_stdc" ;;
2654 esac
2655
2656 # Some people use a C++ compiler to compile C.  Since we use `exit',
2657 # in C++ we need to declare it.  In case someone uses the same compiler
2658 # for both compiling C and C++ we need to have the C++ compiler decide
2659 # the declaration of exit, since it's the most demanding environment.
2660 cat >conftest.$ac_ext <<_ACEOF
2661 #ifndef __cplusplus
2662   choke me
2663 #endif
2664 _ACEOF
2665 rm -f conftest.$ac_objext
2666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667   (eval $ac_compile) 2>&5
2668   ac_status=$?
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); } &&
2671          { ac_try='test -s conftest.$ac_objext'
2672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673   (eval $ac_try) 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }; }; then
2677   for ac_declaration in \
2678    ''\
2679    '#include <stdlib.h>' \
2680    'extern "C" void std::exit (int) throw (); using std::exit;' \
2681    'extern "C" void std::exit (int); using std::exit;' \
2682    'extern "C" void exit (int) throw ();' \
2683    'extern "C" void exit (int);' \
2684    'void exit (int);'
2685 do
2686   cat >conftest.$ac_ext <<_ACEOF
2687 #line $LINENO "configure"
2688 /* confdefs.h.  */
2689 _ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h.  */
2693 #include <stdlib.h>
2694 $ac_declaration
2695 int
2696 main ()
2697 {
2698 exit (42);
2699   ;
2700   return 0;
2701 }
2702 _ACEOF
2703 rm -f conftest.$ac_objext
2704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705   (eval $ac_compile) 2>&5
2706   ac_status=$?
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); } &&
2709          { ac_try='test -s conftest.$ac_objext'
2710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711   (eval $ac_try) 2>&5
2712   ac_status=$?
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); }; }; then
2715   :
2716 else
2717   echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2719
2720 continue
2721 fi
2722 rm -f conftest.$ac_objext conftest.$ac_ext
2723   cat >conftest.$ac_ext <<_ACEOF
2724 #line $LINENO "configure"
2725 /* confdefs.h.  */
2726 _ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h.  */
2730 $ac_declaration
2731 int
2732 main ()
2733 {
2734 exit (42);
2735   ;
2736   return 0;
2737 }
2738 _ACEOF
2739 rm -f conftest.$ac_objext
2740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2741   (eval $ac_compile) 2>&5
2742   ac_status=$?
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); } &&
2745          { ac_try='test -s conftest.$ac_objext'
2746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747   (eval $ac_try) 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); }; }; then
2751   break
2752 else
2753   echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2755
2756 fi
2757 rm -f conftest.$ac_objext conftest.$ac_ext
2758 done
2759 rm -f conftest*
2760 if test -n "$ac_declaration"; then
2761   echo '#ifdef __cplusplus' >>confdefs.h
2762   echo $ac_declaration      >>confdefs.h
2763   echo '#endif'             >>confdefs.h
2764 fi
2765
2766 else
2767   echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2769
2770 fi
2771 rm -f conftest.$ac_objext conftest.$ac_ext
2772 ac_ext=c
2773 ac_cpp='$CPP $CPPFLAGS'
2774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2777 rm -f .deps 2>/dev/null
2778 mkdir .deps 2>/dev/null
2779 if test -d .deps; then
2780   DEPDIR=.deps
2781 else
2782   # MS-DOS does not allow filenames that begin with a dot.
2783   DEPDIR=_deps
2784 fi
2785 rmdir .deps 2>/dev/null
2786
2787
2788           ac_config_commands="$ac_config_commands depfiles"
2789
2790
2791 am_make=${MAKE-make}
2792 cat > confinc << 'END'
2793 doit:
2794         @echo done
2795 END
2796 # If we don't find an include directive, just comment out the code.
2797 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2798 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2799 am__include="#"
2800 am__quote=
2801 _am_result=none
2802 # First try GNU make style include.
2803 echo "include confinc" > confmf
2804 # We grep out `Entering directory' and `Leaving directory'
2805 # messages which can occur if `w' ends up in MAKEFLAGS.
2806 # In particular we don't look at `^make:' because GNU make might
2807 # be invoked under some other name (usually "gmake"), in which
2808 # case it prints its new name instead of `make'.
2809 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2810    am__include=include
2811    am__quote=
2812    _am_result=GNU
2813 fi
2814 # Now try BSD make style include.
2815 if test "$am__include" = "#"; then
2816    echo '.include "confinc"' > confmf
2817    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2818       am__include=.include
2819       am__quote="\""
2820       _am_result=BSD
2821    fi
2822 fi
2823
2824
2825 echo "$as_me:$LINENO: result: $_am_result" >&5
2826 echo "${ECHO_T}$_am_result" >&6
2827 rm -f confinc confmf
2828
2829 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2830 if test "${enable_dependency_tracking+set}" = set; then
2831   enableval="$enable_dependency_tracking"
2832
2833 fi;
2834 if test "x$enable_dependency_tracking" != xno; then
2835   am_depcomp="$ac_aux_dir/depcomp"
2836   AMDEPBACKSLASH='\'
2837 fi
2838
2839
2840 if test "x$enable_dependency_tracking" != xno; then
2841   AMDEP_TRUE=
2842   AMDEP_FALSE='#'
2843 else
2844   AMDEP_TRUE='#'
2845   AMDEP_FALSE=
2846 fi
2847
2848
2849
2850
2851 depcc="$CC"   am_compiler_list=
2852
2853 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2854 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2855 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2856   echo $ECHO_N "(cached) $ECHO_C" >&6
2857 else
2858   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2859   # We make a subdir and do the tests there.  Otherwise we can end up
2860   # making bogus files that we don't know about and never remove.  For
2861   # instance it was reported that on HP-UX the gcc test will end up
2862   # making a dummy file named `D' -- because `-MD' means `put the output
2863   # in D'.
2864   mkdir conftest.dir
2865   # Copy depcomp to subdir because otherwise we won't find it if we're
2866   # using a relative directory.
2867   cp "$am_depcomp" conftest.dir
2868   cd conftest.dir
2869
2870   am_cv_CC_dependencies_compiler_type=none
2871   if test "$am_compiler_list" = ""; then
2872      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2873   fi
2874   for depmode in $am_compiler_list; do
2875     # We need to recreate these files for each test, as the compiler may
2876     # overwrite some of them when testing with obscure command lines.
2877     # This happens at least with the AIX C compiler.
2878     echo '#include "conftest.h"' > conftest.c
2879     echo 'int i;' > conftest.h
2880     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2881
2882     case $depmode in
2883     nosideeffect)
2884       # after this tag, mechanisms are not by side-effect, so they'll
2885       # only be used when explicitly requested
2886       if test "x$enable_dependency_tracking" = xyes; then
2887         continue
2888       else
2889         break
2890       fi
2891       ;;
2892     none) break ;;
2893     esac
2894     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2895     # mode.  It turns out that the SunPro C++ compiler does not properly
2896     # handle `-M -o', and we need to detect this.
2897     if depmode=$depmode \
2898        source=conftest.c object=conftest.o \
2899        depfile=conftest.Po tmpdepfile=conftest.TPo \
2900        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2901        grep conftest.h conftest.Po > /dev/null 2>&1 &&
2902        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2903       am_cv_CC_dependencies_compiler_type=$depmode
2904       break
2905     fi
2906   done
2907
2908   cd ..
2909   rm -rf conftest.dir
2910 else
2911   am_cv_CC_dependencies_compiler_type=none
2912 fi
2913
2914 fi
2915 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2916 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2917 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2918
2919
2920 ac_ext=cc
2921 ac_cpp='$CXXCPP $CPPFLAGS'
2922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2925 if test -n "$ac_tool_prefix"; then
2926   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2927   do
2928     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2929 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2930 echo "$as_me:$LINENO: checking for $ac_word" >&5
2931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2932 if test "${ac_cv_prog_CXX+set}" = set; then
2933   echo $ECHO_N "(cached) $ECHO_C" >&6
2934 else
2935   if test -n "$CXX"; then
2936   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2940 do
2941   IFS=$as_save_IFS
2942   test -z "$as_dir" && as_dir=.
2943   for ac_exec_ext in '' $ac_executable_extensions; do
2944   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2947     break 2
2948   fi
2949 done
2950 done
2951
2952 fi
2953 fi
2954 CXX=$ac_cv_prog_CXX
2955 if test -n "$CXX"; then
2956   echo "$as_me:$LINENO: result: $CXX" >&5
2957 echo "${ECHO_T}$CXX" >&6
2958 else
2959   echo "$as_me:$LINENO: result: no" >&5
2960 echo "${ECHO_T}no" >&6
2961 fi
2962
2963     test -n "$CXX" && break
2964   done
2965 fi
2966 if test -z "$CXX"; then
2967   ac_ct_CXX=$CXX
2968   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2969 do
2970   # Extract the first word of "$ac_prog", so it can be a program name with args.
2971 set dummy $ac_prog; ac_word=$2
2972 echo "$as_me:$LINENO: checking for $ac_word" >&5
2973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2974 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2975   echo $ECHO_N "(cached) $ECHO_C" >&6
2976 else
2977   if test -n "$ac_ct_CXX"; then
2978   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2979 else
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 for as_dir in $PATH
2982 do
2983   IFS=$as_save_IFS
2984   test -z "$as_dir" && as_dir=.
2985   for ac_exec_ext in '' $ac_executable_extensions; do
2986   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2987     ac_cv_prog_ac_ct_CXX="$ac_prog"
2988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2989     break 2
2990   fi
2991 done
2992 done
2993
2994 fi
2995 fi
2996 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2997 if test -n "$ac_ct_CXX"; then
2998   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2999 echo "${ECHO_T}$ac_ct_CXX" >&6
3000 else
3001   echo "$as_me:$LINENO: result: no" >&5
3002 echo "${ECHO_T}no" >&6
3003 fi
3004
3005   test -n "$ac_ct_CXX" && break
3006 done
3007 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3008
3009   CXX=$ac_ct_CXX
3010 fi
3011
3012
3013 # Provide some information about the compiler.
3014 echo "$as_me:$LINENO:" \
3015      "checking for C++ compiler version" >&5
3016 ac_compiler=`set X $ac_compile; echo $2`
3017 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3018   (eval $ac_compiler --version </dev/null >&5) 2>&5
3019   ac_status=$?
3020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021   (exit $ac_status); }
3022 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3023   (eval $ac_compiler -v </dev/null >&5) 2>&5
3024   ac_status=$?
3025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026   (exit $ac_status); }
3027 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3028   (eval $ac_compiler -V </dev/null >&5) 2>&5
3029   ac_status=$?
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); }
3032
3033 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3034 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3035 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3036   echo $ECHO_N "(cached) $ECHO_C" >&6
3037 else
3038   cat >conftest.$ac_ext <<_ACEOF
3039 #line $LINENO "configure"
3040 /* confdefs.h.  */
3041 _ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h.  */
3045
3046 int
3047 main ()
3048 {
3049 #ifndef __GNUC__
3050        choke me
3051 #endif
3052
3053   ;
3054   return 0;
3055 }
3056 _ACEOF
3057 rm -f conftest.$ac_objext
3058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3059   (eval $ac_compile) 2>&5
3060   ac_status=$?
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); } &&
3063          { ac_try='test -s conftest.$ac_objext'
3064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3065   (eval $ac_try) 2>&5
3066   ac_status=$?
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); }; }; then
3069   ac_compiler_gnu=yes
3070 else
3071   echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3073
3074 ac_compiler_gnu=no
3075 fi
3076 rm -f conftest.$ac_objext conftest.$ac_ext
3077 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3078
3079 fi
3080 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3081 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3082 GXX=`test $ac_compiler_gnu = yes && echo yes`
3083 ac_test_CXXFLAGS=${CXXFLAGS+set}
3084 ac_save_CXXFLAGS=$CXXFLAGS
3085 CXXFLAGS="-g"
3086 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3087 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3088 if test "${ac_cv_prog_cxx_g+set}" = set; then
3089   echo $ECHO_N "(cached) $ECHO_C" >&6
3090 else
3091   cat >conftest.$ac_ext <<_ACEOF
3092 #line $LINENO "configure"
3093 /* confdefs.h.  */
3094 _ACEOF
3095 cat confdefs.h >>conftest.$ac_ext
3096 cat >>conftest.$ac_ext <<_ACEOF
3097 /* end confdefs.h.  */
3098
3099 int
3100 main ()
3101 {
3102
3103   ;
3104   return 0;
3105 }
3106 _ACEOF
3107 rm -f conftest.$ac_objext
3108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3109   (eval $ac_compile) 2>&5
3110   ac_status=$?
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); } &&
3113          { ac_try='test -s conftest.$ac_objext'
3114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115   (eval $ac_try) 2>&5
3116   ac_status=$?
3117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118   (exit $ac_status); }; }; then
3119   ac_cv_prog_cxx_g=yes
3120 else
3121   echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3123
3124 ac_cv_prog_cxx_g=no
3125 fi
3126 rm -f conftest.$ac_objext conftest.$ac_ext
3127 fi
3128 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3129 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3130 if test "$ac_test_CXXFLAGS" = set; then
3131   CXXFLAGS=$ac_save_CXXFLAGS
3132 elif test $ac_cv_prog_cxx_g = yes; then
3133   if test "$GXX" = yes; then
3134     CXXFLAGS="-g -O2"
3135   else
3136     CXXFLAGS="-g"
3137   fi
3138 else
3139   if test "$GXX" = yes; then
3140     CXXFLAGS="-O2"
3141   else
3142     CXXFLAGS=
3143   fi
3144 fi
3145 for ac_declaration in \
3146    ''\
3147    '#include <stdlib.h>' \
3148    'extern "C" void std::exit (int) throw (); using std::exit;' \
3149    'extern "C" void std::exit (int); using std::exit;' \
3150    'extern "C" void exit (int) throw ();' \
3151    'extern "C" void exit (int);' \
3152    'void exit (int);'
3153 do
3154   cat >conftest.$ac_ext <<_ACEOF
3155 #line $LINENO "configure"
3156 /* confdefs.h.  */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h.  */
3161 #include <stdlib.h>
3162 $ac_declaration
3163 int
3164 main ()
3165 {
3166 exit (42);
3167   ;
3168   return 0;
3169 }
3170 _ACEOF
3171 rm -f conftest.$ac_objext
3172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3173   (eval $ac_compile) 2>&5
3174   ac_status=$?
3175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176   (exit $ac_status); } &&
3177          { ac_try='test -s conftest.$ac_objext'
3178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179   (eval $ac_try) 2>&5
3180   ac_status=$?
3181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182   (exit $ac_status); }; }; then
3183   :
3184 else
3185   echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3187
3188 continue
3189 fi
3190 rm -f conftest.$ac_objext conftest.$ac_ext
3191   cat >conftest.$ac_ext <<_ACEOF
3192 #line $LINENO "configure"
3193 /* confdefs.h.  */
3194 _ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h.  */
3198 $ac_declaration
3199 int
3200 main ()
3201 {
3202 exit (42);
3203   ;
3204   return 0;
3205 }
3206 _ACEOF
3207 rm -f conftest.$ac_objext
3208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3209   (eval $ac_compile) 2>&5
3210   ac_status=$?
3211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212   (exit $ac_status); } &&
3213          { ac_try='test -s conftest.$ac_objext'
3214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215   (eval $ac_try) 2>&5
3216   ac_status=$?
3217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218   (exit $ac_status); }; }; then
3219   break
3220 else
3221   echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3223
3224 fi
3225 rm -f conftest.$ac_objext conftest.$ac_ext
3226 done
3227 rm -f conftest*
3228 if test -n "$ac_declaration"; then
3229   echo '#ifdef __cplusplus' >>confdefs.h
3230   echo $ac_declaration      >>confdefs.h
3231   echo '#endif'             >>confdefs.h
3232 fi
3233
3234 ac_ext=c
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239
3240 depcc="$CXX"  am_compiler_list=
3241
3242 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3243 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3244 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3245   echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3248   # We make a subdir and do the tests there.  Otherwise we can end up
3249   # making bogus files that we don't know about and never remove.  For
3250   # instance it was reported that on HP-UX the gcc test will end up
3251   # making a dummy file named `D' -- because `-MD' means `put the output
3252   # in D'.
3253   mkdir conftest.dir
3254   # Copy depcomp to subdir because otherwise we won't find it if we're
3255   # using a relative directory.
3256   cp "$am_depcomp" conftest.dir
3257   cd conftest.dir
3258
3259   am_cv_CXX_dependencies_compiler_type=none
3260   if test "$am_compiler_list" = ""; then
3261      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3262   fi
3263   for depmode in $am_compiler_list; do
3264     # We need to recreate these files for each test, as the compiler may
3265     # overwrite some of them when testing with obscure command lines.
3266     # This happens at least with the AIX C compiler.
3267     echo '#include "conftest.h"' > conftest.c
3268     echo 'int i;' > conftest.h
3269     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3270
3271     case $depmode in
3272     nosideeffect)
3273       # after this tag, mechanisms are not by side-effect, so they'll
3274       # only be used when explicitly requested
3275       if test "x$enable_dependency_tracking" = xyes; then
3276         continue
3277       else
3278         break
3279       fi
3280       ;;
3281     none) break ;;
3282     esac
3283     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3284     # mode.  It turns out that the SunPro C++ compiler does not properly
3285     # handle `-M -o', and we need to detect this.
3286     if depmode=$depmode \
3287        source=conftest.c object=conftest.o \
3288        depfile=conftest.Po tmpdepfile=conftest.TPo \
3289        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3290        grep conftest.h conftest.Po > /dev/null 2>&1 &&
3291        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3292       am_cv_CXX_dependencies_compiler_type=$depmode
3293       break
3294     fi
3295   done
3296
3297   cd ..
3298   rm -rf conftest.dir
3299 else
3300   am_cv_CXX_dependencies_compiler_type=none
3301 fi
3302
3303 fi
3304 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3305 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3306 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3307
3308
3309 ac_ext=c
3310 ac_cpp='$CPP $CPPFLAGS'
3311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3315 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3316 # On Suns, sometimes $CPP names a directory.
3317 if test -n "$CPP" && test -d "$CPP"; then
3318   CPP=
3319 fi
3320 if test -z "$CPP"; then
3321   if test "${ac_cv_prog_CPP+set}" = set; then
3322   echo $ECHO_N "(cached) $ECHO_C" >&6
3323 else
3324       # Double quotes because CPP needs to be expanded
3325     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3326     do
3327       ac_preproc_ok=false
3328 for ac_c_preproc_warn_flag in '' yes
3329 do
3330   # Use a header file that comes with gcc, so configuring glibc
3331   # with a fresh cross-compiler works.
3332   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3333   # <limits.h> exists even on freestanding compilers.
3334   # On the NeXT, cc -E runs the code through the compiler's parser,
3335   # not just through cpp. "Syntax error" is here to catch this case.
3336   cat >conftest.$ac_ext <<_ACEOF
3337 #line $LINENO "configure"
3338 /* confdefs.h.  */
3339 _ACEOF
3340 cat confdefs.h >>conftest.$ac_ext
3341 cat >>conftest.$ac_ext <<_ACEOF
3342 /* end confdefs.h.  */
3343 #ifdef __STDC__
3344 # include <limits.h>
3345 #else
3346 # include <assert.h>
3347 #endif
3348                      Syntax error
3349 _ACEOF
3350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3351   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3352   ac_status=$?
3353   grep -v '^ *+' conftest.er1 >conftest.err
3354   rm -f conftest.er1
3355   cat conftest.err >&5
3356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357   (exit $ac_status); } >/dev/null; then
3358   if test -s conftest.err; then
3359     ac_cpp_err=$ac_c_preproc_warn_flag
3360   else
3361     ac_cpp_err=
3362   fi
3363 else
3364   ac_cpp_err=yes
3365 fi
3366 if test -z "$ac_cpp_err"; then
3367   :
3368 else
3369   echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3371
3372   # Broken: fails on valid input.
3373 continue
3374 fi
3375 rm -f conftest.err conftest.$ac_ext
3376
3377   # OK, works on sane cases.  Now check whether non-existent headers
3378   # can be detected and how.
3379   cat >conftest.$ac_ext <<_ACEOF
3380 #line $LINENO "configure"
3381 /* confdefs.h.  */
3382 _ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h.  */
3386 #include <ac_nonexistent.h>
3387 _ACEOF
3388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3389   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3390   ac_status=$?
3391   grep -v '^ *+' conftest.er1 >conftest.err
3392   rm -f conftest.er1
3393   cat conftest.err >&5
3394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395   (exit $ac_status); } >/dev/null; then
3396   if test -s conftest.err; then
3397     ac_cpp_err=$ac_c_preproc_warn_flag
3398   else
3399     ac_cpp_err=
3400   fi
3401 else
3402   ac_cpp_err=yes
3403 fi
3404 if test -z "$ac_cpp_err"; then
3405   # Broken: success on invalid input.
3406 continue
3407 else
3408   echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3410
3411   # Passes both tests.
3412 ac_preproc_ok=:
3413 break
3414 fi
3415 rm -f conftest.err conftest.$ac_ext
3416
3417 done
3418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3419 rm -f conftest.err conftest.$ac_ext
3420 if $ac_preproc_ok; then
3421   break
3422 fi
3423
3424     done
3425     ac_cv_prog_CPP=$CPP
3426
3427 fi
3428   CPP=$ac_cv_prog_CPP
3429 else
3430   ac_cv_prog_CPP=$CPP
3431 fi
3432 echo "$as_me:$LINENO: result: $CPP" >&5
3433 echo "${ECHO_T}$CPP" >&6
3434 ac_preproc_ok=false
3435 for ac_c_preproc_warn_flag in '' yes
3436 do
3437   # Use a header file that comes with gcc, so configuring glibc
3438   # with a fresh cross-compiler works.
3439   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3440   # <limits.h> exists even on freestanding compilers.
3441   # On the NeXT, cc -E runs the code through the compiler's parser,
3442   # not just through cpp. "Syntax error" is here to catch this case.
3443   cat >conftest.$ac_ext <<_ACEOF
3444 #line $LINENO "configure"
3445 /* confdefs.h.  */
3446 _ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h.  */
3450 #ifdef __STDC__
3451 # include <limits.h>
3452 #else
3453 # include <assert.h>
3454 #endif
3455                      Syntax error
3456 _ACEOF
3457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3458   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3459   ac_status=$?
3460   grep -v '^ *+' conftest.er1 >conftest.err
3461   rm -f conftest.er1
3462   cat conftest.err >&5
3463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464   (exit $ac_status); } >/dev/null; then
3465   if test -s conftest.err; then
3466     ac_cpp_err=$ac_c_preproc_warn_flag
3467   else
3468     ac_cpp_err=
3469   fi
3470 else
3471   ac_cpp_err=yes
3472 fi
3473 if test -z "$ac_cpp_err"; then
3474   :
3475 else
3476   echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3478
3479   # Broken: fails on valid input.
3480 continue
3481 fi
3482 rm -f conftest.err conftest.$ac_ext
3483
3484   # OK, works on sane cases.  Now check whether non-existent headers
3485   # can be detected and how.
3486   cat >conftest.$ac_ext <<_ACEOF
3487 #line $LINENO "configure"
3488 /* confdefs.h.  */
3489 _ACEOF
3490 cat confdefs.h >>conftest.$ac_ext
3491 cat >>conftest.$ac_ext <<_ACEOF
3492 /* end confdefs.h.  */
3493 #include <ac_nonexistent.h>
3494 _ACEOF
3495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3496   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3497   ac_status=$?
3498   grep -v '^ *+' conftest.er1 >conftest.err
3499   rm -f conftest.er1
3500   cat conftest.err >&5
3501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502   (exit $ac_status); } >/dev/null; then
3503   if test -s conftest.err; then
3504     ac_cpp_err=$ac_c_preproc_warn_flag
3505   else
3506     ac_cpp_err=
3507   fi
3508 else
3509   ac_cpp_err=yes
3510 fi
3511 if test -z "$ac_cpp_err"; then
3512   # Broken: success on invalid input.
3513 continue
3514 else
3515   echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3517
3518   # Passes both tests.
3519 ac_preproc_ok=:
3520 break
3521 fi
3522 rm -f conftest.err conftest.$ac_ext
3523
3524 done
3525 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3526 rm -f conftest.err conftest.$ac_ext
3527 if $ac_preproc_ok; then
3528   :
3529 else
3530   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3531 See \`config.log' for more details." >&5
3532 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3533 See \`config.log' for more details." >&2;}
3534    { (exit 1); exit 1; }; }
3535 fi
3536
3537 ac_ext=c
3538 ac_cpp='$CPP $CPPFLAGS'
3539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3542
3543
3544
3545 echo "$as_me:$LINENO: checking for egrep" >&5
3546 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3547 if test "${ac_cv_prog_egrep+set}" = set; then
3548   echo $ECHO_N "(cached) $ECHO_C" >&6
3549 else
3550   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3551     then ac_cv_prog_egrep='grep -E'
3552     else ac_cv_prog_egrep='egrep'
3553     fi
3554 fi
3555 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3556 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3557  EGREP=$ac_cv_prog_egrep
3558
3559
3560 if test $ac_cv_c_compiler_gnu = yes; then
3561     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3562 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3563 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3564   echo $ECHO_N "(cached) $ECHO_C" >&6
3565 else
3566     ac_pattern="Autoconf.*'x'"
3567   cat >conftest.$ac_ext <<_ACEOF
3568 #line $LINENO "configure"
3569 /* confdefs.h.  */
3570 _ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h.  */
3574 #include <sgtty.h>
3575 Autoconf TIOCGETP
3576 _ACEOF
3577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3578   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3579   ac_cv_prog_gcc_traditional=yes
3580 else
3581   ac_cv_prog_gcc_traditional=no
3582 fi
3583 rm -f conftest*
3584
3585
3586   if test $ac_cv_prog_gcc_traditional = no; then
3587     cat >conftest.$ac_ext <<_ACEOF
3588 #line $LINENO "configure"
3589 /* confdefs.h.  */
3590 _ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h.  */
3594 #include <termio.h>
3595 Autoconf TCGETA
3596 _ACEOF
3597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3598   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3599   ac_cv_prog_gcc_traditional=yes
3600 fi
3601 rm -f conftest*
3602
3603   fi
3604 fi
3605 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3606 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3607   if test $ac_cv_prog_gcc_traditional = yes; then
3608     CC="$CC -traditional"
3609   fi
3610 fi
3611
3612 # Check whether --enable-shared or --disable-shared was given.
3613 if test "${enable_shared+set}" = set; then
3614   enableval="$enable_shared"
3615   p=${PACKAGE-default}
3616     case $enableval in
3617     yes) enable_shared=yes ;;
3618     no) enable_shared=no ;;
3619     *)
3620       enable_shared=no
3621       # Look at the argument we got.  We use all the common list separators.
3622       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3623       for pkg in $enableval; do
3624         IFS="$lt_save_ifs"
3625         if test "X$pkg" = "X$p"; then
3626           enable_shared=yes
3627         fi
3628       done
3629       IFS="$lt_save_ifs"
3630       ;;
3631     esac
3632 else
3633   enable_shared=yes
3634 fi;
3635
3636 # Check whether --enable-static or --disable-static was given.
3637 if test "${enable_static+set}" = set; then
3638   enableval="$enable_static"
3639   p=${PACKAGE-default}
3640     case $enableval in
3641     yes) enable_static=yes ;;
3642     no) enable_static=no ;;
3643     *)
3644      enable_static=no
3645       # Look at the argument we got.  We use all the common list separators.
3646       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3647       for pkg in $enableval; do
3648         IFS="$lt_save_ifs"
3649         if test "X$pkg" = "X$p"; then
3650           enable_static=yes
3651         fi
3652       done
3653       IFS="$lt_save_ifs"
3654       ;;
3655     esac
3656 else
3657   enable_static=yes
3658 fi;
3659
3660 # Check whether --enable-fast-install or --disable-fast-install was given.
3661 if test "${enable_fast_install+set}" = set; then
3662   enableval="$enable_fast_install"
3663   p=${PACKAGE-default}
3664     case $enableval in
3665     yes) enable_fast_install=yes ;;
3666     no) enable_fast_install=no ;;
3667     *)
3668       enable_fast_install=no
3669       # Look at the argument we got.  We use all the common list separators.
3670       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3671       for pkg in $enableval; do
3672         IFS="$lt_save_ifs"
3673         if test "X$pkg" = "X$p"; then
3674           enable_fast_install=yes
3675         fi
3676       done
3677       IFS="$lt_save_ifs"
3678       ;;
3679     esac
3680 else
3681   enable_fast_install=yes
3682 fi;
3683
3684 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3685 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3686 if test "${lt_cv_path_SED+set}" = set; then
3687   echo $ECHO_N "(cached) $ECHO_C" >&6
3688 else
3689   # Loop through the user's path and test for sed and gsed.
3690 # Then use that list of sed's as ones to test for truncation.
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 for as_dir in $PATH
3693 do
3694   IFS=$as_save_IFS
3695   test -z "$as_dir" && as_dir=.
3696   for lt_ac_prog in sed gsed; do
3697     for ac_exec_ext in '' $ac_executable_extensions; do
3698       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3699         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3700       fi
3701     done
3702   done
3703 done
3704 lt_ac_max=0
3705 lt_ac_count=0
3706 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3707 # along with /bin/sed that truncates output.
3708 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3709   test ! -f $lt_ac_sed && break
3710   cat /dev/null > conftest.in
3711   lt_ac_count=0
3712   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3713   # Check for GNU sed and select it if it is found.
3714   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3715     lt_cv_path_SED=$lt_ac_sed
3716     break
3717   fi
3718   while true; do
3719     cat conftest.in conftest.in >conftest.tmp
3720     mv conftest.tmp conftest.in
3721     cp conftest.in conftest.nl
3722     echo >>conftest.nl
3723     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3724     cmp -s conftest.out conftest.nl || break
3725     # 10000 chars as input seems more than enough
3726     test $lt_ac_count -gt 10 && break
3727     lt_ac_count=`expr $lt_ac_count + 1`
3728     if test $lt_ac_count -gt $lt_ac_max; then
3729       lt_ac_max=$lt_ac_count
3730       lt_cv_path_SED=$lt_ac_sed
3731     fi
3732   done
3733 done
3734 SED=$lt_cv_path_SED
3735
3736 fi
3737
3738 echo "$as_me:$LINENO: result: $SED" >&5
3739 echo "${ECHO_T}$SED" >&6
3740
3741
3742 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3743 if test "${with_gnu_ld+set}" = set; then
3744   withval="$with_gnu_ld"
3745   test "$withval" = no || with_gnu_ld=yes
3746 else
3747   with_gnu_ld=no
3748 fi;
3749 ac_prog=ld
3750 if test "$GCC" = yes; then
3751   # Check if gcc -print-prog-name=ld gives a path.
3752   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3753 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3754   case $host in
3755   *-*-mingw*)
3756     # gcc leaves a trailing carriage return which upsets mingw
3757     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3758   *)
3759     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3760   esac
3761   case $ac_prog in
3762     # Accept absolute paths.
3763     [\\/]* | ?:[\\/]*)
3764       re_direlt='/[^/][^/]*/\.\./'
3765       # Canonicalize the path of ld
3766       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3767       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3768         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3769       done
3770       test -z "$LD" && LD="$ac_prog"
3771       ;;
3772   "")
3773     # If it fails, then pretend we aren't using GCC.
3774     ac_prog=ld
3775     ;;
3776   *)
3777     # If it is relative, then search for the first ld in PATH.
3778     with_gnu_ld=unknown
3779     ;;
3780   esac
3781 elif test "$with_gnu_ld" = yes; then
3782   echo "$as_me:$LINENO: checking for GNU ld" >&5
3783 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3784 else
3785   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3786 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3787 fi
3788 if test "${lt_cv_path_LD+set}" = set; then
3789   echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791   if test -z "$LD"; then
3792   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3793   for ac_dir in $PATH; do
3794     IFS="$lt_save_ifs"
3795     test -z "$ac_dir" && ac_dir=.
3796     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3797       lt_cv_path_LD="$ac_dir/$ac_prog"
3798       # Check to see if the program is GNU ld.  I'd rather use --version,
3799       # but apparently some GNU ld's only accept -v.
3800       # Break only if it was the GNU/non-GNU ld that we prefer.
3801       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3802       *GNU* | *'with BFD'*)
3803         test "$with_gnu_ld" != no && break
3804         ;;
3805       *)
3806         test "$with_gnu_ld" != yes && break
3807         ;;
3808       esac
3809     fi
3810   done
3811   IFS="$lt_save_ifs"
3812 else
3813   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3814 fi
3815 fi
3816
3817 LD="$lt_cv_path_LD"
3818 if test -n "$LD"; then
3819   echo "$as_me:$LINENO: result: $LD" >&5
3820 echo "${ECHO_T}$LD" >&6
3821 else
3822   echo "$as_me:$LINENO: result: no" >&5
3823 echo "${ECHO_T}no" >&6
3824 fi
3825 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3826 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3827    { (exit 1); exit 1; }; }
3828 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3829 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3830 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3831   echo $ECHO_N "(cached) $ECHO_C" >&6
3832 else
3833   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3834 case `$LD -v 2>&1 </dev/null` in
3835 *GNU* | *'with BFD'*)
3836   lt_cv_prog_gnu_ld=yes
3837   ;;
3838 *)
3839   lt_cv_prog_gnu_ld=no
3840   ;;
3841 esac
3842 fi
3843 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3844 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3845 with_gnu_ld=$lt_cv_prog_gnu_ld
3846
3847
3848 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3849 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3850 if test "${lt_cv_ld_reload_flag+set}" = set; then
3851   echo $ECHO_N "(cached) $ECHO_C" >&6
3852 else
3853   lt_cv_ld_reload_flag='-r'
3854 fi
3855 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3856 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3857 reload_flag=$lt_cv_ld_reload_flag
3858 case $reload_flag in
3859 "" | " "*) ;;
3860 *) reload_flag=" $reload_flag" ;;
3861 esac
3862 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3863
3864 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3865 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3866 if test "${lt_cv_path_NM+set}" = set; then
3867   echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869   if test -n "$NM"; then
3870   # Let the user override the test.
3871   lt_cv_path_NM="$NM"
3872 else
3873   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3874   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3875     IFS="$lt_save_ifs"
3876     test -z "$ac_dir" && ac_dir=.
3877     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3878     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3879       # Check to see if the nm accepts a BSD-compat flag.
3880       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3881       #   nm: unknown option "B" ignored
3882       # Tru64's nm complains that /dev/null is an invalid object file
3883       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3884       */dev/null* | *'Invalid file or object type'*)
3885         lt_cv_path_NM="$tmp_nm -B"
3886         break
3887         ;;
3888       *)
3889         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3890         */dev/null*)
3891           lt_cv_path_NM="$tmp_nm -p"
3892           break
3893           ;;
3894         *)
3895           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3896           continue # so that we can try to find one that supports BSD flags
3897           ;;
3898         esac
3899       esac
3900     fi
3901   done
3902   IFS="$lt_save_ifs"
3903   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3904 fi
3905 fi
3906 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3907 echo "${ECHO_T}$lt_cv_path_NM" >&6
3908 NM="$lt_cv_path_NM"
3909
3910 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3911 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3912 LN_S=$as_ln_s
3913 if test "$LN_S" = "ln -s"; then
3914   echo "$as_me:$LINENO: result: yes" >&5
3915 echo "${ECHO_T}yes" >&6
3916 else
3917   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3918 echo "${ECHO_T}no, using $LN_S" >&6
3919 fi
3920
3921 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3922 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3923 if test "${lt_cv_deplibs_check_method+set}" = set; then
3924   echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926   lt_cv_file_magic_cmd='$MAGIC_CMD'
3927 lt_cv_file_magic_test_file=
3928 lt_cv_deplibs_check_method='unknown'
3929 # Need to set the preceding variable on all platforms that support
3930 # interlibrary dependencies.
3931 # 'none' -- dependencies not supported.
3932 # `unknown' -- same as none, but documents that we really don't know.
3933 # 'pass_all' -- all dependencies passed with no checks.
3934 # 'test_compile' -- check by making test program.
3935 # 'file_magic [[regex]]' -- check by looking for files in library path
3936 # which responds to the $file_magic_cmd with a given extended regex.
3937 # If you have `file' or equivalent on your system and you're not sure
3938 # whether `pass_all' will *always* work, you probably want this one.
3939
3940 case $host_os in
3941 aix4* | aix5*)
3942   lt_cv_deplibs_check_method=pass_all
3943   ;;
3944
3945 beos*)
3946   lt_cv_deplibs_check_method=pass_all
3947   ;;
3948
3949 bsdi4*)
3950   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3951   lt_cv_file_magic_cmd='/usr/bin/file -L'
3952   lt_cv_file_magic_test_file=/shlib/libc.so
3953   ;;
3954
3955 cygwin* | mingw* | pw32*)
3956   # win32_libid is a shell function defined in ltmain.sh
3957   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3958   lt_cv_file_magic_cmd='win32_libid'
3959   ;;
3960
3961 darwin* | rhapsody*)
3962   # this will be overwritten by pass_all, but leave it in just in case
3963   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3964   lt_cv_file_magic_cmd='/usr/bin/file -L'
3965   case "$host_os" in
3966   rhapsody* | darwin1.[012])
3967     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3968     ;;
3969   *) # Darwin 1.3 on
3970     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3971     ;;
3972   esac
3973   lt_cv_deplibs_check_method=pass_all
3974   ;;
3975
3976 freebsd*)
3977   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3978     case $host_cpu in
3979     i*86 )
3980       # Not sure whether the presence of OpenBSD here was a mistake.
3981       # Let's accept both of them until this is cleared up.
3982       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3983       lt_cv_file_magic_cmd=/usr/bin/file
3984       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3985       ;;
3986     esac
3987   else
3988     lt_cv_deplibs_check_method=pass_all
3989   fi
3990   ;;
3991
3992 gnu*)
3993   lt_cv_deplibs_check_method=pass_all
3994   ;;
3995
3996 hpux10.20* | hpux11*)
3997   lt_cv_file_magic_cmd=/usr/bin/file
3998   case "$host_cpu" in
3999   ia64*)
4000     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4001     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4002     ;;
4003   hppa*64*)
4004     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4005     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4006     ;;
4007   *)
4008     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4009     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4010     ;;
4011   esac
4012   ;;
4013
4014 irix5* | irix6* | nonstopux*)
4015   case $host_os in
4016   irix5* | nonstopux*)
4017     # this will be overridden with pass_all, but let us keep it just in case
4018     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4019     ;;
4020   *)
4021     case $LD in
4022     *-32|*"-32 ") libmagic=32-bit;;
4023     *-n32|*"-n32 ") libmagic=N32;;
4024     *-64|*"-64 ") libmagic=64-bit;;
4025     *) libmagic=never-match;;
4026     esac
4027     # this will be overridden with pass_all, but let us keep it just in case
4028     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4029     ;;
4030   esac
4031   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4032   lt_cv_deplibs_check_method=pass_all
4033   ;;
4034
4035 # This must be Linux ELF.
4036 linux*)
4037   case $host_cpu in
4038   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh* | x86_64*)
4039     lt_cv_deplibs_check_method=pass_all ;;
4040   *)
4041     # glibc up to 2.1.1 does not perform some relocations on ARM
4042     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4043   esac
4044   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4045   ;;
4046
4047 netbsd*)
4048   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4049     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4050   else
4051     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4052   fi
4053   ;;
4054
4055 newos6*)
4056   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4057   lt_cv_file_magic_cmd=/usr/bin/file
4058   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4059   ;;
4060
4061 nto-qnx)
4062   lt_cv_deplibs_check_method=unknown
4063   ;;
4064
4065 openbsd*)
4066   lt_cv_file_magic_cmd=/usr/bin/file
4067   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4068   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4069     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4070   else
4071     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4072   fi
4073   ;;
4074
4075 osf3* | osf4* | osf5*)
4076   # this will be overridden with pass_all, but let us keep it just in case
4077   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4078   lt_cv_file_magic_test_file=/shlib/libc.so
4079   lt_cv_deplibs_check_method=pass_all
4080   ;;
4081
4082 sco3.2v5*)
4083   lt_cv_deplibs_check_method=pass_all
4084   ;;
4085
4086 solaris*)
4087   lt_cv_deplibs_check_method=pass_all
4088   lt_cv_file_magic_test_file=/lib/libc.so
4089   ;;
4090
4091 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4092   case $host_vendor in
4093   motorola)
4094     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]'
4095     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4096     ;;
4097   ncr)
4098     lt_cv_deplibs_check_method=pass_all
4099     ;;
4100   sequent)
4101     lt_cv_file_magic_cmd='/bin/file'
4102     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4103     ;;
4104   sni)
4105     lt_cv_file_magic_cmd='/bin/file'
4106     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4107     lt_cv_file_magic_test_file=/lib/libc.so
4108     ;;
4109   siemens)
4110     lt_cv_deplibs_check_method=pass_all
4111     ;;
4112   esac
4113   ;;
4114
4115 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4116   lt_cv_deplibs_check_method=pass_all
4117   ;;
4118 esac
4119
4120 fi
4121 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4122 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4123 file_magic_cmd=$lt_cv_file_magic_cmd
4124 deplibs_check_method=$lt_cv_deplibs_check_method
4125 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4126
4127
4128
4129
4130 # If no C compiler was specified, use CC.
4131 LTCC=${LTCC-"$CC"}
4132
4133 # Allow CC to be a program name with arguments.
4134 compiler=$CC
4135
4136 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4137 if test "${enable_libtool_lock+set}" = set; then
4138   enableval="$enable_libtool_lock"
4139
4140 fi;
4141 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4142
4143 # Some flags need to be propagated to the compiler or linker for good
4144 # libtool support.
4145 case $host in
4146 ia64-*-hpux*)
4147   # Find out which ABI we are using.
4148   echo 'int i;' > conftest.$ac_ext
4149   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4150   (eval $ac_compile) 2>&5
4151   ac_status=$?
4152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); }; then
4154     case `/usr/bin/file conftest.$ac_objext` in
4155     *ELF-32*)
4156       HPUX_IA64_MODE="32"
4157       ;;
4158     *ELF-64*)
4159       HPUX_IA64_MODE="64"
4160       ;;
4161     esac
4162   fi
4163   rm -rf conftest*
4164   ;;
4165 *-*-irix6*)
4166   # Find out which ABI we are using.
4167   echo '#line 4167 "configure"' > conftest.$ac_ext
4168   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4169   (eval $ac_compile) 2>&5
4170   ac_status=$?
4171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172   (exit $ac_status); }; then
4173    if test "$lt_cv_prog_gnu_ld" = yes; then
4174     case `/usr/bin/file conftest.$ac_objext` in
4175     *32-bit*)
4176       LD="${LD-ld} -melf32bsmip"
4177       ;;
4178     *N32*)
4179       LD="${LD-ld} -melf32bmipn32"
4180       ;;
4181     *64-bit*)
4182       LD="${LD-ld} -melf64bmip"
4183       ;;
4184     esac
4185    else
4186     case `/usr/bin/file conftest.$ac_objext` in
4187     *32-bit*)
4188       LD="${LD-ld} -32"
4189       ;;
4190     *N32*)
4191       LD="${LD-ld} -n32"
4192       ;;
4193     *64-bit*)
4194       LD="${LD-ld} -64"
4195       ;;
4196     esac
4197    fi
4198   fi
4199   rm -rf conftest*
4200   ;;
4201
4202 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4203   # Find out which ABI we are using.
4204   echo 'int i;' > conftest.$ac_ext
4205   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4206   (eval $ac_compile) 2>&5
4207   ac_status=$?
4208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209   (exit $ac_status); }; then
4210     case "`/usr/bin/file conftest.o`" in
4211     *32-bit*)
4212       case $host in
4213         x86_64-*linux*)
4214           LD="${LD-ld} -m elf_i386"
4215           ;;
4216         ppc64-*linux*)
4217           LD="${LD-ld} -m elf32ppclinux"
4218           ;;
4219         s390x-*linux*)
4220           LD="${LD-ld} -m elf_s390"
4221           ;;
4222         sparc64-*linux*)
4223           LD="${LD-ld} -m elf32_sparc"
4224           ;;
4225       esac
4226       ;;
4227     *64-bit*)
4228       case $host in
4229         x86_64-*linux*)
4230           LD="${LD-ld} -m elf_x86_64"
4231           ;;
4232         ppc*-*linux*|powerpc*-*linux*)
4233           LD="${LD-ld} -m elf64ppc"
4234           ;;
4235         s390*-*linux*)
4236           LD="${LD-ld} -m elf64_s390"
4237           ;;
4238         sparc*-*linux*)
4239           LD="${LD-ld} -m elf64_sparc"
4240           ;;
4241       esac
4242       ;;
4243     esac
4244   fi
4245   rm -rf conftest*
4246   ;;
4247
4248 *-*-sco3.2v5*)
4249   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4250   SAVE_CFLAGS="$CFLAGS"
4251   CFLAGS="$CFLAGS -belf"
4252   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4253 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4254 if test "${lt_cv_cc_needs_belf+set}" = set; then
4255   echo $ECHO_N "(cached) $ECHO_C" >&6
4256 else
4257   ac_ext=c
4258 ac_cpp='$CPP $CPPFLAGS'
4259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262
4263      cat >conftest.$ac_ext <<_ACEOF
4264 #line $LINENO "configure"
4265 /* confdefs.h.  */
4266 _ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h.  */
4270
4271 int
4272 main ()
4273 {
4274
4275   ;
4276   return 0;
4277 }
4278 _ACEOF
4279 rm -f conftest.$ac_objext conftest$ac_exeext
4280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4281   (eval $ac_link) 2>&5
4282   ac_status=$?
4283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284   (exit $ac_status); } &&
4285          { ac_try='test -s conftest$ac_exeext'
4286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4287   (eval $ac_try) 2>&5
4288   ac_status=$?
4289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290   (exit $ac_status); }; }; then
4291   lt_cv_cc_needs_belf=yes
4292 else
4293   echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4295
4296 lt_cv_cc_needs_belf=no
4297 fi
4298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4299      ac_ext=c
4300 ac_cpp='$CPP $CPPFLAGS'
4301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4304
4305 fi
4306 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4307 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4308   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4309     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4310     CFLAGS="$SAVE_CFLAGS"
4311   fi
4312   ;;
4313
4314 esac
4315
4316 need_locks="$enable_libtool_lock"
4317
4318
4319 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4320 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4321 if test "${ac_cv_header_stdc+set}" = set; then
4322   echo $ECHO_N "(cached) $ECHO_C" >&6
4323 else
4324   cat >conftest.$ac_ext <<_ACEOF
4325 #line $LINENO "configure"
4326 /* confdefs.h.  */
4327 _ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h.  */
4331 #include <stdlib.h>
4332 #include <stdarg.h>
4333 #include <string.h>
4334 #include <float.h>
4335
4336 int
4337 main ()
4338 {
4339
4340   ;
4341   return 0;
4342 }
4343 _ACEOF
4344 rm -f conftest.$ac_objext
4345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4346   (eval $ac_compile) 2>&5
4347   ac_status=$?
4348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349   (exit $ac_status); } &&
4350          { ac_try='test -s conftest.$ac_objext'
4351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352   (eval $ac_try) 2>&5
4353   ac_status=$?
4354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355   (exit $ac_status); }; }; then
4356   ac_cv_header_stdc=yes
4357 else
4358   echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.$ac_ext >&5
4360
4361 ac_cv_header_stdc=no
4362 fi
4363 rm -f conftest.$ac_objext conftest.$ac_ext
4364
4365 if test $ac_cv_header_stdc = yes; then
4366   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4367   cat >conftest.$ac_ext <<_ACEOF
4368 #line $LINENO "configure"
4369 /* confdefs.h.  */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h.  */
4374 #include <string.h>
4375
4376 _ACEOF
4377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4378   $EGREP "memchr" >/dev/null 2>&1; then
4379   :
4380 else
4381   ac_cv_header_stdc=no
4382 fi
4383 rm -f conftest*
4384
4385 fi
4386
4387 if test $ac_cv_header_stdc = yes; then
4388   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4389   cat >conftest.$ac_ext <<_ACEOF
4390 #line $LINENO "configure"
4391 /* confdefs.h.  */
4392 _ACEOF
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h.  */
4396 #include <stdlib.h>
4397
4398 _ACEOF
4399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4400   $EGREP "free" >/dev/null 2>&1; then
4401   :
4402 else
4403   ac_cv_header_stdc=no
4404 fi
4405 rm -f conftest*
4406
4407 fi
4408
4409 if test $ac_cv_header_stdc = yes; then
4410   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4411   if test "$cross_compiling" = yes; then
4412   :
4413 else
4414   cat >conftest.$ac_ext <<_ACEOF
4415 #line $LINENO "configure"
4416 /* confdefs.h.  */
4417 _ACEOF
4418 cat confdefs.h >>conftest.$ac_ext
4419 cat >>conftest.$ac_ext <<_ACEOF
4420 /* end confdefs.h.  */
4421 #include <ctype.h>
4422 #if ((' ' & 0x0FF) == 0x020)
4423 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4424 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4425 #else
4426 # define ISLOWER(c) \
4427                    (('a' <= (c) && (c) <= 'i') \
4428                      || ('j' <= (c) && (c) <= 'r') \
4429                      || ('s' <= (c) && (c) <= 'z'))
4430 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4431 #endif
4432
4433 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4434 int
4435 main ()
4436 {
4437   int i;
4438   for (i = 0; i < 256; i++)
4439     if (XOR (islower (i), ISLOWER (i))
4440         || toupper (i) != TOUPPER (i))
4441       exit(2);
4442   exit (0);
4443 }
4444 _ACEOF
4445 rm -f conftest$ac_exeext
4446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4447   (eval $ac_link) 2>&5
4448   ac_status=$?
4449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4452   (eval $ac_try) 2>&5
4453   ac_status=$?
4454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455   (exit $ac_status); }; }; then
4456   :
4457 else
4458   echo "$as_me: program exited with status $ac_status" >&5
4459 echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4461
4462 ( exit $ac_status )
4463 ac_cv_header_stdc=no
4464 fi
4465 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4466 fi
4467 fi
4468 fi
4469 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4470 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4471 if test $ac_cv_header_stdc = yes; then
4472
4473 cat >>confdefs.h <<\_ACEOF
4474 #define STDC_HEADERS 1
4475 _ACEOF
4476
4477 fi
4478
4479 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4490                   inttypes.h stdint.h unistd.h
4491 do
4492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4493 echo "$as_me:$LINENO: checking for $ac_header" >&5
4494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4496   echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498   cat >conftest.$ac_ext <<_ACEOF
4499 #line $LINENO "configure"
4500 /* confdefs.h.  */
4501 _ACEOF
4502 cat confdefs.h >>conftest.$ac_ext
4503 cat >>conftest.$ac_ext <<_ACEOF
4504 /* end confdefs.h.  */
4505 $ac_includes_default
4506
4507 #include <$ac_header>
4508 _ACEOF
4509 rm -f conftest.$ac_objext
4510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4511   (eval $ac_compile) 2>&5
4512   ac_status=$?
4513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514   (exit $ac_status); } &&
4515          { ac_try='test -s conftest.$ac_objext'
4516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517   (eval $ac_try) 2>&5
4518   ac_status=$?
4519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520   (exit $ac_status); }; }; then
4521   eval "$as_ac_Header=yes"
4522 else
4523   echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4525
4526 eval "$as_ac_Header=no"
4527 fi
4528 rm -f conftest.$ac_objext conftest.$ac_ext
4529 fi
4530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4533   cat >>confdefs.h <<_ACEOF
4534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4535 _ACEOF
4536
4537 fi
4538
4539 done
4540
4541
4542
4543 for ac_header in dlfcn.h
4544 do
4545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4547   echo "$as_me:$LINENO: checking for $ac_header" >&5
4548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4550   echo $ECHO_N "(cached) $ECHO_C" >&6
4551 fi
4552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4554 else
4555   # Is the header compilable?
4556 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4558 cat >conftest.$ac_ext <<_ACEOF
4559 #line $LINENO "configure"
4560 /* confdefs.h.  */
4561 _ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h.  */
4565 $ac_includes_default
4566 #include <$ac_header>
4567 _ACEOF
4568 rm -f conftest.$ac_objext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4570   (eval $ac_compile) 2>&5
4571   ac_status=$?
4572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573   (exit $ac_status); } &&
4574          { ac_try='test -s conftest.$ac_objext'
4575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576   (eval $ac_try) 2>&5
4577   ac_status=$?
4578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579   (exit $ac_status); }; }; then
4580   ac_header_compiler=yes
4581 else
4582   echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4584
4585 ac_header_compiler=no
4586 fi
4587 rm -f conftest.$ac_objext conftest.$ac_ext
4588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4589 echo "${ECHO_T}$ac_header_compiler" >&6
4590
4591 # Is the header present?
4592 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4594 cat >conftest.$ac_ext <<_ACEOF
4595 #line $LINENO "configure"
4596 /* confdefs.h.  */
4597 _ACEOF
4598 cat confdefs.h >>conftest.$ac_ext
4599 cat >>conftest.$ac_ext <<_ACEOF
4600 /* end confdefs.h.  */
4601 #include <$ac_header>
4602 _ACEOF
4603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4604   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4605   ac_status=$?
4606   grep -v '^ *+' conftest.er1 >conftest.err
4607   rm -f conftest.er1
4608   cat conftest.err >&5
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); } >/dev/null; then
4611   if test -s conftest.err; then
4612     ac_cpp_err=$ac_c_preproc_warn_flag
4613   else
4614     ac_cpp_err=
4615   fi
4616 else
4617   ac_cpp_err=yes
4618 fi
4619 if test -z "$ac_cpp_err"; then
4620   ac_header_preproc=yes
4621 else
4622   echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4624
4625   ac_header_preproc=no
4626 fi
4627 rm -f conftest.err conftest.$ac_ext
4628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4629 echo "${ECHO_T}$ac_header_preproc" >&6
4630
4631 # So?  What about this header?
4632 case $ac_header_compiler:$ac_header_preproc in
4633   yes:no )
4634     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4636     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4638     (
4639       cat <<\_ASBOX
4640 ## ------------------------------------ ##
4641 ## Report this to bug-autoconf@gnu.org. ##
4642 ## ------------------------------------ ##
4643 _ASBOX
4644     ) |
4645       sed "s/^/$as_me: WARNING:     /" >&2
4646     ;;
4647   no:yes )
4648     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4650     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4651 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4652     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4654     (
4655       cat <<\_ASBOX
4656 ## ------------------------------------ ##
4657 ## Report this to bug-autoconf@gnu.org. ##
4658 ## ------------------------------------ ##
4659 _ASBOX
4660     ) |
4661       sed "s/^/$as_me: WARNING:     /" >&2
4662     ;;
4663 esac
4664 echo "$as_me:$LINENO: checking for $ac_header" >&5
4665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4667   echo $ECHO_N "(cached) $ECHO_C" >&6
4668 else
4669   eval "$as_ac_Header=$ac_header_preproc"
4670 fi
4671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4672 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4673
4674 fi
4675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4676   cat >>confdefs.h <<_ACEOF
4677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4678 _ACEOF
4679
4680 fi
4681
4682 done
4683
4684 ac_ext=cc
4685 ac_cpp='$CXXCPP $CPPFLAGS'
4686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4689 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4690 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4691 if test -z "$CXXCPP"; then
4692   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4693   echo $ECHO_N "(cached) $ECHO_C" >&6
4694 else
4695       # Double quotes because CXXCPP needs to be expanded
4696     for CXXCPP in "$CXX -E" "/lib/cpp"
4697     do
4698       ac_preproc_ok=false
4699 for ac_cxx_preproc_warn_flag in '' yes
4700 do
4701   # Use a header file that comes with gcc, so configuring glibc
4702   # with a fresh cross-compiler works.
4703   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4704   # <limits.h> exists even on freestanding compilers.
4705   # On the NeXT, cc -E runs the code through the compiler's parser,
4706   # not just through cpp. "Syntax error" is here to catch this case.
4707   cat >conftest.$ac_ext <<_ACEOF
4708 #line $LINENO "configure"
4709 /* confdefs.h.  */
4710 _ACEOF
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h.  */
4714 #ifdef __STDC__
4715 # include <limits.h>
4716 #else
4717 # include <assert.h>
4718 #endif
4719                      Syntax error
4720 _ACEOF
4721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4722   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4723   ac_status=$?
4724   grep -v '^ *+' conftest.er1 >conftest.err
4725   rm -f conftest.er1
4726   cat conftest.err >&5
4727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728   (exit $ac_status); } >/dev/null; then
4729   if test -s conftest.err; then
4730     ac_cpp_err=$ac_cxx_preproc_warn_flag
4731   else
4732     ac_cpp_err=
4733   fi
4734 else
4735   ac_cpp_err=yes
4736 fi
4737 if test -z "$ac_cpp_err"; then
4738   :
4739 else
4740   echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4742
4743   # Broken: fails on valid input.
4744 continue
4745 fi
4746 rm -f conftest.err conftest.$ac_ext
4747
4748   # OK, works on sane cases.  Now check whether non-existent headers
4749   # can be detected and how.
4750   cat >conftest.$ac_ext <<_ACEOF
4751 #line $LINENO "configure"
4752 /* confdefs.h.  */
4753 _ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h.  */
4757 #include <ac_nonexistent.h>
4758 _ACEOF
4759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4760   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4761   ac_status=$?
4762   grep -v '^ *+' conftest.er1 >conftest.err
4763   rm -f conftest.er1
4764   cat conftest.err >&5
4765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766   (exit $ac_status); } >/dev/null; then
4767   if test -s conftest.err; then
4768     ac_cpp_err=$ac_cxx_preproc_warn_flag
4769   else
4770     ac_cpp_err=
4771   fi
4772 else
4773   ac_cpp_err=yes
4774 fi
4775 if test -z "$ac_cpp_err"; then
4776   # Broken: success on invalid input.
4777 continue
4778 else
4779   echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4781
4782   # Passes both tests.
4783 ac_preproc_ok=:
4784 break
4785 fi
4786 rm -f conftest.err conftest.$ac_ext
4787
4788 done
4789 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4790 rm -f conftest.err conftest.$ac_ext
4791 if $ac_preproc_ok; then
4792   break
4793 fi
4794
4795     done
4796     ac_cv_prog_CXXCPP=$CXXCPP
4797
4798 fi
4799   CXXCPP=$ac_cv_prog_CXXCPP
4800 else
4801   ac_cv_prog_CXXCPP=$CXXCPP
4802 fi
4803 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4804 echo "${ECHO_T}$CXXCPP" >&6
4805 ac_preproc_ok=false
4806 for ac_cxx_preproc_warn_flag in '' yes
4807 do
4808   # Use a header file that comes with gcc, so configuring glibc
4809   # with a fresh cross-compiler works.
4810   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4811   # <limits.h> exists even on freestanding compilers.
4812   # On the NeXT, cc -E runs the code through the compiler's parser,
4813   # not just through cpp. "Syntax error" is here to catch this case.
4814   cat >conftest.$ac_ext <<_ACEOF
4815 #line $LINENO "configure"
4816 /* confdefs.h.  */
4817 _ACEOF
4818 cat confdefs.h >>conftest.$ac_ext
4819 cat >>conftest.$ac_ext <<_ACEOF
4820 /* end confdefs.h.  */
4821 #ifdef __STDC__
4822 # include <limits.h>
4823 #else
4824 # include <assert.h>
4825 #endif
4826                      Syntax error
4827 _ACEOF
4828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4829   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4830   ac_status=$?
4831   grep -v '^ *+' conftest.er1 >conftest.err
4832   rm -f conftest.er1
4833   cat conftest.err >&5
4834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835   (exit $ac_status); } >/dev/null; then
4836   if test -s conftest.err; then
4837     ac_cpp_err=$ac_cxx_preproc_warn_flag
4838   else
4839     ac_cpp_err=
4840   fi
4841 else
4842   ac_cpp_err=yes
4843 fi
4844 if test -z "$ac_cpp_err"; then
4845   :
4846 else
4847   echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4849
4850   # Broken: fails on valid input.
4851 continue
4852 fi
4853 rm -f conftest.err conftest.$ac_ext
4854
4855   # OK, works on sane cases.  Now check whether non-existent headers
4856   # can be detected and how.
4857   cat >conftest.$ac_ext <<_ACEOF
4858 #line $LINENO "configure"
4859 /* confdefs.h.  */
4860 _ACEOF
4861 cat confdefs.h >>conftest.$ac_ext
4862 cat >>conftest.$ac_ext <<_ACEOF
4863 /* end confdefs.h.  */
4864 #include <ac_nonexistent.h>
4865 _ACEOF
4866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4867   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4868   ac_status=$?
4869   grep -v '^ *+' conftest.er1 >conftest.err
4870   rm -f conftest.er1
4871   cat conftest.err >&5
4872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873   (exit $ac_status); } >/dev/null; then
4874   if test -s conftest.err; then
4875     ac_cpp_err=$ac_cxx_preproc_warn_flag
4876   else
4877     ac_cpp_err=
4878   fi
4879 else
4880   ac_cpp_err=yes
4881 fi
4882 if test -z "$ac_cpp_err"; then
4883   # Broken: success on invalid input.
4884 continue
4885 else
4886   echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4888
4889   # Passes both tests.
4890 ac_preproc_ok=:
4891 break
4892 fi
4893 rm -f conftest.err conftest.$ac_ext
4894
4895 done
4896 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4897 rm -f conftest.err conftest.$ac_ext
4898 if $ac_preproc_ok; then
4899   :
4900 else
4901   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4902 See \`config.log' for more details." >&5
4903 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4904 See \`config.log' for more details." >&2;}
4905    { (exit 1); exit 1; }; }
4906 fi
4907
4908 ac_ext=cc
4909 ac_cpp='$CXXCPP $CPPFLAGS'
4910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4913
4914
4915 ac_ext=f
4916 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4917 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4918 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4919 if test -n "$ac_tool_prefix"; then
4920   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4921   do
4922     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4923 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4924 echo "$as_me:$LINENO: checking for $ac_word" >&5
4925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4926 if test "${ac_cv_prog_F77+set}" = set; then
4927   echo $ECHO_N "(cached) $ECHO_C" >&6
4928 else
4929   if test -n "$F77"; then
4930   ac_cv_prog_F77="$F77" # Let the user override the test.
4931 else
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4934 do
4935   IFS=$as_save_IFS
4936   test -z "$as_dir" && as_dir=.
4937   for ac_exec_ext in '' $ac_executable_extensions; do
4938   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4939     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4941     break 2
4942   fi
4943 done
4944 done
4945
4946 fi
4947 fi
4948 F77=$ac_cv_prog_F77
4949 if test -n "$F77"; then
4950   echo "$as_me:$LINENO: result: $F77" >&5
4951 echo "${ECHO_T}$F77" >&6
4952 else
4953   echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6
4955 fi
4956
4957     test -n "$F77" && break
4958   done
4959 fi
4960 if test -z "$F77"; then
4961   ac_ct_F77=$F77
4962   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4963 do
4964   # Extract the first word of "$ac_prog", so it can be a program name with args.
4965 set dummy $ac_prog; ac_word=$2
4966 echo "$as_me:$LINENO: checking for $ac_word" >&5
4967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4968 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4969   echo $ECHO_N "(cached) $ECHO_C" >&6
4970 else
4971   if test -n "$ac_ct_F77"; then
4972   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4973 else
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975 for as_dir in $PATH
4976 do
4977   IFS=$as_save_IFS
4978   test -z "$as_dir" && as_dir=.
4979   for ac_exec_ext in '' $ac_executable_extensions; do
4980   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4981     ac_cv_prog_ac_ct_F77="$ac_prog"
4982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4983     break 2
4984   fi
4985 done
4986 done
4987
4988 fi
4989 fi
4990 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4991 if test -n "$ac_ct_F77"; then
4992   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4993 echo "${ECHO_T}$ac_ct_F77" >&6
4994 else
4995   echo "$as_me:$LINENO: result: no" >&5
4996 echo "${ECHO_T}no" >&6
4997 fi
4998
4999   test -n "$ac_ct_F77" && break
5000 done
5001
5002   F77=$ac_ct_F77
5003 fi
5004
5005
5006 # Provide some information about the compiler.
5007 echo "$as_me:5007:" \
5008      "checking for Fortran 77 compiler version" >&5
5009 ac_compiler=`set X $ac_compile; echo $2`
5010 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5011   (eval $ac_compiler --version </dev/null >&5) 2>&5
5012   ac_status=$?
5013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014   (exit $ac_status); }
5015 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5016   (eval $ac_compiler -v </dev/null >&5) 2>&5
5017   ac_status=$?
5018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019   (exit $ac_status); }
5020 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5021   (eval $ac_compiler -V </dev/null >&5) 2>&5
5022   ac_status=$?
5023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024   (exit $ac_status); }
5025
5026 # If we don't use `.F' as extension, the preprocessor is not run on the
5027 # input file.
5028 ac_save_ext=$ac_ext
5029 ac_ext=F
5030 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5031 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5032 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5033   echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035   cat >conftest.$ac_ext <<_ACEOF
5036       program main
5037 #ifndef __GNUC__
5038        choke me
5039 #endif
5040
5041       end
5042 _ACEOF
5043 rm -f conftest.$ac_objext
5044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5045   (eval $ac_compile) 2>&5
5046   ac_status=$?
5047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048   (exit $ac_status); } &&
5049          { ac_try='test -s conftest.$ac_objext'
5050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051   (eval $ac_try) 2>&5
5052   ac_status=$?
5053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054   (exit $ac_status); }; }; then
5055   ac_compiler_gnu=yes
5056 else
5057   echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5059
5060 ac_compiler_gnu=no
5061 fi
5062 rm -f conftest.$ac_objext conftest.$ac_ext
5063 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5064
5065 fi
5066 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5067 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5068 ac_ext=$ac_save_ext
5069 G77=`test $ac_compiler_gnu = yes && echo yes`
5070 ac_test_FFLAGS=${FFLAGS+set}
5071 ac_save_FFLAGS=$FFLAGS
5072 FFLAGS=
5073 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5074 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5075 if test "${ac_cv_prog_f77_g+set}" = set; then
5076   echo $ECHO_N "(cached) $ECHO_C" >&6
5077 else
5078   FFLAGS=-g
5079 cat >conftest.$ac_ext <<_ACEOF
5080       program main
5081
5082       end
5083 _ACEOF
5084 rm -f conftest.$ac_objext
5085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5086   (eval $ac_compile) 2>&5
5087   ac_status=$?
5088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089   (exit $ac_status); } &&
5090          { ac_try='test -s conftest.$ac_objext'
5091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092   (eval $ac_try) 2>&5
5093   ac_status=$?
5094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095   (exit $ac_status); }; }; then
5096   ac_cv_prog_f77_g=yes
5097 else
5098   echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.$ac_ext >&5
5100
5101 ac_cv_prog_f77_g=no
5102 fi
5103 rm -f conftest.$ac_objext conftest.$ac_ext
5104
5105 fi
5106 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5107 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5108 if test "$ac_test_FFLAGS" = set; then
5109   FFLAGS=$ac_save_FFLAGS
5110 elif test $ac_cv_prog_f77_g = yes; then
5111   if test "$G77" = yes; then
5112     FFLAGS="-g -O2"
5113   else
5114     FFLAGS="-g"
5115   fi
5116 else
5117   if test "$G77" = yes; then
5118     FFLAGS="-O2"
5119   else
5120     FFLAGS=
5121   fi
5122 fi
5123 ac_ext=c
5124 ac_cpp='$CPP $CPPFLAGS'
5125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5128
5129
5130
5131 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5132
5133 # find the maximum length of command line arguments
5134 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5135 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5136 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5137   echo $ECHO_N "(cached) $ECHO_C" >&6
5138 else
5139     i=0
5140   testring="ABCD"
5141
5142   case $build_os in
5143   msdosdjgpp*)
5144     # On DJGPP, this test can blow up pretty badly due to problems in libc
5145     # (any single argument exceeding 2000 bytes causes a buffer overrun
5146     # during glob expansion).  Even if it were fixed, the result of this
5147     # check would be larger than it should be.
5148     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5149     ;;
5150
5151   gnu*)
5152     # Under GNU Hurd, this test is not required because there is
5153     # no limit to the length of command line arguments.
5154     # Libtool will interpret -1 as no limit whatsoever
5155     lt_cv_sys_max_cmd_len=-1;
5156     ;;
5157
5158   cygwin* | mingw*)
5159     # On Win9x/ME, this test blows up -- it succeeds, but takes
5160     # about 5 minutes as the teststring grows exponentially.
5161     # Worse, since 9x/ME are not pre-emptively multitasking,
5162     # you end up with a "frozen" computer, even though with patience
5163     # the test eventually succeeds (with a max line length of 256k).
5164     # Instead, let's just punt: use the minimum linelength reported by
5165     # all of the supported platforms: 8192 (on NT/2K/XP).
5166     lt_cv_sys_max_cmd_len=8192;
5167     ;;
5168
5169  *)
5170     # If test is not a shell built-in, we'll probably end up computing a
5171     # maximum length that is only half of the actual maximum length, but
5172     # we can't tell.
5173     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5174                = "XX$testring") >/dev/null 2>&1 &&
5175             new_result=`expr "X$testring" : ".*" 2>&1` &&
5176             lt_cv_sys_max_cmd_len=$new_result &&
5177             test $i != 17 # 1/2 MB should be enough
5178     do
5179       i=`expr $i + 1`
5180       testring=$testring$testring
5181     done
5182     testring=
5183     # Add a significant safety factor because C++ compilers can tack on massive
5184     # amounts of additional arguments before passing them to the linker.
5185     # It appears as though 1/2 is a usable value.
5186     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5187     ;;
5188   esac
5189
5190 fi
5191
5192 if test -n $lt_cv_sys_max_cmd_len ; then
5193   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5194 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5195 else
5196   echo "$as_me:$LINENO: result: none" >&5
5197 echo "${ECHO_T}none" >&6
5198 fi
5199
5200
5201
5202
5203 # Check for command to grab the raw symbol name followed by C symbol from nm.
5204 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5205 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5206 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5207   echo $ECHO_N "(cached) $ECHO_C" >&6
5208 else
5209
5210 # These are sane defaults that work on at least a few old systems.
5211 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5212
5213 # Character class describing NM global symbol codes.
5214 symcode='[BCDEGRST]'
5215
5216 # Regexp to match symbols that can be accessed directly from C.
5217 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5218
5219 # Transform the above into a raw symbol and a C symbol.
5220 symxfrm='\1 \2\3 \3'
5221
5222 # Transform an extracted symbol line into a proper C declaration
5223 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5224
5225 # Transform an extracted symbol line into symbol name and symbol address
5226 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5227
5228 # Define system-specific variables.
5229 case $host_os in
5230 aix*)
5231   symcode='[BCDT]'
5232   ;;
5233 cygwin* | mingw* | pw32*)
5234   symcode='[ABCDGISTW]'
5235   ;;
5236 hpux*) # Its linker distinguishes data from code symbols
5237   if test "$host_cpu" = ia64; then
5238     symcode='[ABCDEGRST]'
5239   fi
5240   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5241   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5242   ;;
5243 irix* | nonstopux*)
5244   symcode='[BCDEGRST]'
5245   ;;
5246 osf*)
5247   symcode='[BCDEGQRST]'
5248   ;;
5249 solaris* | sysv5*)
5250   symcode='[BDRT]'
5251   ;;
5252 sysv4)
5253   symcode='[DFNSTU]'
5254   ;;
5255 esac
5256
5257 # Handle CRLF in mingw tool chain
5258 opt_cr=
5259 case $build_os in
5260 mingw*)
5261   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5262   ;;
5263 esac
5264
5265 # If we're using GNU nm, then use its standard symbol codes.
5266 case `$NM -V 2>&1` in
5267 *GNU* | *'with BFD'*)
5268   symcode='[ABCDGIRSTW]' ;;
5269 esac
5270
5271 # Try without a prefix undercore, then with it.
5272 for ac_symprfx in "" "_"; do
5273
5274   # Write the raw and C identifiers.
5275   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5276
5277   # Check to see that the pipe works correctly.
5278   pipe_works=no
5279
5280   rm -f conftest*
5281   cat > conftest.$ac_ext <<EOF
5282 #ifdef __cplusplus
5283 extern "C" {
5284 #endif
5285 char nm_test_var;
5286 void nm_test_func(){}
5287 #ifdef __cplusplus
5288 }
5289 #endif
5290 int main(){nm_test_var='a';nm_test_func();return(0);}
5291 EOF
5292
5293   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5294   (eval $ac_compile) 2>&5
5295   ac_status=$?
5296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297   (exit $ac_status); }; then
5298     # Now try to grab the symbols.
5299     nlist=conftest.nm
5300     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5301   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5302   ac_status=$?
5303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304   (exit $ac_status); } && test -s "$nlist"; then
5305       # Try sorting and uniquifying the output.
5306       if sort "$nlist" | uniq > "$nlist"T; then
5307         mv -f "$nlist"T "$nlist"
5308       else
5309         rm -f "$nlist"T
5310       fi
5311
5312       # Make sure that we snagged all the symbols we need.
5313       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5314         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5315           cat <<EOF > conftest.$ac_ext
5316 #ifdef __cplusplus
5317 extern "C" {
5318 #endif
5319
5320 EOF
5321           # Now generate the symbol file.
5322           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5323
5324           cat <<EOF >> conftest.$ac_ext
5325 #if defined (__STDC__) && __STDC__
5326 # define lt_ptr_t void *
5327 #else
5328 # define lt_ptr_t char *
5329 # define const
5330 #endif
5331
5332 /* The mapping between symbol names and symbols. */
5333 const struct {
5334   const char *name;
5335   lt_ptr_t address;
5336 }
5337 lt_preloaded_symbols[] =
5338 {
5339 EOF
5340           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5341           cat <<\EOF >> conftest.$ac_ext
5342   {0, (lt_ptr_t) 0}
5343 };
5344
5345 #ifdef __cplusplus
5346 }
5347 #endif
5348 EOF
5349           # Now try linking the two files.
5350           mv conftest.$ac_objext conftstm.$ac_objext
5351           lt_save_LIBS="$LIBS"
5352           lt_save_CFLAGS="$CFLAGS"
5353           LIBS="conftstm.$ac_objext"
5354           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5355           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5356   (eval $ac_link) 2>&5
5357   ac_status=$?
5358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5360             pipe_works=yes
5361           fi
5362           LIBS="$lt_save_LIBS"
5363           CFLAGS="$lt_save_CFLAGS"
5364         else
5365           echo "cannot find nm_test_func in $nlist" >&5
5366         fi
5367       else
5368         echo "cannot find nm_test_var in $nlist" >&5
5369       fi
5370     else
5371       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5372     fi
5373   else
5374     echo "$progname: failed program was:" >&5
5375     cat conftest.$ac_ext >&5
5376   fi
5377   rm -f conftest* conftst*
5378
5379   # Do not use the global_symbol_pipe unless it works.
5380   if test "$pipe_works" = yes; then
5381     break
5382   else
5383     lt_cv_sys_global_symbol_pipe=
5384   fi
5385 done
5386
5387 fi
5388
5389 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5390   lt_cv_sys_global_symbol_to_cdecl=
5391 fi
5392 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5393   echo "$as_me:$LINENO: result: failed" >&5
5394 echo "${ECHO_T}failed" >&6
5395 else
5396   echo "$as_me:$LINENO: result: ok" >&5
5397 echo "${ECHO_T}ok" >&6
5398 fi
5399
5400 echo "$as_me:$LINENO: checking for objdir" >&5
5401 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5402 if test "${lt_cv_objdir+set}" = set; then
5403   echo $ECHO_N "(cached) $ECHO_C" >&6
5404 else
5405   rm -f .libs 2>/dev/null
5406 mkdir .libs 2>/dev/null
5407 if test -d .libs; then
5408   lt_cv_objdir=.libs
5409 else
5410   # MS-DOS does not allow filenames that begin with a dot.
5411   lt_cv_objdir=_libs
5412 fi
5413 rmdir .libs 2>/dev/null
5414 fi
5415 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5416 echo "${ECHO_T}$lt_cv_objdir" >&6
5417 objdir=$lt_cv_objdir
5418
5419
5420
5421
5422
5423 case $host_os in
5424 aix3*)
5425   # AIX sometimes has problems with the GCC collect2 program.  For some
5426   # reason, if we set the COLLECT_NAMES environment variable, the problems
5427   # vanish in a puff of smoke.
5428   if test "X${COLLECT_NAMES+set}" != Xset; then
5429     COLLECT_NAMES=
5430     export COLLECT_NAMES
5431   fi
5432   ;;
5433 esac
5434
5435 # Sed substitution that helps us do robust quoting.  It backslashifies
5436 # metacharacters that are still active within double-quoted strings.
5437 Xsed='sed -e s/^X//'
5438 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5439
5440 # Same as above, but do not quote variable references.
5441 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5442
5443 # Sed substitution to delay expansion of an escaped shell variable in a
5444 # double_quote_subst'ed string.
5445 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5446
5447 # Sed substitution to avoid accidental globbing in evaled expressions
5448 no_glob_subst='s/\*/\\\*/g'
5449
5450 # Constants:
5451 rm="rm -f"
5452
5453 # Global variables:
5454 default_ofile=libtool
5455 can_build_shared=yes
5456
5457 # All known linkers require a `.a' archive for static linking (except M$VC,
5458 # which needs '.lib').
5459 libext=a
5460 ltmain="$ac_aux_dir/ltmain.sh"
5461 ofile="$default_ofile"
5462 with_gnu_ld="$lt_cv_prog_gnu_ld"
5463
5464 if test -n "$ac_tool_prefix"; then
5465   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5466 set dummy ${ac_tool_prefix}ar; ac_word=$2
5467 echo "$as_me:$LINENO: checking for $ac_word" >&5
5468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5469 if test "${ac_cv_prog_AR+set}" = set; then
5470   echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472   if test -n "$AR"; then
5473   ac_cv_prog_AR="$AR" # Let the user override the test.
5474 else
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH
5477 do
5478   IFS=$as_save_IFS
5479   test -z "$as_dir" && as_dir=.
5480   for ac_exec_ext in '' $ac_executable_extensions; do
5481   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5482     ac_cv_prog_AR="${ac_tool_prefix}ar"
5483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5484     break 2
5485   fi
5486 done
5487 done
5488
5489 fi
5490 fi
5491 AR=$ac_cv_prog_AR
5492 if test -n "$AR"; then
5493   echo "$as_me:$LINENO: result: $AR" >&5
5494 echo "${ECHO_T}$AR" >&6
5495 else
5496   echo "$as_me:$LINENO: result: no" >&5
5497 echo "${ECHO_T}no" >&6
5498 fi
5499
5500 fi
5501 if test -z "$ac_cv_prog_AR"; then
5502   ac_ct_AR=$AR
5503   # Extract the first word of "ar", so it can be a program name with args.
5504 set dummy ar; ac_word=$2
5505 echo "$as_me:$LINENO: checking for $ac_word" >&5
5506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5507 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5508   echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510   if test -n "$ac_ct_AR"; then
5511   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5512 else
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5515 do
5516   IFS=$as_save_IFS
5517   test -z "$as_dir" && as_dir=.
5518   for ac_exec_ext in '' $ac_executable_extensions; do
5519   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520     ac_cv_prog_ac_ct_AR="ar"
5521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522     break 2
5523   fi
5524 done
5525 done
5526
5527   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5528 fi
5529 fi
5530 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5531 if test -n "$ac_ct_AR"; then
5532   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5533 echo "${ECHO_T}$ac_ct_AR" >&6
5534 else
5535   echo "$as_me:$LINENO: result: no" >&5
5536 echo "${ECHO_T}no" >&6
5537 fi
5538
5539   AR=$ac_ct_AR
5540 else
5541   AR="$ac_cv_prog_AR"
5542 fi
5543
5544 if test -n "$ac_tool_prefix"; then
5545   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5546 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5547 echo "$as_me:$LINENO: checking for $ac_word" >&5
5548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5549 if test "${ac_cv_prog_RANLIB+set}" = set; then
5550   echo $ECHO_N "(cached) $ECHO_C" >&6
5551 else
5552   if test -n "$RANLIB"; then
5553   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5554 else
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 for as_dir in $PATH
5557 do
5558   IFS=$as_save_IFS
5559   test -z "$as_dir" && as_dir=.
5560   for ac_exec_ext in '' $ac_executable_extensions; do
5561   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5562     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5564     break 2
5565   fi
5566 done
5567 done
5568
5569 fi
5570 fi
5571 RANLIB=$ac_cv_prog_RANLIB
5572 if test -n "$RANLIB"; then
5573   echo "$as_me:$LINENO: result: $RANLIB" >&5
5574 echo "${ECHO_T}$RANLIB" >&6
5575 else
5576   echo "$as_me:$LINENO: result: no" >&5
5577 echo "${ECHO_T}no" >&6
5578 fi
5579
5580 fi
5581 if test -z "$ac_cv_prog_RANLIB"; then
5582   ac_ct_RANLIB=$RANLIB
5583   # Extract the first word of "ranlib", so it can be a program name with args.
5584 set dummy ranlib; ac_word=$2
5585 echo "$as_me:$LINENO: checking for $ac_word" >&5
5586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5587 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5588   echo $ECHO_N "(cached) $ECHO_C" >&6
5589 else
5590   if test -n "$ac_ct_RANLIB"; then
5591   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5592 else
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH
5595 do
5596   IFS=$as_save_IFS
5597   test -z "$as_dir" && as_dir=.
5598   for ac_exec_ext in '' $ac_executable_extensions; do
5599   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600     ac_cv_prog_ac_ct_RANLIB="ranlib"
5601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5602     break 2
5603   fi
5604 done
5605 done
5606
5607   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5608 fi
5609 fi
5610 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5611 if test -n "$ac_ct_RANLIB"; then
5612   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5613 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5614 else
5615   echo "$as_me:$LINENO: result: no" >&5
5616 echo "${ECHO_T}no" >&6
5617 fi
5618
5619   RANLIB=$ac_ct_RANLIB
5620 else
5621   RANLIB="$ac_cv_prog_RANLIB"
5622 fi
5623
5624 if test -n "$ac_tool_prefix"; then
5625   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5626 set dummy ${ac_tool_prefix}strip; ac_word=$2
5627 echo "$as_me:$LINENO: checking for $ac_word" >&5
5628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5629 if test "${ac_cv_prog_STRIP+set}" = set; then
5630   echo $ECHO_N "(cached) $ECHO_C" >&6
5631 else
5632   if test -n "$STRIP"; then
5633   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5634 else
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 for as_dir in $PATH
5637 do
5638   IFS=$as_save_IFS
5639   test -z "$as_dir" && as_dir=.
5640   for ac_exec_ext in '' $ac_executable_extensions; do
5641   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5642     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5644     break 2
5645   fi
5646 done
5647 done
5648
5649 fi
5650 fi
5651 STRIP=$ac_cv_prog_STRIP
5652 if test -n "$STRIP"; then
5653   echo "$as_me:$LINENO: result: $STRIP" >&5
5654 echo "${ECHO_T}$STRIP" >&6
5655 else
5656   echo "$as_me:$LINENO: result: no" >&5
5657 echo "${ECHO_T}no" >&6
5658 fi
5659
5660 fi
5661 if test -z "$ac_cv_prog_STRIP"; then
5662   ac_ct_STRIP=$STRIP
5663   # Extract the first word of "strip", so it can be a program name with args.
5664 set dummy strip; ac_word=$2
5665 echo "$as_me:$LINENO: checking for $ac_word" >&5
5666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5667 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5668   echo $ECHO_N "(cached) $ECHO_C" >&6
5669 else
5670   if test -n "$ac_ct_STRIP"; then
5671   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5672 else
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 for as_dir in $PATH
5675 do
5676   IFS=$as_save_IFS
5677   test -z "$as_dir" && as_dir=.
5678   for ac_exec_ext in '' $ac_executable_extensions; do
5679   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5680     ac_cv_prog_ac_ct_STRIP="strip"
5681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5682     break 2
5683   fi
5684 done
5685 done
5686
5687   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5688 fi
5689 fi
5690 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5691 if test -n "$ac_ct_STRIP"; then
5692   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5693 echo "${ECHO_T}$ac_ct_STRIP" >&6
5694 else
5695   echo "$as_me:$LINENO: result: no" >&5
5696 echo "${ECHO_T}no" >&6
5697 fi
5698
5699   STRIP=$ac_ct_STRIP
5700 else
5701   STRIP="$ac_cv_prog_STRIP"
5702 fi
5703
5704
5705 old_CC="$CC"
5706 old_CFLAGS="$CFLAGS"
5707
5708 # Set sane defaults for various variables
5709 test -z "$AR" && AR=ar
5710 test -z "$AR_FLAGS" && AR_FLAGS=cru
5711 test -z "$AS" && AS=as
5712 test -z "$CC" && CC=cc
5713 test -z "$LTCC" && LTCC=$CC
5714 test -z "$DLLTOOL" && DLLTOOL=dlltool
5715 test -z "$LD" && LD=ld
5716 test -z "$LN_S" && LN_S="ln -s"
5717 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5718 test -z "$NM" && NM=nm
5719 test -z "$SED" && SED=sed
5720 test -z "$OBJDUMP" && OBJDUMP=objdump
5721 test -z "$RANLIB" && RANLIB=:
5722 test -z "$STRIP" && STRIP=:
5723 test -z "$ac_objext" && ac_objext=o
5724
5725 # Determine commands to create old-style static archives.
5726 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5727 old_postinstall_cmds='chmod 644 $oldlib'
5728 old_postuninstall_cmds=
5729
5730 if test -n "$RANLIB"; then
5731   case $host_os in
5732   openbsd*)
5733     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5734     ;;
5735   *)
5736     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5737     ;;
5738   esac
5739   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5740 fi
5741
5742 # Only perform the check for file, if the check method requires it
5743 case $deplibs_check_method in
5744 file_magic*)
5745   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5746     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5747 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5748 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5749   echo $ECHO_N "(cached) $ECHO_C" >&6
5750 else
5751   case $MAGIC_CMD in
5752 [\\/*] |  ?:[\\/]*)
5753   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5754   ;;
5755 *)
5756   lt_save_MAGIC_CMD="$MAGIC_CMD"
5757   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5758   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5759   for ac_dir in $ac_dummy; do
5760     IFS="$lt_save_ifs"
5761     test -z "$ac_dir" && ac_dir=.
5762     if test -f $ac_dir/${ac_tool_prefix}file; then
5763       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5764       if test -n "$file_magic_test_file"; then
5765         case $deplibs_check_method in
5766         "file_magic "*)
5767           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5768           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5769           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5770             $EGREP "$file_magic_regex" > /dev/null; then
5771             :
5772           else
5773             cat <<EOF 1>&2
5774
5775 *** Warning: the command libtool uses to detect shared libraries,
5776 *** $file_magic_cmd, produces output that libtool cannot recognize.
5777 *** The result is that libtool may fail to recognize shared libraries
5778 *** as such.  This will affect the creation of libtool libraries that
5779 *** depend on shared libraries, but programs linked with such libtool
5780 *** libraries will work regardless of this problem.  Nevertheless, you
5781 *** may want to report the problem to your system manager and/or to
5782 *** bug-libtool@gnu.org
5783
5784 EOF
5785           fi ;;
5786         esac
5787       fi
5788       break
5789     fi
5790   done
5791   IFS="$lt_save_ifs"
5792   MAGIC_CMD="$lt_save_MAGIC_CMD"
5793   ;;
5794 esac
5795 fi
5796
5797 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5798 if test -n "$MAGIC_CMD"; then
5799   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5800 echo "${ECHO_T}$MAGIC_CMD" >&6
5801 else
5802   echo "$as_me:$LINENO: result: no" >&5
5803 echo "${ECHO_T}no" >&6
5804 fi
5805
5806 if test -z "$lt_cv_path_MAGIC_CMD"; then
5807   if test -n "$ac_tool_prefix"; then
5808     echo "$as_me:$LINENO: checking for file" >&5
5809 echo $ECHO_N "checking for file... $ECHO_C" >&6
5810 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5811   echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813   case $MAGIC_CMD in
5814 [\\/*] |  ?:[\\/]*)
5815   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5816   ;;
5817 *)
5818   lt_save_MAGIC_CMD="$MAGIC_CMD"
5819   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5820   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5821   for ac_dir in $ac_dummy; do
5822     IFS="$lt_save_ifs"
5823     test -z "$ac_dir" && ac_dir=.
5824     if test -f $ac_dir/file; then
5825       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5826       if test -n "$file_magic_test_file"; then
5827         case $deplibs_check_method in
5828         "file_magic "*)
5829           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5830           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5831           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5832             $EGREP "$file_magic_regex" > /dev/null; then
5833             :
5834           else
5835             cat <<EOF 1>&2
5836
5837 *** Warning: the command libtool uses to detect shared libraries,
5838 *** $file_magic_cmd, produces output that libtool cannot recognize.
5839 *** The result is that libtool may fail to recognize shared libraries
5840 *** as such.  This will affect the creation of libtool libraries that
5841 *** depend on shared libraries, but programs linked with such libtool
5842 *** libraries will work regardless of this problem.  Nevertheless, you
5843 *** may want to report the problem to your system manager and/or to
5844 *** bug-libtool@gnu.org
5845
5846 EOF
5847           fi ;;
5848         esac
5849       fi
5850       break
5851     fi
5852   done
5853   IFS="$lt_save_ifs"
5854   MAGIC_CMD="$lt_save_MAGIC_CMD"
5855   ;;
5856 esac
5857 fi
5858
5859 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5860 if test -n "$MAGIC_CMD"; then
5861   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5862 echo "${ECHO_T}$MAGIC_CMD" >&6
5863 else
5864   echo "$as_me:$LINENO: result: no" >&5
5865 echo "${ECHO_T}no" >&6
5866 fi
5867
5868   else
5869     MAGIC_CMD=:
5870   fi
5871 fi
5872
5873   fi
5874   ;;
5875 esac
5876
5877 enable_dlopen=no
5878 enable_win32_dll=no
5879
5880 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5881 if test "${enable_libtool_lock+set}" = set; then
5882   enableval="$enable_libtool_lock"
5883
5884 fi;
5885 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5886
5887
5888 # Check whether --with-pic or --without-pic was given.
5889 if test "${with_pic+set}" = set; then
5890   withval="$with_pic"
5891   pic_mode="$withval"
5892 else
5893   pic_mode=default
5894 fi;
5895 test -z "$pic_mode" && pic_mode=default
5896
5897 # Use C for the default configuration in the libtool script
5898 tagname=
5899 lt_save_CC="$CC"
5900 ac_ext=c
5901 ac_cpp='$CPP $CPPFLAGS'
5902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5905
5906
5907 # Source file extension for C test sources.
5908 ac_ext=c
5909
5910 # Object file extension for compiled C test sources.
5911 objext=o
5912 objext=$objext
5913
5914 # Code to be used in simple compile tests
5915 lt_simple_compile_test_code="int some_variable = 0;\n"
5916
5917 # Code to be used in simple link tests
5918 lt_simple_link_test_code='int main(){return(0);}\n'
5919
5920
5921 # If no C compiler was specified, use CC.
5922 LTCC=${LTCC-"$CC"}
5923
5924 # Allow CC to be a program name with arguments.
5925 compiler=$CC
5926
5927
5928 #
5929 # Check for any special shared library compilation flags.
5930 #
5931 lt_prog_cc_shlib=
5932 if test "$GCC" = no; then
5933   case $host_os in
5934   sco3.2v5*)
5935     lt_prog_cc_shlib='-belf'
5936     ;;
5937   esac
5938 fi
5939 if test -n "$lt_prog_cc_shlib"; then
5940   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5941 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5942   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5943   else
5944     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5945 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5946     lt_cv_prog_cc_can_build_shared=no
5947   fi
5948 fi
5949
5950
5951 #
5952 # Check to make sure the static flag actually works.
5953 #
5954 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5955 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5956 if test "${lt_prog_compiler_static_works+set}" = set; then
5957   echo $ECHO_N "(cached) $ECHO_C" >&6
5958 else
5959   lt_prog_compiler_static_works=no
5960    save_LDFLAGS="$LDFLAGS"
5961    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5962    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5963    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5964      # The compiler can only warn and ignore the option if not recognized
5965      # So say no if there are warnings
5966      if test -s conftest.err; then
5967        # Append any errors to the config.log.
5968        cat conftest.err 1>&5
5969      else
5970        lt_prog_compiler_static_works=yes
5971      fi
5972    fi
5973    $rm conftest*
5974    LDFLAGS="$save_LDFLAGS"
5975
5976 fi
5977 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5978 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5979
5980 if test x"$lt_prog_compiler_static_works" = xyes; then
5981     :
5982 else
5983     lt_prog_compiler_static=
5984 fi
5985
5986
5987
5988
5989 lt_prog_compiler_no_builtin_flag=
5990
5991 if test "$GCC" = yes; then
5992   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5993
5994   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5995 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5996 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5997   echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999   lt_cv_prog_compiler_rtti_exceptions=no
6000   ac_outfile=conftest.$ac_objext
6001    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6002    lt_compiler_flag="-fno-rtti -fno-exceptions"
6003    # Insert the option either (1) after the last *FLAGS variable, or
6004    # (2) before a word containing "conftest.", or (3) at the end.
6005    # Note that $ac_compile itself does not contain backslashes and begins
6006    # with a dollar sign (not a hyphen), so the echo should work correctly.
6007    # The option is referenced via a variable to avoid confusing sed.
6008    lt_compile=`echo "$ac_compile" | $SED \
6009    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6010    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6011    -e 's:$: $lt_compiler_flag:'`
6012    (eval echo "\"\$as_me:6012: $lt_compile\"" >&5)
6013    (eval "$lt_compile" 2>conftest.err)
6014    ac_status=$?
6015    cat conftest.err >&5
6016    echo "$as_me:6016: \$? = $ac_status" >&5
6017    if (exit $ac_status) && test -s "$ac_outfile"; then
6018      # The compiler can only warn and ignore the option if not recognized
6019      # So say no if there are warnings
6020      if test ! -s conftest.err; then
6021        lt_cv_prog_compiler_rtti_exceptions=yes
6022      fi
6023    fi
6024    $rm conftest*
6025
6026 fi
6027 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6028 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6029
6030 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6031     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6032 else
6033     :
6034 fi
6035
6036 fi
6037
6038 lt_prog_compiler_wl=
6039 lt_prog_compiler_pic=
6040 lt_prog_compiler_static=
6041
6042 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6043 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6044
6045   if test "$GCC" = yes; then
6046     lt_prog_compiler_wl='-Wl,'
6047     lt_prog_compiler_static='-static'
6048
6049     case $host_os in
6050       aix*)
6051       # All AIX code is PIC.
6052       if test "$host_cpu" = ia64; then
6053         # AIX 5 now supports IA64 processor
6054         lt_prog_compiler_static='-Bstatic'
6055       fi
6056       ;;
6057
6058     amigaos*)
6059       # FIXME: we need at least 68020 code to build shared libraries, but
6060       # adding the `-m68020' flag to GCC prevents building anything better,
6061       # like `-m68040'.
6062       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6063       ;;
6064
6065     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6066       # PIC is the default for these OSes.
6067       ;;
6068
6069     mingw* | pw32* | os2*)
6070       # This hack is so that the source file can tell whether it is being
6071       # built for inclusion in a dll (and should export symbols for example).
6072       lt_prog_compiler_pic='-DDLL_EXPORT'
6073       ;;
6074
6075     darwin* | rhapsody*)
6076       # PIC is the default on this platform
6077       # Common symbols not allowed in MH_DYLIB files
6078       lt_prog_compiler_pic='-fno-common'
6079       ;;
6080
6081     msdosdjgpp*)
6082       # Just because we use GCC doesn't mean we suddenly get shared libraries
6083       # on systems that don't support them.
6084       lt_prog_compiler_can_build_shared=no
6085       enable_shared=no
6086       ;;
6087
6088     sysv4*MP*)
6089       if test -d /usr/nec; then
6090         lt_prog_compiler_pic=-Kconform_pic
6091       fi
6092       ;;
6093
6094     hpux*)
6095       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6096       # not for PA HP-UX.
6097       case "$host_cpu" in
6098       hppa*64*|ia64*)
6099         # +Z the default
6100         ;;
6101       *)
6102         lt_prog_compiler_pic='-fPIC'
6103         ;;
6104       esac
6105       ;;
6106
6107     *)
6108       lt_prog_compiler_pic='-fPIC'
6109       ;;
6110     esac
6111   else
6112     # PORTME Check for flag to pass linker flags through the system compiler.
6113     case $host_os in
6114     aix*)
6115       lt_prog_compiler_wl='-Wl,'
6116       if test "$host_cpu" = ia64; then
6117         # AIX 5 now supports IA64 processor
6118         lt_prog_compiler_static='-Bstatic'
6119       else
6120         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6121       fi
6122       ;;
6123
6124     mingw* | pw32* | os2*)
6125       # This hack is so that the source file can tell whether it is being
6126       # built for inclusion in a dll (and should export symbols for example).
6127       lt_prog_compiler_pic='-DDLL_EXPORT'
6128       ;;
6129
6130     hpux9* | hpux10* | hpux11*)
6131       lt_prog_compiler_wl='-Wl,'
6132       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6133       # not for PA HP-UX.
6134       case "$host_cpu" in
6135       hppa*64*|ia64*)
6136         # +Z the default
6137         ;;
6138       *)
6139         lt_prog_compiler_pic='+Z'
6140         ;;
6141       esac
6142       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6143       lt_prog_compiler_static='${wl}-a ${wl}archive'
6144       ;;
6145
6146     irix5* | irix6* | nonstopux*)
6147       lt_prog_compiler_wl='-Wl,'
6148       # PIC (with -KPIC) is the default.
6149       lt_prog_compiler_static='-non_shared'
6150       ;;
6151
6152     newsos6)
6153       lt_prog_compiler_pic='-KPIC'
6154       lt_prog_compiler_static='-Bstatic'
6155       ;;
6156
6157     linux*)
6158       case $CC in
6159       icc|ecc)
6160         lt_prog_compiler_wl='-Wl,'
6161         lt_prog_compiler_pic='-KPIC'
6162         lt_prog_compiler_static='-static'
6163         ;;
6164       ccc)
6165         lt_prog_compiler_wl='-Wl,'
6166         # All Alpha code is PIC.
6167         lt_prog_compiler_static='-non_shared'
6168         ;;
6169       esac
6170       ;;
6171
6172     osf3* | osf4* | osf5*)
6173       lt_prog_compiler_wl='-Wl,'
6174       # All OSF/1 code is PIC.
6175       lt_prog_compiler_static='-non_shared'
6176       ;;
6177
6178     sco3.2v5*)
6179       lt_prog_compiler_pic='-Kpic'
6180       lt_prog_compiler_static='-dn'
6181       ;;
6182
6183     solaris*)
6184       lt_prog_compiler_wl='-Wl,'
6185       lt_prog_compiler_pic='-KPIC'
6186       lt_prog_compiler_static='-Bstatic'
6187       ;;
6188
6189     sunos4*)
6190       lt_prog_compiler_wl='-Qoption ld '
6191       lt_prog_compiler_pic='-PIC'
6192       lt_prog_compiler_static='-Bstatic'
6193       ;;
6194
6195     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6196       lt_prog_compiler_wl='-Wl,'
6197       lt_prog_compiler_pic='-KPIC'
6198       lt_prog_compiler_static='-Bstatic'
6199       ;;
6200
6201     sysv4*MP*)
6202       if test -d /usr/nec ;then
6203         lt_prog_compiler_pic='-Kconform_pic'
6204         lt_prog_compiler_static='-Bstatic'
6205       fi
6206       ;;
6207
6208     uts4*)
6209       lt_prog_compiler_pic='-pic'
6210       lt_prog_compiler_static='-Bstatic'
6211       ;;
6212
6213     *)
6214       lt_prog_compiler_can_build_shared=no
6215       ;;
6216     esac
6217   fi
6218
6219 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6220 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6221
6222 #
6223 # Check to make sure the PIC flag actually works.
6224 #
6225 if test -n "$lt_prog_compiler_pic"; then
6226   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6227 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6228 if test "${lt_prog_compiler_pic_works+set}" = set; then
6229   echo $ECHO_N "(cached) $ECHO_C" >&6
6230 else
6231   lt_prog_compiler_pic_works=no
6232   ac_outfile=conftest.$ac_objext
6233    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6234    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6235    # Insert the option either (1) after the last *FLAGS variable, or
6236    # (2) before a word containing "conftest.", or (3) at the end.
6237    # Note that $ac_compile itself does not contain backslashes and begins
6238    # with a dollar sign (not a hyphen), so the echo should work correctly.
6239    # The option is referenced via a variable to avoid confusing sed.
6240    lt_compile=`echo "$ac_compile" | $SED \
6241    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6242    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6243    -e 's:$: $lt_compiler_flag:'`
6244    (eval echo "\"\$as_me:6244: $lt_compile\"" >&5)
6245    (eval "$lt_compile" 2>conftest.err)
6246    ac_status=$?
6247    cat conftest.err >&5
6248    echo "$as_me:6248: \$? = $ac_status" >&5
6249    if (exit $ac_status) && test -s "$ac_outfile"; then
6250      # The compiler can only warn and ignore the option if not recognized
6251      # So say no if there are warnings
6252      if test ! -s conftest.err; then
6253        lt_prog_compiler_pic_works=yes
6254      fi
6255    fi
6256    $rm conftest*
6257
6258 fi
6259 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6260 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6261
6262 if test x"$lt_prog_compiler_pic_works" = xyes; then
6263     case $lt_prog_compiler_pic in
6264      "" | " "*) ;;
6265      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6266      esac
6267 else
6268     lt_prog_compiler_pic=
6269      lt_prog_compiler_can_build_shared=no
6270 fi
6271
6272 fi
6273 case "$host_os" in
6274   # For platforms which do not support PIC, -DPIC is meaningless:
6275   *djgpp*)
6276     lt_prog_compiler_pic=
6277     ;;
6278   *)
6279     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6280     ;;
6281 esac
6282
6283 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6284 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6285 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6286   echo $ECHO_N "(cached) $ECHO_C" >&6
6287 else
6288   lt_cv_prog_compiler_c_o=no
6289    $rm -r conftest 2>/dev/null
6290    mkdir conftest
6291    cd conftest
6292    mkdir out
6293    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6294
6295    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6296    # that will create temporary files in the current directory regardless of
6297    # the output directory.  Thus, making CWD read-only will cause this test
6298    # to fail, enabling locking or at least warning the user not to do parallel
6299    # builds.
6300    chmod -w .
6301
6302    lt_compiler_flag="-o out/conftest2.$ac_objext"
6303    # Insert the option either (1) after the last *FLAGS variable, or
6304    # (2) before a word containing "conftest.", or (3) at the end.
6305    # Note that $ac_compile itself does not contain backslashes and begins
6306    # with a dollar sign (not a hyphen), so the echo should work correctly.
6307    lt_compile=`echo "$ac_compile" | $SED \
6308    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6309    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6310    -e 's:$: $lt_compiler_flag:'`
6311    (eval echo "\"\$as_me:6311: $lt_compile\"" >&5)
6312    (eval "$lt_compile" 2>out/conftest.err)
6313    ac_status=$?
6314    cat out/conftest.err >&5
6315    echo "$as_me:6315: \$? = $ac_status" >&5
6316    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6317    then
6318      # The compiler can only warn and ignore the option if not recognized
6319      # So say no if there are warnings
6320      if test ! -s out/conftest.err; then
6321        lt_cv_prog_compiler_c_o=yes
6322      fi
6323    fi
6324    chmod u+w .
6325    $rm conftest* out/*
6326    rmdir out
6327    cd ..
6328    rmdir conftest
6329    $rm conftest*
6330
6331 fi
6332 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6333 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6334
6335
6336 hard_links="nottested"
6337 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6338   # do not overwrite the value of need_locks provided by the user
6339   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6340 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6341   hard_links=yes
6342   $rm conftest*
6343   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6344   touch conftest.a
6345   ln conftest.a conftest.b 2>&5 || hard_links=no
6346   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6347   echo "$as_me:$LINENO: result: $hard_links" >&5
6348 echo "${ECHO_T}$hard_links" >&6
6349   if test "$hard_links" = no; then
6350     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6351 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6352     need_locks=warn
6353   fi
6354 else
6355   need_locks=no
6356 fi
6357
6358 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6359 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6360
6361   runpath_var=
6362   allow_undefined_flag=
6363   enable_shared_with_static_runtimes=no
6364   archive_cmds=
6365   archive_expsym_cmds=
6366   old_archive_From_new_cmds=
6367   old_archive_from_expsyms_cmds=
6368   export_dynamic_flag_spec=
6369   whole_archive_flag_spec=
6370   thread_safe_flag_spec=
6371   hardcode_libdir_flag_spec=
6372   hardcode_libdir_flag_spec_ld=
6373   hardcode_libdir_separator=
6374   hardcode_direct=no
6375   hardcode_minus_L=no
6376   hardcode_shlibpath_var=unsupported
6377   link_all_deplibs=unknown
6378   hardcode_automatic=no
6379   module_cmds=
6380   module_expsym_cmds=
6381   always_export_symbols=no
6382   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6383   # include_expsyms should be a list of space-separated symbols to be *always*
6384   # included in the symbol list
6385   include_expsyms=
6386   # exclude_expsyms can be an extended regexp of symbols to exclude
6387   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6388   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6389   # as well as any symbol that contains `d'.
6390   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6391   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6392   # platforms (ab)use it in PIC code, but their linkers get confused if
6393   # the symbol is explicitly referenced.  Since portable code cannot
6394   # rely on this symbol name, it's probably fine to never include it in
6395   # preloaded symbol tables.
6396   extract_expsyms_cmds=
6397
6398   case $host_os in
6399   cygwin* | mingw* | pw32*)
6400     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6401     # When not using gcc, we currently assume that we are using
6402     # Microsoft Visual C++.
6403     if test "$GCC" != yes; then
6404       with_gnu_ld=no
6405     fi
6406     ;;
6407   openbsd*)
6408     with_gnu_ld=no
6409     ;;
6410   esac
6411
6412   ld_shlibs=yes
6413   if test "$with_gnu_ld" = yes; then
6414     # If archive_cmds runs LD, not CC, wlarc should be empty
6415     wlarc='${wl}'
6416
6417     # See if GNU ld supports shared libraries.
6418     case $host_os in
6419     aix3* | aix4* | aix5*)
6420       # On AIX/PPC, the GNU linker is very broken
6421       if test "$host_cpu" != ia64; then
6422         ld_shlibs=no
6423         cat <<EOF 1>&2
6424
6425 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6426 *** to be unable to reliably create shared libraries on AIX.
6427 *** Therefore, libtool is disabling shared libraries support.  If you
6428 *** really care for shared libraries, you may want to modify your PATH
6429 *** so that a non-GNU linker is found, and then restart.
6430
6431 EOF
6432       fi
6433       ;;
6434
6435     amigaos*)
6436       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)'
6437       hardcode_libdir_flag_spec='-L$libdir'
6438       hardcode_minus_L=yes
6439
6440       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6441       # that the semantics of dynamic libraries on AmigaOS, at least up
6442       # to version 4, is to share data among multiple programs linked
6443       # with the same dynamic library.  Since this doesn't match the
6444       # behavior of shared libraries on other platforms, we can't use
6445       # them.
6446       ld_shlibs=no
6447       ;;
6448
6449     beos*)
6450       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6451         allow_undefined_flag=unsupported
6452         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6453         # support --undefined.  This deserves some investigation.  FIXME
6454         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6455       else
6456         ld_shlibs=no
6457       fi
6458       ;;
6459
6460     cygwin* | mingw* | pw32*)
6461       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6462       # as there is no search path for DLLs.
6463       hardcode_libdir_flag_spec='-L$libdir'
6464       allow_undefined_flag=unsupported
6465       always_export_symbols=no
6466       enable_shared_with_static_runtimes=yes
6467       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6468
6469       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6470         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6471         # If the export-symbols file already is a .def file (1st line
6472         # is EXPORTS), use it as is; otherwise, prepend...
6473         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6474           cp $export_symbols $output_objdir/$soname.def;
6475         else
6476           echo EXPORTS > $output_objdir/$soname.def;
6477           cat $export_symbols >> $output_objdir/$soname.def;
6478         fi~
6479         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6480       else
6481         ld_shlibs=no
6482       fi
6483       ;;
6484
6485     netbsd*)
6486       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6487         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6488         wlarc=
6489       else
6490         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6491         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6492       fi
6493       ;;
6494
6495     solaris* | sysv5*)
6496       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6497         ld_shlibs=no
6498         cat <<EOF 1>&2
6499
6500 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6501 *** create shared libraries on Solaris systems.  Therefore, libtool
6502 *** is disabling shared libraries support.  We urge you to upgrade GNU
6503 *** binutils to release 2.9.1 or newer.  Another option is to modify
6504 *** your PATH or compiler configuration so that the native linker is
6505 *** used, and then restart.
6506
6507 EOF
6508       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6509         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6510         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6511       else
6512         ld_shlibs=no
6513       fi
6514       ;;
6515
6516     sunos4*)
6517       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6518       wlarc=
6519       hardcode_direct=yes
6520       hardcode_shlibpath_var=no
6521       ;;
6522
6523   linux*)
6524     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6525         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6526         archive_cmds="$tmp_archive_cmds"
6527       supports_anon_versioning=no
6528       case `$LD -v 2>/dev/null` in
6529         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6530         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6531         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6532         *\ 2.11.*) ;; # other 2.11 versions
6533         *) supports_anon_versioning=yes ;;
6534       esac
6535       if test $supports_anon_versioning = yes; then
6536         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6537 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6538 $echo "local: *; };" >> $output_objdir/$libname.ver~
6539         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6540       else
6541         archive_expsym_cmds="$tmp_archive_cmds"
6542       fi
6543     else
6544       ld_shlibs=no
6545     fi
6546     ;;
6547
6548     *)
6549       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6550         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6551         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6552       else
6553         ld_shlibs=no
6554       fi
6555       ;;
6556     esac
6557
6558     if test "$ld_shlibs" = yes; then
6559       runpath_var=LD_RUN_PATH
6560       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6561       export_dynamic_flag_spec='${wl}--export-dynamic'
6562       # ancient GNU ld didn't support --whole-archive et. al.
6563       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6564         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6565       else
6566         whole_archive_flag_spec=
6567       fi
6568     fi
6569   else
6570     # PORTME fill in a description of your system's linker (not GNU ld)
6571     case $host_os in
6572     aix3*)
6573       allow_undefined_flag=unsupported
6574       always_export_symbols=yes
6575       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'
6576       # Note: this linker hardcodes the directories in LIBPATH if there
6577       # are no directories specified by -L.
6578       hardcode_minus_L=yes
6579       if test "$GCC" = yes && test -z "$link_static_flag"; then
6580         # Neither direct hardcoding nor static linking is supported with a
6581         # broken collect2.
6582         hardcode_direct=unsupported
6583       fi
6584       ;;
6585
6586     aix4* | aix5*)
6587       if test "$host_cpu" = ia64; then
6588         # On IA64, the linker does run time linking by default, so we don't
6589         # have to do anything special.
6590         aix_use_runtimelinking=no
6591         exp_sym_flag='-Bexport'
6592         no_entry_flag=""
6593       else
6594         # If we're using GNU nm, then we don't want the "-C" option.
6595         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6596         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6597           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6598         else
6599           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6600         fi
6601         aix_use_runtimelinking=no
6602
6603         # Test if we are trying to use run time linking or normal
6604         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6605         # need to do runtime linking.
6606         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6607           for ld_flag in $LDFLAGS; do
6608           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6609             aix_use_runtimelinking=yes
6610             break
6611           fi
6612           done
6613         esac
6614
6615         exp_sym_flag='-bexport'
6616         no_entry_flag='-bnoentry'
6617       fi
6618
6619       # When large executables or shared objects are built, AIX ld can
6620       # have problems creating the table of contents.  If linking a library
6621       # or program results in "error TOC overflow" add -mminimal-toc to
6622       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6623       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6624
6625       archive_cmds=''
6626       hardcode_direct=yes
6627       hardcode_libdir_separator=':'
6628       link_all_deplibs=yes
6629
6630       if test "$GCC" = yes; then
6631         case $host_os in aix4.012|aix4.012.*)
6632         # We only want to do this on AIX 4.2 and lower, the check
6633         # below for broken collect2 doesn't work under 4.3+
6634           collect2name=`${CC} -print-prog-name=collect2`
6635           if test -f "$collect2name" && \
6636            strings "$collect2name" | grep resolve_lib_name >/dev/null
6637           then
6638           # We have reworked collect2
6639           hardcode_direct=yes
6640           else
6641           # We have old collect2
6642           hardcode_direct=unsupported
6643           # It fails to find uninstalled libraries when the uninstalled
6644           # path is not listed in the libpath.  Setting hardcode_minus_L
6645           # to unsupported forces relinking
6646           hardcode_minus_L=yes
6647           hardcode_libdir_flag_spec='-L$libdir'
6648           hardcode_libdir_separator=
6649           fi
6650         esac
6651         shared_flag='-shared'
6652       else
6653         # not using gcc
6654         if test "$host_cpu" = ia64; then
6655         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6656         # chokes on -Wl,-G. The following line is correct:
6657           shared_flag='-G'
6658         else
6659         if test "$aix_use_runtimelinking" = yes; then
6660             shared_flag='${wl}-G'
6661           else
6662             shared_flag='${wl}-bM:SRE'
6663         fi
6664         fi
6665       fi
6666
6667       # It seems that -bexpall does not export symbols beginning with
6668       # underscore (_), so it is better to generate a list of symbols to export.
6669       always_export_symbols=yes
6670       if test "$aix_use_runtimelinking" = yes; then
6671         # Warning - without using the other runtime loading flags (-brtl),
6672         # -berok will link without error, but may produce a broken library.
6673         allow_undefined_flag='-berok'
6674        # Determine the default libpath from the value encoded in an empty executable.
6675        cat >conftest.$ac_ext <<_ACEOF
6676 #line $LINENO "configure"
6677 /* confdefs.h.  */
6678 _ACEOF
6679 cat confdefs.h >>conftest.$ac_ext
6680 cat >>conftest.$ac_ext <<_ACEOF
6681 /* end confdefs.h.  */
6682
6683 int
6684 main ()
6685 {
6686
6687   ;
6688   return 0;
6689 }
6690 _ACEOF
6691 rm -f conftest.$ac_objext conftest$ac_exeext
6692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6693   (eval $ac_link) 2>&5
6694   ac_status=$?
6695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696   (exit $ac_status); } &&
6697          { ac_try='test -s conftest$ac_exeext'
6698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699   (eval $ac_try) 2>&5
6700   ac_status=$?
6701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702   (exit $ac_status); }; }; then
6703
6704 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6705 }'`
6706 # Check for a 64-bit object if we didn't find anything.
6707 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6708 }'`; fi
6709 else
6710   echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.$ac_ext >&5
6712
6713 fi
6714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6715 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6716
6717        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6718         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"
6719        else
6720         if test "$host_cpu" = ia64; then
6721           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6722           allow_undefined_flag="-z nodefs"
6723           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6724         else
6725          # Determine the default libpath from the value encoded in an empty executable.
6726          cat >conftest.$ac_ext <<_ACEOF
6727 #line $LINENO "configure"
6728 /* confdefs.h.  */
6729 _ACEOF
6730 cat confdefs.h >>conftest.$ac_ext
6731 cat >>conftest.$ac_ext <<_ACEOF
6732 /* end confdefs.h.  */
6733
6734 int
6735 main ()
6736 {
6737
6738   ;
6739   return 0;
6740 }
6741 _ACEOF
6742 rm -f conftest.$ac_objext conftest$ac_exeext
6743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6744   (eval $ac_link) 2>&5
6745   ac_status=$?
6746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747   (exit $ac_status); } &&
6748          { ac_try='test -s conftest$ac_exeext'
6749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6750   (eval $ac_try) 2>&5
6751   ac_status=$?
6752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753   (exit $ac_status); }; }; then
6754
6755 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6756 }'`
6757 # Check for a 64-bit object if we didn't find anything.
6758 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6759 }'`; fi
6760 else
6761   echo "$as_me: failed program was:" >&5
6762 sed 's/^/| /' conftest.$ac_ext >&5
6763
6764 fi
6765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6766 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6767
6768          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6769           # Warning - without using the other run time loading flags,
6770           # -berok will link without error, but may produce a broken library.
6771           no_undefined_flag=' ${wl}-bernotok'
6772           allow_undefined_flag=' ${wl}-berok'
6773           # -bexpall does not export symbols beginning with underscore (_)
6774           always_export_symbols=yes
6775           # Exported symbols can be pulled into shared objects from archives
6776           whole_archive_flag_spec=' '
6777           archive_cmds_need_lc=yes
6778           # This is similar to how AIX traditionally builds it's shared libraries.
6779           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6780         fi
6781       fi
6782       ;;
6783
6784     amigaos*)
6785       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)'
6786       hardcode_libdir_flag_spec='-L$libdir'
6787       hardcode_minus_L=yes
6788       # see comment about different semantics on the GNU ld section
6789       ld_shlibs=no
6790       ;;
6791
6792     bsdi4*)
6793       export_dynamic_flag_spec=-rdynamic
6794       ;;
6795
6796     cygwin* | mingw* | pw32*)
6797       # When not using gcc, we currently assume that we are using
6798       # Microsoft Visual C++.
6799       # hardcode_libdir_flag_spec is actually meaningless, as there is
6800       # no search path for DLLs.
6801       hardcode_libdir_flag_spec=' '
6802       allow_undefined_flag=unsupported
6803       # Tell ltmain to make .lib files, not .a files.
6804       libext=lib
6805       # Tell ltmain to make .dll files, not .so files.
6806       shrext=".dll"
6807       # FIXME: Setting linknames here is a bad hack.
6808       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6809       # The linker will automatically build a .lib file if we build a DLL.
6810       old_archive_From_new_cmds='true'
6811       # FIXME: Should let the user specify the lib program.
6812       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6813       fix_srcfile_path='`cygpath -w "$srcfile"`'
6814       enable_shared_with_static_runtimes=yes
6815       ;;
6816
6817     darwin* | rhapsody*)
6818     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6819       archive_cmds_need_lc=no
6820       case "$host_os" in
6821       rhapsody* | darwin1.[012])
6822         allow_undefined_flag='-undefined suppress'
6823         ;;
6824       *) # Darwin 1.3 on
6825         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6826         ;;
6827       esac
6828       # FIXME: Relying on posixy $() will cause problems for
6829       #        cross-compilation, but unfortunately the echo tests do not
6830       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6831       #        `"' quotes if we put them in here... so don't!
6832         lt_int_apple_cc_single_mod=no
6833         output_verbose_link_cmd='echo'
6834         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6835           lt_int_apple_cc_single_mod=yes
6836         fi
6837         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6838           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6839         else
6840         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6841       fi
6842       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6843       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6844         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6845           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6846         else
6847           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6848         fi
6849           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6850       hardcode_direct=no
6851       hardcode_automatic=yes
6852       hardcode_shlibpath_var=unsupported
6853       whole_archive_flag_spec='-all_load $convenience'
6854       link_all_deplibs=yes
6855     fi
6856       ;;
6857
6858     dgux*)
6859       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6860       hardcode_libdir_flag_spec='-L$libdir'
6861       hardcode_shlibpath_var=no
6862       ;;
6863
6864     freebsd1*)
6865       ld_shlibs=no
6866       ;;
6867
6868     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6869     # support.  Future versions do this automatically, but an explicit c++rt0.o
6870     # does not break anything, and helps significantly (at the cost of a little
6871     # extra space).
6872     freebsd2.2*)
6873       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6874       hardcode_libdir_flag_spec='-R$libdir'
6875       hardcode_direct=yes
6876       hardcode_shlibpath_var=no
6877       ;;
6878
6879     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6880     freebsd2*)
6881       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6882       hardcode_direct=yes
6883       hardcode_minus_L=yes
6884       hardcode_shlibpath_var=no
6885       ;;
6886
6887     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6888     freebsd*)
6889       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6890       hardcode_libdir_flag_spec='-R$libdir'
6891       hardcode_direct=yes
6892       hardcode_shlibpath_var=no
6893       ;;
6894
6895     hpux9*)
6896       if test "$GCC" = yes; then
6897         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6898       else
6899         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'
6900       fi
6901       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6902       hardcode_libdir_separator=:
6903       hardcode_direct=yes
6904
6905       # hardcode_minus_L: Not really in the search PATH,
6906       # but as the default location of the library.
6907       hardcode_minus_L=yes
6908       export_dynamic_flag_spec='${wl}-E'
6909       ;;
6910
6911     hpux10* | hpux11*)
6912       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6913         case "$host_cpu" in
6914         hppa*64*|ia64*)
6915           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6916           ;;
6917         *)
6918           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6919           ;;
6920         esac
6921       else
6922         case "$host_cpu" in
6923         hppa*64*|ia64*)
6924           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6925           ;;
6926         *)
6927           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6928           ;;
6929         esac
6930       fi
6931       if test "$with_gnu_ld" = no; then
6932         case "$host_cpu" in
6933         hppa*64*)
6934           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6935           hardcode_libdir_flag_spec_ld='+b $libdir'
6936           hardcode_libdir_separator=:
6937           hardcode_direct=no
6938           hardcode_shlibpath_var=no
6939           ;;
6940         ia64*)
6941           hardcode_libdir_flag_spec='-L$libdir'
6942           hardcode_direct=no
6943           hardcode_shlibpath_var=no
6944
6945           # hardcode_minus_L: Not really in the search PATH,
6946           # but as the default location of the library.
6947           hardcode_minus_L=yes
6948           ;;
6949         *)
6950           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6951           hardcode_libdir_separator=:
6952           hardcode_direct=yes
6953           export_dynamic_flag_spec='${wl}-E'
6954
6955           # hardcode_minus_L: Not really in the search PATH,
6956           # but as the default location of the library.
6957           hardcode_minus_L=yes
6958           ;;
6959         esac
6960       fi
6961       ;;
6962
6963     irix5* | irix6* | nonstopux*)
6964       if test "$GCC" = yes; then
6965         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'
6966       else
6967         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'
6968         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6969       fi
6970       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6971       hardcode_libdir_separator=:
6972       link_all_deplibs=yes
6973       ;;
6974
6975     netbsd*)
6976       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6977         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6978       else
6979         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6980       fi
6981       hardcode_libdir_flag_spec='-R$libdir'
6982       hardcode_direct=yes
6983       hardcode_shlibpath_var=no
6984       ;;
6985
6986     newsos6)
6987       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6988       hardcode_direct=yes
6989       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6990       hardcode_libdir_separator=:
6991       hardcode_shlibpath_var=no
6992       ;;
6993
6994     openbsd*)
6995       hardcode_direct=yes
6996       hardcode_shlibpath_var=no
6997       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6998         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6999         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7000         export_dynamic_flag_spec='${wl}-E'
7001       else
7002        case $host_os in
7003          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7004            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7005            hardcode_libdir_flag_spec='-R$libdir'
7006            ;;
7007          *)
7008            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7009            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7010            ;;
7011        esac
7012       fi
7013       ;;
7014
7015     os2*)
7016       hardcode_libdir_flag_spec='-L$libdir'
7017       hardcode_minus_L=yes
7018       allow_undefined_flag=unsupported
7019       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'
7020       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7021       ;;
7022
7023     osf3*)
7024       if test "$GCC" = yes; then
7025         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7026         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'
7027       else
7028         allow_undefined_flag=' -expect_unresolved \*'
7029         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'
7030       fi
7031       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7032       hardcode_libdir_separator=:
7033       ;;
7034
7035     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7036       if test "$GCC" = yes; then
7037         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7038         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'
7039         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7040       else
7041         allow_undefined_flag=' -expect_unresolved \*'
7042         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'
7043         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7044         $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'
7045
7046         # Both c and cxx compiler support -rpath directly
7047         hardcode_libdir_flag_spec='-rpath $libdir'
7048       fi
7049       hardcode_libdir_separator=:
7050       ;;
7051
7052     sco3.2v5*)
7053       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7054       hardcode_shlibpath_var=no
7055       export_dynamic_flag_spec='${wl}-Bexport'
7056       runpath_var=LD_RUN_PATH
7057       hardcode_runpath_var=yes
7058       ;;
7059
7060     solaris*)
7061       no_undefined_flag=' -z text'
7062       if test "$GCC" = yes; then
7063         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7064         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7065           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7066       else
7067         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7068         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7069         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7070       fi
7071       hardcode_libdir_flag_spec='-R$libdir'
7072       hardcode_shlibpath_var=no
7073       case $host_os in
7074       solaris2.[0-5] | solaris2.[0-5].*) ;;
7075       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7076         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7077       esac
7078       link_all_deplibs=yes
7079       ;;
7080
7081     sunos4*)
7082       if test "x$host_vendor" = xsequent; then
7083         # Use $CC to link under sequent, because it throws in some extra .o
7084         # files that make .init and .fini sections work.
7085         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7086       else
7087         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7088       fi
7089       hardcode_libdir_flag_spec='-L$libdir'
7090       hardcode_direct=yes
7091       hardcode_minus_L=yes
7092       hardcode_shlibpath_var=no
7093       ;;
7094
7095     sysv4)
7096       case $host_vendor in
7097         sni)
7098           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7099           hardcode_direct=yes # is this really true???
7100         ;;
7101         siemens)
7102           ## LD is ld it makes a PLAMLIB
7103           ## CC just makes a GrossModule.
7104           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7105           reload_cmds='$CC -r -o $output$reload_objs'
7106           hardcode_direct=no
7107         ;;
7108         motorola)
7109           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7110           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7111         ;;
7112       esac
7113       runpath_var='LD_RUN_PATH'
7114       hardcode_shlibpath_var=no
7115       ;;
7116
7117     sysv4.3*)
7118       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7119       hardcode_shlibpath_var=no
7120       export_dynamic_flag_spec='-Bexport'
7121       ;;
7122
7123     sysv4*MP*)
7124       if test -d /usr/nec; then
7125         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7126         hardcode_shlibpath_var=no
7127         runpath_var=LD_RUN_PATH
7128         hardcode_runpath_var=yes
7129         ld_shlibs=yes
7130       fi
7131       ;;
7132
7133     sysv4.2uw2*)
7134       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7135       hardcode_direct=yes
7136       hardcode_minus_L=no
7137       hardcode_shlibpath_var=no
7138       hardcode_runpath_var=yes
7139       runpath_var=LD_RUN_PATH
7140       ;;
7141
7142    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7143       no_undefined_flag='${wl}-z ${wl}text'
7144       if test "$GCC" = yes; then
7145         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7146       else
7147         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7148       fi
7149       runpath_var='LD_RUN_PATH'
7150       hardcode_shlibpath_var=no
7151       ;;
7152
7153     sysv5*)
7154       no_undefined_flag=' -z text'
7155       # $CC -shared without GNU ld will not create a library from C++
7156       # object files and a static libstdc++, better avoid it by now
7157       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7158       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7159                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7160       hardcode_libdir_flag_spec=
7161       hardcode_shlibpath_var=no
7162       runpath_var='LD_RUN_PATH'
7163       ;;
7164
7165     uts4*)
7166       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7167       hardcode_libdir_flag_spec='-L$libdir'
7168       hardcode_shlibpath_var=no
7169       ;;
7170
7171     *)
7172       ld_shlibs=no
7173       ;;
7174     esac
7175   fi
7176
7177 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7178 echo "${ECHO_T}$ld_shlibs" >&6
7179 test "$ld_shlibs" = no && can_build_shared=no
7180
7181 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7182 if test "$GCC" = yes; then
7183   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7184 fi
7185
7186 #
7187 # Do we need to explicitly link libc?
7188 #
7189 case "x$archive_cmds_need_lc" in
7190 x|xyes)
7191   # Assume -lc should be added
7192   archive_cmds_need_lc=yes
7193
7194   if test "$enable_shared" = yes && test "$GCC" = yes; then
7195     case $archive_cmds in
7196     *'~'*)
7197       # FIXME: we may have to deal with multi-command sequences.
7198       ;;
7199     '$CC '*)
7200       # Test whether the compiler implicitly links with -lc since on some
7201       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7202       # to ld, don't add -lc before -lgcc.
7203       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7204 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7205       $rm conftest*
7206       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7207
7208       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7209   (eval $ac_compile) 2>&5
7210   ac_status=$?
7211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212   (exit $ac_status); } 2>conftest.err; then
7213         soname=conftest
7214         lib=conftest
7215         libobjs=conftest.$ac_objext
7216         deplibs=
7217         wl=$lt_prog_compiler_wl
7218         compiler_flags=-v
7219         linker_flags=-v
7220         verstring=
7221         output_objdir=.
7222         libname=conftest
7223         lt_save_allow_undefined_flag=$allow_undefined_flag
7224         allow_undefined_flag=
7225         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7226   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7227   ac_status=$?
7228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229   (exit $ac_status); }
7230         then
7231           archive_cmds_need_lc=no
7232         else
7233           archive_cmds_need_lc=yes
7234         fi
7235         allow_undefined_flag=$lt_save_allow_undefined_flag
7236       else
7237         cat conftest.err 1>&5
7238       fi
7239       $rm conftest*
7240       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7241 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7242       ;;
7243     esac
7244   fi
7245   ;;
7246 esac
7247
7248 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7249 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7250 hardcode_action=
7251 if test -n "$hardcode_libdir_flag_spec" || \
7252    test -n "$runpath_var " || \
7253    test "X$hardcode_automatic"="Xyes" ; then
7254
7255   # We can hardcode non-existant directories.
7256   if test "$hardcode_direct" != no &&
7257      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7258      # have to relink, otherwise we might link with an installed library
7259      # when we should be linking with a yet-to-be-installed one
7260      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7261      test "$hardcode_minus_L" != no; then
7262     # Linking always hardcodes the temporary library directory.
7263     hardcode_action=relink
7264   else
7265     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7266     hardcode_action=immediate
7267   fi
7268 else
7269   # We cannot hardcode anything, or else we can only hardcode existing
7270   # directories.
7271   hardcode_action=unsupported
7272 fi
7273 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7274 echo "${ECHO_T}$hardcode_action" >&6
7275
7276 if test "$hardcode_action" = relink; then
7277   # Fast installation is not supported
7278   enable_fast_install=no
7279 elif test "$shlibpath_overrides_runpath" = yes ||
7280      test "$enable_shared" = no; then
7281   # Fast installation is not necessary
7282   enable_fast_install=needless
7283 fi
7284
7285 striplib=
7286 old_striplib=
7287 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7288 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7289 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7290   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7291   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7292   echo "$as_me:$LINENO: result: yes" >&5
7293 echo "${ECHO_T}yes" >&6
7294 else
7295 # FIXME - insert some real tests, host_os isn't really good enough
7296   case $host_os in
7297    darwin*)
7298        if test -n "$STRIP" ; then
7299          striplib="$STRIP -x"
7300          echo "$as_me:$LINENO: result: yes" >&5
7301 echo "${ECHO_T}yes" >&6
7302        else
7303   echo "$as_me:$LINENO: result: no" >&5
7304 echo "${ECHO_T}no" >&6
7305 fi
7306        ;;
7307    *)
7308   echo "$as_me:$LINENO: result: no" >&5
7309 echo "${ECHO_T}no" >&6
7310     ;;
7311   esac
7312 fi
7313
7314 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7315 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7316 library_names_spec=
7317 libname_spec='lib$name'
7318 soname_spec=
7319 shrext=".so"
7320 postinstall_cmds=
7321 postuninstall_cmds=
7322 finish_cmds=
7323 finish_eval=
7324 shlibpath_var=
7325 shlibpath_overrides_runpath=unknown
7326 version_type=none
7327 dynamic_linker="$host_os ld.so"
7328 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7329 if test "$GCC" = yes; then
7330   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7331   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7332     # if the path contains ";" then we assume it to be the separator
7333     # otherwise default to the standard path separator (i.e. ":") - it is
7334     # assumed that no part of a normal pathname contains ";" but that should
7335     # okay in the real world where ";" in dirpaths is itself problematic.
7336     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7337   else
7338     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7339   fi
7340 else
7341   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7342 fi
7343 need_lib_prefix=unknown
7344 hardcode_into_libs=no
7345
7346 # when you set need_version to no, make sure it does not cause -set_version
7347 # flags to be left without arguments
7348 need_version=unknown
7349
7350 case $host_os in
7351 aix3*)
7352   version_type=linux
7353   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7354   shlibpath_var=LIBPATH
7355
7356   # AIX 3 has no versioning support, so we append a major version to the name.
7357   soname_spec='${libname}${release}${shared_ext}$major'
7358   ;;
7359
7360 aix4* | aix5*)
7361   version_type=linux
7362   need_lib_prefix=no
7363   need_version=no
7364   hardcode_into_libs=yes
7365   if test "$host_cpu" = ia64; then
7366     # AIX 5 supports IA64
7367     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7368     shlibpath_var=LD_LIBRARY_PATH
7369   else
7370     # With GCC up to 2.95.x, collect2 would create an import file
7371     # for dependence libraries.  The import file would start with
7372     # the line `#! .'.  This would cause the generated library to
7373     # depend on `.', always an invalid library.  This was fixed in
7374     # development snapshots of GCC prior to 3.0.
7375     case $host_os in
7376       aix4 | aix4.[01] | aix4.[01].*)
7377       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7378            echo ' yes '
7379            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7380         :
7381       else
7382         can_build_shared=no
7383       fi
7384       ;;
7385     esac
7386     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7387     # soname into executable. Probably we can add versioning support to
7388     # collect2, so additional links can be useful in future.
7389     if test "$aix_use_runtimelinking" = yes; then
7390       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7391       # instead of lib<name>.a to let people know that these are not
7392       # typical AIX shared libraries.
7393       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7394     else
7395       # We preserve .a as extension for shared libraries through AIX4.2
7396       # and later when we are not doing run time linking.
7397       library_names_spec='${libname}${release}.a $libname.a'
7398       soname_spec='${libname}${release}${shared_ext}$major'
7399     fi
7400     shlibpath_var=LIBPATH
7401   fi
7402   ;;
7403
7404 amigaos*)
7405   library_names_spec='$libname.ixlibrary $libname.a'
7406   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7407   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'
7408   ;;
7409
7410 beos*)
7411   library_names_spec='${libname}${shared_ext}'
7412   dynamic_linker="$host_os ld.so"
7413   shlibpath_var=LIBRARY_PATH
7414   ;;
7415
7416 bsdi4*)
7417   version_type=linux
7418   need_version=no
7419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7420   soname_spec='${libname}${release}${shared_ext}$major'
7421   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7422   shlibpath_var=LD_LIBRARY_PATH
7423   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7424   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7425   # the default ld.so.conf also contains /usr/contrib/lib and
7426   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7427   # libtool to hard-code these into programs
7428   ;;
7429
7430 cygwin* | mingw* | pw32*)
7431   version_type=windows
7432   shrext=".dll"
7433   need_version=no
7434   need_lib_prefix=no
7435
7436   case $GCC,$host_os in
7437   yes,cygwin* | yes,mingw* | yes,pw32*)
7438     library_names_spec='$libname.dll.a'
7439     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7440     postinstall_cmds='base_file=`basename \${file}`~
7441       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7442       dldir=$destdir/`dirname \$dlpath`~
7443       test -d \$dldir || mkdir -p \$dldir~
7444       $install_prog $dir/$dlname \$dldir/$dlname'
7445     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7446       dlpath=$dir/\$dldll~
7447        $rm \$dlpath'
7448     shlibpath_overrides_runpath=yes
7449
7450     case $host_os in
7451     cygwin*)
7452       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7453       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7454       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7455       ;;
7456     mingw*)
7457       # MinGW DLLs use traditional 'lib' prefix
7458       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7459       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7460       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7461         # It is most probably a Windows format PATH printed by
7462         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7463         # path with ; separators, and with drive letters. We can handle the
7464         # drive letters (cygwin fileutils understands them), so leave them,
7465         # especially as we might pass files found there to a mingw objdump,
7466         # which wouldn't understand a cygwinified path. Ahh.
7467         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7468       else
7469         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7470       fi
7471       ;;
7472     pw32*)
7473       # pw32 DLLs use 'pw' prefix rather than 'lib'
7474       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7475       ;;
7476     esac
7477     ;;
7478
7479   *)
7480     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7481     ;;
7482   esac
7483   dynamic_linker='Win32 ld.exe'
7484   # FIXME: first we should search . and the directory the executable is in
7485   shlibpath_var=PATH
7486   ;;
7487
7488 darwin* | rhapsody*)
7489   dynamic_linker="$host_os dyld"
7490   version_type=darwin
7491   need_lib_prefix=no
7492   need_version=no
7493   # FIXME: Relying on posixy $() will cause problems for
7494   #        cross-compilation, but unfortunately the echo tests do not
7495   #        yet detect zsh echo's removal of \ escapes.
7496   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7497   soname_spec='${libname}${release}${major}$shared_ext'
7498   shlibpath_overrides_runpath=yes
7499   shlibpath_var=DYLD_LIBRARY_PATH
7500   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7501   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7502   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7503   sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7504   fi
7505   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7506   ;;
7507
7508 dgux*)
7509   version_type=linux
7510   need_lib_prefix=no
7511   need_version=no
7512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7513   soname_spec='${libname}${release}${shared_ext}$major'
7514   shlibpath_var=LD_LIBRARY_PATH
7515   ;;
7516
7517 freebsd1*)
7518   dynamic_linker=no
7519   ;;
7520
7521 freebsd*)
7522   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7523   version_type=freebsd-$objformat
7524   case $version_type in
7525     freebsd-elf*)
7526       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7527       need_version=no
7528       need_lib_prefix=no
7529       ;;
7530     freebsd-*)
7531       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7532       need_version=yes
7533       ;;
7534   esac
7535   shlibpath_var=LD_LIBRARY_PATH
7536   case $host_os in
7537   freebsd2*)
7538     shlibpath_overrides_runpath=yes
7539     ;;
7540   freebsd3.01* | freebsdelf3.01*)
7541     shlibpath_overrides_runpath=yes
7542     hardcode_into_libs=yes
7543     ;;
7544   *) # from 3.2 on
7545     shlibpath_overrides_runpath=no
7546     hardcode_into_libs=yes
7547     ;;
7548   esac
7549   ;;
7550
7551 gnu*)
7552   version_type=linux
7553   need_lib_prefix=no
7554   need_version=no
7555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7556   soname_spec='${libname}${release}${shared_ext}$major'
7557   shlibpath_var=LD_LIBRARY_PATH
7558   hardcode_into_libs=yes
7559   ;;
7560
7561 hpux9* | hpux10* | hpux11*)
7562   # Give a soname corresponding to the major version so that dld.sl refuses to
7563   # link against other versions.
7564   version_type=sunos
7565   need_lib_prefix=no
7566   need_version=no
7567   case "$host_cpu" in
7568   ia64*)
7569     shrext='.so'
7570     hardcode_into_libs=yes
7571     dynamic_linker="$host_os dld.so"
7572     shlibpath_var=LD_LIBRARY_PATH
7573     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7574     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7575     soname_spec='${libname}${release}${shared_ext}$major'
7576     if test "X$HPUX_IA64_MODE" = X32; then
7577       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7578     else
7579       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7580     fi
7581     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7582     ;;
7583    hppa*64*)
7584      shrext='.sl'
7585      hardcode_into_libs=yes
7586      dynamic_linker="$host_os dld.sl"
7587      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7588      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7589      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7590      soname_spec='${libname}${release}${shared_ext}$major'
7591      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7592      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7593      ;;
7594    *)
7595     shrext='.sl'
7596     dynamic_linker="$host_os dld.sl"
7597     shlibpath_var=SHLIB_PATH
7598     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7599     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7600     soname_spec='${libname}${release}${shared_ext}$major'
7601     ;;
7602   esac
7603   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7604   postinstall_cmds='chmod 555 $lib'
7605   ;;
7606
7607 irix5* | irix6* | nonstopux*)
7608   case $host_os in
7609     nonstopux*) version_type=nonstopux ;;
7610     *)
7611         if test "$lt_cv_prog_gnu_ld" = yes; then
7612                 version_type=linux
7613         else
7614                 version_type=irix
7615         fi ;;
7616   esac
7617   need_lib_prefix=no
7618   need_version=no
7619   soname_spec='${libname}${release}${shared_ext}$major'
7620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7621   case $host_os in
7622   irix5* | nonstopux*)
7623     libsuff= shlibsuff=
7624     ;;
7625   *)
7626     case $LD in # libtool.m4 will add one of these switches to LD
7627     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7628       libsuff= shlibsuff= libmagic=32-bit;;
7629     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7630       libsuff=32 shlibsuff=N32 libmagic=N32;;
7631     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7632       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7633     *) libsuff= shlibsuff= libmagic=never-match;;
7634     esac
7635     ;;
7636   esac
7637   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7638   shlibpath_overrides_runpath=no
7639   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7640   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7641   hardcode_into_libs=yes
7642   ;;
7643
7644 # No shared lib support for Linux oldld, aout, or coff.
7645 linux*oldld* | linux*aout* | linux*coff*)
7646   dynamic_linker=no
7647   ;;
7648
7649 # This must be Linux ELF.
7650 linux*)
7651   version_type=linux
7652   need_lib_prefix=no
7653   need_version=no
7654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7655   soname_spec='${libname}${release}${shared_ext}$major'
7656   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7657   shlibpath_var=LD_LIBRARY_PATH
7658   shlibpath_overrides_runpath=no
7659   # This implies no fast_install, which is unacceptable.
7660   # Some rework will be needed to allow for fast_install
7661   # before this can be enabled.
7662   hardcode_into_libs=yes
7663
7664   # We used to test for /lib/ld.so.1 and disable shared libraries on
7665   # powerpc, because MkLinux only supported shared libraries with the
7666   # GNU dynamic linker.  Since this was broken with cross compilers,
7667   # most powerpc-linux boxes support dynamic linking these days and
7668   # people can always --disable-shared, the test was removed, and we
7669   # assume the GNU/Linux dynamic linker is in use.
7670   dynamic_linker='GNU/Linux ld.so'
7671
7672   # Find out which ABI we are using (multilib Linux x86_64 hack).
7673   libsuff=
7674   case "$host_cpu" in
7675   x86_64*|s390x*)
7676     echo '#line 7676 "configure"' > conftest.$ac_ext
7677     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7678   (eval $ac_compile) 2>&5
7679   ac_status=$?
7680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681   (exit $ac_status); }; then
7682       case `/usr/bin/file conftest.$ac_objext` in
7683       *64-bit*)
7684         libsuff=64
7685         ;;
7686       esac
7687     fi
7688     rm -rf conftest*
7689     ;;
7690   *)
7691     ;;
7692   esac
7693   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
7694   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7695   ;;
7696
7697 netbsd*)
7698   version_type=sunos
7699   need_lib_prefix=no
7700   need_version=no
7701   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7702     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7703     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7704     dynamic_linker='NetBSD (a.out) ld.so'
7705   else
7706     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7707     soname_spec='${libname}${release}${shared_ext}$major'
7708     dynamic_linker='NetBSD ld.elf_so'
7709   fi
7710   shlibpath_var=LD_LIBRARY_PATH
7711   shlibpath_overrides_runpath=yes
7712   hardcode_into_libs=yes
7713   ;;
7714
7715 newsos6)
7716   version_type=linux
7717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7718   shlibpath_var=LD_LIBRARY_PATH
7719   shlibpath_overrides_runpath=yes
7720   ;;
7721
7722 nto-qnx)
7723   version_type=linux
7724   need_lib_prefix=no
7725   need_version=no
7726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7727   soname_spec='${libname}${release}${shared_ext}$major'
7728   shlibpath_var=LD_LIBRARY_PATH
7729   shlibpath_overrides_runpath=yes
7730   ;;
7731
7732 openbsd*)
7733   version_type=sunos
7734   need_lib_prefix=no
7735   need_version=no
7736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7737   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7738   shlibpath_var=LD_LIBRARY_PATH
7739   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7740     case $host_os in
7741       openbsd2.[89] | openbsd2.[89].*)
7742         shlibpath_overrides_runpath=no
7743         ;;
7744       *)
7745         shlibpath_overrides_runpath=yes
7746         ;;
7747       esac
7748   else
7749     shlibpath_overrides_runpath=yes
7750   fi
7751   ;;
7752
7753 os2*)
7754   libname_spec='$name'
7755   shrext=".dll"
7756   need_lib_prefix=no
7757   library_names_spec='$libname${shared_ext} $libname.a'
7758   dynamic_linker='OS/2 ld.exe'
7759   shlibpath_var=LIBPATH
7760   ;;
7761
7762 osf3* | osf4* | osf5*)
7763   version_type=osf
7764   need_lib_prefix=no
7765   need_version=no
7766   soname_spec='${libname}${release}${shared_ext}$major'
7767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7768   shlibpath_var=LD_LIBRARY_PATH
7769   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7770   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7771   ;;
7772
7773 sco3.2v5*)
7774   version_type=osf
7775   soname_spec='${libname}${release}${shared_ext}$major'
7776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7777   shlibpath_var=LD_LIBRARY_PATH
7778   ;;
7779
7780 solaris*)
7781   version_type=linux
7782   need_lib_prefix=no
7783   need_version=no
7784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7785   soname_spec='${libname}${release}${shared_ext}$major'
7786   shlibpath_var=LD_LIBRARY_PATH
7787   shlibpath_overrides_runpath=yes
7788   hardcode_into_libs=yes
7789   # ldd complains unless libraries are executable
7790   postinstall_cmds='chmod +x $lib'
7791   ;;
7792
7793 sunos4*)
7794   version_type=sunos
7795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7796   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7797   shlibpath_var=LD_LIBRARY_PATH
7798   shlibpath_overrides_runpath=yes
7799   if test "$with_gnu_ld" = yes; then
7800     need_lib_prefix=no
7801   fi
7802   need_version=yes
7803   ;;
7804
7805 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7806   version_type=linux
7807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7808   soname_spec='${libname}${release}${shared_ext}$major'
7809   shlibpath_var=LD_LIBRARY_PATH
7810   case $host_vendor in
7811     sni)
7812       shlibpath_overrides_runpath=no
7813       need_lib_prefix=no
7814       export_dynamic_flag_spec='${wl}-Blargedynsym'
7815       runpath_var=LD_RUN_PATH
7816       ;;
7817     siemens)
7818       need_lib_prefix=no
7819       ;;
7820     motorola)
7821       need_lib_prefix=no
7822       need_version=no
7823       shlibpath_overrides_runpath=no
7824       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7825       ;;
7826   esac
7827   ;;
7828
7829 sysv4*MP*)
7830   if test -d /usr/nec ;then
7831     version_type=linux
7832     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7833     soname_spec='$libname${shared_ext}.$major'
7834     shlibpath_var=LD_LIBRARY_PATH
7835   fi
7836   ;;
7837
7838 uts4*)
7839   version_type=linux
7840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7841   soname_spec='${libname}${release}${shared_ext}$major'
7842   shlibpath_var=LD_LIBRARY_PATH
7843   ;;
7844
7845 *)
7846   dynamic_linker=no
7847   ;;
7848 esac
7849 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7850 echo "${ECHO_T}$dynamic_linker" >&6
7851 test "$dynamic_linker" = no && can_build_shared=no
7852
7853 if test "x$enable_dlopen" != xyes; then
7854   enable_dlopen=unknown
7855   enable_dlopen_self=unknown
7856   enable_dlopen_self_static=unknown
7857 else
7858   lt_cv_dlopen=no
7859   lt_cv_dlopen_libs=
7860
7861   case $host_os in
7862   beos*)
7863     lt_cv_dlopen="load_add_on"
7864     lt_cv_dlopen_libs=
7865     lt_cv_dlopen_self=yes
7866     ;;
7867
7868   mingw* | pw32*)
7869     lt_cv_dlopen="LoadLibrary"
7870     lt_cv_dlopen_libs=
7871    ;;
7872
7873   cygwin*)
7874     lt_cv_dlopen="dlopen"
7875     lt_cv_dlopen_libs=
7876    ;;
7877
7878   darwin*)
7879   # if libdl is installed we need to link against it
7880     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7881 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7882 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7883   echo $ECHO_N "(cached) $ECHO_C" >&6
7884 else
7885   ac_check_lib_save_LIBS=$LIBS
7886 LIBS="-ldl  $LIBS"
7887 cat >conftest.$ac_ext <<_ACEOF
7888 #line $LINENO "configure"
7889 /* confdefs.h.  */
7890 _ACEOF
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h.  */
7894
7895 /* Override any gcc2 internal prototype to avoid an error.  */
7896 #ifdef __cplusplus
7897 extern "C"
7898 #endif
7899 /* We use char because int might match the return type of a gcc2
7900    builtin and then its argument prototype would still apply.  */
7901 char dlopen ();
7902 int
7903 main ()
7904 {
7905 dlopen ();
7906   ;
7907   return 0;
7908 }
7909 _ACEOF
7910 rm -f conftest.$ac_objext conftest$ac_exeext
7911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7912   (eval $ac_link) 2>&5
7913   ac_status=$?
7914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915   (exit $ac_status); } &&
7916          { ac_try='test -s conftest$ac_exeext'
7917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918   (eval $ac_try) 2>&5
7919   ac_status=$?
7920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921   (exit $ac_status); }; }; then
7922   ac_cv_lib_dl_dlopen=yes
7923 else
7924   echo "$as_me: failed program was:" >&5
7925 sed 's/^/| /' conftest.$ac_ext >&5
7926
7927 ac_cv_lib_dl_dlopen=no
7928 fi
7929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7930 LIBS=$ac_check_lib_save_LIBS
7931 fi
7932 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7933 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7934 if test $ac_cv_lib_dl_dlopen = yes; then
7935   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7936 else
7937
7938     lt_cv_dlopen="dyld"
7939     lt_cv_dlopen_libs=
7940     lt_cv_dlopen_self=yes
7941
7942 fi
7943
7944    ;;
7945
7946   *)
7947     echo "$as_me:$LINENO: checking for shl_load" >&5
7948 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7949 if test "${ac_cv_func_shl_load+set}" = set; then
7950   echo $ECHO_N "(cached) $ECHO_C" >&6
7951 else
7952   cat >conftest.$ac_ext <<_ACEOF
7953 #line $LINENO "configure"
7954 /* confdefs.h.  */
7955 _ACEOF
7956 cat confdefs.h >>conftest.$ac_ext
7957 cat >>conftest.$ac_ext <<_ACEOF
7958 /* end confdefs.h.  */
7959 /* System header to define __stub macros and hopefully few prototypes,
7960     which can conflict with char shl_load (); below.
7961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7962     <limits.h> exists even on freestanding compilers.  */
7963 #ifdef __STDC__
7964 # include <limits.h>
7965 #else
7966 # include <assert.h>
7967 #endif
7968 /* Override any gcc2 internal prototype to avoid an error.  */
7969 #ifdef __cplusplus
7970 extern "C"
7971 {
7972 #endif
7973 /* We use char because int might match the return type of a gcc2
7974    builtin and then its argument prototype would still apply.  */
7975 char shl_load ();
7976 /* The GNU C library defines this for functions which it implements
7977     to always fail with ENOSYS.  Some functions are actually named
7978     something starting with __ and the normal name is an alias.  */
7979 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7980 choke me
7981 #else
7982 char (*f) () = shl_load;
7983 #endif
7984 #ifdef __cplusplus
7985 }
7986 #endif
7987
7988 int
7989 main ()
7990 {
7991 return f != shl_load;
7992   ;
7993   return 0;
7994 }
7995 _ACEOF
7996 rm -f conftest.$ac_objext conftest$ac_exeext
7997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7998   (eval $ac_link) 2>&5
7999   ac_status=$?
8000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001   (exit $ac_status); } &&
8002          { ac_try='test -s conftest$ac_exeext'
8003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004   (eval $ac_try) 2>&5
8005   ac_status=$?
8006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007   (exit $ac_status); }; }; then
8008   ac_cv_func_shl_load=yes
8009 else
8010   echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8012
8013 ac_cv_func_shl_load=no
8014 fi
8015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8016 fi
8017 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8018 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8019 if test $ac_cv_func_shl_load = yes; then
8020   lt_cv_dlopen="shl_load"
8021 else
8022   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8023 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8024 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8025   echo $ECHO_N "(cached) $ECHO_C" >&6
8026 else
8027   ac_check_lib_save_LIBS=$LIBS
8028 LIBS="-ldld  $LIBS"
8029 cat >conftest.$ac_ext <<_ACEOF
8030 #line $LINENO "configure"
8031 /* confdefs.h.  */
8032 _ACEOF
8033 cat confdefs.h >>conftest.$ac_ext
8034 cat >>conftest.$ac_ext <<_ACEOF
8035 /* end confdefs.h.  */
8036
8037 /* Override any gcc2 internal prototype to avoid an error.  */
8038 #ifdef __cplusplus
8039 extern "C"
8040 #endif
8041 /* We use char because int might match the return type of a gcc2
8042    builtin and then its argument prototype would still apply.  */
8043 char shl_load ();
8044 int
8045 main ()
8046 {
8047 shl_load ();
8048   ;
8049   return 0;
8050 }
8051 _ACEOF
8052 rm -f conftest.$ac_objext conftest$ac_exeext
8053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8054   (eval $ac_link) 2>&5
8055   ac_status=$?
8056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057   (exit $ac_status); } &&
8058          { ac_try='test -s conftest$ac_exeext'
8059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060   (eval $ac_try) 2>&5
8061   ac_status=$?
8062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063   (exit $ac_status); }; }; then
8064   ac_cv_lib_dld_shl_load=yes
8065 else
8066   echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8068
8069 ac_cv_lib_dld_shl_load=no
8070 fi
8071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8072 LIBS=$ac_check_lib_save_LIBS
8073 fi
8074 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8075 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8076 if test $ac_cv_lib_dld_shl_load = yes; then
8077   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8078 else
8079   echo "$as_me:$LINENO: checking for dlopen" >&5
8080 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8081 if test "${ac_cv_func_dlopen+set}" = set; then
8082   echo $ECHO_N "(cached) $ECHO_C" >&6
8083 else
8084   cat >conftest.$ac_ext <<_ACEOF
8085 #line $LINENO "configure"
8086 /* confdefs.h.  */
8087 _ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h.  */
8091 /* System header to define __stub macros and hopefully few prototypes,
8092     which can conflict with char dlopen (); below.
8093     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8094     <limits.h> exists even on freestanding compilers.  */
8095 #ifdef __STDC__
8096 # include <limits.h>
8097 #else
8098 # include <assert.h>
8099 #endif
8100 /* Override any gcc2 internal prototype to avoid an error.  */
8101 #ifdef __cplusplus
8102 extern "C"
8103 {
8104 #endif
8105 /* We use char because int might match the return type of a gcc2
8106    builtin and then its argument prototype would still apply.  */
8107 char dlopen ();
8108 /* The GNU C library defines this for functions which it implements
8109     to always fail with ENOSYS.  Some functions are actually named
8110     something starting with __ and the normal name is an alias.  */
8111 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8112 choke me
8113 #else
8114 char (*f) () = dlopen;
8115 #endif
8116 #ifdef __cplusplus
8117 }
8118 #endif
8119
8120 int
8121 main ()
8122 {
8123 return f != dlopen;
8124   ;
8125   return 0;
8126 }
8127 _ACEOF
8128 rm -f conftest.$ac_objext conftest$ac_exeext
8129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8130   (eval $ac_link) 2>&5
8131   ac_status=$?
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); } &&
8134          { ac_try='test -s conftest$ac_exeext'
8135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136   (eval $ac_try) 2>&5
8137   ac_status=$?
8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139   (exit $ac_status); }; }; then
8140   ac_cv_func_dlopen=yes
8141 else
8142   echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8144
8145 ac_cv_func_dlopen=no
8146 fi
8147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8148 fi
8149 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8150 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8151 if test $ac_cv_func_dlopen = yes; then
8152   lt_cv_dlopen="dlopen"
8153 else
8154   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8155 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8156 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8157   echo $ECHO_N "(cached) $ECHO_C" >&6
8158 else
8159   ac_check_lib_save_LIBS=$LIBS
8160 LIBS="-ldl  $LIBS"
8161 cat >conftest.$ac_ext <<_ACEOF
8162 #line $LINENO "configure"
8163 /* confdefs.h.  */
8164 _ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h.  */
8168
8169 /* Override any gcc2 internal prototype to avoid an error.  */
8170 #ifdef __cplusplus
8171 extern "C"
8172 #endif
8173 /* We use char because int might match the return type of a gcc2
8174    builtin and then its argument prototype would still apply.  */
8175 char dlopen ();
8176 int
8177 main ()
8178 {
8179 dlopen ();
8180   ;
8181   return 0;
8182 }
8183 _ACEOF
8184 rm -f conftest.$ac_objext conftest$ac_exeext
8185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8186   (eval $ac_link) 2>&5
8187   ac_status=$?
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); } &&
8190          { ac_try='test -s conftest$ac_exeext'
8191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192   (eval $ac_try) 2>&5
8193   ac_status=$?
8194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195   (exit $ac_status); }; }; then
8196   ac_cv_lib_dl_dlopen=yes
8197 else
8198   echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8200
8201 ac_cv_lib_dl_dlopen=no
8202 fi
8203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8204 LIBS=$ac_check_lib_save_LIBS
8205 fi
8206 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8207 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8208 if test $ac_cv_lib_dl_dlopen = yes; then
8209   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8210 else
8211   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8212 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8213 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8214   echo $ECHO_N "(cached) $ECHO_C" >&6
8215 else
8216   ac_check_lib_save_LIBS=$LIBS
8217 LIBS="-lsvld  $LIBS"
8218 cat >conftest.$ac_ext <<_ACEOF
8219 #line $LINENO "configure"
8220 /* confdefs.h.  */
8221 _ACEOF
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h.  */
8225
8226 /* Override any gcc2 internal prototype to avoid an error.  */
8227 #ifdef __cplusplus
8228 extern "C"
8229 #endif
8230 /* We use char because int might match the return type of a gcc2
8231    builtin and then its argument prototype would still apply.  */
8232 char dlopen ();
8233 int
8234 main ()
8235 {
8236 dlopen ();
8237   ;
8238   return 0;
8239 }
8240 _ACEOF
8241 rm -f conftest.$ac_objext conftest$ac_exeext
8242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8243   (eval $ac_link) 2>&5
8244   ac_status=$?
8245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246   (exit $ac_status); } &&
8247          { ac_try='test -s conftest$ac_exeext'
8248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8249   (eval $ac_try) 2>&5
8250   ac_status=$?
8251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252   (exit $ac_status); }; }; then
8253   ac_cv_lib_svld_dlopen=yes
8254 else
8255   echo "$as_me: failed program was:" >&5
8256 sed 's/^/| /' conftest.$ac_ext >&5
8257
8258 ac_cv_lib_svld_dlopen=no
8259 fi
8260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8261 LIBS=$ac_check_lib_save_LIBS
8262 fi
8263 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8264 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8265 if test $ac_cv_lib_svld_dlopen = yes; then
8266   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8267 else
8268   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8269 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8270 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8271   echo $ECHO_N "(cached) $ECHO_C" >&6
8272 else
8273   ac_check_lib_save_LIBS=$LIBS
8274 LIBS="-ldld  $LIBS"
8275 cat >conftest.$ac_ext <<_ACEOF
8276 #line $LINENO "configure"
8277 /* confdefs.h.  */
8278 _ACEOF
8279 cat confdefs.h >>conftest.$ac_ext
8280 cat >>conftest.$ac_ext <<_ACEOF
8281 /* end confdefs.h.  */
8282
8283 /* Override any gcc2 internal prototype to avoid an error.  */
8284 #ifdef __cplusplus
8285 extern "C"
8286 #endif
8287 /* We use char because int might match the return type of a gcc2
8288    builtin and then its argument prototype would still apply.  */
8289 char dld_link ();
8290 int
8291 main ()
8292 {
8293 dld_link ();
8294   ;
8295   return 0;
8296 }
8297 _ACEOF
8298 rm -f conftest.$ac_objext conftest$ac_exeext
8299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8300   (eval $ac_link) 2>&5
8301   ac_status=$?
8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303   (exit $ac_status); } &&
8304          { ac_try='test -s conftest$ac_exeext'
8305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306   (eval $ac_try) 2>&5
8307   ac_status=$?
8308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309   (exit $ac_status); }; }; then
8310   ac_cv_lib_dld_dld_link=yes
8311 else
8312   echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8314
8315 ac_cv_lib_dld_dld_link=no
8316 fi
8317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8318 LIBS=$ac_check_lib_save_LIBS
8319 fi
8320 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8321 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8322 if test $ac_cv_lib_dld_dld_link = yes; then
8323   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8324 fi
8325
8326
8327 fi
8328
8329
8330 fi
8331
8332
8333 fi
8334
8335
8336 fi
8337
8338
8339 fi
8340
8341     ;;
8342   esac
8343
8344   if test "x$lt_cv_dlopen" != xno; then
8345     enable_dlopen=yes
8346   else
8347     enable_dlopen=no
8348   fi
8349
8350   case $lt_cv_dlopen in
8351   dlopen)
8352     save_CPPFLAGS="$CPPFLAGS"
8353     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8354
8355     save_LDFLAGS="$LDFLAGS"
8356     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8357
8358     save_LIBS="$LIBS"
8359     LIBS="$lt_cv_dlopen_libs $LIBS"
8360
8361     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8362 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8363 if test "${lt_cv_dlopen_self+set}" = set; then
8364   echo $ECHO_N "(cached) $ECHO_C" >&6
8365 else
8366           if test "$cross_compiling" = yes; then :
8367   lt_cv_dlopen_self=cross
8368 else
8369   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8370   lt_status=$lt_dlunknown
8371   cat > conftest.$ac_ext <<EOF
8372 #line 8372 "configure"
8373 #include "confdefs.h"
8374
8375 #if HAVE_DLFCN_H
8376 #include <dlfcn.h>
8377 #endif
8378
8379 #include <stdio.h>
8380
8381 #ifdef RTLD_GLOBAL
8382 #  define LT_DLGLOBAL           RTLD_GLOBAL
8383 #else
8384 #  ifdef DL_GLOBAL
8385 #    define LT_DLGLOBAL         DL_GLOBAL
8386 #  else
8387 #    define LT_DLGLOBAL         0
8388 #  endif
8389 #endif
8390
8391 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8392    find out it does not work in some platform. */
8393 #ifndef LT_DLLAZY_OR_NOW
8394 #  ifdef RTLD_LAZY
8395 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8396 #  else
8397 #    ifdef DL_LAZY
8398 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8399 #    else
8400 #      ifdef RTLD_NOW
8401 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8402 #      else
8403 #        ifdef DL_NOW
8404 #          define LT_DLLAZY_OR_NOW      DL_NOW
8405 #        else
8406 #          define LT_DLLAZY_OR_NOW      0
8407 #        endif
8408 #      endif
8409 #    endif
8410 #  endif
8411 #endif
8412
8413 #ifdef __cplusplus
8414 extern "C" void exit (int);
8415 #endif
8416
8417 void fnord() { int i=42;}
8418 int main ()
8419 {
8420   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8421   int status = $lt_dlunknown;
8422
8423   if (self)
8424     {
8425       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8426       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8427       /* dlclose (self); */
8428     }
8429
8430     exit (status);
8431 }
8432 EOF
8433   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8434   (eval $ac_link) 2>&5
8435   ac_status=$?
8436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8438     (./conftest; exit; ) 2>/dev/null
8439     lt_status=$?
8440     case x$lt_status in
8441       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8442       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8443       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8444     esac
8445   else :
8446     # compilation failed
8447     lt_cv_dlopen_self=no
8448   fi
8449 fi
8450 rm -fr conftest*
8451
8452
8453 fi
8454 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8455 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8456
8457     if test "x$lt_cv_dlopen_self" = xyes; then
8458       LDFLAGS="$LDFLAGS $link_static_flag"
8459       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8460 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8461 if test "${lt_cv_dlopen_self_static+set}" = set; then
8462   echo $ECHO_N "(cached) $ECHO_C" >&6
8463 else
8464           if test "$cross_compiling" = yes; then :
8465   lt_cv_dlopen_self_static=cross
8466 else
8467   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8468   lt_status=$lt_dlunknown
8469   cat > conftest.$ac_ext <<EOF
8470 #line 8470 "configure"
8471 #include "confdefs.h"
8472
8473 #if HAVE_DLFCN_H
8474 #include <dlfcn.h>
8475 #endif
8476
8477 #include <stdio.h>
8478
8479 #ifdef RTLD_GLOBAL
8480 #  define LT_DLGLOBAL           RTLD_GLOBAL
8481 #else
8482 #  ifdef DL_GLOBAL
8483 #    define LT_DLGLOBAL         DL_GLOBAL
8484 #  else
8485 #    define LT_DLGLOBAL         0
8486 #  endif
8487 #endif
8488
8489 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8490    find out it does not work in some platform. */
8491 #ifndef LT_DLLAZY_OR_NOW
8492 #  ifdef RTLD_LAZY
8493 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8494 #  else
8495 #    ifdef DL_LAZY
8496 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8497 #    else
8498 #      ifdef RTLD_NOW
8499 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8500 #      else
8501 #        ifdef DL_NOW
8502 #          define LT_DLLAZY_OR_NOW      DL_NOW
8503 #        else
8504 #          define LT_DLLAZY_OR_NOW      0
8505 #        endif
8506 #      endif
8507 #    endif
8508 #  endif
8509 #endif
8510
8511 #ifdef __cplusplus
8512 extern "C" void exit (int);
8513 #endif
8514
8515 void fnord() { int i=42;}
8516 int main ()
8517 {
8518   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8519   int status = $lt_dlunknown;
8520
8521   if (self)
8522     {
8523       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8524       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8525       /* dlclose (self); */
8526     }
8527
8528     exit (status);
8529 }
8530 EOF
8531   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8532   (eval $ac_link) 2>&5
8533   ac_status=$?
8534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8536     (./conftest; exit; ) 2>/dev/null
8537     lt_status=$?
8538     case x$lt_status in
8539       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8540       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8541       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8542     esac
8543   else :
8544     # compilation failed
8545     lt_cv_dlopen_self_static=no
8546   fi
8547 fi
8548 rm -fr conftest*
8549
8550
8551 fi
8552 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8553 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8554     fi
8555
8556     CPPFLAGS="$save_CPPFLAGS"
8557     LDFLAGS="$save_LDFLAGS"
8558     LIBS="$save_LIBS"
8559     ;;
8560   esac
8561
8562   case $lt_cv_dlopen_self in
8563   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8564   *) enable_dlopen_self=unknown ;;
8565   esac
8566
8567   case $lt_cv_dlopen_self_static in
8568   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8569   *) enable_dlopen_self_static=unknown ;;
8570   esac
8571 fi
8572
8573
8574 # Report which librarie types wil actually be built
8575 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8576 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8577 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8578 echo "${ECHO_T}$can_build_shared" >&6
8579
8580 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8581 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8582 test "$can_build_shared" = "no" && enable_shared=no
8583
8584 # On AIX, shared libraries and static libraries use the same namespace, and
8585 # are all built from PIC.
8586 case "$host_os" in
8587 aix3*)
8588   test "$enable_shared" = yes && enable_static=no
8589   if test -n "$RANLIB"; then
8590     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8591     postinstall_cmds='$RANLIB $lib'
8592   fi
8593   ;;
8594
8595 aix4*)
8596   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8597     test "$enable_shared" = yes && enable_static=no
8598   fi
8599   ;;
8600   darwin* | rhapsody*)
8601   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8602     archive_cmds_need_lc=no
8603     case "$host_os" in
8604     rhapsody* | darwin1.[012])
8605       allow_undefined_flag='-undefined suppress'
8606       ;;
8607     *) # Darwin 1.3 on
8608       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8609       ;;
8610     esac
8611     # FIXME: Relying on posixy $() will cause problems for
8612     #        cross-compilation, but unfortunately the echo tests do not
8613     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8614     #          `"' quotes if we put them in here... so don't!
8615                 output_verbose_link_cmd='echo'
8616     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8617     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8618     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8619                   archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8620                   module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8621     hardcode_direct=no
8622     hardcode_automatic=yes
8623     hardcode_shlibpath_var=unsupported
8624     whole_archive_flag_spec='-all_load $convenience'
8625     link_all_deplibs=yes
8626     fi
8627     ;;
8628 esac
8629 echo "$as_me:$LINENO: result: $enable_shared" >&5
8630 echo "${ECHO_T}$enable_shared" >&6
8631
8632 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8633 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8634 # Make sure either enable_shared or enable_static is yes.
8635 test "$enable_shared" = yes || enable_static=yes
8636 echo "$as_me:$LINENO: result: $enable_static" >&5
8637 echo "${ECHO_T}$enable_static" >&6
8638
8639 # The else clause should only fire when bootstrapping the
8640 # libtool distribution, otherwise you forgot to ship ltmain.sh
8641 # with your package, and you will get complaints that there are
8642 # no rules to generate ltmain.sh.
8643 if test -f "$ltmain"; then
8644   # See if we are running on zsh, and set the options which allow our commands through
8645   # without removal of \ escapes.
8646   if test -n "${ZSH_VERSION+set}" ; then
8647     setopt NO_GLOB_SUBST
8648   fi
8649   # Now quote all the things that may contain metacharacters while being
8650   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8651   # variables and quote the copies for generation of the libtool script.
8652   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8653     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8654     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8655     deplibs_check_method reload_flag reload_cmds need_locks \
8656     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8657     lt_cv_sys_global_symbol_to_c_name_address \
8658     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8659     old_postinstall_cmds old_postuninstall_cmds \
8660     compiler \
8661     CC \
8662     LD \
8663     lt_prog_compiler_wl \
8664     lt_prog_compiler_pic \
8665     lt_prog_compiler_static \
8666     lt_prog_compiler_no_builtin_flag \
8667     export_dynamic_flag_spec \
8668     thread_safe_flag_spec \
8669     whole_archive_flag_spec \
8670     enable_shared_with_static_runtimes \
8671     old_archive_cmds \
8672     old_archive_from_new_cmds \
8673     predep_objects \
8674     postdep_objects \
8675     predeps \
8676     postdeps \
8677     compiler_lib_search_path \
8678     archive_cmds \
8679     archive_expsym_cmds \
8680     postinstall_cmds \
8681     postuninstall_cmds \
8682     old_archive_from_expsyms_cmds \
8683     allow_undefined_flag \
8684     no_undefined_flag \
8685     export_symbols_cmds \
8686     hardcode_libdir_flag_spec \
8687     hardcode_libdir_flag_spec_ld \
8688     hardcode_libdir_separator \
8689     hardcode_automatic \
8690     module_cmds \
8691     module_expsym_cmds \
8692     lt_cv_prog_compiler_c_o \
8693     exclude_expsyms \
8694     include_expsyms; do
8695
8696     case $var in
8697     old_archive_cmds | \
8698     old_archive_from_new_cmds | \
8699     archive_cmds | \
8700     archive_expsym_cmds | \
8701     module_cmds | \
8702     module_expsym_cmds | \
8703     old_archive_from_expsyms_cmds | \
8704     export_symbols_cmds | \
8705     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8706     postinstall_cmds | postuninstall_cmds | \
8707     old_postinstall_cmds | old_postuninstall_cmds | \
8708     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8709       # Double-quote double-evaled strings.
8710       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8711       ;;
8712     *)
8713       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8714       ;;
8715     esac
8716   done
8717
8718   case $lt_echo in
8719   *'\$0 --fallback-echo"')
8720     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8721     ;;
8722   esac
8723
8724 cfgfile="${ofile}T"
8725   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8726   $rm -f "$cfgfile"
8727   { echo "$as_me:$LINENO: creating $ofile" >&5
8728 echo "$as_me: creating $ofile" >&6;}
8729
8730   cat <<__EOF__ >> "$cfgfile"
8731 #! $SHELL
8732
8733 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8734 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8735 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8736 #
8737 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8738 # Free Software Foundation, Inc.
8739 #
8740 # This file is part of GNU Libtool:
8741 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8742 #
8743 # This program is free software; you can redistribute it and/or modify
8744 # it under the terms of the GNU General Public License as published by
8745 # the Free Software Foundation; either version 2 of the License, or
8746 # (at your option) any later version.
8747 #
8748 # This program is distributed in the hope that it will be useful, but
8749 # WITHOUT ANY WARRANTY; without even the implied warranty of
8750 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8751 # General Public License for more details.
8752 #
8753 # You should have received a copy of the GNU General Public License
8754 # along with this program; if not, write to the Free Software
8755 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8756 #
8757 # As a special exception to the GNU General Public License, if you
8758 # distribute this file as part of a program that contains a
8759 # configuration script generated by Autoconf, you may include it under
8760 # the same distribution terms that you use for the rest of that program.
8761
8762 # A sed program that does not truncate output.
8763 SED=$lt_SED
8764
8765 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8766 Xsed="$SED -e s/^X//"
8767
8768 # The HP-UX ksh and POSIX shell print the target directory to stdout
8769 # if CDPATH is set.
8770 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8771
8772 # The names of the tagged configurations supported by this script.
8773 available_tags=
8774
8775 # ### BEGIN LIBTOOL CONFIG
8776
8777 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8778
8779 # Shell to use when invoking shell scripts.
8780 SHELL=$lt_SHELL
8781
8782 # Whether or not to build shared libraries.
8783 build_libtool_libs=$enable_shared
8784
8785 # Whether or not to build static libraries.
8786 build_old_libs=$enable_static
8787
8788 # Whether or not to add -lc for building shared libraries.
8789 build_libtool_need_lc=$archive_cmds_need_lc
8790
8791 # Whether or not to disallow shared libs when runtime libs are static
8792 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8793
8794 # Whether or not to optimize for fast installation.
8795 fast_install=$enable_fast_install
8796
8797 # The host system.
8798 host_alias=$host_alias
8799 host=$host
8800
8801 # An echo program that does not interpret backslashes.
8802 echo=$lt_echo
8803
8804 # The archiver.
8805 AR=$lt_AR
8806 AR_FLAGS=$lt_AR_FLAGS
8807
8808 # A C compiler.
8809 LTCC=$lt_LTCC
8810
8811 # A language-specific compiler.
8812 CC=$lt_compiler
8813
8814 # Is the compiler the GNU C compiler?
8815 with_gcc=$GCC
8816
8817 # An ERE matcher.
8818 EGREP=$lt_EGREP
8819
8820 # The linker used to build libraries.
8821 LD=$lt_LD
8822
8823 # Whether we need hard or soft links.
8824 LN_S=$lt_LN_S
8825
8826 # A BSD-compatible nm program.
8827 NM=$lt_NM
8828
8829 # A symbol stripping program
8830 STRIP=$STRIP
8831
8832 # Used to examine libraries when file_magic_cmd begins "file"
8833 MAGIC_CMD=$MAGIC_CMD
8834
8835 # Used on cygwin: DLL creation program.
8836 DLLTOOL="$DLLTOOL"
8837
8838 # Used on cygwin: object dumper.
8839 OBJDUMP="$OBJDUMP"
8840
8841 # Used on cygwin: assembler.
8842 AS="$AS"
8843
8844 # The name of the directory that contains temporary libtool files.
8845 objdir=$objdir
8846
8847 # How to create reloadable object files.
8848 reload_flag=$lt_reload_flag
8849 reload_cmds=$lt_reload_cmds
8850
8851 # How to pass a linker flag through the compiler.
8852 wl=$lt_lt_prog_compiler_wl
8853
8854 # Object file suffix (normally "o").
8855 objext="$ac_objext"
8856
8857 # Old archive suffix (normally "a").
8858 libext="$libext"
8859
8860 # Shared library suffix (normally ".so").
8861 shrext='$shrext'
8862
8863 # Executable file suffix (normally "").
8864 exeext="$exeext"
8865
8866 # Additional compiler flags for building library objects.
8867 pic_flag=$lt_lt_prog_compiler_pic
8868 pic_mode=$pic_mode
8869
8870 # What is the maximum length of a command?
8871 max_cmd_len=$lt_cv_sys_max_cmd_len
8872
8873 # Does compiler simultaneously support -c and -o options?
8874 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8875
8876 # Must we lock files when doing compilation ?
8877 need_locks=$lt_need_locks
8878
8879 # Do we need the lib prefix for modules?
8880 need_lib_prefix=$need_lib_prefix
8881
8882 # Do we need a version for libraries?
8883 need_version=$need_version
8884
8885 # Whether dlopen is supported.
8886 dlopen_support=$enable_dlopen
8887
8888 # Whether dlopen of programs is supported.
8889 dlopen_self=$enable_dlopen_self
8890
8891 # Whether dlopen of statically linked programs is supported.
8892 dlopen_self_static=$enable_dlopen_self_static
8893
8894 # Compiler flag to prevent dynamic linking.
8895 link_static_flag=$lt_lt_prog_compiler_static
8896
8897 # Compiler flag to turn off builtin functions.
8898 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8899
8900 # Compiler flag to allow reflexive dlopens.
8901 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8902
8903 # Compiler flag to generate shared objects directly from archives.
8904 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8905
8906 # Compiler flag to generate thread-safe objects.
8907 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8908
8909 # Library versioning type.
8910 version_type=$version_type
8911
8912 # Format of library name prefix.
8913 libname_spec=$lt_libname_spec
8914
8915 # List of archive names.  First name is the real one, the rest are links.
8916 # The last name is the one that the linker finds with -lNAME.
8917 library_names_spec=$lt_library_names_spec
8918
8919 # The coded name of the library, if different from the real name.
8920 soname_spec=$lt_soname_spec
8921
8922 # Commands used to build and install an old-style archive.
8923 RANLIB=$lt_RANLIB
8924 old_archive_cmds=$lt_old_archive_cmds
8925 old_postinstall_cmds=$lt_old_postinstall_cmds
8926 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8927
8928 # Create an old-style archive from a shared archive.
8929 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8930
8931 # Create a temporary old-style archive to link instead of a shared archive.
8932 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8933
8934 # Commands used to build and install a shared archive.
8935 archive_cmds=$lt_archive_cmds
8936 archive_expsym_cmds=$lt_archive_expsym_cmds
8937 postinstall_cmds=$lt_postinstall_cmds
8938 postuninstall_cmds=$lt_postuninstall_cmds
8939
8940 # Commands used to build a loadable module (assumed same as above if empty)
8941 module_cmds=$lt_module_cmds
8942 module_expsym_cmds=$lt_module_expsym_cmds
8943
8944 # Commands to strip libraries.
8945 old_striplib=$lt_old_striplib
8946 striplib=$lt_striplib
8947
8948 # Dependencies to place before the objects being linked to create a
8949 # shared library.
8950 predep_objects=$lt_predep_objects
8951
8952 # Dependencies to place after the objects being linked to create a
8953 # shared library.
8954 postdep_objects=$lt_postdep_objects
8955
8956 # Dependencies to place before the objects being linked to create a
8957 # shared library.
8958 predeps=$lt_predeps
8959
8960 # Dependencies to place after the objects being linked to create a
8961 # shared library.
8962 postdeps=$lt_postdeps
8963
8964 # The library search path used internally by the compiler when linking
8965 # a shared library.
8966 compiler_lib_search_path=$lt_compiler_lib_search_path
8967
8968 # Method to check whether dependent libraries are shared objects.
8969 deplibs_check_method=$lt_deplibs_check_method
8970
8971 # Command to use when deplibs_check_method == file_magic.
8972 file_magic_cmd=$lt_file_magic_cmd
8973
8974 # Flag that allows shared libraries with undefined symbols to be built.
8975 allow_undefined_flag=$lt_allow_undefined_flag
8976
8977 # Flag that forces no undefined symbols.
8978 no_undefined_flag=$lt_no_undefined_flag
8979
8980 # Commands used to finish a libtool library installation in a directory.
8981 finish_cmds=$lt_finish_cmds
8982
8983 # Same as above, but a single script fragment to be evaled but not shown.
8984 finish_eval=$lt_finish_eval
8985
8986 # Take the output of nm and produce a listing of raw symbols and C names.
8987 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8988
8989 # Transform the output of nm in a proper C declaration
8990 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8991
8992 # Transform the output of nm in a C name address pair
8993 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8994
8995 # This is the shared library runtime path variable.
8996 runpath_var=$runpath_var
8997
8998 # This is the shared library path variable.
8999 shlibpath_var=$shlibpath_var
9000
9001 # Is shlibpath searched before the hard-coded library search path?
9002 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9003
9004 # How to hardcode a shared library path into an executable.
9005 hardcode_action=$hardcode_action
9006
9007 # Whether we should hardcode library paths into libraries.
9008 hardcode_into_libs=$hardcode_into_libs
9009
9010 # Flag to hardcode \$libdir into a binary during linking.
9011 # This must work even if \$libdir does not exist.
9012 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9013
9014 # If ld is used when linking, flag to hardcode \$libdir into
9015 # a binary during linking. This must work even if \$libdir does
9016 # not exist.
9017 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9018
9019 # Whether we need a single -rpath flag with a separated argument.
9020 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9021
9022 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9023 # resulting binary.
9024 hardcode_direct=$hardcode_direct
9025
9026 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9027 # resulting binary.
9028 hardcode_minus_L=$hardcode_minus_L
9029
9030 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9031 # the resulting binary.
9032 hardcode_shlibpath_var=$hardcode_shlibpath_var
9033
9034 # Set to yes if building a shared library automatically hardcodes DIR into the library
9035 # and all subsequent libraries and executables linked against it.
9036 hardcode_automatic=$hardcode_automatic
9037
9038 # Variables whose values should be saved in libtool wrapper scripts and
9039 # restored at relink time.
9040 variables_saved_for_relink="$variables_saved_for_relink"
9041
9042 # Whether libtool must link a program against all its dependency libraries.
9043 link_all_deplibs=$link_all_deplibs
9044
9045 # Compile-time system search path for libraries
9046 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9047
9048 # Run-time system search path for libraries
9049 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9050
9051 # Fix the shell variable \$srcfile for the compiler.
9052 fix_srcfile_path="$fix_srcfile_path"
9053
9054 # Set to yes if exported symbols are required.
9055 always_export_symbols=$always_export_symbols
9056
9057 # The commands to list exported symbols.
9058 export_symbols_cmds=$lt_export_symbols_cmds
9059
9060 # The commands to extract the exported symbol list from a shared archive.
9061 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9062
9063 # Symbols that should not be listed in the preloaded symbols.
9064 exclude_expsyms=$lt_exclude_expsyms
9065
9066 # Symbols that must always be exported.
9067 include_expsyms=$lt_include_expsyms
9068
9069 # ### END LIBTOOL CONFIG
9070
9071 __EOF__
9072
9073
9074   case $host_os in
9075   aix3*)
9076     cat <<\EOF >> "$cfgfile"
9077
9078 # AIX sometimes has problems with the GCC collect2 program.  For some
9079 # reason, if we set the COLLECT_NAMES environment variable, the problems
9080 # vanish in a puff of smoke.
9081 if test "X${COLLECT_NAMES+set}" != Xset; then
9082   COLLECT_NAMES=
9083   export COLLECT_NAMES
9084 fi
9085 EOF
9086     ;;
9087   esac
9088
9089   # We use sed instead of cat because bash on DJGPP gets confused if
9090   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9091   # text mode, it properly converts lines to CR/LF.  This bash problem
9092   # is reportedly fixed, but why not run on old versions too?
9093   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9094
9095   mv -f "$cfgfile" "$ofile" || \
9096     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9097   chmod +x "$ofile"
9098
9099 else
9100   # If there is no Makefile yet, we rely on a make rule to execute
9101   # `config.status --recheck' to rerun these tests and create the
9102   # libtool script then.
9103   test -f Makefile && make "$ltmain"
9104 fi
9105
9106
9107 ac_ext=c
9108 ac_cpp='$CPP $CPPFLAGS'
9109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9112
9113 CC="$lt_save_CC"
9114
9115
9116 # Check whether --with-tags or --without-tags was given.
9117 if test "${with_tags+set}" = set; then
9118   withval="$with_tags"
9119   tagnames="$withval"
9120 fi;
9121
9122 if test -f "$ltmain" && test -n "$tagnames"; then
9123   if test ! -f "${ofile}"; then
9124     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9125 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9126   fi
9127
9128   if test -z "$LTCC"; then
9129     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9130     if test -z "$LTCC"; then
9131       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9132 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9133     else
9134       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9135 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9136     fi
9137   fi
9138
9139   # Extract list of available tagged configurations in $ofile.
9140   # Note that this assumes the entire list is on one line.
9141   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9142
9143   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9144   for tagname in $tagnames; do
9145     IFS="$lt_save_ifs"
9146     # Check whether tagname contains only valid characters
9147     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9148     "") ;;
9149     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9150 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9151    { (exit 1); exit 1; }; }
9152         ;;
9153     esac
9154
9155     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9156     then
9157       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9158 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9159    { (exit 1); exit 1; }; }
9160     fi
9161
9162     # Update the list of available tags.
9163     if test -n "$tagname"; then
9164       echo appending configuration tag \"$tagname\" to $ofile
9165
9166       case $tagname in
9167       CXX)
9168         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9169           ac_ext=cc
9170 ac_cpp='$CXXCPP $CPPFLAGS'
9171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9174
9175
9176
9177
9178 archive_cmds_need_lc_CXX=no
9179 allow_undefined_flag_CXX=
9180 always_export_symbols_CXX=no
9181 archive_expsym_cmds_CXX=
9182 export_dynamic_flag_spec_CXX=
9183 hardcode_direct_CXX=no
9184 hardcode_libdir_flag_spec_CXX=
9185 hardcode_libdir_flag_spec_ld_CXX=
9186 hardcode_libdir_separator_CXX=
9187 hardcode_minus_L_CXX=no
9188 hardcode_automatic_CXX=no
9189 module_cmds_CXX=
9190 module_expsym_cmds_CXX=
9191 link_all_deplibs_CXX=unknown
9192 old_archive_cmds_CXX=$old_archive_cmds
9193 no_undefined_flag_CXX=
9194 whole_archive_flag_spec_CXX=
9195 enable_shared_with_static_runtimes_CXX=no
9196
9197 # Dependencies to place before and after the object being linked:
9198 predep_objects_CXX=
9199 postdep_objects_CXX=
9200 predeps_CXX=
9201 postdeps_CXX=
9202 compiler_lib_search_path_CXX=
9203
9204 # Source file extension for C++ test sources.
9205 ac_ext=cc
9206
9207 # Object file extension for compiled C++ test sources.
9208 objext=o
9209 objext_CXX=$objext
9210
9211 # Code to be used in simple compile tests
9212 lt_simple_compile_test_code="int some_variable = 0;\n"
9213
9214 # Code to be used in simple link tests
9215 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9216
9217 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9218
9219 # If no C compiler was specified, use CC.
9220 LTCC=${LTCC-"$CC"}
9221
9222 # Allow CC to be a program name with arguments.
9223 compiler=$CC
9224
9225
9226 # Allow CC to be a program name with arguments.
9227 lt_save_CC=$CC
9228 lt_save_LD=$LD
9229 lt_save_GCC=$GCC
9230 GCC=$GXX
9231 lt_save_with_gnu_ld=$with_gnu_ld
9232 lt_save_path_LD=$lt_cv_path_LD
9233 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9234   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9235 else
9236   unset lt_cv_prog_gnu_ld
9237 fi
9238 if test -n "${lt_cv_path_LDCXX+set}"; then
9239   lt_cv_path_LD=$lt_cv_path_LDCXX
9240 else
9241   unset lt_cv_path_LD
9242 fi
9243 test -z "${LDCXX+set}" || LD=$LDCXX
9244 CC=${CXX-"c++"}
9245 compiler=$CC
9246 compiler_CXX=$CC
9247 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9248
9249 # We don't want -fno-exception wen compiling C++ code, so set the
9250 # no_builtin_flag separately
9251 if test "$GXX" = yes; then
9252   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9253 else
9254   lt_prog_compiler_no_builtin_flag_CXX=
9255 fi
9256
9257 if test "$GXX" = yes; then
9258   # Set up default GNU C++ configuration
9259
9260
9261 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9262 if test "${with_gnu_ld+set}" = set; then
9263   withval="$with_gnu_ld"
9264   test "$withval" = no || with_gnu_ld=yes
9265 else
9266   with_gnu_ld=no
9267 fi;
9268 ac_prog=ld
9269 if test "$GCC" = yes; then
9270   # Check if gcc -print-prog-name=ld gives a path.
9271   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9272 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9273   case $host in
9274   *-*-mingw*)
9275     # gcc leaves a trailing carriage return which upsets mingw
9276     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9277   *)
9278     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9279   esac
9280   case $ac_prog in
9281     # Accept absolute paths.
9282     [\\/]* | ?:[\\/]*)
9283       re_direlt='/[^/][^/]*/\.\./'
9284       # Canonicalize the path of ld
9285       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9286       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9287         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9288       done
9289       test -z "$LD" && LD="$ac_prog"
9290       ;;
9291   "")
9292     # If it fails, then pretend we aren't using GCC.
9293     ac_prog=ld
9294     ;;
9295   *)
9296     # If it is relative, then search for the first ld in PATH.
9297     with_gnu_ld=unknown
9298     ;;
9299   esac
9300 elif test "$with_gnu_ld" = yes; then
9301   echo "$as_me:$LINENO: checking for GNU ld" >&5
9302 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9303 else
9304   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9305 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9306 fi
9307 if test "${lt_cv_path_LD+set}" = set; then
9308   echo $ECHO_N "(cached) $ECHO_C" >&6
9309 else
9310   if test -z "$LD"; then
9311   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9312   for ac_dir in $PATH; do
9313     IFS="$lt_save_ifs"
9314     test -z "$ac_dir" && ac_dir=.
9315     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9316       lt_cv_path_LD="$ac_dir/$ac_prog"
9317       # Check to see if the program is GNU ld.  I'd rather use --version,
9318       # but apparently some GNU ld's only accept -v.
9319       # Break only if it was the GNU/non-GNU ld that we prefer.
9320       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9321       *GNU* | *'with BFD'*)
9322         test "$with_gnu_ld" != no && break
9323         ;;
9324       *)
9325         test "$with_gnu_ld" != yes && break
9326         ;;
9327       esac
9328     fi
9329   done
9330   IFS="$lt_save_ifs"
9331 else
9332   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9333 fi
9334 fi
9335
9336 LD="$lt_cv_path_LD"
9337 if test -n "$LD"; then
9338   echo "$as_me:$LINENO: result: $LD" >&5
9339 echo "${ECHO_T}$LD" >&6
9340 else
9341   echo "$as_me:$LINENO: result: no" >&5
9342 echo "${ECHO_T}no" >&6
9343 fi
9344 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9345 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9346    { (exit 1); exit 1; }; }
9347 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9348 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9349 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9350   echo $ECHO_N "(cached) $ECHO_C" >&6
9351 else
9352   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9353 case `$LD -v 2>&1 </dev/null` in
9354 *GNU* | *'with BFD'*)
9355   lt_cv_prog_gnu_ld=yes
9356   ;;
9357 *)
9358   lt_cv_prog_gnu_ld=no
9359   ;;
9360 esac
9361 fi
9362 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9363 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9364 with_gnu_ld=$lt_cv_prog_gnu_ld
9365
9366
9367
9368   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9369   # archiving commands below assume that GNU ld is being used.
9370   if test "$with_gnu_ld" = yes; then
9371     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9372     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9373
9374     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9375     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9376
9377     # If archive_cmds runs LD, not CC, wlarc should be empty
9378     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9379     #     investigate it a little bit more. (MM)
9380     wlarc='${wl}'
9381
9382     # ancient GNU ld didn't support --whole-archive et. al.
9383     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9384         grep 'no-whole-archive' > /dev/null; then
9385       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9386     else
9387       whole_archive_flag_spec_CXX=
9388     fi
9389   else
9390     with_gnu_ld=no
9391     wlarc=
9392
9393     # A generic and very simple default shared library creation
9394     # command for GNU C++ for the case where it uses the native
9395     # linker, instead of GNU ld.  If possible, this setting should
9396     # overridden to take advantage of the native linker features on
9397     # the platform it is being used on.
9398     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9399   fi
9400
9401   # Commands to make compiler produce verbose output that lists
9402   # what "hidden" libraries, object files and flags are used when
9403   # linking a shared library.
9404   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9405
9406 else
9407   GXX=no
9408   with_gnu_ld=no
9409   wlarc=
9410 fi
9411
9412 # PORTME: fill in a description of your system's C++ link characteristics
9413 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9414 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9415 ld_shlibs_CXX=yes
9416 case $host_os in
9417   aix3*)
9418     # FIXME: insert proper C++ library support
9419     ld_shlibs_CXX=no
9420     ;;
9421   aix4* | aix5*)
9422     if test "$host_cpu" = ia64; then
9423       # On IA64, the linker does run time linking by default, so we don't
9424       # have to do anything special.
9425       aix_use_runtimelinking=no
9426       exp_sym_flag='-Bexport'
9427       no_entry_flag=""
9428     else
9429       aix_use_runtimelinking=no
9430
9431       # Test if we are trying to use run time linking or normal
9432       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9433       # need to do runtime linking.
9434       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9435         for ld_flag in $LDFLAGS; do
9436           case $ld_flag in
9437           *-brtl*)
9438             aix_use_runtimelinking=yes
9439             break
9440             ;;
9441           esac
9442         done
9443       esac
9444
9445       exp_sym_flag='-bexport'
9446       no_entry_flag='-bnoentry'
9447     fi
9448
9449     # When large executables or shared objects are built, AIX ld can
9450     # have problems creating the table of contents.  If linking a library
9451     # or program results in "error TOC overflow" add -mminimal-toc to
9452     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9453     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9454
9455     archive_cmds_CXX=''
9456     hardcode_direct_CXX=yes
9457     hardcode_libdir_separator_CXX=':'
9458     link_all_deplibs_CXX=yes
9459
9460     if test "$GXX" = yes; then
9461       case $host_os in aix4.012|aix4.012.*)
9462       # We only want to do this on AIX 4.2 and lower, the check
9463       # below for broken collect2 doesn't work under 4.3+
9464         collect2name=`${CC} -print-prog-name=collect2`
9465         if test -f "$collect2name" && \
9466            strings "$collect2name" | grep resolve_lib_name >/dev/null
9467         then
9468           # We have reworked collect2
9469           hardcode_direct_CXX=yes
9470         else
9471           # We have old collect2
9472           hardcode_direct_CXX=unsupported
9473           # It fails to find uninstalled libraries when the uninstalled
9474           # path is not listed in the libpath.  Setting hardcode_minus_L
9475           # to unsupported forces relinking
9476           hardcode_minus_L_CXX=yes
9477           hardcode_libdir_flag_spec_CXX='-L$libdir'
9478           hardcode_libdir_separator_CXX=
9479         fi
9480       esac
9481       shared_flag='-shared'
9482     else
9483       # not using gcc
9484       if test "$host_cpu" = ia64; then
9485         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9486         # chokes on -Wl,-G. The following line is correct:
9487         shared_flag='-G'
9488       else
9489         if test "$aix_use_runtimelinking" = yes; then
9490           shared_flag='${wl}-G'
9491         else
9492           shared_flag='${wl}-bM:SRE'
9493         fi
9494       fi
9495     fi
9496
9497     # It seems that -bexpall does not export symbols beginning with
9498     # underscore (_), so it is better to generate a list of symbols to export.
9499     always_export_symbols_CXX=yes
9500     if test "$aix_use_runtimelinking" = yes; then
9501       # Warning - without using the other runtime loading flags (-brtl),
9502       # -berok will link without error, but may produce a broken library.
9503       allow_undefined_flag_CXX='-berok'
9504       # Determine the default libpath from the value encoded in an empty executable.
9505       cat >conftest.$ac_ext <<_ACEOF
9506 #line $LINENO "configure"
9507 /* confdefs.h.  */
9508 _ACEOF
9509 cat confdefs.h >>conftest.$ac_ext
9510 cat >>conftest.$ac_ext <<_ACEOF
9511 /* end confdefs.h.  */
9512
9513 int
9514 main ()
9515 {
9516
9517   ;
9518   return 0;
9519 }
9520 _ACEOF
9521 rm -f conftest.$ac_objext conftest$ac_exeext
9522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9523   (eval $ac_link) 2>&5
9524   ac_status=$?
9525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526   (exit $ac_status); } &&
9527          { ac_try='test -s conftest$ac_exeext'
9528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529   (eval $ac_try) 2>&5
9530   ac_status=$?
9531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532   (exit $ac_status); }; }; then
9533
9534 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9535 }'`
9536 # Check for a 64-bit object if we didn't find anything.
9537 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9538 }'`; fi
9539 else
9540   echo "$as_me: failed program was:" >&5
9541 sed 's/^/| /' conftest.$ac_ext >&5
9542
9543 fi
9544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9545 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9546
9547       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9548
9549       archive_expsym_cmds_CXX="\$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"
9550      else
9551       if test "$host_cpu" = ia64; then
9552         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9553         allow_undefined_flag_CXX="-z nodefs"
9554         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9555       else
9556         # Determine the default libpath from the value encoded in an empty executable.
9557         cat >conftest.$ac_ext <<_ACEOF
9558 #line $LINENO "configure"
9559 /* confdefs.h.  */
9560 _ACEOF
9561 cat confdefs.h >>conftest.$ac_ext
9562 cat >>conftest.$ac_ext <<_ACEOF
9563 /* end confdefs.h.  */
9564
9565 int
9566 main ()
9567 {
9568
9569   ;
9570   return 0;
9571 }
9572 _ACEOF
9573 rm -f conftest.$ac_objext conftest$ac_exeext
9574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9575   (eval $ac_link) 2>&5
9576   ac_status=$?
9577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578   (exit $ac_status); } &&
9579          { ac_try='test -s conftest$ac_exeext'
9580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581   (eval $ac_try) 2>&5
9582   ac_status=$?
9583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584   (exit $ac_status); }; }; then
9585
9586 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9587 }'`
9588 # Check for a 64-bit object if we didn't find anything.
9589 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9590 }'`; fi
9591 else
9592   echo "$as_me: failed program was:" >&5
9593 sed 's/^/| /' conftest.$ac_ext >&5
9594
9595 fi
9596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9597 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9598
9599         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9600         # Warning - without using the other run time loading flags,
9601         # -berok will link without error, but may produce a broken library.
9602         no_undefined_flag_CXX=' ${wl}-bernotok'
9603         allow_undefined_flag_CXX=' ${wl}-berok'
9604         # -bexpall does not export symbols beginning with underscore (_)
9605         always_export_symbols_CXX=yes
9606         # Exported symbols can be pulled into shared objects from archives
9607         whole_archive_flag_spec_CXX=' '
9608         archive_cmds_need_lc_CXX=yes
9609         # This is similar to how AIX traditionally builds it's shared libraries.
9610         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9611       fi
9612     fi
9613     ;;
9614   chorus*)
9615     case $cc_basename in
9616       *)
9617         # FIXME: insert proper C++ library support
9618         ld_shlibs_CXX=no
9619         ;;
9620     esac
9621     ;;
9622
9623   cygwin* | mingw* | pw32*)
9624     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9625     # as there is no search path for DLLs.
9626     hardcode_libdir_flag_spec_CXX='-L$libdir'
9627     allow_undefined_flag_CXX=unsupported
9628     always_export_symbols_CXX=no
9629     enable_shared_with_static_runtimes_CXX=yes
9630
9631     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9632       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9633       # If the export-symbols file already is a .def file (1st line
9634       # is EXPORTS), use it as is; otherwise, prepend...
9635       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9636         cp $export_symbols $output_objdir/$soname.def;
9637       else
9638         echo EXPORTS > $output_objdir/$soname.def;
9639         cat $export_symbols >> $output_objdir/$soname.def;
9640       fi~
9641       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9642     else
9643       ld_shlibs_CXX=no
9644     fi
9645   ;;
9646
9647   darwin* | rhapsody*)
9648    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9649     archive_cmds_need_lc_CXX=no
9650     case "$host_os" in
9651     rhapsody* | darwin1.[012])
9652       allow_undefined_flag_CXX='-undefined suppress'
9653       ;;
9654     *) # Darwin 1.3 on
9655       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9656       ;;
9657     esac
9658         lt_int_apple_cc_single_mod=no
9659         output_verbose_link_cmd='echo'
9660         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9661           lt_int_apple_cc_single_mod=yes
9662         fi
9663         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9664           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9665         else
9666         archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9667       fi
9668       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9669
9670     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9671       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9672         archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9673       else
9674         archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9675       fi
9676         module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9677     hardcode_direct_CXX=no
9678     hardcode_automatic_CXX=yes
9679     hardcode_shlibpath_var_CXX=unsupported
9680     whole_archive_flag_spec_CXX='-all_load $convenience'
9681     link_all_deplibs_CXX=yes
9682    fi
9683     ;;
9684
9685   dgux*)
9686     case $cc_basename in
9687       ec++)
9688         # FIXME: insert proper C++ library support
9689         ld_shlibs_CXX=no
9690         ;;
9691       ghcx)
9692         # Green Hills C++ Compiler
9693         # FIXME: insert proper C++ library support
9694         ld_shlibs_CXX=no
9695         ;;
9696       *)
9697         # FIXME: insert proper C++ library support
9698         ld_shlibs_CXX=no
9699         ;;
9700     esac
9701     ;;
9702   freebsd12*)
9703     # C++ shared libraries reported to be fairly broken before switch to ELF
9704     ld_shlibs_CXX=no
9705     ;;
9706   freebsd-elf*)
9707     archive_cmds_need_lc_CXX=no
9708     ;;
9709   freebsd*)
9710     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9711     # conventions
9712     ld_shlibs_CXX=yes
9713     ;;
9714   gnu*)
9715     ;;
9716   hpux9*)
9717     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9718     hardcode_libdir_separator_CXX=:
9719     export_dynamic_flag_spec_CXX='${wl}-E'
9720     hardcode_direct_CXX=yes
9721     hardcode_minus_L_CXX=yes # Not in the search PATH,
9722                                 # but as the default
9723                                 # location of the library.
9724
9725     case $cc_basename in
9726     CC)
9727       # FIXME: insert proper C++ library support
9728       ld_shlibs_CXX=no
9729       ;;
9730     aCC)
9731       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9732       # Commands to make compiler produce verbose output that lists
9733       # what "hidden" libraries, object files and flags are used when
9734       # linking a shared library.
9735       #
9736       # There doesn't appear to be a way to prevent this compiler from
9737       # explicitly linking system object files so we need to strip them
9738       # from the output so that they don't get included in the library
9739       # dependencies.
9740       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9741       ;;
9742     *)
9743       if test "$GXX" = yes; then
9744         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9745       else
9746         # FIXME: insert proper C++ library support
9747         ld_shlibs_CXX=no
9748       fi
9749       ;;
9750     esac
9751     ;;
9752   hpux10*|hpux11*)
9753     if test $with_gnu_ld = no; then
9754       case "$host_cpu" in
9755       hppa*64*)
9756         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9757         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9758         hardcode_libdir_separator_CXX=:
9759         ;;
9760       ia64*)
9761         hardcode_libdir_flag_spec_CXX='-L$libdir'
9762         ;;
9763       *)
9764         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9765         hardcode_libdir_separator_CXX=:
9766         export_dynamic_flag_spec_CXX='${wl}-E'
9767         ;;
9768       esac
9769     fi
9770     case "$host_cpu" in
9771     hppa*64*)
9772       hardcode_direct_CXX=no
9773       hardcode_shlibpath_var_CXX=no
9774       ;;
9775     ia64*)
9776       hardcode_direct_CXX=no
9777       hardcode_shlibpath_var_CXX=no
9778       hardcode_minus_L_CXX=yes # Not in the search PATH,
9779                                               # but as the default
9780                                               # location of the library.
9781       ;;
9782     *)
9783       hardcode_direct_CXX=yes
9784       hardcode_minus_L_CXX=yes # Not in the search PATH,
9785                                               # but as the default
9786                                               # location of the library.
9787       ;;
9788     esac
9789
9790     case $cc_basename in
9791       CC)
9792         # FIXME: insert proper C++ library support
9793         ld_shlibs_CXX=no
9794         ;;
9795       aCC)
9796         case "$host_cpu" in
9797         hppa*64*|ia64*)
9798           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9799           ;;
9800         *)
9801           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9802           ;;
9803         esac
9804         # Commands to make compiler produce verbose output that lists
9805         # what "hidden" libraries, object files and flags are used when
9806         # linking a shared library.
9807         #
9808         # There doesn't appear to be a way to prevent this compiler from
9809         # explicitly linking system object files so we need to strip them
9810         # from the output so that they don't get included in the library
9811         # dependencies.
9812         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9813         ;;
9814       *)
9815         if test "$GXX" = yes; then
9816           if test $with_gnu_ld = no; then
9817             case "$host_cpu" in
9818             ia64*|hppa*64*)
9819               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9820               ;;
9821             *)
9822               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9823               ;;
9824             esac
9825           fi
9826         else
9827           # FIXME: insert proper C++ library support
9828           ld_shlibs_CXX=no
9829         fi
9830         ;;
9831     esac
9832     ;;
9833   irix5* | irix6*)
9834     case $cc_basename in
9835       CC)
9836         # SGI C++
9837         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9838
9839         # Archives containing C++ object files must be created using
9840         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9841         # necessary to make sure instantiated templates are included
9842         # in the archive.
9843         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9844         ;;
9845       *)
9846         if test "$GXX" = yes; then
9847           if test "$with_gnu_ld" = no; then
9848             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9849           else
9850             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
9851           fi
9852         fi
9853         link_all_deplibs_CXX=yes
9854         ;;
9855     esac
9856     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9857     hardcode_libdir_separator_CXX=:
9858     ;;
9859   linux*)
9860     case $cc_basename in
9861       KCC)
9862         # Kuck and Associates, Inc. (KAI) C++ Compiler
9863
9864         # KCC will only create a shared library if the output file
9865         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9866         # to its proper name (with version) after linking.
9867         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9868         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
9869         # Commands to make compiler produce verbose output that lists
9870         # what "hidden" libraries, object files and flags are used when
9871         # linking a shared library.
9872         #
9873         # There doesn't appear to be a way to prevent this compiler from
9874         # explicitly linking system object files so we need to strip them
9875         # from the output so that they don't get included in the library
9876         # dependencies.
9877         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9878
9879         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9880         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9881
9882         # Archives containing C++ object files must be created using
9883         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9884         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9885         ;;
9886       icpc)
9887         # Intel C++
9888         with_gnu_ld=yes
9889         archive_cmds_need_lc_CXX=no
9890         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9891         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9892         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9893         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9894         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9895         ;;
9896       cxx)
9897         # Compaq C++
9898         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9899         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
9900
9901         runpath_var=LD_RUN_PATH
9902         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9903         hardcode_libdir_separator_CXX=:
9904
9905         # Commands to make compiler produce verbose output that lists
9906         # what "hidden" libraries, object files and flags are used when
9907         # linking a shared library.
9908         #
9909         # There doesn't appear to be a way to prevent this compiler from
9910         # explicitly linking system object files so we need to strip them
9911         # from the output so that they don't get included in the library
9912         # dependencies.
9913         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9914         ;;
9915     esac
9916     ;;
9917   lynxos*)
9918     # FIXME: insert proper C++ library support
9919     ld_shlibs_CXX=no
9920     ;;
9921   m88k*)
9922     # FIXME: insert proper C++ library support
9923     ld_shlibs_CXX=no
9924     ;;
9925   mvs*)
9926     case $cc_basename in
9927       cxx)
9928         # FIXME: insert proper C++ library support
9929         ld_shlibs_CXX=no
9930         ;;
9931       *)
9932         # FIXME: insert proper C++ library support
9933         ld_shlibs_CXX=no
9934         ;;
9935     esac
9936     ;;
9937   netbsd*)
9938     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9939       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9940       wlarc=
9941       hardcode_libdir_flag_spec_CXX='-R$libdir'
9942       hardcode_direct_CXX=yes
9943       hardcode_shlibpath_var_CXX=no
9944     fi
9945     # Workaround some broken pre-1.5 toolchains
9946     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9947     ;;
9948   osf3*)
9949     case $cc_basename in
9950       KCC)
9951         # Kuck and Associates, Inc. (KAI) C++ Compiler
9952
9953         # KCC will only create a shared library if the output file
9954         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9955         # to its proper name (with version) after linking.
9956         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9957
9958         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9959         hardcode_libdir_separator_CXX=:
9960
9961         # Archives containing C++ object files must be created using
9962         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9963         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9964
9965         ;;
9966       RCC)
9967         # Rational C++ 2.4.1
9968         # FIXME: insert proper C++ library support
9969         ld_shlibs_CXX=no
9970         ;;
9971       cxx)
9972         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9973         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9974
9975         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9976         hardcode_libdir_separator_CXX=:
9977
9978         # Commands to make compiler produce verbose output that lists
9979         # what "hidden" libraries, object files and flags are used when
9980         # linking a shared library.
9981         #
9982         # There doesn't appear to be a way to prevent this compiler from
9983         # explicitly linking system object files so we need to strip them
9984         # from the output so that they don't get included in the library
9985         # dependencies.
9986         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9987         ;;
9988       *)
9989         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9990           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9991           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9992
9993           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9994           hardcode_libdir_separator_CXX=:
9995
9996           # Commands to make compiler produce verbose output that lists
9997           # what "hidden" libraries, object files and flags are used when
9998           # linking a shared library.
9999           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10000
10001         else
10002           # FIXME: insert proper C++ library support
10003           ld_shlibs_CXX=no
10004         fi
10005         ;;
10006     esac
10007     ;;
10008   osf4* | osf5*)
10009     case $cc_basename in
10010       KCC)
10011         # Kuck and Associates, Inc. (KAI) C++ Compiler
10012
10013         # KCC will only create a shared library if the output file
10014         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10015         # to its proper name (with version) after linking.
10016         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10017
10018         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10019         hardcode_libdir_separator_CXX=:
10020
10021         # Archives containing C++ object files must be created using
10022         # the KAI C++ compiler.
10023         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10024         ;;
10025       RCC)
10026         # Rational C++ 2.4.1
10027         # FIXME: insert proper C++ library support
10028         ld_shlibs_CXX=no
10029         ;;
10030       cxx)
10031         allow_undefined_flag_CXX=' -expect_unresolved \*'
10032         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10033         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10034           echo "-hidden">> $lib.exp~
10035           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10036           $rm $lib.exp'
10037
10038         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10039         hardcode_libdir_separator_CXX=:
10040
10041         # Commands to make compiler produce verbose output that lists
10042         # what "hidden" libraries, object files and flags are used when
10043         # linking a shared library.
10044         #
10045         # There doesn't appear to be a way to prevent this compiler from
10046         # explicitly linking system object files so we need to strip them
10047         # from the output so that they don't get included in the library
10048         # dependencies.
10049         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10050         ;;
10051       *)
10052         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10053           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10054          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10055
10056           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10057           hardcode_libdir_separator_CXX=:
10058
10059           # Commands to make compiler produce verbose output that lists
10060           # what "hidden" libraries, object files and flags are used when
10061           # linking a shared library.
10062           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10063
10064         else
10065           # FIXME: insert proper C++ library support
10066           ld_shlibs_CXX=no
10067         fi
10068         ;;
10069     esac
10070     ;;
10071   psos*)
10072     # FIXME: insert proper C++ library support
10073     ld_shlibs_CXX=no
10074     ;;
10075   sco*)
10076     archive_cmds_need_lc_CXX=no
10077     case $cc_basename in
10078       CC)
10079         # FIXME: insert proper C++ library support
10080         ld_shlibs_CXX=no
10081         ;;
10082       *)
10083         # FIXME: insert proper C++ library support
10084         ld_shlibs_CXX=no
10085         ;;
10086     esac
10087     ;;
10088   sunos4*)
10089     case $cc_basename in
10090       CC)
10091         # Sun C++ 4.x
10092         # FIXME: insert proper C++ library support
10093         ld_shlibs_CXX=no
10094         ;;
10095       lcc)
10096         # Lucid
10097         # FIXME: insert proper C++ library support
10098         ld_shlibs_CXX=no
10099         ;;
10100       *)
10101         # FIXME: insert proper C++ library support
10102         ld_shlibs_CXX=no
10103         ;;
10104     esac
10105     ;;
10106   solaris*)
10107     case $cc_basename in
10108       CC)
10109         # Sun C++ 4.2, 5.x and Centerline C++
10110         no_undefined_flag_CXX=' -zdefs'
10111         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10112         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10113         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10114
10115         hardcode_libdir_flag_spec_CXX='-R$libdir'
10116         hardcode_shlibpath_var_CXX=no
10117         case $host_os in
10118           solaris2.0-5 | solaris2.0-5.*) ;;
10119           *)
10120             # The C++ compiler is used as linker so we must use $wl
10121             # flag to pass the commands to the underlying system
10122             # linker.
10123             # Supported since Solaris 2.6 (maybe 2.5.1?)
10124             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10125             ;;
10126         esac
10127         link_all_deplibs_CXX=yes
10128
10129         # Commands to make compiler produce verbose output that lists
10130         # what "hidden" libraries, object files and flags are used when
10131         # linking a shared library.
10132         #
10133         # There doesn't appear to be a way to prevent this compiler from
10134         # explicitly linking system object files so we need to strip them
10135         # from the output so that they don't get included in the library
10136         # dependencies.
10137         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10138
10139         # Archives containing C++ object files must be created using
10140         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10141         # necessary to make sure instantiated templates are included
10142         # in the archive.
10143         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10144         ;;
10145       gcx)
10146         # Green Hills C++ Compiler
10147         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10148
10149         # The C++ compiler must be used to create the archive.
10150         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10151         ;;
10152       *)
10153         # GNU C++ compiler with Solaris linker
10154         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10155           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10156           if $CC --version | grep -v '^2\.7' > /dev/null; then
10157             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10158             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10159                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10160
10161             # Commands to make compiler produce verbose output that lists
10162             # what "hidden" libraries, object files and flags are used when
10163             # linking a shared library.
10164             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10165           else
10166             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10167             # platform.
10168             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10169             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10170                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10171
10172             # Commands to make compiler produce verbose output that lists
10173             # what "hidden" libraries, object files and flags are used when
10174             # linking a shared library.
10175             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10176           fi
10177
10178           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10179         fi
10180         ;;
10181     esac
10182     ;;
10183   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10184     archive_cmds_need_lc_CXX=no
10185     ;;
10186   tandem*)
10187     case $cc_basename in
10188       NCC)
10189         # NonStop-UX NCC 3.20
10190         # FIXME: insert proper C++ library support
10191         ld_shlibs_CXX=no
10192         ;;
10193       *)
10194         # FIXME: insert proper C++ library support
10195         ld_shlibs_CXX=no
10196         ;;
10197     esac
10198     ;;
10199   vxworks*)
10200     # FIXME: insert proper C++ library support
10201     ld_shlibs_CXX=no
10202     ;;
10203   *)
10204     # FIXME: insert proper C++ library support
10205     ld_shlibs_CXX=no
10206     ;;
10207 esac
10208 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10209 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10210 test "$ld_shlibs_CXX" = no && can_build_shared=no
10211
10212 GCC_CXX="$GXX"
10213 LD_CXX="$LD"
10214
10215
10216 cat > conftest.$ac_ext <<EOF
10217 class Foo
10218 {
10219 public:
10220   Foo (void) { a = 0; }
10221 private:
10222   int a;
10223 };
10224 EOF
10225
10226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10227   (eval $ac_compile) 2>&5
10228   ac_status=$?
10229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230   (exit $ac_status); }; then
10231   # Parse the compiler output and extract the necessary
10232   # objects, libraries and library flags.
10233
10234   # Sentinel used to keep track of whether or not we are before
10235   # the conftest object file.
10236   pre_test_object_deps_done=no
10237
10238   # The `*' in the case matches for architectures that use `case' in
10239   # $output_verbose_cmd can trigger glob expansion during the loop
10240   # eval without this substitution.
10241   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10242
10243   for p in `eval $output_verbose_link_cmd`; do
10244     case $p in
10245
10246     -L* | -R* | -l*)
10247        # Some compilers place space between "-{L,R}" and the path.
10248        # Remove the space.
10249        if test $p = "-L" \
10250           || test $p = "-R"; then
10251          prev=$p
10252          continue
10253        else
10254          prev=
10255        fi
10256
10257        if test "$pre_test_object_deps_done" = no; then
10258          case $p in
10259          -L* | -R*)
10260            # Internal compiler library paths should come after those
10261            # provided the user.  The postdeps already come after the
10262            # user supplied libs so there is no need to process them.
10263            if test -z "$compiler_lib_search_path_CXX"; then
10264              compiler_lib_search_path_CXX="${prev}${p}"
10265            else
10266              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10267            fi
10268            ;;
10269          # The "-l" case would never come before the object being
10270          # linked, so don't bother handling this case.
10271          esac
10272        else
10273          if test -z "$postdeps_CXX"; then
10274            postdeps_CXX="${prev}${p}"
10275          else
10276            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10277          fi
10278        fi
10279        ;;
10280
10281     *.$objext)
10282        # This assumes that the test object file only shows up
10283        # once in the compiler output.
10284        if test "$p" = "conftest.$objext"; then
10285          pre_test_object_deps_done=yes
10286          continue
10287        fi
10288
10289        if test "$pre_test_object_deps_done" = no; then
10290          if test -z "$predep_objects_CXX"; then
10291            predep_objects_CXX="$p"
10292          else
10293            predep_objects_CXX="$predep_objects_CXX $p"
10294          fi
10295        else
10296          if test -z "$postdep_objects_CXX"; then
10297            postdep_objects_CXX="$p"
10298          else
10299            postdep_objects_CXX="$postdep_objects_CXX $p"
10300          fi
10301        fi
10302        ;;
10303
10304     *) ;; # Ignore the rest.
10305
10306     esac
10307   done
10308
10309   # Clean up.
10310   rm -f a.out a.exe
10311 else
10312   echo "libtool.m4: error: problem compiling CXX test program"
10313 fi
10314
10315 $rm -f confest.$objext
10316
10317 case " $postdeps_CXX " in
10318 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10319 esac
10320
10321 lt_prog_compiler_wl_CXX=
10322 lt_prog_compiler_pic_CXX=
10323 lt_prog_compiler_static_CXX=
10324
10325 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10326 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10327
10328   # C++ specific cases for pic, static, wl, etc.
10329   if test "$GXX" = yes; then
10330     lt_prog_compiler_wl_CXX='-Wl,'
10331     lt_prog_compiler_static_CXX='-static'
10332
10333     case $host_os in
10334     aix*)
10335       # All AIX code is PIC.
10336       if test "$host_cpu" = ia64; then
10337         # AIX 5 now supports IA64 processor
10338         lt_prog_compiler_static_CXX='-Bstatic'
10339       fi
10340       ;;
10341     amigaos*)
10342       # FIXME: we need at least 68020 code to build shared libraries, but
10343       # adding the `-m68020' flag to GCC prevents building anything better,
10344       # like `-m68040'.
10345       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10346       ;;
10347     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10348       # PIC is the default for these OSes.
10349       ;;
10350     mingw* | os2* | pw32*)
10351       # This hack is so that the source file can tell whether it is being
10352       # built for inclusion in a dll (and should export symbols for example).
10353       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10354       ;;
10355     darwin* | rhapsody*)
10356       # PIC is the default on this platform
10357       # Common symbols not allowed in MH_DYLIB files
10358       lt_prog_compiler_pic_CXX='-fno-common'
10359       ;;
10360     *djgpp*)
10361       # DJGPP does not support shared libraries at all
10362       lt_prog_compiler_pic_CXX=
10363       ;;
10364     sysv4*MP*)
10365       if test -d /usr/nec; then
10366         lt_prog_compiler_pic_CXX=-Kconform_pic
10367       fi
10368       ;;
10369     hpux*)
10370       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10371       # not for PA HP-UX.
10372       case "$host_cpu" in
10373       hppa*64*|ia64*)
10374         ;;
10375       *)
10376         lt_prog_compiler_pic_CXX='-fPIC'
10377         ;;
10378       esac
10379       ;;
10380     *)
10381       lt_prog_compiler_pic_CXX='-fPIC'
10382       ;;
10383     esac
10384   else
10385     case $host_os in
10386       aix4* | aix5*)
10387         # All AIX code is PIC.
10388         if test "$host_cpu" = ia64; then
10389           # AIX 5 now supports IA64 processor
10390           lt_prog_compiler_static_CXX='-Bstatic'
10391         else
10392           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10393         fi
10394         ;;
10395       chorus*)
10396         case $cc_basename in
10397         cxch68)
10398           # Green Hills C++ Compiler
10399           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10400           ;;
10401         esac
10402         ;;
10403       dgux*)
10404         case $cc_basename in
10405           ec++)
10406             lt_prog_compiler_pic_CXX='-KPIC'
10407             ;;
10408           ghcx)
10409             # Green Hills C++ Compiler
10410             lt_prog_compiler_pic_CXX='-pic'
10411             ;;
10412           *)
10413             ;;
10414         esac
10415         ;;
10416       freebsd*)
10417         # FreeBSD uses GNU C++
10418         ;;
10419       hpux9* | hpux10* | hpux11*)
10420         case $cc_basename in
10421           CC)
10422             lt_prog_compiler_wl_CXX='-Wl,'
10423             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10424             if test "$host_cpu" != ia64; then
10425               lt_prog_compiler_pic_CXX='+Z'
10426             fi
10427             ;;
10428           aCC)
10429             lt_prog_compiler_wl_CXX='-Wl,'
10430             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10431             case "$host_cpu" in
10432             hppa*64*|ia64*)
10433               # +Z the default
10434               ;;
10435             *)
10436               lt_prog_compiler_pic_CXX='+Z'
10437               ;;
10438             esac
10439             ;;
10440           *)
10441             ;;
10442         esac
10443         ;;
10444       irix5* | irix6* | nonstopux*)
10445         case $cc_basename in
10446           CC)
10447             lt_prog_compiler_wl_CXX='-Wl,'
10448             lt_prog_compiler_static_CXX='-non_shared'
10449             # CC pic flag -KPIC is the default.
10450             ;;
10451           *)
10452             ;;
10453         esac
10454         ;;
10455       linux*)
10456         case $cc_basename in
10457           KCC)
10458             # KAI C++ Compiler
10459             lt_prog_compiler_wl_CXX='--backend -Wl,'
10460             lt_prog_compiler_pic_CXX='-fPIC'
10461             ;;
10462           icpc)
10463             # Intel C++
10464             lt_prog_compiler_wl_CXX='-Wl,'
10465             lt_prog_compiler_pic_CXX='-KPIC'
10466             lt_prog_compiler_static_CXX='-static'
10467             ;;
10468           cxx)
10469             # Compaq C++
10470             # Make sure the PIC flag is empty.  It appears that all Alpha
10471             # Linux and Compaq Tru64 Unix objects are PIC.
10472             lt_prog_compiler_pic_CXX=
10473             lt_prog_compiler_static_CXX='-non_shared'
10474             ;;
10475           *)
10476             ;;
10477         esac
10478         ;;
10479       lynxos*)
10480         ;;
10481       m88k*)
10482         ;;
10483       mvs*)
10484         case $cc_basename in
10485           cxx)
10486             lt_prog_compiler_pic_CXX='-W c,exportall'
10487             ;;
10488           *)
10489             ;;
10490         esac
10491         ;;
10492       netbsd*)
10493         ;;
10494       osf3* | osf4* | osf5*)
10495         case $cc_basename in
10496           KCC)
10497             lt_prog_compiler_wl_CXX='--backend -Wl,'
10498             ;;
10499           RCC)
10500             # Rational C++ 2.4.1
10501             lt_prog_compiler_pic_CXX='-pic'
10502             ;;
10503           cxx)
10504             # Digital/Compaq C++
10505             lt_prog_compiler_wl_CXX='-Wl,'
10506             # Make sure the PIC flag is empty.  It appears that all Alpha
10507             # Linux and Compaq Tru64 Unix objects are PIC.
10508             lt_prog_compiler_pic_CXX=
10509             lt_prog_compiler_static_CXX='-non_shared'
10510             ;;
10511           *)
10512             ;;
10513         esac
10514         ;;
10515       psos*)
10516         ;;
10517       sco*)
10518         case $cc_basename in
10519           CC)
10520             lt_prog_compiler_pic_CXX='-fPIC'
10521             ;;
10522           *)
10523             ;;
10524         esac
10525         ;;
10526       solaris*)
10527         case $cc_basename in
10528           CC)
10529             # Sun C++ 4.2, 5.x and Centerline C++
10530             lt_prog_compiler_pic_CXX='-KPIC'
10531             lt_prog_compiler_static_CXX='-Bstatic'
10532             lt_prog_compiler_wl_CXX='-Qoption ld '
10533             ;;
10534           gcx)
10535             # Green Hills C++ Compiler
10536             lt_prog_compiler_pic_CXX='-PIC'
10537             ;;
10538           *)
10539             ;;
10540         esac
10541         ;;
10542       sunos4*)
10543         case $cc_basename in
10544           CC)
10545             # Sun C++ 4.x
10546             lt_prog_compiler_pic_CXX='-pic'
10547             lt_prog_compiler_static_CXX='-Bstatic'
10548             ;;
10549           lcc)
10550             # Lucid
10551             lt_prog_compiler_pic_CXX='-pic'
10552             ;;
10553           *)
10554             ;;
10555         esac
10556         ;;
10557       tandem*)
10558         case $cc_basename in
10559           NCC)
10560             # NonStop-UX NCC 3.20
10561             lt_prog_compiler_pic_CXX='-KPIC'
10562             ;;
10563           *)
10564             ;;
10565         esac
10566         ;;
10567       unixware*)
10568         ;;
10569       vxworks*)
10570         ;;
10571       *)
10572         lt_prog_compiler_can_build_shared_CXX=no
10573         ;;
10574     esac
10575   fi
10576
10577 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10578 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10579
10580 #
10581 # Check to make sure the PIC flag actually works.
10582 #
10583 if test -n "$lt_prog_compiler_pic_CXX"; then
10584   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10585 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10586 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10587   echo $ECHO_N "(cached) $ECHO_C" >&6
10588 else
10589   lt_prog_compiler_pic_works_CXX=no
10590   ac_outfile=conftest.$ac_objext
10591    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10592    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10593    # Insert the option either (1) after the last *FLAGS variable, or
10594    # (2) before a word containing "conftest.", or (3) at the end.
10595    # Note that $ac_compile itself does not contain backslashes and begins
10596    # with a dollar sign (not a hyphen), so the echo should work correctly.
10597    # The option is referenced via a variable to avoid confusing sed.
10598    lt_compile=`echo "$ac_compile" | $SED \
10599    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10600    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10601    -e 's:$: $lt_compiler_flag:'`
10602    (eval echo "\"\$as_me:10602: $lt_compile\"" >&5)
10603    (eval "$lt_compile" 2>conftest.err)
10604    ac_status=$?
10605    cat conftest.err >&5
10606    echo "$as_me:10606: \$? = $ac_status" >&5
10607    if (exit $ac_status) && test -s "$ac_outfile"; then
10608      # The compiler can only warn and ignore the option if not recognized
10609      # So say no if there are warnings
10610      if test ! -s conftest.err; then
10611        lt_prog_compiler_pic_works_CXX=yes
10612      fi
10613    fi
10614    $rm conftest*
10615
10616 fi
10617 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10618 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10619
10620 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10621     case $lt_prog_compiler_pic_CXX in
10622      "" | " "*) ;;
10623      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10624      esac
10625 else
10626     lt_prog_compiler_pic_CXX=
10627      lt_prog_compiler_can_build_shared_CXX=no
10628 fi
10629
10630 fi
10631 case "$host_os" in
10632   # For platforms which do not support PIC, -DPIC is meaningless:
10633   *djgpp*)
10634     lt_prog_compiler_pic_CXX=
10635     ;;
10636   *)
10637     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10638     ;;
10639 esac
10640
10641 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10642 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10643 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10644   echo $ECHO_N "(cached) $ECHO_C" >&6
10645 else
10646   lt_cv_prog_compiler_c_o_CXX=no
10647    $rm -r conftest 2>/dev/null
10648    mkdir conftest
10649    cd conftest
10650    mkdir out
10651    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10652
10653    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10654    # that will create temporary files in the current directory regardless of
10655    # the output directory.  Thus, making CWD read-only will cause this test
10656    # to fail, enabling locking or at least warning the user not to do parallel
10657    # builds.
10658    chmod -w .
10659
10660    lt_compiler_flag="-o out/conftest2.$ac_objext"
10661    # Insert the option either (1) after the last *FLAGS variable, or
10662    # (2) before a word containing "conftest.", or (3) at the end.
10663    # Note that $ac_compile itself does not contain backslashes and begins
10664    # with a dollar sign (not a hyphen), so the echo should work correctly.
10665    lt_compile=`echo "$ac_compile" | $SED \
10666    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10667    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10668    -e 's:$: $lt_compiler_flag:'`
10669    (eval echo "\"\$as_me:10669: $lt_compile\"" >&5)
10670    (eval "$lt_compile" 2>out/conftest.err)
10671    ac_status=$?
10672    cat out/conftest.err >&5
10673    echo "$as_me:10673: \$? = $ac_status" >&5
10674    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10675    then
10676      # The compiler can only warn and ignore the option if not recognized
10677      # So say no if there are warnings
10678      if test ! -s out/conftest.err; then
10679        lt_cv_prog_compiler_c_o_CXX=yes
10680      fi
10681    fi
10682    chmod u+w .
10683    $rm conftest* out/*
10684    rmdir out
10685    cd ..
10686    rmdir conftest
10687    $rm conftest*
10688
10689 fi
10690 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10691 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10692
10693
10694 hard_links="nottested"
10695 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10696   # do not overwrite the value of need_locks provided by the user
10697   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10698 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10699   hard_links=yes
10700   $rm conftest*
10701   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10702   touch conftest.a
10703   ln conftest.a conftest.b 2>&5 || hard_links=no
10704   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10705   echo "$as_me:$LINENO: result: $hard_links" >&5
10706 echo "${ECHO_T}$hard_links" >&6
10707   if test "$hard_links" = no; then
10708     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10709 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10710     need_locks=warn
10711   fi
10712 else
10713   need_locks=no
10714 fi
10715
10716 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10717 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10718
10719   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10720   case $host_os in
10721   aix4* | aix5*)
10722     # If we're using GNU nm, then we don't want the "-C" option.
10723     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10724     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10725       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10726     else
10727       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10728     fi
10729     ;;
10730   pw32*)
10731     export_symbols_cmds_CXX="$ltdll_cmds"
10732   ;;
10733   cygwin* | mingw*)
10734     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10735   ;;
10736   *)
10737     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10738   ;;
10739   esac
10740
10741 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10742 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10743 test "$ld_shlibs_CXX" = no && can_build_shared=no
10744
10745 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10746 if test "$GCC" = yes; then
10747   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10748 fi
10749
10750 #
10751 # Do we need to explicitly link libc?
10752 #
10753 case "x$archive_cmds_need_lc_CXX" in
10754 x|xyes)
10755   # Assume -lc should be added
10756   archive_cmds_need_lc_CXX=yes
10757
10758   if test "$enable_shared" = yes && test "$GCC" = yes; then
10759     case $archive_cmds_CXX in
10760     *'~'*)
10761       # FIXME: we may have to deal with multi-command sequences.
10762       ;;
10763     '$CC '*)
10764       # Test whether the compiler implicitly links with -lc since on some
10765       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10766       # to ld, don't add -lc before -lgcc.
10767       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10768 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10769       $rm conftest*
10770       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10771
10772       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10773   (eval $ac_compile) 2>&5
10774   ac_status=$?
10775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776   (exit $ac_status); } 2>conftest.err; then
10777         soname=conftest
10778         lib=conftest
10779         libobjs=conftest.$ac_objext
10780         deplibs=
10781         wl=$lt_prog_compiler_wl_CXX
10782         compiler_flags=-v
10783         linker_flags=-v
10784         verstring=
10785         output_objdir=.
10786         libname=conftest
10787         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10788         allow_undefined_flag_CXX=
10789         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10790   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10791   ac_status=$?
10792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793   (exit $ac_status); }
10794         then
10795           archive_cmds_need_lc_CXX=no
10796         else
10797           archive_cmds_need_lc_CXX=yes
10798         fi
10799         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10800       else
10801         cat conftest.err 1>&5
10802       fi
10803       $rm conftest*
10804       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10805 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10806       ;;
10807     esac
10808   fi
10809   ;;
10810 esac
10811
10812 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10813 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10814 hardcode_action_CXX=
10815 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10816    test -n "$runpath_var CXX" || \
10817    test "X$hardcode_automatic_CXX"="Xyes" ; then
10818
10819   # We can hardcode non-existant directories.
10820   if test "$hardcode_direct_CXX" != no &&
10821      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10822      # have to relink, otherwise we might link with an installed library
10823      # when we should be linking with a yet-to-be-installed one
10824      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10825      test "$hardcode_minus_L_CXX" != no; then
10826     # Linking always hardcodes the temporary library directory.
10827     hardcode_action_CXX=relink
10828   else
10829     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10830     hardcode_action_CXX=immediate
10831   fi
10832 else
10833   # We cannot hardcode anything, or else we can only hardcode existing
10834   # directories.
10835   hardcode_action_CXX=unsupported
10836 fi
10837 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10838 echo "${ECHO_T}$hardcode_action_CXX" >&6
10839
10840 if test "$hardcode_action_CXX" = relink; then
10841   # Fast installation is not supported
10842   enable_fast_install=no
10843 elif test "$shlibpath_overrides_runpath" = yes ||
10844      test "$enable_shared" = no; then
10845   # Fast installation is not necessary
10846   enable_fast_install=needless
10847 fi
10848
10849 striplib=
10850 old_striplib=
10851 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10852 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10853 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10854   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10855   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10856   echo "$as_me:$LINENO: result: yes" >&5
10857 echo "${ECHO_T}yes" >&6
10858 else
10859 # FIXME - insert some real tests, host_os isn't really good enough
10860   case $host_os in
10861    darwin*)
10862        if test -n "$STRIP" ; then
10863          striplib="$STRIP -x"
10864          echo "$as_me:$LINENO: result: yes" >&5
10865 echo "${ECHO_T}yes" >&6
10866        else
10867   echo "$as_me:$LINENO: result: no" >&5
10868 echo "${ECHO_T}no" >&6
10869 fi
10870        ;;
10871    *)
10872   echo "$as_me:$LINENO: result: no" >&5
10873 echo "${ECHO_T}no" >&6
10874     ;;
10875   esac
10876 fi
10877
10878 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10879 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10880 library_names_spec=
10881 libname_spec='lib$name'
10882 soname_spec=
10883 shrext=".so"
10884 postinstall_cmds=
10885 postuninstall_cmds=
10886 finish_cmds=
10887 finish_eval=
10888 shlibpath_var=
10889 shlibpath_overrides_runpath=unknown
10890 version_type=none
10891 dynamic_linker="$host_os ld.so"
10892 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10893 if test "$GCC" = yes; then
10894   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10895   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10896     # if the path contains ";" then we assume it to be the separator
10897     # otherwise default to the standard path separator (i.e. ":") - it is
10898     # assumed that no part of a normal pathname contains ";" but that should
10899     # okay in the real world where ";" in dirpaths is itself problematic.
10900     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10901   else
10902     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10903   fi
10904 else
10905   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10906 fi
10907 need_lib_prefix=unknown
10908 hardcode_into_libs=no
10909
10910 # when you set need_version to no, make sure it does not cause -set_version
10911 # flags to be left without arguments
10912 need_version=unknown
10913
10914 case $host_os in
10915 aix3*)
10916   version_type=linux
10917   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10918   shlibpath_var=LIBPATH
10919
10920   # AIX 3 has no versioning support, so we append a major version to the name.
10921   soname_spec='${libname}${release}${shared_ext}$major'
10922   ;;
10923
10924 aix4* | aix5*)
10925   version_type=linux
10926   need_lib_prefix=no
10927   need_version=no
10928   hardcode_into_libs=yes
10929   if test "$host_cpu" = ia64; then
10930     # AIX 5 supports IA64
10931     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10932     shlibpath_var=LD_LIBRARY_PATH
10933   else
10934     # With GCC up to 2.95.x, collect2 would create an import file
10935     # for dependence libraries.  The import file would start with
10936     # the line `#! .'.  This would cause the generated library to
10937     # depend on `.', always an invalid library.  This was fixed in
10938     # development snapshots of GCC prior to 3.0.
10939     case $host_os in
10940       aix4 | aix4.[01] | aix4.[01].*)
10941       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10942            echo ' yes '
10943            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10944         :
10945       else
10946         can_build_shared=no
10947       fi
10948       ;;
10949     esac
10950     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10951     # soname into executable. Probably we can add versioning support to
10952     # collect2, so additional links can be useful in future.
10953     if test "$aix_use_runtimelinking" = yes; then
10954       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10955       # instead of lib<name>.a to let people know that these are not
10956       # typical AIX shared libraries.
10957       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10958     else
10959       # We preserve .a as extension for shared libraries through AIX4.2
10960       # and later when we are not doing run time linking.
10961       library_names_spec='${libname}${release}.a $libname.a'
10962       soname_spec='${libname}${release}${shared_ext}$major'
10963     fi
10964     shlibpath_var=LIBPATH
10965   fi
10966   ;;
10967
10968 amigaos*)
10969   library_names_spec='$libname.ixlibrary $libname.a'
10970   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10971   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'
10972   ;;
10973
10974 beos*)
10975   library_names_spec='${libname}${shared_ext}'
10976   dynamic_linker="$host_os ld.so"
10977   shlibpath_var=LIBRARY_PATH
10978   ;;
10979
10980 bsdi4*)
10981   version_type=linux
10982   need_version=no
10983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984   soname_spec='${libname}${release}${shared_ext}$major'
10985   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10986   shlibpath_var=LD_LIBRARY_PATH
10987   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10988   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10989   # the default ld.so.conf also contains /usr/contrib/lib and
10990   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10991   # libtool to hard-code these into programs
10992   ;;
10993
10994 cygwin* | mingw* | pw32*)
10995   version_type=windows
10996   shrext=".dll"
10997   need_version=no
10998   need_lib_prefix=no
10999
11000   case $GCC,$host_os in
11001   yes,cygwin* | yes,mingw* | yes,pw32*)
11002     library_names_spec='$libname.dll.a'
11003     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11004     postinstall_cmds='base_file=`basename \${file}`~
11005       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11006       dldir=$destdir/`dirname \$dlpath`~
11007       test -d \$dldir || mkdir -p \$dldir~
11008       $install_prog $dir/$dlname \$dldir/$dlname'
11009     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11010       dlpath=$dir/\$dldll~
11011        $rm \$dlpath'
11012     shlibpath_overrides_runpath=yes
11013
11014     case $host_os in
11015     cygwin*)
11016       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11017       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11018       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11019       ;;
11020     mingw*)
11021       # MinGW DLLs use traditional 'lib' prefix
11022       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11023       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11024       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11025         # It is most probably a Windows format PATH printed by
11026         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11027         # path with ; separators, and with drive letters. We can handle the
11028         # drive letters (cygwin fileutils understands them), so leave them,
11029         # especially as we might pass files found there to a mingw objdump,
11030         # which wouldn't understand a cygwinified path. Ahh.
11031         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11032       else
11033         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11034       fi
11035       ;;
11036     pw32*)
11037       # pw32 DLLs use 'pw' prefix rather than 'lib'
11038       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11039       ;;
11040     esac
11041     ;;
11042
11043   *)
11044     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11045     ;;
11046   esac
11047   dynamic_linker='Win32 ld.exe'
11048   # FIXME: first we should search . and the directory the executable is in
11049   shlibpath_var=PATH
11050   ;;
11051
11052 darwin* | rhapsody*)
11053   dynamic_linker="$host_os dyld"
11054   version_type=darwin
11055   need_lib_prefix=no
11056   need_version=no
11057   # FIXME: Relying on posixy $() will cause problems for
11058   #        cross-compilation, but unfortunately the echo tests do not
11059   #        yet detect zsh echo's removal of \ escapes.
11060   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11061   soname_spec='${libname}${release}${major}$shared_ext'
11062   shlibpath_overrides_runpath=yes
11063   shlibpath_var=DYLD_LIBRARY_PATH
11064   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11065   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11066   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11067   sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11068   fi
11069   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11070   ;;
11071
11072 dgux*)
11073   version_type=linux
11074   need_lib_prefix=no
11075   need_version=no
11076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11077   soname_spec='${libname}${release}${shared_ext}$major'
11078   shlibpath_var=LD_LIBRARY_PATH
11079   ;;
11080
11081 freebsd1*)
11082   dynamic_linker=no
11083   ;;
11084
11085 freebsd*)
11086   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11087   version_type=freebsd-$objformat
11088   case $version_type in
11089     freebsd-elf*)
11090       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11091       need_version=no
11092       need_lib_prefix=no
11093       ;;
11094     freebsd-*)
11095       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11096       need_version=yes
11097       ;;
11098   esac
11099   shlibpath_var=LD_LIBRARY_PATH
11100   case $host_os in
11101   freebsd2*)
11102     shlibpath_overrides_runpath=yes
11103     ;;
11104   freebsd3.01* | freebsdelf3.01*)
11105     shlibpath_overrides_runpath=yes
11106     hardcode_into_libs=yes
11107     ;;
11108   *) # from 3.2 on
11109     shlibpath_overrides_runpath=no
11110     hardcode_into_libs=yes
11111     ;;
11112   esac
11113   ;;
11114
11115 gnu*)
11116   version_type=linux
11117   need_lib_prefix=no
11118   need_version=no
11119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11120   soname_spec='${libname}${release}${shared_ext}$major'
11121   shlibpath_var=LD_LIBRARY_PATH
11122   hardcode_into_libs=yes
11123   ;;
11124
11125 hpux9* | hpux10* | hpux11*)
11126   # Give a soname corresponding to the major version so that dld.sl refuses to
11127   # link against other versions.
11128   version_type=sunos
11129   need_lib_prefix=no
11130   need_version=no
11131   case "$host_cpu" in
11132   ia64*)
11133     shrext='.so'
11134     hardcode_into_libs=yes
11135     dynamic_linker="$host_os dld.so"
11136     shlibpath_var=LD_LIBRARY_PATH
11137     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11138     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11139     soname_spec='${libname}${release}${shared_ext}$major'
11140     if test "X$HPUX_IA64_MODE" = X32; then
11141       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11142     else
11143       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11144     fi
11145     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11146     ;;
11147    hppa*64*)
11148      shrext='.sl'
11149      hardcode_into_libs=yes
11150      dynamic_linker="$host_os dld.sl"
11151      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11152      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11153      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11154      soname_spec='${libname}${release}${shared_ext}$major'
11155      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11156      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11157      ;;
11158    *)
11159     shrext='.sl'
11160     dynamic_linker="$host_os dld.sl"
11161     shlibpath_var=SHLIB_PATH
11162     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11163     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164     soname_spec='${libname}${release}${shared_ext}$major'
11165     ;;
11166   esac
11167   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11168   postinstall_cmds='chmod 555 $lib'
11169   ;;
11170
11171 irix5* | irix6* | nonstopux*)
11172   case $host_os in
11173     nonstopux*) version_type=nonstopux ;;
11174     *)
11175         if test "$lt_cv_prog_gnu_ld" = yes; then
11176                 version_type=linux
11177         else
11178                 version_type=irix
11179         fi ;;
11180   esac
11181   need_lib_prefix=no
11182   need_version=no
11183   soname_spec='${libname}${release}${shared_ext}$major'
11184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11185   case $host_os in
11186   irix5* | nonstopux*)
11187     libsuff= shlibsuff=
11188     ;;
11189   *)
11190     case $LD in # libtool.m4 will add one of these switches to LD
11191     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11192       libsuff= shlibsuff= libmagic=32-bit;;
11193     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11194       libsuff=32 shlibsuff=N32 libmagic=N32;;
11195     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11196       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11197     *) libsuff= shlibsuff= libmagic=never-match;;
11198     esac
11199     ;;
11200   esac
11201   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11202   shlibpath_overrides_runpath=no
11203   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11204   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11205   hardcode_into_libs=yes
11206   ;;
11207
11208 # No shared lib support for Linux oldld, aout, or coff.
11209 linux*oldld* | linux*aout* | linux*coff*)
11210   dynamic_linker=no
11211   ;;
11212
11213 # This must be Linux ELF.
11214 linux*)
11215   version_type=linux
11216   need_lib_prefix=no
11217   need_version=no
11218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11219   soname_spec='${libname}${release}${shared_ext}$major'
11220   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11221   shlibpath_var=LD_LIBRARY_PATH
11222   shlibpath_overrides_runpath=no
11223   # This implies no fast_install, which is unacceptable.
11224   # Some rework will be needed to allow for fast_install
11225   # before this can be enabled.
11226   hardcode_into_libs=yes
11227
11228   # We used to test for /lib/ld.so.1 and disable shared libraries on
11229   # powerpc, because MkLinux only supported shared libraries with the
11230   # GNU dynamic linker.  Since this was broken with cross compilers,
11231   # most powerpc-linux boxes support dynamic linking these days and
11232   # people can always --disable-shared, the test was removed, and we
11233   # assume the GNU/Linux dynamic linker is in use.
11234   dynamic_linker='GNU/Linux ld.so'
11235
11236   # Find out which ABI we are using (multilib Linux x86_64 hack).
11237   libsuff=
11238   case "$host_cpu" in
11239   x86_64*|s390x*)
11240     echo '#line 11240 "configure"' > conftest.$ac_ext
11241     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11242   (eval $ac_compile) 2>&5
11243   ac_status=$?
11244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245   (exit $ac_status); }; then
11246       case `/usr/bin/file conftest.$ac_objext` in
11247       *64-bit*)
11248         libsuff=64
11249         ;;
11250       esac
11251     fi
11252     rm -rf conftest*
11253     ;;
11254   *)
11255     ;;
11256   esac
11257   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
11258   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11259   ;;
11260
11261 netbsd*)
11262   version_type=sunos
11263   need_lib_prefix=no
11264   need_version=no
11265   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11266     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11267     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11268     dynamic_linker='NetBSD (a.out) ld.so'
11269   else
11270     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11271     soname_spec='${libname}${release}${shared_ext}$major'
11272     dynamic_linker='NetBSD ld.elf_so'
11273   fi
11274   shlibpath_var=LD_LIBRARY_PATH
11275   shlibpath_overrides_runpath=yes
11276   hardcode_into_libs=yes
11277   ;;
11278
11279 newsos6)
11280   version_type=linux
11281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11282   shlibpath_var=LD_LIBRARY_PATH
11283   shlibpath_overrides_runpath=yes
11284   ;;
11285
11286 nto-qnx)
11287   version_type=linux
11288   need_lib_prefix=no
11289   need_version=no
11290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11291   soname_spec='${libname}${release}${shared_ext}$major'
11292   shlibpath_var=LD_LIBRARY_PATH
11293   shlibpath_overrides_runpath=yes
11294   ;;
11295
11296 openbsd*)
11297   version_type=sunos
11298   need_lib_prefix=no
11299   need_version=no
11300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11301   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11302   shlibpath_var=LD_LIBRARY_PATH
11303   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11304     case $host_os in
11305       openbsd2.[89] | openbsd2.[89].*)
11306         shlibpath_overrides_runpath=no
11307         ;;
11308       *)
11309         shlibpath_overrides_runpath=yes
11310         ;;
11311       esac
11312   else
11313     shlibpath_overrides_runpath=yes
11314   fi
11315   ;;
11316
11317 os2*)
11318   libname_spec='$name'
11319   shrext=".dll"
11320   need_lib_prefix=no
11321   library_names_spec='$libname${shared_ext} $libname.a'
11322   dynamic_linker='OS/2 ld.exe'
11323   shlibpath_var=LIBPATH
11324   ;;
11325
11326 osf3* | osf4* | osf5*)
11327   version_type=osf
11328   need_lib_prefix=no
11329   need_version=no
11330   soname_spec='${libname}${release}${shared_ext}$major'
11331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11332   shlibpath_var=LD_LIBRARY_PATH
11333   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11334   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11335   ;;
11336
11337 sco3.2v5*)
11338   version_type=osf
11339   soname_spec='${libname}${release}${shared_ext}$major'
11340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11341   shlibpath_var=LD_LIBRARY_PATH
11342   ;;
11343
11344 solaris*)
11345   version_type=linux
11346   need_lib_prefix=no
11347   need_version=no
11348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11349   soname_spec='${libname}${release}${shared_ext}$major'
11350   shlibpath_var=LD_LIBRARY_PATH
11351   shlibpath_overrides_runpath=yes
11352   hardcode_into_libs=yes
11353   # ldd complains unless libraries are executable
11354   postinstall_cmds='chmod +x $lib'
11355   ;;
11356
11357 sunos4*)
11358   version_type=sunos
11359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11360   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11361   shlibpath_var=LD_LIBRARY_PATH
11362   shlibpath_overrides_runpath=yes
11363   if test "$with_gnu_ld" = yes; then
11364     need_lib_prefix=no
11365   fi
11366   need_version=yes
11367   ;;
11368
11369 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11370   version_type=linux
11371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11372   soname_spec='${libname}${release}${shared_ext}$major'
11373   shlibpath_var=LD_LIBRARY_PATH
11374   case $host_vendor in
11375     sni)
11376       shlibpath_overrides_runpath=no
11377       need_lib_prefix=no
11378       export_dynamic_flag_spec='${wl}-Blargedynsym'
11379       runpath_var=LD_RUN_PATH
11380       ;;
11381     siemens)
11382       need_lib_prefix=no
11383       ;;
11384     motorola)
11385       need_lib_prefix=no
11386       need_version=no
11387       shlibpath_overrides_runpath=no
11388       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11389       ;;
11390   esac
11391   ;;
11392
11393 sysv4*MP*)
11394   if test -d /usr/nec ;then
11395     version_type=linux
11396     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11397     soname_spec='$libname${shared_ext}.$major'
11398     shlibpath_var=LD_LIBRARY_PATH
11399   fi
11400   ;;
11401
11402 uts4*)
11403   version_type=linux
11404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11405   soname_spec='${libname}${release}${shared_ext}$major'
11406   shlibpath_var=LD_LIBRARY_PATH
11407   ;;
11408
11409 *)
11410   dynamic_linker=no
11411   ;;
11412 esac
11413 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11414 echo "${ECHO_T}$dynamic_linker" >&6
11415 test "$dynamic_linker" = no && can_build_shared=no
11416
11417 if test "x$enable_dlopen" != xyes; then
11418   enable_dlopen=unknown
11419   enable_dlopen_self=unknown
11420   enable_dlopen_self_static=unknown
11421 else
11422   lt_cv_dlopen=no
11423   lt_cv_dlopen_libs=
11424
11425   case $host_os in
11426   beos*)
11427     lt_cv_dlopen="load_add_on"
11428     lt_cv_dlopen_libs=
11429     lt_cv_dlopen_self=yes
11430     ;;
11431
11432   mingw* | pw32*)
11433     lt_cv_dlopen="LoadLibrary"
11434     lt_cv_dlopen_libs=
11435    ;;
11436
11437   cygwin*)
11438     lt_cv_dlopen="dlopen"
11439     lt_cv_dlopen_libs=
11440    ;;
11441
11442   darwin*)
11443   # if libdl is installed we need to link against it
11444     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11445 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11446 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11447   echo $ECHO_N "(cached) $ECHO_C" >&6
11448 else
11449   ac_check_lib_save_LIBS=$LIBS
11450 LIBS="-ldl  $LIBS"
11451 cat >conftest.$ac_ext <<_ACEOF
11452 #line $LINENO "configure"
11453 /* confdefs.h.  */
11454 _ACEOF
11455 cat confdefs.h >>conftest.$ac_ext
11456 cat >>conftest.$ac_ext <<_ACEOF
11457 /* end confdefs.h.  */
11458
11459 /* Override any gcc2 internal prototype to avoid an error.  */
11460 #ifdef __cplusplus
11461 extern "C"
11462 #endif
11463 /* We use char because int might match the return type of a gcc2
11464    builtin and then its argument prototype would still apply.  */
11465 char dlopen ();
11466 int
11467 main ()
11468 {
11469 dlopen ();
11470   ;
11471   return 0;
11472 }
11473 _ACEOF
11474 rm -f conftest.$ac_objext conftest$ac_exeext
11475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11476   (eval $ac_link) 2>&5
11477   ac_status=$?
11478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479   (exit $ac_status); } &&
11480          { ac_try='test -s conftest$ac_exeext'
11481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11482   (eval $ac_try) 2>&5
11483   ac_status=$?
11484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485   (exit $ac_status); }; }; then
11486   ac_cv_lib_dl_dlopen=yes
11487 else
11488   echo "$as_me: failed program was:" >&5
11489 sed 's/^/| /' conftest.$ac_ext >&5
11490
11491 ac_cv_lib_dl_dlopen=no
11492 fi
11493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11494 LIBS=$ac_check_lib_save_LIBS
11495 fi
11496 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11497 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11498 if test $ac_cv_lib_dl_dlopen = yes; then
11499   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11500 else
11501
11502     lt_cv_dlopen="dyld"
11503     lt_cv_dlopen_libs=
11504     lt_cv_dlopen_self=yes
11505
11506 fi
11507
11508    ;;
11509
11510   *)
11511     echo "$as_me:$LINENO: checking for shl_load" >&5
11512 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11513 if test "${ac_cv_func_shl_load+set}" = set; then
11514   echo $ECHO_N "(cached) $ECHO_C" >&6
11515 else
11516   cat >conftest.$ac_ext <<_ACEOF
11517 #line $LINENO "configure"
11518 /* confdefs.h.  */
11519 _ACEOF
11520 cat confdefs.h >>conftest.$ac_ext
11521 cat >>conftest.$ac_ext <<_ACEOF
11522 /* end confdefs.h.  */
11523 /* System header to define __stub macros and hopefully few prototypes,
11524     which can conflict with char shl_load (); below.
11525     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11526     <limits.h> exists even on freestanding compilers.  */
11527 #ifdef __STDC__
11528 # include <limits.h>
11529 #else
11530 # include <assert.h>
11531 #endif
11532 /* Override any gcc2 internal prototype to avoid an error.  */
11533 #ifdef __cplusplus
11534 extern "C"
11535 {
11536 #endif
11537 /* We use char because int might match the return type of a gcc2
11538    builtin and then its argument prototype would still apply.  */
11539 char shl_load ();
11540 /* The GNU C library defines this for functions which it implements
11541     to always fail with ENOSYS.  Some functions are actually named
11542     something starting with __ and the normal name is an alias.  */
11543 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11544 choke me
11545 #else
11546 char (*f) () = shl_load;
11547 #endif
11548 #ifdef __cplusplus
11549 }
11550 #endif
11551
11552 int
11553 main ()
11554 {
11555 return f != shl_load;
11556   ;
11557   return 0;
11558 }
11559 _ACEOF
11560 rm -f conftest.$ac_objext conftest$ac_exeext
11561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11562   (eval $ac_link) 2>&5
11563   ac_status=$?
11564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565   (exit $ac_status); } &&
11566          { ac_try='test -s conftest$ac_exeext'
11567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568   (eval $ac_try) 2>&5
11569   ac_status=$?
11570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571   (exit $ac_status); }; }; then
11572   ac_cv_func_shl_load=yes
11573 else
11574   echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11576
11577 ac_cv_func_shl_load=no
11578 fi
11579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11580 fi
11581 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11582 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11583 if test $ac_cv_func_shl_load = yes; then
11584   lt_cv_dlopen="shl_load"
11585 else
11586   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11587 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11588 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11589   echo $ECHO_N "(cached) $ECHO_C" >&6
11590 else
11591   ac_check_lib_save_LIBS=$LIBS
11592 LIBS="-ldld  $LIBS"
11593 cat >conftest.$ac_ext <<_ACEOF
11594 #line $LINENO "configure"
11595 /* confdefs.h.  */
11596 _ACEOF
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h.  */
11600
11601 /* Override any gcc2 internal prototype to avoid an error.  */
11602 #ifdef __cplusplus
11603 extern "C"
11604 #endif
11605 /* We use char because int might match the return type of a gcc2
11606    builtin and then its argument prototype would still apply.  */
11607 char shl_load ();
11608 int
11609 main ()
11610 {
11611 shl_load ();
11612   ;
11613   return 0;
11614 }
11615 _ACEOF
11616 rm -f conftest.$ac_objext conftest$ac_exeext
11617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11618   (eval $ac_link) 2>&5
11619   ac_status=$?
11620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621   (exit $ac_status); } &&
11622          { ac_try='test -s conftest$ac_exeext'
11623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11624   (eval $ac_try) 2>&5
11625   ac_status=$?
11626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627   (exit $ac_status); }; }; then
11628   ac_cv_lib_dld_shl_load=yes
11629 else
11630   echo "$as_me: failed program was:" >&5
11631 sed 's/^/| /' conftest.$ac_ext >&5
11632
11633 ac_cv_lib_dld_shl_load=no
11634 fi
11635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11636 LIBS=$ac_check_lib_save_LIBS
11637 fi
11638 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11639 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11640 if test $ac_cv_lib_dld_shl_load = yes; then
11641   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11642 else
11643   echo "$as_me:$LINENO: checking for dlopen" >&5
11644 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11645 if test "${ac_cv_func_dlopen+set}" = set; then
11646   echo $ECHO_N "(cached) $ECHO_C" >&6
11647 else
11648   cat >conftest.$ac_ext <<_ACEOF
11649 #line $LINENO "configure"
11650 /* confdefs.h.  */
11651 _ACEOF
11652 cat confdefs.h >>conftest.$ac_ext
11653 cat >>conftest.$ac_ext <<_ACEOF
11654 /* end confdefs.h.  */
11655 /* System header to define __stub macros and hopefully few prototypes,
11656     which can conflict with char dlopen (); below.
11657     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11658     <limits.h> exists even on freestanding compilers.  */
11659 #ifdef __STDC__
11660 # include <limits.h>
11661 #else
11662 # include <assert.h>
11663 #endif
11664 /* Override any gcc2 internal prototype to avoid an error.  */
11665 #ifdef __cplusplus
11666 extern "C"
11667 {
11668 #endif
11669 /* We use char because int might match the return type of a gcc2
11670    builtin and then its argument prototype would still apply.  */
11671 char dlopen ();
11672 /* The GNU C library defines this for functions which it implements
11673     to always fail with ENOSYS.  Some functions are actually named
11674     something starting with __ and the normal name is an alias.  */
11675 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11676 choke me
11677 #else
11678 char (*f) () = dlopen;
11679 #endif
11680 #ifdef __cplusplus
11681 }
11682 #endif
11683
11684 int
11685 main ()
11686 {
11687 return f != dlopen;
11688   ;
11689   return 0;
11690 }
11691 _ACEOF
11692 rm -f conftest.$ac_objext conftest$ac_exeext
11693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11694   (eval $ac_link) 2>&5
11695   ac_status=$?
11696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697   (exit $ac_status); } &&
11698          { ac_try='test -s conftest$ac_exeext'
11699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700   (eval $ac_try) 2>&5
11701   ac_status=$?
11702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703   (exit $ac_status); }; }; then
11704   ac_cv_func_dlopen=yes
11705 else
11706   echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11708
11709 ac_cv_func_dlopen=no
11710 fi
11711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11712 fi
11713 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11714 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11715 if test $ac_cv_func_dlopen = yes; then
11716   lt_cv_dlopen="dlopen"
11717 else
11718   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11719 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11720 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11721   echo $ECHO_N "(cached) $ECHO_C" >&6
11722 else
11723   ac_check_lib_save_LIBS=$LIBS
11724 LIBS="-ldl  $LIBS"
11725 cat >conftest.$ac_ext <<_ACEOF
11726 #line $LINENO "configure"
11727 /* confdefs.h.  */
11728 _ACEOF
11729 cat confdefs.h >>conftest.$ac_ext
11730 cat >>conftest.$ac_ext <<_ACEOF
11731 /* end confdefs.h.  */
11732
11733 /* Override any gcc2 internal prototype to avoid an error.  */
11734 #ifdef __cplusplus
11735 extern "C"
11736 #endif
11737 /* We use char because int might match the return type of a gcc2
11738    builtin and then its argument prototype would still apply.  */
11739 char dlopen ();
11740 int
11741 main ()
11742 {
11743 dlopen ();
11744   ;
11745   return 0;
11746 }
11747 _ACEOF
11748 rm -f conftest.$ac_objext conftest$ac_exeext
11749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11750   (eval $ac_link) 2>&5
11751   ac_status=$?
11752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753   (exit $ac_status); } &&
11754          { ac_try='test -s conftest$ac_exeext'
11755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756   (eval $ac_try) 2>&5
11757   ac_status=$?
11758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759   (exit $ac_status); }; }; then
11760   ac_cv_lib_dl_dlopen=yes
11761 else
11762   echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11764
11765 ac_cv_lib_dl_dlopen=no
11766 fi
11767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11768 LIBS=$ac_check_lib_save_LIBS
11769 fi
11770 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11771 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11772 if test $ac_cv_lib_dl_dlopen = yes; then
11773   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11774 else
11775   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11776 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11777 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11778   echo $ECHO_N "(cached) $ECHO_C" >&6
11779 else
11780   ac_check_lib_save_LIBS=$LIBS
11781 LIBS="-lsvld  $LIBS"
11782 cat >conftest.$ac_ext <<_ACEOF
11783 #line $LINENO "configure"
11784 /* confdefs.h.  */
11785 _ACEOF
11786 cat confdefs.h >>conftest.$ac_ext
11787 cat >>conftest.$ac_ext <<_ACEOF
11788 /* end confdefs.h.  */
11789
11790 /* Override any gcc2 internal prototype to avoid an error.  */
11791 #ifdef __cplusplus
11792 extern "C"
11793 #endif
11794 /* We use char because int might match the return type of a gcc2
11795    builtin and then its argument prototype would still apply.  */
11796 char dlopen ();
11797 int
11798 main ()
11799 {
11800 dlopen ();
11801   ;
11802   return 0;
11803 }
11804 _ACEOF
11805 rm -f conftest.$ac_objext conftest$ac_exeext
11806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11807   (eval $ac_link) 2>&5
11808   ac_status=$?
11809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810   (exit $ac_status); } &&
11811          { ac_try='test -s conftest$ac_exeext'
11812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11813   (eval $ac_try) 2>&5
11814   ac_status=$?
11815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816   (exit $ac_status); }; }; then
11817   ac_cv_lib_svld_dlopen=yes
11818 else
11819   echo "$as_me: failed program was:" >&5
11820 sed 's/^/| /' conftest.$ac_ext >&5
11821
11822 ac_cv_lib_svld_dlopen=no
11823 fi
11824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11825 LIBS=$ac_check_lib_save_LIBS
11826 fi
11827 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11828 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11829 if test $ac_cv_lib_svld_dlopen = yes; then
11830   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11831 else
11832   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11833 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11834 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11835   echo $ECHO_N "(cached) $ECHO_C" >&6
11836 else
11837   ac_check_lib_save_LIBS=$LIBS
11838 LIBS="-ldld  $LIBS"
11839 cat >conftest.$ac_ext <<_ACEOF
11840 #line $LINENO "configure"
11841 /* confdefs.h.  */
11842 _ACEOF
11843 cat confdefs.h >>conftest.$ac_ext
11844 cat >>conftest.$ac_ext <<_ACEOF
11845 /* end confdefs.h.  */
11846
11847 /* Override any gcc2 internal prototype to avoid an error.  */
11848 #ifdef __cplusplus
11849 extern "C"
11850 #endif
11851 /* We use char because int might match the return type of a gcc2
11852    builtin and then its argument prototype would still apply.  */
11853 char dld_link ();
11854 int
11855 main ()
11856 {
11857 dld_link ();
11858   ;
11859   return 0;
11860 }
11861 _ACEOF
11862 rm -f conftest.$ac_objext conftest$ac_exeext
11863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11864   (eval $ac_link) 2>&5
11865   ac_status=$?
11866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867   (exit $ac_status); } &&
11868          { ac_try='test -s conftest$ac_exeext'
11869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870   (eval $ac_try) 2>&5
11871   ac_status=$?
11872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873   (exit $ac_status); }; }; then
11874   ac_cv_lib_dld_dld_link=yes
11875 else
11876   echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11878
11879 ac_cv_lib_dld_dld_link=no
11880 fi
11881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11882 LIBS=$ac_check_lib_save_LIBS
11883 fi
11884 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11885 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11886 if test $ac_cv_lib_dld_dld_link = yes; then
11887   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11888 fi
11889
11890
11891 fi
11892
11893
11894 fi
11895
11896
11897 fi
11898
11899
11900 fi
11901
11902
11903 fi
11904
11905     ;;
11906   esac
11907
11908   if test "x$lt_cv_dlopen" != xno; then
11909     enable_dlopen=yes
11910   else
11911     enable_dlopen=no
11912   fi
11913
11914   case $lt_cv_dlopen in
11915   dlopen)
11916     save_CPPFLAGS="$CPPFLAGS"
11917     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11918
11919     save_LDFLAGS="$LDFLAGS"
11920     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11921
11922     save_LIBS="$LIBS"
11923     LIBS="$lt_cv_dlopen_libs $LIBS"
11924
11925     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11926 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11927 if test "${lt_cv_dlopen_self+set}" = set; then
11928   echo $ECHO_N "(cached) $ECHO_C" >&6
11929 else
11930           if test "$cross_compiling" = yes; then :
11931   lt_cv_dlopen_self=cross
11932 else
11933   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11934   lt_status=$lt_dlunknown
11935   cat > conftest.$ac_ext <<EOF
11936 #line 11936 "configure"
11937 #include "confdefs.h"
11938
11939 #if HAVE_DLFCN_H
11940 #include <dlfcn.h>
11941 #endif
11942
11943 #include <stdio.h>
11944
11945 #ifdef RTLD_GLOBAL
11946 #  define LT_DLGLOBAL           RTLD_GLOBAL
11947 #else
11948 #  ifdef DL_GLOBAL
11949 #    define LT_DLGLOBAL         DL_GLOBAL
11950 #  else
11951 #    define LT_DLGLOBAL         0
11952 #  endif
11953 #endif
11954
11955 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11956    find out it does not work in some platform. */
11957 #ifndef LT_DLLAZY_OR_NOW
11958 #  ifdef RTLD_LAZY
11959 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11960 #  else
11961 #    ifdef DL_LAZY
11962 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11963 #    else
11964 #      ifdef RTLD_NOW
11965 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11966 #      else
11967 #        ifdef DL_NOW
11968 #          define LT_DLLAZY_OR_NOW      DL_NOW
11969 #        else
11970 #          define LT_DLLAZY_OR_NOW      0
11971 #        endif
11972 #      endif
11973 #    endif
11974 #  endif
11975 #endif
11976
11977 #ifdef __cplusplus
11978 extern "C" void exit (int);
11979 #endif
11980
11981 void fnord() { int i=42;}
11982 int main ()
11983 {
11984   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11985   int status = $lt_dlunknown;
11986
11987   if (self)
11988     {
11989       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11990       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11991       /* dlclose (self); */
11992     }
11993
11994     exit (status);
11995 }
11996 EOF
11997   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11998   (eval $ac_link) 2>&5
11999   ac_status=$?
12000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12002     (./conftest; exit; ) 2>/dev/null
12003     lt_status=$?
12004     case x$lt_status in
12005       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12006       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12007       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12008     esac
12009   else :
12010     # compilation failed
12011     lt_cv_dlopen_self=no
12012   fi
12013 fi
12014 rm -fr conftest*
12015
12016
12017 fi
12018 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12019 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12020
12021     if test "x$lt_cv_dlopen_self" = xyes; then
12022       LDFLAGS="$LDFLAGS $link_static_flag"
12023       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12024 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12025 if test "${lt_cv_dlopen_self_static+set}" = set; then
12026   echo $ECHO_N "(cached) $ECHO_C" >&6
12027 else
12028           if test "$cross_compiling" = yes; then :
12029   lt_cv_dlopen_self_static=cross
12030 else
12031   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12032   lt_status=$lt_dlunknown
12033   cat > conftest.$ac_ext <<EOF
12034 #line 12034 "configure"
12035 #include "confdefs.h"
12036
12037 #if HAVE_DLFCN_H
12038 #include <dlfcn.h>
12039 #endif
12040
12041 #include <stdio.h>
12042
12043 #ifdef RTLD_GLOBAL
12044 #  define LT_DLGLOBAL           RTLD_GLOBAL
12045 #else
12046 #  ifdef DL_GLOBAL
12047 #    define LT_DLGLOBAL         DL_GLOBAL
12048 #  else
12049 #    define LT_DLGLOBAL         0
12050 #  endif
12051 #endif
12052
12053 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12054    find out it does not work in some platform. */
12055 #ifndef LT_DLLAZY_OR_NOW
12056 #  ifdef RTLD_LAZY
12057 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12058 #  else
12059 #    ifdef DL_LAZY
12060 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12061 #    else
12062 #      ifdef RTLD_NOW
12063 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12064 #      else
12065 #        ifdef DL_NOW
12066 #          define LT_DLLAZY_OR_NOW      DL_NOW
12067 #        else
12068 #          define LT_DLLAZY_OR_NOW      0
12069 #        endif
12070 #      endif
12071 #    endif
12072 #  endif
12073 #endif
12074
12075 #ifdef __cplusplus
12076 extern "C" void exit (int);
12077 #endif
12078
12079 void fnord() { int i=42;}
12080 int main ()
12081 {
12082   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12083   int status = $lt_dlunknown;
12084
12085   if (self)
12086     {
12087       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12088       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12089       /* dlclose (self); */
12090     }
12091
12092     exit (status);
12093 }
12094 EOF
12095   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12096   (eval $ac_link) 2>&5
12097   ac_status=$?
12098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12100     (./conftest; exit; ) 2>/dev/null
12101     lt_status=$?
12102     case x$lt_status in
12103       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12104       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12105       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12106     esac
12107   else :
12108     # compilation failed
12109     lt_cv_dlopen_self_static=no
12110   fi
12111 fi
12112 rm -fr conftest*
12113
12114
12115 fi
12116 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12117 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12118     fi
12119
12120     CPPFLAGS="$save_CPPFLAGS"
12121     LDFLAGS="$save_LDFLAGS"
12122     LIBS="$save_LIBS"
12123     ;;
12124   esac
12125
12126   case $lt_cv_dlopen_self in
12127   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12128   *) enable_dlopen_self=unknown ;;
12129   esac
12130
12131   case $lt_cv_dlopen_self_static in
12132   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12133   *) enable_dlopen_self_static=unknown ;;
12134   esac
12135 fi
12136
12137
12138 # The else clause should only fire when bootstrapping the
12139 # libtool distribution, otherwise you forgot to ship ltmain.sh
12140 # with your package, and you will get complaints that there are
12141 # no rules to generate ltmain.sh.
12142 if test -f "$ltmain"; then
12143   # See if we are running on zsh, and set the options which allow our commands through
12144   # without removal of \ escapes.
12145   if test -n "${ZSH_VERSION+set}" ; then
12146     setopt NO_GLOB_SUBST
12147   fi
12148   # Now quote all the things that may contain metacharacters while being
12149   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12150   # variables and quote the copies for generation of the libtool script.
12151   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12152     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12153     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12154     deplibs_check_method reload_flag reload_cmds need_locks \
12155     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12156     lt_cv_sys_global_symbol_to_c_name_address \
12157     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12158     old_postinstall_cmds old_postuninstall_cmds \
12159     compiler_CXX \
12160     CC_CXX \
12161     LD_CXX \
12162     lt_prog_compiler_wl_CXX \
12163     lt_prog_compiler_pic_CXX \
12164     lt_prog_compiler_static_CXX \
12165     lt_prog_compiler_no_builtin_flag_CXX \
12166     export_dynamic_flag_spec_CXX \
12167     thread_safe_flag_spec_CXX \
12168     whole_archive_flag_spec_CXX \
12169     enable_shared_with_static_runtimes_CXX \
12170     old_archive_cmds_CXX \
12171     old_archive_from_new_cmds_CXX \
12172     predep_objects_CXX \
12173     postdep_objects_CXX \
12174     predeps_CXX \
12175     postdeps_CXX \
12176     compiler_lib_search_path_CXX \
12177     archive_cmds_CXX \
12178     archive_expsym_cmds_CXX \
12179     postinstall_cmds_CXX \
12180     postuninstall_cmds_CXX \
12181     old_archive_from_expsyms_cmds_CXX \
12182     allow_undefined_flag_CXX \
12183     no_undefined_flag_CXX \
12184     export_symbols_cmds_CXX \
12185     hardcode_libdir_flag_spec_CXX \
12186     hardcode_libdir_flag_spec_ld_CXX \
12187     hardcode_libdir_separator_CXX \
12188     hardcode_automatic_CXX \
12189     module_cmds_CXX \
12190     module_expsym_cmds_CXX \
12191     lt_cv_prog_compiler_c_o_CXX \
12192     exclude_expsyms_CXX \
12193     include_expsyms_CXX; do
12194
12195     case $var in
12196     old_archive_cmds_CXX | \
12197     old_archive_from_new_cmds_CXX | \
12198     archive_cmds_CXX | \
12199     archive_expsym_cmds_CXX | \
12200     module_cmds_CXX | \
12201     module_expsym_cmds_CXX | \
12202     old_archive_from_expsyms_cmds_CXX | \
12203     export_symbols_cmds_CXX | \
12204     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12205     postinstall_cmds | postuninstall_cmds | \
12206     old_postinstall_cmds | old_postuninstall_cmds | \
12207     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12208       # Double-quote double-evaled strings.
12209       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12210       ;;
12211     *)
12212       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12213       ;;
12214     esac
12215   done
12216
12217   case $lt_echo in
12218   *'\$0 --fallback-echo"')
12219     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12220     ;;
12221   esac
12222
12223 cfgfile="$ofile"
12224
12225   cat <<__EOF__ >> "$cfgfile"
12226 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12227
12228 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12229
12230 # Shell to use when invoking shell scripts.
12231 SHELL=$lt_SHELL
12232
12233 # Whether or not to build shared libraries.
12234 build_libtool_libs=$enable_shared
12235
12236 # Whether or not to build static libraries.
12237 build_old_libs=$enable_static
12238
12239 # Whether or not to add -lc for building shared libraries.
12240 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12241
12242 # Whether or not to disallow shared libs when runtime libs are static
12243 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12244
12245 # Whether or not to optimize for fast installation.
12246 fast_install=$enable_fast_install
12247
12248 # The host system.
12249 host_alias=$host_alias
12250 host=$host
12251
12252 # An echo program that does not interpret backslashes.
12253 echo=$lt_echo
12254
12255 # The archiver.
12256 AR=$lt_AR
12257 AR_FLAGS=$lt_AR_FLAGS
12258
12259 # A C compiler.
12260 LTCC=$lt_LTCC
12261
12262 # A language-specific compiler.
12263 CC=$lt_compiler_CXX
12264
12265 # Is the compiler the GNU C compiler?
12266 with_gcc=$GCC_CXX
12267
12268 # An ERE matcher.
12269 EGREP=$lt_EGREP
12270
12271 # The linker used to build libraries.
12272 LD=$lt_LD_CXX
12273
12274 # Whether we need hard or soft links.
12275 LN_S=$lt_LN_S
12276
12277 # A BSD-compatible nm program.
12278 NM=$lt_NM
12279
12280 # A symbol stripping program
12281 STRIP=$STRIP
12282
12283 # Used to examine libraries when file_magic_cmd begins "file"
12284 MAGIC_CMD=$MAGIC_CMD
12285
12286 # Used on cygwin: DLL creation program.
12287 DLLTOOL="$DLLTOOL"
12288
12289 # Used on cygwin: object dumper.
12290 OBJDUMP="$OBJDUMP"
12291
12292 # Used on cygwin: assembler.
12293 AS="$AS"
12294
12295 # The name of the directory that contains temporary libtool files.
12296 objdir=$objdir
12297
12298 # How to create reloadable object files.
12299 reload_flag=$lt_reload_flag
12300 reload_cmds=$lt_reload_cmds
12301
12302 # How to pass a linker flag through the compiler.
12303 wl=$lt_lt_prog_compiler_wl_CXX
12304
12305 # Object file suffix (normally "o").
12306 objext="$ac_objext"
12307
12308 # Old archive suffix (normally "a").
12309 libext="$libext"
12310
12311 # Shared library suffix (normally ".so").
12312 shrext='$shrext'
12313
12314 # Executable file suffix (normally "").
12315 exeext="$exeext"
12316
12317 # Additional compiler flags for building library objects.
12318 pic_flag=$lt_lt_prog_compiler_pic_CXX
12319 pic_mode=$pic_mode
12320
12321 # What is the maximum length of a command?
12322 max_cmd_len=$lt_cv_sys_max_cmd_len
12323
12324 # Does compiler simultaneously support -c and -o options?
12325 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12326
12327 # Must we lock files when doing compilation ?
12328 need_locks=$lt_need_locks
12329
12330 # Do we need the lib prefix for modules?
12331 need_lib_prefix=$need_lib_prefix
12332
12333 # Do we need a version for libraries?
12334 need_version=$need_version
12335
12336 # Whether dlopen is supported.
12337 dlopen_support=$enable_dlopen
12338
12339 # Whether dlopen of programs is supported.
12340 dlopen_self=$enable_dlopen_self
12341
12342 # Whether dlopen of statically linked programs is supported.
12343 dlopen_self_static=$enable_dlopen_self_static
12344
12345 # Compiler flag to prevent dynamic linking.
12346 link_static_flag=$lt_lt_prog_compiler_static_CXX
12347
12348 # Compiler flag to turn off builtin functions.
12349 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12350
12351 # Compiler flag to allow reflexive dlopens.
12352 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12353
12354 # Compiler flag to generate shared objects directly from archives.
12355 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12356
12357 # Compiler flag to generate thread-safe objects.
12358 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12359
12360 # Library versioning type.
12361 version_type=$version_type
12362
12363 # Format of library name prefix.
12364 libname_spec=$lt_libname_spec
12365
12366 # List of archive names.  First name is the real one, the rest are links.
12367 # The last name is the one that the linker finds with -lNAME.
12368 library_names_spec=$lt_library_names_spec
12369
12370 # The coded name of the library, if different from the real name.
12371 soname_spec=$lt_soname_spec
12372
12373 # Commands used to build and install an old-style archive.
12374 RANLIB=$lt_RANLIB
12375 old_archive_cmds=$lt_old_archive_cmds_CXX
12376 old_postinstall_cmds=$lt_old_postinstall_cmds
12377 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12378
12379 # Create an old-style archive from a shared archive.
12380 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12381
12382 # Create a temporary old-style archive to link instead of a shared archive.
12383 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12384
12385 # Commands used to build and install a shared archive.
12386 archive_cmds=$lt_archive_cmds_CXX
12387 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12388 postinstall_cmds=$lt_postinstall_cmds
12389 postuninstall_cmds=$lt_postuninstall_cmds
12390
12391 # Commands used to build a loadable module (assumed same as above if empty)
12392 module_cmds=$lt_module_cmds_CXX
12393 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12394
12395 # Commands to strip libraries.
12396 old_striplib=$lt_old_striplib
12397 striplib=$lt_striplib
12398
12399 # Dependencies to place before the objects being linked to create a
12400 # shared library.
12401 predep_objects=$lt_predep_objects_CXX
12402
12403 # Dependencies to place after the objects being linked to create a
12404 # shared library.
12405 postdep_objects=$lt_postdep_objects_CXX
12406
12407 # Dependencies to place before the objects being linked to create a
12408 # shared library.
12409 predeps=$lt_predeps_CXX
12410
12411 # Dependencies to place after the objects being linked to create a
12412 # shared library.
12413 postdeps=$lt_postdeps_CXX
12414
12415 # The library search path used internally by the compiler when linking
12416 # a shared library.
12417 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12418
12419 # Method to check whether dependent libraries are shared objects.
12420 deplibs_check_method=$lt_deplibs_check_method
12421
12422 # Command to use when deplibs_check_method == file_magic.
12423 file_magic_cmd=$lt_file_magic_cmd
12424
12425 # Flag that allows shared libraries with undefined symbols to be built.
12426 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12427
12428 # Flag that forces no undefined symbols.
12429 no_undefined_flag=$lt_no_undefined_flag_CXX
12430
12431 # Commands used to finish a libtool library installation in a directory.
12432 finish_cmds=$lt_finish_cmds
12433
12434 # Same as above, but a single script fragment to be evaled but not shown.
12435 finish_eval=$lt_finish_eval
12436
12437 # Take the output of nm and produce a listing of raw symbols and C names.
12438 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12439
12440 # Transform the output of nm in a proper C declaration
12441 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12442
12443 # Transform the output of nm in a C name address pair
12444 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12445
12446 # This is the shared library runtime path variable.
12447 runpath_var=$runpath_var
12448
12449 # This is the shared library path variable.
12450 shlibpath_var=$shlibpath_var
12451
12452 # Is shlibpath searched before the hard-coded library search path?
12453 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12454
12455 # How to hardcode a shared library path into an executable.
12456 hardcode_action=$hardcode_action_CXX
12457
12458 # Whether we should hardcode library paths into libraries.
12459 hardcode_into_libs=$hardcode_into_libs
12460
12461 # Flag to hardcode \$libdir into a binary during linking.
12462 # This must work even if \$libdir does not exist.
12463 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12464
12465 # If ld is used when linking, flag to hardcode \$libdir into
12466 # a binary during linking. This must work even if \$libdir does
12467 # not exist.
12468 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12469
12470 # Whether we need a single -rpath flag with a separated argument.
12471 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12472
12473 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12474 # resulting binary.
12475 hardcode_direct=$hardcode_direct_CXX
12476
12477 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12478 # resulting binary.
12479 hardcode_minus_L=$hardcode_minus_L_CXX
12480
12481 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12482 # the resulting binary.
12483 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12484
12485 # Set to yes if building a shared library automatically hardcodes DIR into the library
12486 # and all subsequent libraries and executables linked against it.
12487 hardcode_automatic=$hardcode_automatic_CXX
12488
12489 # Variables whose values should be saved in libtool wrapper scripts and
12490 # restored at relink time.
12491 variables_saved_for_relink="$variables_saved_for_relink"
12492
12493 # Whether libtool must link a program against all its dependency libraries.
12494 link_all_deplibs=$link_all_deplibs_CXX
12495
12496 # Compile-time system search path for libraries
12497 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12498
12499 # Run-time system search path for libraries
12500 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12501
12502 # Fix the shell variable \$srcfile for the compiler.
12503 fix_srcfile_path="$fix_srcfile_path_CXX"
12504
12505 # Set to yes if exported symbols are required.
12506 always_export_symbols=$always_export_symbols_CXX
12507
12508 # The commands to list exported symbols.
12509 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12510
12511 # The commands to extract the exported symbol list from a shared archive.
12512 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12513
12514 # Symbols that should not be listed in the preloaded symbols.
12515 exclude_expsyms=$lt_exclude_expsyms_CXX
12516
12517 # Symbols that must always be exported.
12518 include_expsyms=$lt_include_expsyms_CXX
12519
12520 # ### END LIBTOOL TAG CONFIG: $tagname
12521
12522 __EOF__
12523
12524
12525 else
12526   # If there is no Makefile yet, we rely on a make rule to execute
12527   # `config.status --recheck' to rerun these tests and create the
12528   # libtool script then.
12529   test -f Makefile && make "$ltmain"
12530 fi
12531
12532
12533 ac_ext=c
12534 ac_cpp='$CPP $CPPFLAGS'
12535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12538
12539 CC=$lt_save_CC
12540 LDCXX=$LD
12541 LD=$lt_save_LD
12542 GCC=$lt_save_GCC
12543 with_gnu_ldcxx=$with_gnu_ld
12544 with_gnu_ld=$lt_save_with_gnu_ld
12545 lt_cv_path_LDCXX=$lt_cv_path_LD
12546 lt_cv_path_LD=$lt_save_path_LD
12547 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12548 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12549
12550         else
12551           tagname=""
12552         fi
12553         ;;
12554
12555       F77)
12556         if test -n "$F77" && test "X$F77" != "Xno"; then
12557
12558 ac_ext=f
12559 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12560 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12561 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12562
12563
12564 archive_cmds_need_lc_F77=no
12565 allow_undefined_flag_F77=
12566 always_export_symbols_F77=no
12567 archive_expsym_cmds_F77=
12568 export_dynamic_flag_spec_F77=
12569 hardcode_direct_F77=no
12570 hardcode_libdir_flag_spec_F77=
12571 hardcode_libdir_flag_spec_ld_F77=
12572 hardcode_libdir_separator_F77=
12573 hardcode_minus_L_F77=no
12574 hardcode_automatic_F77=no
12575 module_cmds_F77=
12576 module_expsym_cmds_F77=
12577 link_all_deplibs_F77=unknown
12578 old_archive_cmds_F77=$old_archive_cmds
12579 no_undefined_flag_F77=
12580 whole_archive_flag_spec_F77=
12581 enable_shared_with_static_runtimes_F77=no
12582
12583 # Source file extension for f77 test sources.
12584 ac_ext=f
12585
12586 # Object file extension for compiled f77 test sources.
12587 objext=o
12588 objext_F77=$objext
12589
12590 # Code to be used in simple compile tests
12591 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12592
12593 # Code to be used in simple link tests
12594 lt_simple_link_test_code="      program t\n      end\n"
12595
12596 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12597
12598 # If no C compiler was specified, use CC.
12599 LTCC=${LTCC-"$CC"}
12600
12601 # Allow CC to be a program name with arguments.
12602 compiler=$CC
12603
12604
12605 # Allow CC to be a program name with arguments.
12606 lt_save_CC="$CC"
12607 CC=${F77-"f77"}
12608 compiler=$CC
12609 compiler_F77=$CC
12610 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12611
12612 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12613 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12614 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12615 echo "${ECHO_T}$can_build_shared" >&6
12616
12617 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12618 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12619 test "$can_build_shared" = "no" && enable_shared=no
12620
12621 # On AIX, shared libraries and static libraries use the same namespace, and
12622 # are all built from PIC.
12623 case "$host_os" in
12624 aix3*)
12625   test "$enable_shared" = yes && enable_static=no
12626   if test -n "$RANLIB"; then
12627     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12628     postinstall_cmds='$RANLIB $lib'
12629   fi
12630   ;;
12631 aix4*)
12632   test "$enable_shared" = yes && enable_static=no
12633   ;;
12634 esac
12635 echo "$as_me:$LINENO: result: $enable_shared" >&5
12636 echo "${ECHO_T}$enable_shared" >&6
12637
12638 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12639 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12640 # Make sure either enable_shared or enable_static is yes.
12641 test "$enable_shared" = yes || enable_static=yes
12642 echo "$as_me:$LINENO: result: $enable_static" >&5
12643 echo "${ECHO_T}$enable_static" >&6
12644
12645 test "$ld_shlibs_F77" = no && can_build_shared=no
12646
12647 GCC_F77="$G77"
12648 LD_F77="$LD"
12649
12650 lt_prog_compiler_wl_F77=
12651 lt_prog_compiler_pic_F77=
12652 lt_prog_compiler_static_F77=
12653
12654 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12655 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12656
12657   if test "$GCC" = yes; then
12658     lt_prog_compiler_wl_F77='-Wl,'
12659     lt_prog_compiler_static_F77='-static'
12660
12661     case $host_os in
12662       aix*)
12663       # All AIX code is PIC.
12664       if test "$host_cpu" = ia64; then
12665         # AIX 5 now supports IA64 processor
12666         lt_prog_compiler_static_F77='-Bstatic'
12667       fi
12668       ;;
12669
12670     amigaos*)
12671       # FIXME: we need at least 68020 code to build shared libraries, but
12672       # adding the `-m68020' flag to GCC prevents building anything better,
12673       # like `-m68040'.
12674       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12675       ;;
12676
12677     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12678       # PIC is the default for these OSes.
12679       ;;
12680
12681     mingw* | pw32* | os2*)
12682       # This hack is so that the source file can tell whether it is being
12683       # built for inclusion in a dll (and should export symbols for example).
12684       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12685       ;;
12686
12687     darwin* | rhapsody*)
12688       # PIC is the default on this platform
12689       # Common symbols not allowed in MH_DYLIB files
12690       lt_prog_compiler_pic_F77='-fno-common'
12691       ;;
12692
12693     msdosdjgpp*)
12694       # Just because we use GCC doesn't mean we suddenly get shared libraries
12695       # on systems that don't support them.
12696       lt_prog_compiler_can_build_shared_F77=no
12697       enable_shared=no
12698       ;;
12699
12700     sysv4*MP*)
12701       if test -d /usr/nec; then
12702         lt_prog_compiler_pic_F77=-Kconform_pic
12703       fi
12704       ;;
12705
12706     hpux*)
12707       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12708       # not for PA HP-UX.
12709       case "$host_cpu" in
12710       hppa*64*|ia64*)
12711         # +Z the default
12712         ;;
12713       *)
12714         lt_prog_compiler_pic_F77='-fPIC'
12715         ;;
12716       esac
12717       ;;
12718
12719     *)
12720       lt_prog_compiler_pic_F77='-fPIC'
12721       ;;
12722     esac
12723   else
12724     # PORTME Check for flag to pass linker flags through the system compiler.
12725     case $host_os in
12726     aix*)
12727       lt_prog_compiler_wl_F77='-Wl,'
12728       if test "$host_cpu" = ia64; then
12729         # AIX 5 now supports IA64 processor
12730         lt_prog_compiler_static_F77='-Bstatic'
12731       else
12732         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12733       fi
12734       ;;
12735
12736     mingw* | pw32* | os2*)
12737       # This hack is so that the source file can tell whether it is being
12738       # built for inclusion in a dll (and should export symbols for example).
12739       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12740       ;;
12741
12742     hpux9* | hpux10* | hpux11*)
12743       lt_prog_compiler_wl_F77='-Wl,'
12744       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12745       # not for PA HP-UX.
12746       case "$host_cpu" in
12747       hppa*64*|ia64*)
12748         # +Z the default
12749         ;;
12750       *)
12751         lt_prog_compiler_pic_F77='+Z'
12752         ;;
12753       esac
12754       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12755       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12756       ;;
12757
12758     irix5* | irix6* | nonstopux*)
12759       lt_prog_compiler_wl_F77='-Wl,'
12760       # PIC (with -KPIC) is the default.
12761       lt_prog_compiler_static_F77='-non_shared'
12762       ;;
12763
12764     newsos6)
12765       lt_prog_compiler_pic_F77='-KPIC'
12766       lt_prog_compiler_static_F77='-Bstatic'
12767       ;;
12768
12769     linux*)
12770       case $CC in
12771       icc|ecc)
12772         lt_prog_compiler_wl_F77='-Wl,'
12773         lt_prog_compiler_pic_F77='-KPIC'
12774         lt_prog_compiler_static_F77='-static'
12775         ;;
12776       ccc)
12777         lt_prog_compiler_wl_F77='-Wl,'
12778         # All Alpha code is PIC.
12779         lt_prog_compiler_static_F77='-non_shared'
12780         ;;
12781       esac
12782       ;;
12783
12784     osf3* | osf4* | osf5*)
12785       lt_prog_compiler_wl_F77='-Wl,'
12786       # All OSF/1 code is PIC.
12787       lt_prog_compiler_static_F77='-non_shared'
12788       ;;
12789
12790     sco3.2v5*)
12791       lt_prog_compiler_pic_F77='-Kpic'
12792       lt_prog_compiler_static_F77='-dn'
12793       ;;
12794
12795     solaris*)
12796       lt_prog_compiler_wl_F77='-Wl,'
12797       lt_prog_compiler_pic_F77='-KPIC'
12798       lt_prog_compiler_static_F77='-Bstatic'
12799       ;;
12800
12801     sunos4*)
12802       lt_prog_compiler_wl_F77='-Qoption ld '
12803       lt_prog_compiler_pic_F77='-PIC'
12804       lt_prog_compiler_static_F77='-Bstatic'
12805       ;;
12806
12807     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12808       lt_prog_compiler_wl_F77='-Wl,'
12809       lt_prog_compiler_pic_F77='-KPIC'
12810       lt_prog_compiler_static_F77='-Bstatic'
12811       ;;
12812
12813     sysv4*MP*)
12814       if test -d /usr/nec ;then
12815         lt_prog_compiler_pic_F77='-Kconform_pic'
12816         lt_prog_compiler_static_F77='-Bstatic'
12817       fi
12818       ;;
12819
12820     uts4*)
12821       lt_prog_compiler_pic_F77='-pic'
12822       lt_prog_compiler_static_F77='-Bstatic'
12823       ;;
12824
12825     *)
12826       lt_prog_compiler_can_build_shared_F77=no
12827       ;;
12828     esac
12829   fi
12830
12831 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12832 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12833
12834 #
12835 # Check to make sure the PIC flag actually works.
12836 #
12837 if test -n "$lt_prog_compiler_pic_F77"; then
12838   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12839 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12840 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12841   echo $ECHO_N "(cached) $ECHO_C" >&6
12842 else
12843   lt_prog_compiler_pic_works_F77=no
12844   ac_outfile=conftest.$ac_objext
12845    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12846    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12847    # Insert the option either (1) after the last *FLAGS variable, or
12848    # (2) before a word containing "conftest.", or (3) at the end.
12849    # Note that $ac_compile itself does not contain backslashes and begins
12850    # with a dollar sign (not a hyphen), so the echo should work correctly.
12851    # The option is referenced via a variable to avoid confusing sed.
12852    lt_compile=`echo "$ac_compile" | $SED \
12853    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12854    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12855    -e 's:$: $lt_compiler_flag:'`
12856    (eval echo "\"\$as_me:12856: $lt_compile\"" >&5)
12857    (eval "$lt_compile" 2>conftest.err)
12858    ac_status=$?
12859    cat conftest.err >&5
12860    echo "$as_me:12860: \$? = $ac_status" >&5
12861    if (exit $ac_status) && test -s "$ac_outfile"; then
12862      # The compiler can only warn and ignore the option if not recognized
12863      # So say no if there are warnings
12864      if test ! -s conftest.err; then
12865        lt_prog_compiler_pic_works_F77=yes
12866      fi
12867    fi
12868    $rm conftest*
12869
12870 fi
12871 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12872 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12873
12874 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12875     case $lt_prog_compiler_pic_F77 in
12876      "" | " "*) ;;
12877      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12878      esac
12879 else
12880     lt_prog_compiler_pic_F77=
12881      lt_prog_compiler_can_build_shared_F77=no
12882 fi
12883
12884 fi
12885 case "$host_os" in
12886   # For platforms which do not support PIC, -DPIC is meaningless:
12887   *djgpp*)
12888     lt_prog_compiler_pic_F77=
12889     ;;
12890   *)
12891     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12892     ;;
12893 esac
12894
12895 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12896 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12897 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12898   echo $ECHO_N "(cached) $ECHO_C" >&6
12899 else
12900   lt_cv_prog_compiler_c_o_F77=no
12901    $rm -r conftest 2>/dev/null
12902    mkdir conftest
12903    cd conftest
12904    mkdir out
12905    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12906
12907    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12908    # that will create temporary files in the current directory regardless of
12909    # the output directory.  Thus, making CWD read-only will cause this test
12910    # to fail, enabling locking or at least warning the user not to do parallel
12911    # builds.
12912    chmod -w .
12913
12914    lt_compiler_flag="-o out/conftest2.$ac_objext"
12915    # Insert the option either (1) after the last *FLAGS variable, or
12916    # (2) before a word containing "conftest.", or (3) at the end.
12917    # Note that $ac_compile itself does not contain backslashes and begins
12918    # with a dollar sign (not a hyphen), so the echo should work correctly.
12919    lt_compile=`echo "$ac_compile" | $SED \
12920    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12921    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12922    -e 's:$: $lt_compiler_flag:'`
12923    (eval echo "\"\$as_me:12923: $lt_compile\"" >&5)
12924    (eval "$lt_compile" 2>out/conftest.err)
12925    ac_status=$?
12926    cat out/conftest.err >&5
12927    echo "$as_me:12927: \$? = $ac_status" >&5
12928    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12929    then
12930      # The compiler can only warn and ignore the option if not recognized
12931      # So say no if there are warnings
12932      if test ! -s out/conftest.err; then
12933        lt_cv_prog_compiler_c_o_F77=yes
12934      fi
12935    fi
12936    chmod u+w .
12937    $rm conftest* out/*
12938    rmdir out
12939    cd ..
12940    rmdir conftest
12941    $rm conftest*
12942
12943 fi
12944 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12945 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12946
12947
12948 hard_links="nottested"
12949 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12950   # do not overwrite the value of need_locks provided by the user
12951   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12952 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12953   hard_links=yes
12954   $rm conftest*
12955   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12956   touch conftest.a
12957   ln conftest.a conftest.b 2>&5 || hard_links=no
12958   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12959   echo "$as_me:$LINENO: result: $hard_links" >&5
12960 echo "${ECHO_T}$hard_links" >&6
12961   if test "$hard_links" = no; then
12962     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12963 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12964     need_locks=warn
12965   fi
12966 else
12967   need_locks=no
12968 fi
12969
12970 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12971 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12972
12973   runpath_var=
12974   allow_undefined_flag_F77=
12975   enable_shared_with_static_runtimes_F77=no
12976   archive_cmds_F77=
12977   archive_expsym_cmds_F77=
12978   old_archive_From_new_cmds_F77=
12979   old_archive_from_expsyms_cmds_F77=
12980   export_dynamic_flag_spec_F77=
12981   whole_archive_flag_spec_F77=
12982   thread_safe_flag_spec_F77=
12983   hardcode_libdir_flag_spec_F77=
12984   hardcode_libdir_flag_spec_ld_F77=
12985   hardcode_libdir_separator_F77=
12986   hardcode_direct_F77=no
12987   hardcode_minus_L_F77=no
12988   hardcode_shlibpath_var_F77=unsupported
12989   link_all_deplibs_F77=unknown
12990   hardcode_automatic_F77=no
12991   module_cmds_F77=
12992   module_expsym_cmds_F77=
12993   always_export_symbols_F77=no
12994   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12995   # include_expsyms should be a list of space-separated symbols to be *always*
12996   # included in the symbol list
12997   include_expsyms_F77=
12998   # exclude_expsyms can be an extended regexp of symbols to exclude
12999   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13000   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13001   # as well as any symbol that contains `d'.
13002   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13003   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13004   # platforms (ab)use it in PIC code, but their linkers get confused if
13005   # the symbol is explicitly referenced.  Since portable code cannot
13006   # rely on this symbol name, it's probably fine to never include it in
13007   # preloaded symbol tables.
13008   extract_expsyms_cmds=
13009
13010   case $host_os in
13011   cygwin* | mingw* | pw32*)
13012     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13013     # When not using gcc, we currently assume that we are using
13014     # Microsoft Visual C++.
13015     if test "$GCC" != yes; then
13016       with_gnu_ld=no
13017     fi
13018     ;;
13019   openbsd*)
13020     with_gnu_ld=no
13021     ;;
13022   esac
13023
13024   ld_shlibs_F77=yes
13025   if test "$with_gnu_ld" = yes; then
13026     # If archive_cmds runs LD, not CC, wlarc should be empty
13027     wlarc='${wl}'
13028
13029     # See if GNU ld supports shared libraries.
13030     case $host_os in
13031     aix3* | aix4* | aix5*)
13032       # On AIX/PPC, the GNU linker is very broken
13033       if test "$host_cpu" != ia64; then
13034         ld_shlibs_F77=no
13035         cat <<EOF 1>&2
13036
13037 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13038 *** to be unable to reliably create shared libraries on AIX.
13039 *** Therefore, libtool is disabling shared libraries support.  If you
13040 *** really care for shared libraries, you may want to modify your PATH
13041 *** so that a non-GNU linker is found, and then restart.
13042
13043 EOF
13044       fi
13045       ;;
13046
13047     amigaos*)
13048       archive_cmds_F77='$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)'
13049       hardcode_libdir_flag_spec_F77='-L$libdir'
13050       hardcode_minus_L_F77=yes
13051
13052       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13053       # that the semantics of dynamic libraries on AmigaOS, at least up
13054       # to version 4, is to share data among multiple programs linked
13055       # with the same dynamic library.  Since this doesn't match the
13056       # behavior of shared libraries on other platforms, we can't use
13057       # them.
13058       ld_shlibs_F77=no
13059       ;;
13060
13061     beos*)
13062       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13063         allow_undefined_flag_F77=unsupported
13064         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13065         # support --undefined.  This deserves some investigation.  FIXME
13066         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13067       else
13068         ld_shlibs_F77=no
13069       fi
13070       ;;
13071
13072     cygwin* | mingw* | pw32*)
13073       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13074       # as there is no search path for DLLs.
13075       hardcode_libdir_flag_spec_F77='-L$libdir'
13076       allow_undefined_flag_F77=unsupported
13077       always_export_symbols_F77=no
13078       enable_shared_with_static_runtimes_F77=yes
13079       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13080
13081       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13082         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13083         # If the export-symbols file already is a .def file (1st line
13084         # is EXPORTS), use it as is; otherwise, prepend...
13085         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13086           cp $export_symbols $output_objdir/$soname.def;
13087         else
13088           echo EXPORTS > $output_objdir/$soname.def;
13089           cat $export_symbols >> $output_objdir/$soname.def;
13090         fi~
13091         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13092       else
13093         ld_shlibs=no
13094       fi
13095       ;;
13096
13097     netbsd*)
13098       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13099         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13100         wlarc=
13101       else
13102         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13103         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13104       fi
13105       ;;
13106
13107     solaris* | sysv5*)
13108       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13109         ld_shlibs_F77=no
13110         cat <<EOF 1>&2
13111
13112 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13113 *** create shared libraries on Solaris systems.  Therefore, libtool
13114 *** is disabling shared libraries support.  We urge you to upgrade GNU
13115 *** binutils to release 2.9.1 or newer.  Another option is to modify
13116 *** your PATH or compiler configuration so that the native linker is
13117 *** used, and then restart.
13118
13119 EOF
13120       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13121         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13122         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13123       else
13124         ld_shlibs_F77=no
13125       fi
13126       ;;
13127
13128     sunos4*)
13129       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13130       wlarc=
13131       hardcode_direct_F77=yes
13132       hardcode_shlibpath_var_F77=no
13133       ;;
13134
13135   linux*)
13136     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13137         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13138         archive_cmds_F77="$tmp_archive_cmds"
13139       supports_anon_versioning=no
13140       case `$LD -v 2>/dev/null` in
13141         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13142         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13143         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13144         *\ 2.11.*) ;; # other 2.11 versions
13145         *) supports_anon_versioning=yes ;;
13146       esac
13147       if test $supports_anon_versioning = yes; then
13148         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13149 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13150 $echo "local: *; };" >> $output_objdir/$libname.ver~
13151         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13152       else
13153         archive_expsym_cmds_F77="$tmp_archive_cmds"
13154       fi
13155     else
13156       ld_shlibs_F77=no
13157     fi
13158     ;;
13159
13160     *)
13161       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13162         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13163         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13164       else
13165         ld_shlibs_F77=no
13166       fi
13167       ;;
13168     esac
13169
13170     if test "$ld_shlibs_F77" = yes; then
13171       runpath_var=LD_RUN_PATH
13172       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13173       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13174       # ancient GNU ld didn't support --whole-archive et. al.
13175       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13176         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13177       else
13178         whole_archive_flag_spec_F77=
13179       fi
13180     fi
13181   else
13182     # PORTME fill in a description of your system's linker (not GNU ld)
13183     case $host_os in
13184     aix3*)
13185       allow_undefined_flag_F77=unsupported
13186       always_export_symbols_F77=yes
13187       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13188       # Note: this linker hardcodes the directories in LIBPATH if there
13189       # are no directories specified by -L.
13190       hardcode_minus_L_F77=yes
13191       if test "$GCC" = yes && test -z "$link_static_flag"; then
13192         # Neither direct hardcoding nor static linking is supported with a
13193         # broken collect2.
13194         hardcode_direct_F77=unsupported
13195       fi
13196       ;;
13197
13198     aix4* | aix5*)
13199       if test "$host_cpu" = ia64; then
13200         # On IA64, the linker does run time linking by default, so we don't
13201         # have to do anything special.
13202         aix_use_runtimelinking=no
13203         exp_sym_flag='-Bexport'
13204         no_entry_flag=""
13205       else
13206         # If we're using GNU nm, then we don't want the "-C" option.
13207         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13208         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13209           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13210         else
13211           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13212         fi
13213         aix_use_runtimelinking=no
13214
13215         # Test if we are trying to use run time linking or normal
13216         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13217         # need to do runtime linking.
13218         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13219           for ld_flag in $LDFLAGS; do
13220           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13221             aix_use_runtimelinking=yes
13222             break
13223           fi
13224           done
13225         esac
13226
13227         exp_sym_flag='-bexport'
13228         no_entry_flag='-bnoentry'
13229       fi
13230
13231       # When large executables or shared objects are built, AIX ld can
13232       # have problems creating the table of contents.  If linking a library
13233       # or program results in "error TOC overflow" add -mminimal-toc to
13234       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13235       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13236
13237       archive_cmds_F77=''
13238       hardcode_direct_F77=yes
13239       hardcode_libdir_separator_F77=':'
13240       link_all_deplibs_F77=yes
13241
13242       if test "$GCC" = yes; then
13243         case $host_os in aix4.012|aix4.012.*)
13244         # We only want to do this on AIX 4.2 and lower, the check
13245         # below for broken collect2 doesn't work under 4.3+
13246           collect2name=`${CC} -print-prog-name=collect2`
13247           if test -f "$collect2name" && \
13248            strings "$collect2name" | grep resolve_lib_name >/dev/null
13249           then
13250           # We have reworked collect2
13251           hardcode_direct_F77=yes
13252           else
13253           # We have old collect2
13254           hardcode_direct_F77=unsupported
13255           # It fails to find uninstalled libraries when the uninstalled
13256           # path is not listed in the libpath.  Setting hardcode_minus_L
13257           # to unsupported forces relinking
13258           hardcode_minus_L_F77=yes
13259           hardcode_libdir_flag_spec_F77='-L$libdir'
13260           hardcode_libdir_separator_F77=
13261           fi
13262         esac
13263         shared_flag='-shared'
13264       else
13265         # not using gcc
13266         if test "$host_cpu" = ia64; then
13267         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13268         # chokes on -Wl,-G. The following line is correct:
13269           shared_flag='-G'
13270         else
13271         if test "$aix_use_runtimelinking" = yes; then
13272             shared_flag='${wl}-G'
13273           else
13274             shared_flag='${wl}-bM:SRE'
13275         fi
13276         fi
13277       fi
13278
13279       # It seems that -bexpall does not export symbols beginning with
13280       # underscore (_), so it is better to generate a list of symbols to export.
13281       always_export_symbols_F77=yes
13282       if test "$aix_use_runtimelinking" = yes; then
13283         # Warning - without using the other runtime loading flags (-brtl),
13284         # -berok will link without error, but may produce a broken library.
13285         allow_undefined_flag_F77='-berok'
13286        # Determine the default libpath from the value encoded in an empty executable.
13287        cat >conftest.$ac_ext <<_ACEOF
13288       program main
13289
13290       end
13291 _ACEOF
13292 rm -f conftest.$ac_objext conftest$ac_exeext
13293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13294   (eval $ac_link) 2>&5
13295   ac_status=$?
13296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297   (exit $ac_status); } &&
13298          { ac_try='test -s conftest$ac_exeext'
13299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13300   (eval $ac_try) 2>&5
13301   ac_status=$?
13302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303   (exit $ac_status); }; }; then
13304
13305 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13306 }'`
13307 # Check for a 64-bit object if we didn't find anything.
13308 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13309 }'`; fi
13310 else
13311   echo "$as_me: failed program was:" >&5
13312 sed 's/^/| /' conftest.$ac_ext >&5
13313
13314 fi
13315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13316 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13317
13318        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13319         archive_expsym_cmds_F77="\$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"
13320        else
13321         if test "$host_cpu" = ia64; then
13322           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13323           allow_undefined_flag_F77="-z nodefs"
13324           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13325         else
13326          # Determine the default libpath from the value encoded in an empty executable.
13327          cat >conftest.$ac_ext <<_ACEOF
13328       program main
13329
13330       end
13331 _ACEOF
13332 rm -f conftest.$ac_objext conftest$ac_exeext
13333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13334   (eval $ac_link) 2>&5
13335   ac_status=$?
13336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337   (exit $ac_status); } &&
13338          { ac_try='test -s conftest$ac_exeext'
13339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13340   (eval $ac_try) 2>&5
13341   ac_status=$?
13342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343   (exit $ac_status); }; }; then
13344
13345 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13346 }'`
13347 # Check for a 64-bit object if we didn't find anything.
13348 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13349 }'`; fi
13350 else
13351   echo "$as_me: failed program was:" >&5
13352 sed 's/^/| /' conftest.$ac_ext >&5
13353
13354 fi
13355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13356 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13357
13358          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13359           # Warning - without using the other run time loading flags,
13360           # -berok will link without error, but may produce a broken library.
13361           no_undefined_flag_F77=' ${wl}-bernotok'
13362           allow_undefined_flag_F77=' ${wl}-berok'
13363           # -bexpall does not export symbols beginning with underscore (_)
13364           always_export_symbols_F77=yes
13365           # Exported symbols can be pulled into shared objects from archives
13366           whole_archive_flag_spec_F77=' '
13367           archive_cmds_need_lc_F77=yes
13368           # This is similar to how AIX traditionally builds it's shared libraries.
13369           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13370         fi
13371       fi
13372       ;;
13373
13374     amigaos*)
13375       archive_cmds_F77='$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)'
13376       hardcode_libdir_flag_spec_F77='-L$libdir'
13377       hardcode_minus_L_F77=yes
13378       # see comment about different semantics on the GNU ld section
13379       ld_shlibs_F77=no
13380       ;;
13381
13382     bsdi4*)
13383       export_dynamic_flag_spec_F77=-rdynamic
13384       ;;
13385
13386     cygwin* | mingw* | pw32*)
13387       # When not using gcc, we currently assume that we are using
13388       # Microsoft Visual C++.
13389       # hardcode_libdir_flag_spec is actually meaningless, as there is
13390       # no search path for DLLs.
13391       hardcode_libdir_flag_spec_F77=' '
13392       allow_undefined_flag_F77=unsupported
13393       # Tell ltmain to make .lib files, not .a files.
13394       libext=lib
13395       # Tell ltmain to make .dll files, not .so files.
13396       shrext=".dll"
13397       # FIXME: Setting linknames here is a bad hack.
13398       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13399       # The linker will automatically build a .lib file if we build a DLL.
13400       old_archive_From_new_cmds_F77='true'
13401       # FIXME: Should let the user specify the lib program.
13402       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13403       fix_srcfile_path='`cygpath -w "$srcfile"`'
13404       enable_shared_with_static_runtimes_F77=yes
13405       ;;
13406
13407     darwin* | rhapsody*)
13408     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13409       archive_cmds_need_lc_F77=no
13410       case "$host_os" in
13411       rhapsody* | darwin1.[012])
13412         allow_undefined_flag_F77='-undefined suppress'
13413         ;;
13414       *) # Darwin 1.3 on
13415         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13416         ;;
13417       esac
13418       # FIXME: Relying on posixy $() will cause problems for
13419       #        cross-compilation, but unfortunately the echo tests do not
13420       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13421       #        `"' quotes if we put them in here... so don't!
13422         lt_int_apple_cc_single_mod=no
13423         output_verbose_link_cmd='echo'
13424         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13425           lt_int_apple_cc_single_mod=yes
13426         fi
13427         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13428           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13429         else
13430         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13431       fi
13432       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13433       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13434         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13435           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13436         else
13437           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13438         fi
13439           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13440       hardcode_direct_F77=no
13441       hardcode_automatic_F77=yes
13442       hardcode_shlibpath_var_F77=unsupported
13443       whole_archive_flag_spec_F77='-all_load $convenience'
13444       link_all_deplibs_F77=yes
13445     fi
13446       ;;
13447
13448     dgux*)
13449       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13450       hardcode_libdir_flag_spec_F77='-L$libdir'
13451       hardcode_shlibpath_var_F77=no
13452       ;;
13453
13454     freebsd1*)
13455       ld_shlibs_F77=no
13456       ;;
13457
13458     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13459     # support.  Future versions do this automatically, but an explicit c++rt0.o
13460     # does not break anything, and helps significantly (at the cost of a little
13461     # extra space).
13462     freebsd2.2*)
13463       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13464       hardcode_libdir_flag_spec_F77='-R$libdir'
13465       hardcode_direct_F77=yes
13466       hardcode_shlibpath_var_F77=no
13467       ;;
13468
13469     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13470     freebsd2*)
13471       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13472       hardcode_direct_F77=yes
13473       hardcode_minus_L_F77=yes
13474       hardcode_shlibpath_var_F77=no
13475       ;;
13476
13477     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13478     freebsd*)
13479       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13480       hardcode_libdir_flag_spec_F77='-R$libdir'
13481       hardcode_direct_F77=yes
13482       hardcode_shlibpath_var_F77=no
13483       ;;
13484
13485     hpux9*)
13486       if test "$GCC" = yes; then
13487         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13488       else
13489         archive_cmds_F77='$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'
13490       fi
13491       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13492       hardcode_libdir_separator_F77=:
13493       hardcode_direct_F77=yes
13494
13495       # hardcode_minus_L: Not really in the search PATH,
13496       # but as the default location of the library.
13497       hardcode_minus_L_F77=yes
13498       export_dynamic_flag_spec_F77='${wl}-E'
13499       ;;
13500
13501     hpux10* | hpux11*)
13502       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13503         case "$host_cpu" in
13504         hppa*64*|ia64*)
13505           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13506           ;;
13507         *)
13508           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13509           ;;
13510         esac
13511       else
13512         case "$host_cpu" in
13513         hppa*64*|ia64*)
13514           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13515           ;;
13516         *)
13517           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13518           ;;
13519         esac
13520       fi
13521       if test "$with_gnu_ld" = no; then
13522         case "$host_cpu" in
13523         hppa*64*)
13524           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13525           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13526           hardcode_libdir_separator_F77=:
13527           hardcode_direct_F77=no
13528           hardcode_shlibpath_var_F77=no
13529           ;;
13530         ia64*)
13531           hardcode_libdir_flag_spec_F77='-L$libdir'
13532           hardcode_direct_F77=no
13533           hardcode_shlibpath_var_F77=no
13534
13535           # hardcode_minus_L: Not really in the search PATH,
13536           # but as the default location of the library.
13537           hardcode_minus_L_F77=yes
13538           ;;
13539         *)
13540           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13541           hardcode_libdir_separator_F77=:
13542           hardcode_direct_F77=yes
13543           export_dynamic_flag_spec_F77='${wl}-E'
13544
13545           # hardcode_minus_L: Not really in the search PATH,
13546           # but as the default location of the library.
13547           hardcode_minus_L_F77=yes
13548           ;;
13549         esac
13550       fi
13551       ;;
13552
13553     irix5* | irix6* | nonstopux*)
13554       if test "$GCC" = yes; then
13555         archive_cmds_F77='$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'
13556       else
13557         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13558         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13559       fi
13560       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13561       hardcode_libdir_separator_F77=:
13562       link_all_deplibs_F77=yes
13563       ;;
13564
13565     netbsd*)
13566       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13567         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13568       else
13569         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13570       fi
13571       hardcode_libdir_flag_spec_F77='-R$libdir'
13572       hardcode_direct_F77=yes
13573       hardcode_shlibpath_var_F77=no
13574       ;;
13575
13576     newsos6)
13577       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13578       hardcode_direct_F77=yes
13579       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13580       hardcode_libdir_separator_F77=:
13581       hardcode_shlibpath_var_F77=no
13582       ;;
13583
13584     openbsd*)
13585       hardcode_direct_F77=yes
13586       hardcode_shlibpath_var_F77=no
13587       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13588         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13589         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13590         export_dynamic_flag_spec_F77='${wl}-E'
13591       else
13592        case $host_os in
13593          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13594            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13595            hardcode_libdir_flag_spec_F77='-R$libdir'
13596            ;;
13597          *)
13598            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13599            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13600            ;;
13601        esac
13602       fi
13603       ;;
13604
13605     os2*)
13606       hardcode_libdir_flag_spec_F77='-L$libdir'
13607       hardcode_minus_L_F77=yes
13608       allow_undefined_flag_F77=unsupported
13609       archive_cmds_F77='$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'
13610       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13611       ;;
13612
13613     osf3*)
13614       if test "$GCC" = yes; then
13615         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13616         archive_cmds_F77='$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'
13617       else
13618         allow_undefined_flag_F77=' -expect_unresolved \*'
13619         archive_cmds_F77='$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'
13620       fi
13621       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13622       hardcode_libdir_separator_F77=:
13623       ;;
13624
13625     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13626       if test "$GCC" = yes; then
13627         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13628         archive_cmds_F77='$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'
13629         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13630       else
13631         allow_undefined_flag_F77=' -expect_unresolved \*'
13632         archive_cmds_F77='$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'
13633         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13634         $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'
13635
13636         # Both c and cxx compiler support -rpath directly
13637         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13638       fi
13639       hardcode_libdir_separator_F77=:
13640       ;;
13641
13642     sco3.2v5*)
13643       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13644       hardcode_shlibpath_var_F77=no
13645       export_dynamic_flag_spec_F77='${wl}-Bexport'
13646       runpath_var=LD_RUN_PATH
13647       hardcode_runpath_var=yes
13648       ;;
13649
13650     solaris*)
13651       no_undefined_flag_F77=' -z text'
13652       if test "$GCC" = yes; then
13653         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13654         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13655           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13656       else
13657         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13658         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13659         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13660       fi
13661       hardcode_libdir_flag_spec_F77='-R$libdir'
13662       hardcode_shlibpath_var_F77=no
13663       case $host_os in
13664       solaris2.[0-5] | solaris2.[0-5].*) ;;
13665       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13666         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13667       esac
13668       link_all_deplibs_F77=yes
13669       ;;
13670
13671     sunos4*)
13672       if test "x$host_vendor" = xsequent; then
13673         # Use $CC to link under sequent, because it throws in some extra .o
13674         # files that make .init and .fini sections work.
13675         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13676       else
13677         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13678       fi
13679       hardcode_libdir_flag_spec_F77='-L$libdir'
13680       hardcode_direct_F77=yes
13681       hardcode_minus_L_F77=yes
13682       hardcode_shlibpath_var_F77=no
13683       ;;
13684
13685     sysv4)
13686       case $host_vendor in
13687         sni)
13688           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13689           hardcode_direct_F77=yes # is this really true???
13690         ;;
13691         siemens)
13692           ## LD is ld it makes a PLAMLIB
13693           ## CC just makes a GrossModule.
13694           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13695           reload_cmds_F77='$CC -r -o $output$reload_objs'
13696           hardcode_direct_F77=no
13697         ;;
13698         motorola)
13699           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13700           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13701         ;;
13702       esac
13703       runpath_var='LD_RUN_PATH'
13704       hardcode_shlibpath_var_F77=no
13705       ;;
13706
13707     sysv4.3*)
13708       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13709       hardcode_shlibpath_var_F77=no
13710       export_dynamic_flag_spec_F77='-Bexport'
13711       ;;
13712
13713     sysv4*MP*)
13714       if test -d /usr/nec; then
13715         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13716         hardcode_shlibpath_var_F77=no
13717         runpath_var=LD_RUN_PATH
13718         hardcode_runpath_var=yes
13719         ld_shlibs_F77=yes
13720       fi
13721       ;;
13722
13723     sysv4.2uw2*)
13724       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13725       hardcode_direct_F77=yes
13726       hardcode_minus_L_F77=no
13727       hardcode_shlibpath_var_F77=no
13728       hardcode_runpath_var=yes
13729       runpath_var=LD_RUN_PATH
13730       ;;
13731
13732    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13733       no_undefined_flag_F77='${wl}-z ${wl}text'
13734       if test "$GCC" = yes; then
13735         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13736       else
13737         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13738       fi
13739       runpath_var='LD_RUN_PATH'
13740       hardcode_shlibpath_var_F77=no
13741       ;;
13742
13743     sysv5*)
13744       no_undefined_flag_F77=' -z text'
13745       # $CC -shared without GNU ld will not create a library from C++
13746       # object files and a static libstdc++, better avoid it by now
13747       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13748       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13749                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13750       hardcode_libdir_flag_spec_F77=
13751       hardcode_shlibpath_var_F77=no
13752       runpath_var='LD_RUN_PATH'
13753       ;;
13754
13755     uts4*)
13756       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13757       hardcode_libdir_flag_spec_F77='-L$libdir'
13758       hardcode_shlibpath_var_F77=no
13759       ;;
13760
13761     *)
13762       ld_shlibs_F77=no
13763       ;;
13764     esac
13765   fi
13766
13767 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13768 echo "${ECHO_T}$ld_shlibs_F77" >&6
13769 test "$ld_shlibs_F77" = no && can_build_shared=no
13770
13771 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13772 if test "$GCC" = yes; then
13773   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13774 fi
13775
13776 #
13777 # Do we need to explicitly link libc?
13778 #
13779 case "x$archive_cmds_need_lc_F77" in
13780 x|xyes)
13781   # Assume -lc should be added
13782   archive_cmds_need_lc_F77=yes
13783
13784   if test "$enable_shared" = yes && test "$GCC" = yes; then
13785     case $archive_cmds_F77 in
13786     *'~'*)
13787       # FIXME: we may have to deal with multi-command sequences.
13788       ;;
13789     '$CC '*)
13790       # Test whether the compiler implicitly links with -lc since on some
13791       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13792       # to ld, don't add -lc before -lgcc.
13793       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13794 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13795       $rm conftest*
13796       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13797
13798       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13799   (eval $ac_compile) 2>&5
13800   ac_status=$?
13801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802   (exit $ac_status); } 2>conftest.err; then
13803         soname=conftest
13804         lib=conftest
13805         libobjs=conftest.$ac_objext
13806         deplibs=
13807         wl=$lt_prog_compiler_wl_F77
13808         compiler_flags=-v
13809         linker_flags=-v
13810         verstring=
13811         output_objdir=.
13812         libname=conftest
13813         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13814         allow_undefined_flag_F77=
13815         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13816   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13817   ac_status=$?
13818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819   (exit $ac_status); }
13820         then
13821           archive_cmds_need_lc_F77=no
13822         else
13823           archive_cmds_need_lc_F77=yes
13824         fi
13825         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13826       else
13827         cat conftest.err 1>&5
13828       fi
13829       $rm conftest*
13830       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13831 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13832       ;;
13833     esac
13834   fi
13835   ;;
13836 esac
13837
13838 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13839 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13840 hardcode_action_F77=
13841 if test -n "$hardcode_libdir_flag_spec_F77" || \
13842    test -n "$runpath_var F77" || \
13843    test "X$hardcode_automatic_F77"="Xyes" ; then
13844
13845   # We can hardcode non-existant directories.
13846   if test "$hardcode_direct_F77" != no &&
13847      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13848      # have to relink, otherwise we might link with an installed library
13849      # when we should be linking with a yet-to-be-installed one
13850      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13851      test "$hardcode_minus_L_F77" != no; then
13852     # Linking always hardcodes the temporary library directory.
13853     hardcode_action_F77=relink
13854   else
13855     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13856     hardcode_action_F77=immediate
13857   fi
13858 else
13859   # We cannot hardcode anything, or else we can only hardcode existing
13860   # directories.
13861   hardcode_action_F77=unsupported
13862 fi
13863 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13864 echo "${ECHO_T}$hardcode_action_F77" >&6
13865
13866 if test "$hardcode_action_F77" = relink; then
13867   # Fast installation is not supported
13868   enable_fast_install=no
13869 elif test "$shlibpath_overrides_runpath" = yes ||
13870      test "$enable_shared" = no; then
13871   # Fast installation is not necessary
13872   enable_fast_install=needless
13873 fi
13874
13875 striplib=
13876 old_striplib=
13877 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13878 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13879 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13880   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13881   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13882   echo "$as_me:$LINENO: result: yes" >&5
13883 echo "${ECHO_T}yes" >&6
13884 else
13885 # FIXME - insert some real tests, host_os isn't really good enough
13886   case $host_os in
13887    darwin*)
13888        if test -n "$STRIP" ; then
13889          striplib="$STRIP -x"
13890          echo "$as_me:$LINENO: result: yes" >&5
13891 echo "${ECHO_T}yes" >&6
13892        else
13893   echo "$as_me:$LINENO: result: no" >&5
13894 echo "${ECHO_T}no" >&6
13895 fi
13896        ;;
13897    *)
13898   echo "$as_me:$LINENO: result: no" >&5
13899 echo "${ECHO_T}no" >&6
13900     ;;
13901   esac
13902 fi
13903
13904 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13905 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13906 library_names_spec=
13907 libname_spec='lib$name'
13908 soname_spec=
13909 shrext=".so"
13910 postinstall_cmds=
13911 postuninstall_cmds=
13912 finish_cmds=
13913 finish_eval=
13914 shlibpath_var=
13915 shlibpath_overrides_runpath=unknown
13916 version_type=none
13917 dynamic_linker="$host_os ld.so"
13918 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13919 if test "$GCC" = yes; then
13920   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13921   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13922     # if the path contains ";" then we assume it to be the separator
13923     # otherwise default to the standard path separator (i.e. ":") - it is
13924     # assumed that no part of a normal pathname contains ";" but that should
13925     # okay in the real world where ";" in dirpaths is itself problematic.
13926     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13927   else
13928     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13929   fi
13930 else
13931   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13932 fi
13933 need_lib_prefix=unknown
13934 hardcode_into_libs=no
13935
13936 # when you set need_version to no, make sure it does not cause -set_version
13937 # flags to be left without arguments
13938 need_version=unknown
13939
13940 case $host_os in
13941 aix3*)
13942   version_type=linux
13943   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13944   shlibpath_var=LIBPATH
13945
13946   # AIX 3 has no versioning support, so we append a major version to the name.
13947   soname_spec='${libname}${release}${shared_ext}$major'
13948   ;;
13949
13950 aix4* | aix5*)
13951   version_type=linux
13952   need_lib_prefix=no
13953   need_version=no
13954   hardcode_into_libs=yes
13955   if test "$host_cpu" = ia64; then
13956     # AIX 5 supports IA64
13957     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13958     shlibpath_var=LD_LIBRARY_PATH
13959   else
13960     # With GCC up to 2.95.x, collect2 would create an import file
13961     # for dependence libraries.  The import file would start with
13962     # the line `#! .'.  This would cause the generated library to
13963     # depend on `.', always an invalid library.  This was fixed in
13964     # development snapshots of GCC prior to 3.0.
13965     case $host_os in
13966       aix4 | aix4.[01] | aix4.[01].*)
13967       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13968            echo ' yes '
13969            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13970         :
13971       else
13972         can_build_shared=no
13973       fi
13974       ;;
13975     esac
13976     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13977     # soname into executable. Probably we can add versioning support to
13978     # collect2, so additional links can be useful in future.
13979     if test "$aix_use_runtimelinking" = yes; then
13980       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13981       # instead of lib<name>.a to let people know that these are not
13982       # typical AIX shared libraries.
13983       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13984     else
13985       # We preserve .a as extension for shared libraries through AIX4.2
13986       # and later when we are not doing run time linking.
13987       library_names_spec='${libname}${release}.a $libname.a'
13988       soname_spec='${libname}${release}${shared_ext}$major'
13989     fi
13990     shlibpath_var=LIBPATH
13991   fi
13992   ;;
13993
13994 amigaos*)
13995   library_names_spec='$libname.ixlibrary $libname.a'
13996   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13997   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'
13998   ;;
13999
14000 beos*)
14001   library_names_spec='${libname}${shared_ext}'
14002   dynamic_linker="$host_os ld.so"
14003   shlibpath_var=LIBRARY_PATH
14004   ;;
14005
14006 bsdi4*)
14007   version_type=linux
14008   need_version=no
14009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14010   soname_spec='${libname}${release}${shared_ext}$major'
14011   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14012   shlibpath_var=LD_LIBRARY_PATH
14013   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14014   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14015   # the default ld.so.conf also contains /usr/contrib/lib and
14016   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14017   # libtool to hard-code these into programs
14018   ;;
14019
14020 cygwin* | mingw* | pw32*)
14021   version_type=windows
14022   shrext=".dll"
14023   need_version=no
14024   need_lib_prefix=no
14025
14026   case $GCC,$host_os in
14027   yes,cygwin* | yes,mingw* | yes,pw32*)
14028     library_names_spec='$libname.dll.a'
14029     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14030     postinstall_cmds='base_file=`basename \${file}`~
14031       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14032       dldir=$destdir/`dirname \$dlpath`~
14033       test -d \$dldir || mkdir -p \$dldir~
14034       $install_prog $dir/$dlname \$dldir/$dlname'
14035     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14036       dlpath=$dir/\$dldll~
14037        $rm \$dlpath'
14038     shlibpath_overrides_runpath=yes
14039
14040     case $host_os in
14041     cygwin*)
14042       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14043       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14044       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14045       ;;
14046     mingw*)
14047       # MinGW DLLs use traditional 'lib' prefix
14048       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14049       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14050       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14051         # It is most probably a Windows format PATH printed by
14052         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14053         # path with ; separators, and with drive letters. We can handle the
14054         # drive letters (cygwin fileutils understands them), so leave them,
14055         # especially as we might pass files found there to a mingw objdump,
14056         # which wouldn't understand a cygwinified path. Ahh.
14057         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14058       else
14059         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14060       fi
14061       ;;
14062     pw32*)
14063       # pw32 DLLs use 'pw' prefix rather than 'lib'
14064       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14065       ;;
14066     esac
14067     ;;
14068
14069   *)
14070     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14071     ;;
14072   esac
14073   dynamic_linker='Win32 ld.exe'
14074   # FIXME: first we should search . and the directory the executable is in
14075   shlibpath_var=PATH
14076   ;;
14077
14078 darwin* | rhapsody*)
14079   dynamic_linker="$host_os dyld"
14080   version_type=darwin
14081   need_lib_prefix=no
14082   need_version=no
14083   # FIXME: Relying on posixy $() will cause problems for
14084   #        cross-compilation, but unfortunately the echo tests do not
14085   #        yet detect zsh echo's removal of \ escapes.
14086   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14087   soname_spec='${libname}${release}${major}$shared_ext'
14088   shlibpath_overrides_runpath=yes
14089   shlibpath_var=DYLD_LIBRARY_PATH
14090   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14091   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14092   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14093   sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14094   fi
14095   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14096   ;;
14097
14098 dgux*)
14099   version_type=linux
14100   need_lib_prefix=no
14101   need_version=no
14102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14103   soname_spec='${libname}${release}${shared_ext}$major'
14104   shlibpath_var=LD_LIBRARY_PATH
14105   ;;
14106
14107 freebsd1*)
14108   dynamic_linker=no
14109   ;;
14110
14111 freebsd*)
14112   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14113   version_type=freebsd-$objformat
14114   case $version_type in
14115     freebsd-elf*)
14116       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14117       need_version=no
14118       need_lib_prefix=no
14119       ;;
14120     freebsd-*)
14121       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14122       need_version=yes
14123       ;;
14124   esac
14125   shlibpath_var=LD_LIBRARY_PATH
14126   case $host_os in
14127   freebsd2*)
14128     shlibpath_overrides_runpath=yes
14129     ;;
14130   freebsd3.01* | freebsdelf3.01*)
14131     shlibpath_overrides_runpath=yes
14132     hardcode_into_libs=yes
14133     ;;
14134   *) # from 3.2 on
14135     shlibpath_overrides_runpath=no
14136     hardcode_into_libs=yes
14137     ;;
14138   esac
14139   ;;
14140
14141 gnu*)
14142   version_type=linux
14143   need_lib_prefix=no
14144   need_version=no
14145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14146   soname_spec='${libname}${release}${shared_ext}$major'
14147   shlibpath_var=LD_LIBRARY_PATH
14148   hardcode_into_libs=yes
14149   ;;
14150
14151 hpux9* | hpux10* | hpux11*)
14152   # Give a soname corresponding to the major version so that dld.sl refuses to
14153   # link against other versions.
14154   version_type=sunos
14155   need_lib_prefix=no
14156   need_version=no
14157   case "$host_cpu" in
14158   ia64*)
14159     shrext='.so'
14160     hardcode_into_libs=yes
14161     dynamic_linker="$host_os dld.so"
14162     shlibpath_var=LD_LIBRARY_PATH
14163     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14164     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14165     soname_spec='${libname}${release}${shared_ext}$major'
14166     if test "X$HPUX_IA64_MODE" = X32; then
14167       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14168     else
14169       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14170     fi
14171     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14172     ;;
14173    hppa*64*)
14174      shrext='.sl'
14175      hardcode_into_libs=yes
14176      dynamic_linker="$host_os dld.sl"
14177      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14178      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14179      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14180      soname_spec='${libname}${release}${shared_ext}$major'
14181      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14182      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14183      ;;
14184    *)
14185     shrext='.sl'
14186     dynamic_linker="$host_os dld.sl"
14187     shlibpath_var=SHLIB_PATH
14188     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14189     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14190     soname_spec='${libname}${release}${shared_ext}$major'
14191     ;;
14192   esac
14193   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14194   postinstall_cmds='chmod 555 $lib'
14195   ;;
14196
14197 irix5* | irix6* | nonstopux*)
14198   case $host_os in
14199     nonstopux*) version_type=nonstopux ;;
14200     *)
14201         if test "$lt_cv_prog_gnu_ld" = yes; then
14202                 version_type=linux
14203         else
14204                 version_type=irix
14205         fi ;;
14206   esac
14207   need_lib_prefix=no
14208   need_version=no
14209   soname_spec='${libname}${release}${shared_ext}$major'
14210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14211   case $host_os in
14212   irix5* | nonstopux*)
14213     libsuff= shlibsuff=
14214     ;;
14215   *)
14216     case $LD in # libtool.m4 will add one of these switches to LD
14217     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14218       libsuff= shlibsuff= libmagic=32-bit;;
14219     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14220       libsuff=32 shlibsuff=N32 libmagic=N32;;
14221     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14222       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14223     *) libsuff= shlibsuff= libmagic=never-match;;
14224     esac
14225     ;;
14226   esac
14227   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14228   shlibpath_overrides_runpath=no
14229   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14230   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14231   hardcode_into_libs=yes
14232   ;;
14233
14234 # No shared lib support for Linux oldld, aout, or coff.
14235 linux*oldld* | linux*aout* | linux*coff*)
14236   dynamic_linker=no
14237   ;;
14238
14239 # This must be Linux ELF.
14240 linux*)
14241   version_type=linux
14242   need_lib_prefix=no
14243   need_version=no
14244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14245   soname_spec='${libname}${release}${shared_ext}$major'
14246   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14247   shlibpath_var=LD_LIBRARY_PATH
14248   shlibpath_overrides_runpath=no
14249   # This implies no fast_install, which is unacceptable.
14250   # Some rework will be needed to allow for fast_install
14251   # before this can be enabled.
14252   hardcode_into_libs=yes
14253
14254   # We used to test for /lib/ld.so.1 and disable shared libraries on
14255   # powerpc, because MkLinux only supported shared libraries with the
14256   # GNU dynamic linker.  Since this was broken with cross compilers,
14257   # most powerpc-linux boxes support dynamic linking these days and
14258   # people can always --disable-shared, the test was removed, and we
14259   # assume the GNU/Linux dynamic linker is in use.
14260   dynamic_linker='GNU/Linux ld.so'
14261
14262   # Find out which ABI we are using (multilib Linux x86_64 hack).
14263   libsuff=
14264   case "$host_cpu" in
14265   x86_64*|s390x*)
14266     echo '#line 14266 "configure"' > conftest.$ac_ext
14267     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14268   (eval $ac_compile) 2>&5
14269   ac_status=$?
14270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271   (exit $ac_status); }; then
14272       case `/usr/bin/file conftest.$ac_objext` in
14273       *64-bit*)
14274         libsuff=64
14275         ;;
14276       esac
14277     fi
14278     rm -rf conftest*
14279     ;;
14280   *)
14281     ;;
14282   esac
14283   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
14284   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14285   ;;
14286
14287 netbsd*)
14288   version_type=sunos
14289   need_lib_prefix=no
14290   need_version=no
14291   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14292     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14293     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14294     dynamic_linker='NetBSD (a.out) ld.so'
14295   else
14296     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14297     soname_spec='${libname}${release}${shared_ext}$major'
14298     dynamic_linker='NetBSD ld.elf_so'
14299   fi
14300   shlibpath_var=LD_LIBRARY_PATH
14301   shlibpath_overrides_runpath=yes
14302   hardcode_into_libs=yes
14303   ;;
14304
14305 newsos6)
14306   version_type=linux
14307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14308   shlibpath_var=LD_LIBRARY_PATH
14309   shlibpath_overrides_runpath=yes
14310   ;;
14311
14312 nto-qnx)
14313   version_type=linux
14314   need_lib_prefix=no
14315   need_version=no
14316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14317   soname_spec='${libname}${release}${shared_ext}$major'
14318   shlibpath_var=LD_LIBRARY_PATH
14319   shlibpath_overrides_runpath=yes
14320   ;;
14321
14322 openbsd*)
14323   version_type=sunos
14324   need_lib_prefix=no
14325   need_version=no
14326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14327   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14328   shlibpath_var=LD_LIBRARY_PATH
14329   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14330     case $host_os in
14331       openbsd2.[89] | openbsd2.[89].*)
14332         shlibpath_overrides_runpath=no
14333         ;;
14334       *)
14335         shlibpath_overrides_runpath=yes
14336         ;;
14337       esac
14338   else
14339     shlibpath_overrides_runpath=yes
14340   fi
14341   ;;
14342
14343 os2*)
14344   libname_spec='$name'
14345   shrext=".dll"
14346   need_lib_prefix=no
14347   library_names_spec='$libname${shared_ext} $libname.a'
14348   dynamic_linker='OS/2 ld.exe'
14349   shlibpath_var=LIBPATH
14350   ;;
14351
14352 osf3* | osf4* | osf5*)
14353   version_type=osf
14354   need_lib_prefix=no
14355   need_version=no
14356   soname_spec='${libname}${release}${shared_ext}$major'
14357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14358   shlibpath_var=LD_LIBRARY_PATH
14359   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14360   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14361   ;;
14362
14363 sco3.2v5*)
14364   version_type=osf
14365   soname_spec='${libname}${release}${shared_ext}$major'
14366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14367   shlibpath_var=LD_LIBRARY_PATH
14368   ;;
14369
14370 solaris*)
14371   version_type=linux
14372   need_lib_prefix=no
14373   need_version=no
14374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14375   soname_spec='${libname}${release}${shared_ext}$major'
14376   shlibpath_var=LD_LIBRARY_PATH
14377   shlibpath_overrides_runpath=yes
14378   hardcode_into_libs=yes
14379   # ldd complains unless libraries are executable
14380   postinstall_cmds='chmod +x $lib'
14381   ;;
14382
14383 sunos4*)
14384   version_type=sunos
14385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14386   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14387   shlibpath_var=LD_LIBRARY_PATH
14388   shlibpath_overrides_runpath=yes
14389   if test "$with_gnu_ld" = yes; then
14390     need_lib_prefix=no
14391   fi
14392   need_version=yes
14393   ;;
14394
14395 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14396   version_type=linux
14397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14398   soname_spec='${libname}${release}${shared_ext}$major'
14399   shlibpath_var=LD_LIBRARY_PATH
14400   case $host_vendor in
14401     sni)
14402       shlibpath_overrides_runpath=no
14403       need_lib_prefix=no
14404       export_dynamic_flag_spec='${wl}-Blargedynsym'
14405       runpath_var=LD_RUN_PATH
14406       ;;
14407     siemens)
14408       need_lib_prefix=no
14409       ;;
14410     motorola)
14411       need_lib_prefix=no
14412       need_version=no
14413       shlibpath_overrides_runpath=no
14414       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14415       ;;
14416   esac
14417   ;;
14418
14419 sysv4*MP*)
14420   if test -d /usr/nec ;then
14421     version_type=linux
14422     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14423     soname_spec='$libname${shared_ext}.$major'
14424     shlibpath_var=LD_LIBRARY_PATH
14425   fi
14426   ;;
14427
14428 uts4*)
14429   version_type=linux
14430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14431   soname_spec='${libname}${release}${shared_ext}$major'
14432   shlibpath_var=LD_LIBRARY_PATH
14433   ;;
14434
14435 *)
14436   dynamic_linker=no
14437   ;;
14438 esac
14439 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14440 echo "${ECHO_T}$dynamic_linker" >&6
14441 test "$dynamic_linker" = no && can_build_shared=no
14442
14443
14444 # The else clause should only fire when bootstrapping the
14445 # libtool distribution, otherwise you forgot to ship ltmain.sh
14446 # with your package, and you will get complaints that there are
14447 # no rules to generate ltmain.sh.
14448 if test -f "$ltmain"; then
14449   # See if we are running on zsh, and set the options which allow our commands through
14450   # without removal of \ escapes.
14451   if test -n "${ZSH_VERSION+set}" ; then
14452     setopt NO_GLOB_SUBST
14453   fi
14454   # Now quote all the things that may contain metacharacters while being
14455   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14456   # variables and quote the copies for generation of the libtool script.
14457   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14458     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14459     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14460     deplibs_check_method reload_flag reload_cmds need_locks \
14461     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14462     lt_cv_sys_global_symbol_to_c_name_address \
14463     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14464     old_postinstall_cmds old_postuninstall_cmds \
14465     compiler_F77 \
14466     CC_F77 \
14467     LD_F77 \
14468     lt_prog_compiler_wl_F77 \
14469     lt_prog_compiler_pic_F77 \
14470     lt_prog_compiler_static_F77 \
14471     lt_prog_compiler_no_builtin_flag_F77 \
14472     export_dynamic_flag_spec_F77 \
14473     thread_safe_flag_spec_F77 \
14474     whole_archive_flag_spec_F77 \
14475     enable_shared_with_static_runtimes_F77 \
14476     old_archive_cmds_F77 \
14477     old_archive_from_new_cmds_F77 \
14478     predep_objects_F77 \
14479     postdep_objects_F77 \
14480     predeps_F77 \
14481     postdeps_F77 \
14482     compiler_lib_search_path_F77 \
14483     archive_cmds_F77 \
14484     archive_expsym_cmds_F77 \
14485     postinstall_cmds_F77 \
14486     postuninstall_cmds_F77 \
14487     old_archive_from_expsyms_cmds_F77 \
14488     allow_undefined_flag_F77 \
14489     no_undefined_flag_F77 \
14490     export_symbols_cmds_F77 \
14491     hardcode_libdir_flag_spec_F77 \
14492     hardcode_libdir_flag_spec_ld_F77 \
14493     hardcode_libdir_separator_F77 \
14494     hardcode_automatic_F77 \
14495     module_cmds_F77 \
14496     module_expsym_cmds_F77 \
14497     lt_cv_prog_compiler_c_o_F77 \
14498     exclude_expsyms_F77 \
14499     include_expsyms_F77; do
14500
14501     case $var in
14502     old_archive_cmds_F77 | \
14503     old_archive_from_new_cmds_F77 | \
14504     archive_cmds_F77 | \
14505     archive_expsym_cmds_F77 | \
14506     module_cmds_F77 | \
14507     module_expsym_cmds_F77 | \
14508     old_archive_from_expsyms_cmds_F77 | \
14509     export_symbols_cmds_F77 | \
14510     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14511     postinstall_cmds | postuninstall_cmds | \
14512     old_postinstall_cmds | old_postuninstall_cmds | \
14513     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14514       # Double-quote double-evaled strings.
14515       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14516       ;;
14517     *)
14518       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14519       ;;
14520     esac
14521   done
14522
14523   case $lt_echo in
14524   *'\$0 --fallback-echo"')
14525     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14526     ;;
14527   esac
14528
14529 cfgfile="$ofile"
14530
14531   cat <<__EOF__ >> "$cfgfile"
14532 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14533
14534 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14535
14536 # Shell to use when invoking shell scripts.
14537 SHELL=$lt_SHELL
14538
14539 # Whether or not to build shared libraries.
14540 build_libtool_libs=$enable_shared
14541
14542 # Whether or not to build static libraries.
14543 build_old_libs=$enable_static
14544
14545 # Whether or not to add -lc for building shared libraries.
14546 build_libtool_need_lc=$archive_cmds_need_lc_F77
14547
14548 # Whether or not to disallow shared libs when runtime libs are static
14549 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14550
14551 # Whether or not to optimize for fast installation.
14552 fast_install=$enable_fast_install
14553
14554 # The host system.
14555 host_alias=$host_alias
14556 host=$host
14557
14558 # An echo program that does not interpret backslashes.
14559 echo=$lt_echo
14560
14561 # The archiver.
14562 AR=$lt_AR
14563 AR_FLAGS=$lt_AR_FLAGS
14564
14565 # A C compiler.
14566 LTCC=$lt_LTCC
14567
14568 # A language-specific compiler.
14569 CC=$lt_compiler_F77
14570
14571 # Is the compiler the GNU C compiler?
14572 with_gcc=$GCC_F77
14573
14574 # An ERE matcher.
14575 EGREP=$lt_EGREP
14576
14577 # The linker used to build libraries.
14578 LD=$lt_LD_F77
14579
14580 # Whether we need hard or soft links.
14581 LN_S=$lt_LN_S
14582
14583 # A BSD-compatible nm program.
14584 NM=$lt_NM
14585
14586 # A symbol stripping program
14587 STRIP=$STRIP
14588
14589 # Used to examine libraries when file_magic_cmd begins "file"
14590 MAGIC_CMD=$MAGIC_CMD
14591
14592 # Used on cygwin: DLL creation program.
14593 DLLTOOL="$DLLTOOL"
14594
14595 # Used on cygwin: object dumper.
14596 OBJDUMP="$OBJDUMP"
14597
14598 # Used on cygwin: assembler.
14599 AS="$AS"
14600
14601 # The name of the directory that contains temporary libtool files.
14602 objdir=$objdir
14603
14604 # How to create reloadable object files.
14605 reload_flag=$lt_reload_flag
14606 reload_cmds=$lt_reload_cmds
14607
14608 # How to pass a linker flag through the compiler.
14609 wl=$lt_lt_prog_compiler_wl_F77
14610
14611 # Object file suffix (normally "o").
14612 objext="$ac_objext"
14613
14614 # Old archive suffix (normally "a").
14615 libext="$libext"
14616
14617 # Shared library suffix (normally ".so").
14618 shrext='$shrext'
14619
14620 # Executable file suffix (normally "").
14621 exeext="$exeext"
14622
14623 # Additional compiler flags for building library objects.
14624 pic_flag=$lt_lt_prog_compiler_pic_F77
14625 pic_mode=$pic_mode
14626
14627 # What is the maximum length of a command?
14628 max_cmd_len=$lt_cv_sys_max_cmd_len
14629
14630 # Does compiler simultaneously support -c and -o options?
14631 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14632
14633 # Must we lock files when doing compilation ?
14634 need_locks=$lt_need_locks
14635
14636 # Do we need the lib prefix for modules?
14637 need_lib_prefix=$need_lib_prefix
14638
14639 # Do we need a version for libraries?
14640 need_version=$need_version
14641
14642 # Whether dlopen is supported.
14643 dlopen_support=$enable_dlopen
14644
14645 # Whether dlopen of programs is supported.
14646 dlopen_self=$enable_dlopen_self
14647
14648 # Whether dlopen of statically linked programs is supported.
14649 dlopen_self_static=$enable_dlopen_self_static
14650
14651 # Compiler flag to prevent dynamic linking.
14652 link_static_flag=$lt_lt_prog_compiler_static_F77
14653
14654 # Compiler flag to turn off builtin functions.
14655 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14656
14657 # Compiler flag to allow reflexive dlopens.
14658 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14659
14660 # Compiler flag to generate shared objects directly from archives.
14661 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14662
14663 # Compiler flag to generate thread-safe objects.
14664 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14665
14666 # Library versioning type.
14667 version_type=$version_type
14668
14669 # Format of library name prefix.
14670 libname_spec=$lt_libname_spec
14671
14672 # List of archive names.  First name is the real one, the rest are links.
14673 # The last name is the one that the linker finds with -lNAME.
14674 library_names_spec=$lt_library_names_spec
14675
14676 # The coded name of the library, if different from the real name.
14677 soname_spec=$lt_soname_spec
14678
14679 # Commands used to build and install an old-style archive.
14680 RANLIB=$lt_RANLIB
14681 old_archive_cmds=$lt_old_archive_cmds_F77
14682 old_postinstall_cmds=$lt_old_postinstall_cmds
14683 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14684
14685 # Create an old-style archive from a shared archive.
14686 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14687
14688 # Create a temporary old-style archive to link instead of a shared archive.
14689 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14690
14691 # Commands used to build and install a shared archive.
14692 archive_cmds=$lt_archive_cmds_F77
14693 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14694 postinstall_cmds=$lt_postinstall_cmds
14695 postuninstall_cmds=$lt_postuninstall_cmds
14696
14697 # Commands used to build a loadable module (assumed same as above if empty)
14698 module_cmds=$lt_module_cmds_F77
14699 module_expsym_cmds=$lt_module_expsym_cmds_F77
14700
14701 # Commands to strip libraries.
14702 old_striplib=$lt_old_striplib
14703 striplib=$lt_striplib
14704
14705 # Dependencies to place before the objects being linked to create a
14706 # shared library.
14707 predep_objects=$lt_predep_objects_F77
14708
14709 # Dependencies to place after the objects being linked to create a
14710 # shared library.
14711 postdep_objects=$lt_postdep_objects_F77
14712
14713 # Dependencies to place before the objects being linked to create a
14714 # shared library.
14715 predeps=$lt_predeps_F77
14716
14717 # Dependencies to place after the objects being linked to create a
14718 # shared library.
14719 postdeps=$lt_postdeps_F77
14720
14721 # The library search path used internally by the compiler when linking
14722 # a shared library.
14723 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14724
14725 # Method to check whether dependent libraries are shared objects.
14726 deplibs_check_method=$lt_deplibs_check_method
14727
14728 # Command to use when deplibs_check_method == file_magic.
14729 file_magic_cmd=$lt_file_magic_cmd
14730
14731 # Flag that allows shared libraries with undefined symbols to be built.
14732 allow_undefined_flag=$lt_allow_undefined_flag_F77
14733
14734 # Flag that forces no undefined symbols.
14735 no_undefined_flag=$lt_no_undefined_flag_F77
14736
14737 # Commands used to finish a libtool library installation in a directory.
14738 finish_cmds=$lt_finish_cmds
14739
14740 # Same as above, but a single script fragment to be evaled but not shown.
14741 finish_eval=$lt_finish_eval
14742
14743 # Take the output of nm and produce a listing of raw symbols and C names.
14744 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14745
14746 # Transform the output of nm in a proper C declaration
14747 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14748
14749 # Transform the output of nm in a C name address pair
14750 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14751
14752 # This is the shared library runtime path variable.
14753 runpath_var=$runpath_var
14754
14755 # This is the shared library path variable.
14756 shlibpath_var=$shlibpath_var
14757
14758 # Is shlibpath searched before the hard-coded library search path?
14759 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14760
14761 # How to hardcode a shared library path into an executable.
14762 hardcode_action=$hardcode_action_F77
14763
14764 # Whether we should hardcode library paths into libraries.
14765 hardcode_into_libs=$hardcode_into_libs
14766
14767 # Flag to hardcode \$libdir into a binary during linking.
14768 # This must work even if \$libdir does not exist.
14769 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14770
14771 # If ld is used when linking, flag to hardcode \$libdir into
14772 # a binary during linking. This must work even if \$libdir does
14773 # not exist.
14774 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14775
14776 # Whether we need a single -rpath flag with a separated argument.
14777 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14778
14779 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14780 # resulting binary.
14781 hardcode_direct=$hardcode_direct_F77
14782
14783 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14784 # resulting binary.
14785 hardcode_minus_L=$hardcode_minus_L_F77
14786
14787 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14788 # the resulting binary.
14789 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14790
14791 # Set to yes if building a shared library automatically hardcodes DIR into the library
14792 # and all subsequent libraries and executables linked against it.
14793 hardcode_automatic=$hardcode_automatic_F77
14794
14795 # Variables whose values should be saved in libtool wrapper scripts and
14796 # restored at relink time.
14797 variables_saved_for_relink="$variables_saved_for_relink"
14798
14799 # Whether libtool must link a program against all its dependency libraries.
14800 link_all_deplibs=$link_all_deplibs_F77
14801
14802 # Compile-time system search path for libraries
14803 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14804
14805 # Run-time system search path for libraries
14806 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14807
14808 # Fix the shell variable \$srcfile for the compiler.
14809 fix_srcfile_path="$fix_srcfile_path_F77"
14810
14811 # Set to yes if exported symbols are required.
14812 always_export_symbols=$always_export_symbols_F77
14813
14814 # The commands to list exported symbols.
14815 export_symbols_cmds=$lt_export_symbols_cmds_F77
14816
14817 # The commands to extract the exported symbol list from a shared archive.
14818 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14819
14820 # Symbols that should not be listed in the preloaded symbols.
14821 exclude_expsyms=$lt_exclude_expsyms_F77
14822
14823 # Symbols that must always be exported.
14824 include_expsyms=$lt_include_expsyms_F77
14825
14826 # ### END LIBTOOL TAG CONFIG: $tagname
14827
14828 __EOF__
14829
14830
14831 else
14832   # If there is no Makefile yet, we rely on a make rule to execute
14833   # `config.status --recheck' to rerun these tests and create the
14834   # libtool script then.
14835   test -f Makefile && make "$ltmain"
14836 fi
14837
14838
14839 ac_ext=c
14840 ac_cpp='$CPP $CPPFLAGS'
14841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14844
14845 CC="$lt_save_CC"
14846
14847         else
14848           tagname=""
14849         fi
14850         ;;
14851
14852       GCJ)
14853         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14854
14855
14856
14857 # Source file extension for Java test sources.
14858 ac_ext=java
14859
14860 # Object file extension for compiled Java test sources.
14861 objext=o
14862 objext_GCJ=$objext
14863
14864 # Code to be used in simple compile tests
14865 lt_simple_compile_test_code="class foo {}\n"
14866
14867 # Code to be used in simple link tests
14868 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14869
14870 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14871
14872 # If no C compiler was specified, use CC.
14873 LTCC=${LTCC-"$CC"}
14874
14875 # Allow CC to be a program name with arguments.
14876 compiler=$CC
14877
14878
14879 # Allow CC to be a program name with arguments.
14880 lt_save_CC="$CC"
14881 CC=${GCJ-"gcj"}
14882 compiler=$CC
14883 compiler_GCJ=$CC
14884
14885 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14886 archive_cmds_need_lc_GCJ=no
14887
14888
14889 lt_prog_compiler_no_builtin_flag_GCJ=
14890
14891 if test "$GCC" = yes; then
14892   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14893
14894   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14895 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14896 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14897   echo $ECHO_N "(cached) $ECHO_C" >&6
14898 else
14899   lt_cv_prog_compiler_rtti_exceptions=no
14900   ac_outfile=conftest.$ac_objext
14901    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14902    lt_compiler_flag="-fno-rtti -fno-exceptions"
14903    # Insert the option either (1) after the last *FLAGS variable, or
14904    # (2) before a word containing "conftest.", or (3) at the end.
14905    # Note that $ac_compile itself does not contain backslashes and begins
14906    # with a dollar sign (not a hyphen), so the echo should work correctly.
14907    # The option is referenced via a variable to avoid confusing sed.
14908    lt_compile=`echo "$ac_compile" | $SED \
14909    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14910    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14911    -e 's:$: $lt_compiler_flag:'`
14912    (eval echo "\"\$as_me:14912: $lt_compile\"" >&5)
14913    (eval "$lt_compile" 2>conftest.err)
14914    ac_status=$?
14915    cat conftest.err >&5
14916    echo "$as_me:14916: \$? = $ac_status" >&5
14917    if (exit $ac_status) && test -s "$ac_outfile"; then
14918      # The compiler can only warn and ignore the option if not recognized
14919      # So say no if there are warnings
14920      if test ! -s conftest.err; then
14921        lt_cv_prog_compiler_rtti_exceptions=yes
14922      fi
14923    fi
14924    $rm conftest*
14925
14926 fi
14927 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14928 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14929
14930 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14931     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14932 else
14933     :
14934 fi
14935
14936 fi
14937
14938 lt_prog_compiler_wl_GCJ=
14939 lt_prog_compiler_pic_GCJ=
14940 lt_prog_compiler_static_GCJ=
14941
14942 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14943 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14944
14945   if test "$GCC" = yes; then
14946     lt_prog_compiler_wl_GCJ='-Wl,'
14947     lt_prog_compiler_static_GCJ='-static'
14948
14949     case $host_os in
14950       aix*)
14951       # All AIX code is PIC.
14952       if test "$host_cpu" = ia64; then
14953         # AIX 5 now supports IA64 processor
14954         lt_prog_compiler_static_GCJ='-Bstatic'
14955       fi
14956       ;;
14957
14958     amigaos*)
14959       # FIXME: we need at least 68020 code to build shared libraries, but
14960       # adding the `-m68020' flag to GCC prevents building anything better,
14961       # like `-m68040'.
14962       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14963       ;;
14964
14965     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14966       # PIC is the default for these OSes.
14967       ;;
14968
14969     mingw* | pw32* | os2*)
14970       # This hack is so that the source file can tell whether it is being
14971       # built for inclusion in a dll (and should export symbols for example).
14972       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14973       ;;
14974
14975     darwin* | rhapsody*)
14976       # PIC is the default on this platform
14977       # Common symbols not allowed in MH_DYLIB files
14978       lt_prog_compiler_pic_GCJ='-fno-common'
14979       ;;
14980
14981     msdosdjgpp*)
14982       # Just because we use GCC doesn't mean we suddenly get shared libraries
14983       # on systems that don't support them.
14984       lt_prog_compiler_can_build_shared_GCJ=no
14985       enable_shared=no
14986       ;;
14987
14988     sysv4*MP*)
14989       if test -d /usr/nec; then
14990         lt_prog_compiler_pic_GCJ=-Kconform_pic
14991       fi
14992       ;;
14993
14994     hpux*)
14995       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14996       # not for PA HP-UX.
14997       case "$host_cpu" in
14998       hppa*64*|ia64*)
14999         # +Z the default
15000         ;;
15001       *)
15002         lt_prog_compiler_pic_GCJ='-fPIC'
15003         ;;
15004       esac
15005       ;;
15006
15007     *)
15008       lt_prog_compiler_pic_GCJ='-fPIC'
15009       ;;
15010     esac
15011   else
15012     # PORTME Check for flag to pass linker flags through the system compiler.
15013     case $host_os in
15014     aix*)
15015       lt_prog_compiler_wl_GCJ='-Wl,'
15016       if test "$host_cpu" = ia64; then
15017         # AIX 5 now supports IA64 processor
15018         lt_prog_compiler_static_GCJ='-Bstatic'
15019       else
15020         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15021       fi
15022       ;;
15023
15024     mingw* | pw32* | os2*)
15025       # This hack is so that the source file can tell whether it is being
15026       # built for inclusion in a dll (and should export symbols for example).
15027       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15028       ;;
15029
15030     hpux9* | hpux10* | hpux11*)
15031       lt_prog_compiler_wl_GCJ='-Wl,'
15032       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15033       # not for PA HP-UX.
15034       case "$host_cpu" in
15035       hppa*64*|ia64*)
15036         # +Z the default
15037         ;;
15038       *)
15039         lt_prog_compiler_pic_GCJ='+Z'
15040         ;;
15041       esac
15042       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15043       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15044       ;;
15045
15046     irix5* | irix6* | nonstopux*)
15047       lt_prog_compiler_wl_GCJ='-Wl,'
15048       # PIC (with -KPIC) is the default.
15049       lt_prog_compiler_static_GCJ='-non_shared'
15050       ;;
15051
15052     newsos6)
15053       lt_prog_compiler_pic_GCJ='-KPIC'
15054       lt_prog_compiler_static_GCJ='-Bstatic'
15055       ;;
15056
15057     linux*)
15058       case $CC in
15059       icc|ecc)
15060         lt_prog_compiler_wl_GCJ='-Wl,'
15061         lt_prog_compiler_pic_GCJ='-KPIC'
15062         lt_prog_compiler_static_GCJ='-static'
15063         ;;
15064       ccc)
15065         lt_prog_compiler_wl_GCJ='-Wl,'
15066         # All Alpha code is PIC.
15067         lt_prog_compiler_static_GCJ='-non_shared'
15068         ;;
15069       esac
15070       ;;
15071
15072     osf3* | osf4* | osf5*)
15073       lt_prog_compiler_wl_GCJ='-Wl,'
15074       # All OSF/1 code is PIC.
15075       lt_prog_compiler_static_GCJ='-non_shared'
15076       ;;
15077
15078     sco3.2v5*)
15079       lt_prog_compiler_pic_GCJ='-Kpic'
15080       lt_prog_compiler_static_GCJ='-dn'
15081       ;;
15082
15083     solaris*)
15084       lt_prog_compiler_wl_GCJ='-Wl,'
15085       lt_prog_compiler_pic_GCJ='-KPIC'
15086       lt_prog_compiler_static_GCJ='-Bstatic'
15087       ;;
15088
15089     sunos4*)
15090       lt_prog_compiler_wl_GCJ='-Qoption ld '
15091       lt_prog_compiler_pic_GCJ='-PIC'
15092       lt_prog_compiler_static_GCJ='-Bstatic'
15093       ;;
15094
15095     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15096       lt_prog_compiler_wl_GCJ='-Wl,'
15097       lt_prog_compiler_pic_GCJ='-KPIC'
15098       lt_prog_compiler_static_GCJ='-Bstatic'
15099       ;;
15100
15101     sysv4*MP*)
15102       if test -d /usr/nec ;then
15103         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15104         lt_prog_compiler_static_GCJ='-Bstatic'
15105       fi
15106       ;;
15107
15108     uts4*)
15109       lt_prog_compiler_pic_GCJ='-pic'
15110       lt_prog_compiler_static_GCJ='-Bstatic'
15111       ;;
15112
15113     *)
15114       lt_prog_compiler_can_build_shared_GCJ=no
15115       ;;
15116     esac
15117   fi
15118
15119 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15120 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15121
15122 #
15123 # Check to make sure the PIC flag actually works.
15124 #
15125 if test -n "$lt_prog_compiler_pic_GCJ"; then
15126   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15127 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15128 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15129   echo $ECHO_N "(cached) $ECHO_C" >&6
15130 else
15131   lt_prog_compiler_pic_works_GCJ=no
15132   ac_outfile=conftest.$ac_objext
15133    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15134    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15135    # Insert the option either (1) after the last *FLAGS variable, or
15136    # (2) before a word containing "conftest.", or (3) at the end.
15137    # Note that $ac_compile itself does not contain backslashes and begins
15138    # with a dollar sign (not a hyphen), so the echo should work correctly.
15139    # The option is referenced via a variable to avoid confusing sed.
15140    lt_compile=`echo "$ac_compile" | $SED \
15141    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15142    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15143    -e 's:$: $lt_compiler_flag:'`
15144    (eval echo "\"\$as_me:15144: $lt_compile\"" >&5)
15145    (eval "$lt_compile" 2>conftest.err)
15146    ac_status=$?
15147    cat conftest.err >&5
15148    echo "$as_me:15148: \$? = $ac_status" >&5
15149    if (exit $ac_status) && test -s "$ac_outfile"; then
15150      # The compiler can only warn and ignore the option if not recognized
15151      # So say no if there are warnings
15152      if test ! -s conftest.err; then
15153        lt_prog_compiler_pic_works_GCJ=yes
15154      fi
15155    fi
15156    $rm conftest*
15157
15158 fi
15159 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15160 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15161
15162 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15163     case $lt_prog_compiler_pic_GCJ in
15164      "" | " "*) ;;
15165      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15166      esac
15167 else
15168     lt_prog_compiler_pic_GCJ=
15169      lt_prog_compiler_can_build_shared_GCJ=no
15170 fi
15171
15172 fi
15173 case "$host_os" in
15174   # For platforms which do not support PIC, -DPIC is meaningless:
15175   *djgpp*)
15176     lt_prog_compiler_pic_GCJ=
15177     ;;
15178   *)
15179     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15180     ;;
15181 esac
15182
15183 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15184 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15185 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15186   echo $ECHO_N "(cached) $ECHO_C" >&6
15187 else
15188   lt_cv_prog_compiler_c_o_GCJ=no
15189    $rm -r conftest 2>/dev/null
15190    mkdir conftest
15191    cd conftest
15192    mkdir out
15193    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15194
15195    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15196    # that will create temporary files in the current directory regardless of
15197    # the output directory.  Thus, making CWD read-only will cause this test
15198    # to fail, enabling locking or at least warning the user not to do parallel
15199    # builds.
15200    chmod -w .
15201
15202    lt_compiler_flag="-o out/conftest2.$ac_objext"
15203    # Insert the option either (1) after the last *FLAGS variable, or
15204    # (2) before a word containing "conftest.", or (3) at the end.
15205    # Note that $ac_compile itself does not contain backslashes and begins
15206    # with a dollar sign (not a hyphen), so the echo should work correctly.
15207    lt_compile=`echo "$ac_compile" | $SED \
15208    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15209    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15210    -e 's:$: $lt_compiler_flag:'`
15211    (eval echo "\"\$as_me:15211: $lt_compile\"" >&5)
15212    (eval "$lt_compile" 2>out/conftest.err)
15213    ac_status=$?
15214    cat out/conftest.err >&5
15215    echo "$as_me:15215: \$? = $ac_status" >&5
15216    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15217    then
15218      # The compiler can only warn and ignore the option if not recognized
15219      # So say no if there are warnings
15220      if test ! -s out/conftest.err; then
15221        lt_cv_prog_compiler_c_o_GCJ=yes
15222      fi
15223    fi
15224    chmod u+w .
15225    $rm conftest* out/*
15226    rmdir out
15227    cd ..
15228    rmdir conftest
15229    $rm conftest*
15230
15231 fi
15232 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15233 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15234
15235
15236 hard_links="nottested"
15237 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15238   # do not overwrite the value of need_locks provided by the user
15239   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15240 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15241   hard_links=yes
15242   $rm conftest*
15243   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15244   touch conftest.a
15245   ln conftest.a conftest.b 2>&5 || hard_links=no
15246   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15247   echo "$as_me:$LINENO: result: $hard_links" >&5
15248 echo "${ECHO_T}$hard_links" >&6
15249   if test "$hard_links" = no; then
15250     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15251 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15252     need_locks=warn
15253   fi
15254 else
15255   need_locks=no
15256 fi
15257
15258 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15259 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15260
15261   runpath_var=
15262   allow_undefined_flag_GCJ=
15263   enable_shared_with_static_runtimes_GCJ=no
15264   archive_cmds_GCJ=
15265   archive_expsym_cmds_GCJ=
15266   old_archive_From_new_cmds_GCJ=
15267   old_archive_from_expsyms_cmds_GCJ=
15268   export_dynamic_flag_spec_GCJ=
15269   whole_archive_flag_spec_GCJ=
15270   thread_safe_flag_spec_GCJ=
15271   hardcode_libdir_flag_spec_GCJ=
15272   hardcode_libdir_flag_spec_ld_GCJ=
15273   hardcode_libdir_separator_GCJ=
15274   hardcode_direct_GCJ=no
15275   hardcode_minus_L_GCJ=no
15276   hardcode_shlibpath_var_GCJ=unsupported
15277   link_all_deplibs_GCJ=unknown
15278   hardcode_automatic_GCJ=no
15279   module_cmds_GCJ=
15280   module_expsym_cmds_GCJ=
15281   always_export_symbols_GCJ=no
15282   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15283   # include_expsyms should be a list of space-separated symbols to be *always*
15284   # included in the symbol list
15285   include_expsyms_GCJ=
15286   # exclude_expsyms can be an extended regexp of symbols to exclude
15287   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15288   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15289   # as well as any symbol that contains `d'.
15290   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15291   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15292   # platforms (ab)use it in PIC code, but their linkers get confused if
15293   # the symbol is explicitly referenced.  Since portable code cannot
15294   # rely on this symbol name, it's probably fine to never include it in
15295   # preloaded symbol tables.
15296   extract_expsyms_cmds=
15297
15298   case $host_os in
15299   cygwin* | mingw* | pw32*)
15300     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15301     # When not using gcc, we currently assume that we are using
15302     # Microsoft Visual C++.
15303     if test "$GCC" != yes; then
15304       with_gnu_ld=no
15305     fi
15306     ;;
15307   openbsd*)
15308     with_gnu_ld=no
15309     ;;
15310   esac
15311
15312   ld_shlibs_GCJ=yes
15313   if test "$with_gnu_ld" = yes; then
15314     # If archive_cmds runs LD, not CC, wlarc should be empty
15315     wlarc='${wl}'
15316
15317     # See if GNU ld supports shared libraries.
15318     case $host_os in
15319     aix3* | aix4* | aix5*)
15320       # On AIX/PPC, the GNU linker is very broken
15321       if test "$host_cpu" != ia64; then
15322         ld_shlibs_GCJ=no
15323         cat <<EOF 1>&2
15324
15325 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15326 *** to be unable to reliably create shared libraries on AIX.
15327 *** Therefore, libtool is disabling shared libraries support.  If you
15328 *** really care for shared libraries, you may want to modify your PATH
15329 *** so that a non-GNU linker is found, and then restart.
15330
15331 EOF
15332       fi
15333       ;;
15334
15335     amigaos*)
15336       archive_cmds_GCJ='$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)'
15337       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15338       hardcode_minus_L_GCJ=yes
15339
15340       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15341       # that the semantics of dynamic libraries on AmigaOS, at least up
15342       # to version 4, is to share data among multiple programs linked
15343       # with the same dynamic library.  Since this doesn't match the
15344       # behavior of shared libraries on other platforms, we can't use
15345       # them.
15346       ld_shlibs_GCJ=no
15347       ;;
15348
15349     beos*)
15350       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15351         allow_undefined_flag_GCJ=unsupported
15352         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15353         # support --undefined.  This deserves some investigation.  FIXME
15354         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15355       else
15356         ld_shlibs_GCJ=no
15357       fi
15358       ;;
15359
15360     cygwin* | mingw* | pw32*)
15361       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15362       # as there is no search path for DLLs.
15363       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15364       allow_undefined_flag_GCJ=unsupported
15365       always_export_symbols_GCJ=no
15366       enable_shared_with_static_runtimes_GCJ=yes
15367       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15368
15369       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15370         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15371         # If the export-symbols file already is a .def file (1st line
15372         # is EXPORTS), use it as is; otherwise, prepend...
15373         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15374           cp $export_symbols $output_objdir/$soname.def;
15375         else
15376           echo EXPORTS > $output_objdir/$soname.def;
15377           cat $export_symbols >> $output_objdir/$soname.def;
15378         fi~
15379         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15380       else
15381         ld_shlibs=no
15382       fi
15383       ;;
15384
15385     netbsd*)
15386       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15387         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15388         wlarc=
15389       else
15390         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15391         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15392       fi
15393       ;;
15394
15395     solaris* | sysv5*)
15396       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15397         ld_shlibs_GCJ=no
15398         cat <<EOF 1>&2
15399
15400 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15401 *** create shared libraries on Solaris systems.  Therefore, libtool
15402 *** is disabling shared libraries support.  We urge you to upgrade GNU
15403 *** binutils to release 2.9.1 or newer.  Another option is to modify
15404 *** your PATH or compiler configuration so that the native linker is
15405 *** used, and then restart.
15406
15407 EOF
15408       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15409         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15410         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15411       else
15412         ld_shlibs_GCJ=no
15413       fi
15414       ;;
15415
15416     sunos4*)
15417       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15418       wlarc=
15419       hardcode_direct_GCJ=yes
15420       hardcode_shlibpath_var_GCJ=no
15421       ;;
15422
15423   linux*)
15424     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15425         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15426         archive_cmds_GCJ="$tmp_archive_cmds"
15427       supports_anon_versioning=no
15428       case `$LD -v 2>/dev/null` in
15429         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15430         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15431         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15432         *\ 2.11.*) ;; # other 2.11 versions
15433         *) supports_anon_versioning=yes ;;
15434       esac
15435       if test $supports_anon_versioning = yes; then
15436         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15437 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15438 $echo "local: *; };" >> $output_objdir/$libname.ver~
15439         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15440       else
15441         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15442       fi
15443     else
15444       ld_shlibs_GCJ=no
15445     fi
15446     ;;
15447
15448     *)
15449       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15450         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15451         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15452       else
15453         ld_shlibs_GCJ=no
15454       fi
15455       ;;
15456     esac
15457
15458     if test "$ld_shlibs_GCJ" = yes; then
15459       runpath_var=LD_RUN_PATH
15460       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15461       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15462       # ancient GNU ld didn't support --whole-archive et. al.
15463       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15464         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15465       else
15466         whole_archive_flag_spec_GCJ=
15467       fi
15468     fi
15469   else
15470     # PORTME fill in a description of your system's linker (not GNU ld)
15471     case $host_os in
15472     aix3*)
15473       allow_undefined_flag_GCJ=unsupported
15474       always_export_symbols_GCJ=yes
15475       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15476       # Note: this linker hardcodes the directories in LIBPATH if there
15477       # are no directories specified by -L.
15478       hardcode_minus_L_GCJ=yes
15479       if test "$GCC" = yes && test -z "$link_static_flag"; then
15480         # Neither direct hardcoding nor static linking is supported with a
15481         # broken collect2.
15482         hardcode_direct_GCJ=unsupported
15483       fi
15484       ;;
15485
15486     aix4* | aix5*)
15487       if test "$host_cpu" = ia64; then
15488         # On IA64, the linker does run time linking by default, so we don't
15489         # have to do anything special.
15490         aix_use_runtimelinking=no
15491         exp_sym_flag='-Bexport'
15492         no_entry_flag=""
15493       else
15494         # If we're using GNU nm, then we don't want the "-C" option.
15495         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15496         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15497           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15498         else
15499           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15500         fi
15501         aix_use_runtimelinking=no
15502
15503         # Test if we are trying to use run time linking or normal
15504         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15505         # need to do runtime linking.
15506         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15507           for ld_flag in $LDFLAGS; do
15508           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15509             aix_use_runtimelinking=yes
15510             break
15511           fi
15512           done
15513         esac
15514
15515         exp_sym_flag='-bexport'
15516         no_entry_flag='-bnoentry'
15517       fi
15518
15519       # When large executables or shared objects are built, AIX ld can
15520       # have problems creating the table of contents.  If linking a library
15521       # or program results in "error TOC overflow" add -mminimal-toc to
15522       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15523       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15524
15525       archive_cmds_GCJ=''
15526       hardcode_direct_GCJ=yes
15527       hardcode_libdir_separator_GCJ=':'
15528       link_all_deplibs_GCJ=yes
15529
15530       if test "$GCC" = yes; then
15531         case $host_os in aix4.012|aix4.012.*)
15532         # We only want to do this on AIX 4.2 and lower, the check
15533         # below for broken collect2 doesn't work under 4.3+
15534           collect2name=`${CC} -print-prog-name=collect2`
15535           if test -f "$collect2name" && \
15536            strings "$collect2name" | grep resolve_lib_name >/dev/null
15537           then
15538           # We have reworked collect2
15539           hardcode_direct_GCJ=yes
15540           else
15541           # We have old collect2
15542           hardcode_direct_GCJ=unsupported
15543           # It fails to find uninstalled libraries when the uninstalled
15544           # path is not listed in the libpath.  Setting hardcode_minus_L
15545           # to unsupported forces relinking
15546           hardcode_minus_L_GCJ=yes
15547           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15548           hardcode_libdir_separator_GCJ=
15549           fi
15550         esac
15551         shared_flag='-shared'
15552       else
15553         # not using gcc
15554         if test "$host_cpu" = ia64; then
15555         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15556         # chokes on -Wl,-G. The following line is correct:
15557           shared_flag='-G'
15558         else
15559         if test "$aix_use_runtimelinking" = yes; then
15560             shared_flag='${wl}-G'
15561           else
15562             shared_flag='${wl}-bM:SRE'
15563         fi
15564         fi
15565       fi
15566
15567       # It seems that -bexpall does not export symbols beginning with
15568       # underscore (_), so it is better to generate a list of symbols to export.
15569       always_export_symbols_GCJ=yes
15570       if test "$aix_use_runtimelinking" = yes; then
15571         # Warning - without using the other runtime loading flags (-brtl),
15572         # -berok will link without error, but may produce a broken library.
15573         allow_undefined_flag_GCJ='-berok'
15574        # Determine the default libpath from the value encoded in an empty executable.
15575        cat >conftest.$ac_ext <<_ACEOF
15576 #line $LINENO "configure"
15577 /* confdefs.h.  */
15578 _ACEOF
15579 cat confdefs.h >>conftest.$ac_ext
15580 cat >>conftest.$ac_ext <<_ACEOF
15581 /* end confdefs.h.  */
15582
15583 int
15584 main ()
15585 {
15586
15587   ;
15588   return 0;
15589 }
15590 _ACEOF
15591 rm -f conftest.$ac_objext conftest$ac_exeext
15592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15593   (eval $ac_link) 2>&5
15594   ac_status=$?
15595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596   (exit $ac_status); } &&
15597          { ac_try='test -s conftest$ac_exeext'
15598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15599   (eval $ac_try) 2>&5
15600   ac_status=$?
15601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602   (exit $ac_status); }; }; then
15603
15604 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15605 }'`
15606 # Check for a 64-bit object if we didn't find anything.
15607 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15608 }'`; fi
15609 else
15610   echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15612
15613 fi
15614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15615 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15616
15617        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15618         archive_expsym_cmds_GCJ="\$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"
15619        else
15620         if test "$host_cpu" = ia64; then
15621           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15622           allow_undefined_flag_GCJ="-z nodefs"
15623           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15624         else
15625          # Determine the default libpath from the value encoded in an empty executable.
15626          cat >conftest.$ac_ext <<_ACEOF
15627 #line $LINENO "configure"
15628 /* confdefs.h.  */
15629 _ACEOF
15630 cat confdefs.h >>conftest.$ac_ext
15631 cat >>conftest.$ac_ext <<_ACEOF
15632 /* end confdefs.h.  */
15633
15634 int
15635 main ()
15636 {
15637
15638   ;
15639   return 0;
15640 }
15641 _ACEOF
15642 rm -f conftest.$ac_objext conftest$ac_exeext
15643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15644   (eval $ac_link) 2>&5
15645   ac_status=$?
15646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647   (exit $ac_status); } &&
15648          { ac_try='test -s conftest$ac_exeext'
15649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15650   (eval $ac_try) 2>&5
15651   ac_status=$?
15652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653   (exit $ac_status); }; }; then
15654
15655 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15656 }'`
15657 # Check for a 64-bit object if we didn't find anything.
15658 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15659 }'`; fi
15660 else
15661   echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.$ac_ext >&5
15663
15664 fi
15665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15666 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15667
15668          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15669           # Warning - without using the other run time loading flags,
15670           # -berok will link without error, but may produce a broken library.
15671           no_undefined_flag_GCJ=' ${wl}-bernotok'
15672           allow_undefined_flag_GCJ=' ${wl}-berok'
15673           # -bexpall does not export symbols beginning with underscore (_)
15674           always_export_symbols_GCJ=yes
15675           # Exported symbols can be pulled into shared objects from archives
15676           whole_archive_flag_spec_GCJ=' '
15677           archive_cmds_need_lc_GCJ=yes
15678           # This is similar to how AIX traditionally builds it's shared libraries.
15679           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15680         fi
15681       fi
15682       ;;
15683
15684     amigaos*)
15685       archive_cmds_GCJ='$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)'
15686       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15687       hardcode_minus_L_GCJ=yes
15688       # see comment about different semantics on the GNU ld section
15689       ld_shlibs_GCJ=no
15690       ;;
15691
15692     bsdi4*)
15693       export_dynamic_flag_spec_GCJ=-rdynamic
15694       ;;
15695
15696     cygwin* | mingw* | pw32*)
15697       # When not using gcc, we currently assume that we are using
15698       # Microsoft Visual C++.
15699       # hardcode_libdir_flag_spec is actually meaningless, as there is
15700       # no search path for DLLs.
15701       hardcode_libdir_flag_spec_GCJ=' '
15702       allow_undefined_flag_GCJ=unsupported
15703       # Tell ltmain to make .lib files, not .a files.
15704       libext=lib
15705       # Tell ltmain to make .dll files, not .so files.
15706       shrext=".dll"
15707       # FIXME: Setting linknames here is a bad hack.
15708       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15709       # The linker will automatically build a .lib file if we build a DLL.
15710       old_archive_From_new_cmds_GCJ='true'
15711       # FIXME: Should let the user specify the lib program.
15712       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15713       fix_srcfile_path='`cygpath -w "$srcfile"`'
15714       enable_shared_with_static_runtimes_GCJ=yes
15715       ;;
15716
15717     darwin* | rhapsody*)
15718     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15719       archive_cmds_need_lc_GCJ=no
15720       case "$host_os" in
15721       rhapsody* | darwin1.[012])
15722         allow_undefined_flag_GCJ='-undefined suppress'
15723         ;;
15724       *) # Darwin 1.3 on
15725         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15726         ;;
15727       esac
15728       # FIXME: Relying on posixy $() will cause problems for
15729       #        cross-compilation, but unfortunately the echo tests do not
15730       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15731       #        `"' quotes if we put them in here... so don't!
15732         lt_int_apple_cc_single_mod=no
15733         output_verbose_link_cmd='echo'
15734         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15735           lt_int_apple_cc_single_mod=yes
15736         fi
15737         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15738           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15739         else
15740         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15741       fi
15742       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15743       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15744         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15745           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15746         else
15747           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15748         fi
15749           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15750       hardcode_direct_GCJ=no
15751       hardcode_automatic_GCJ=yes
15752       hardcode_shlibpath_var_GCJ=unsupported
15753       whole_archive_flag_spec_GCJ='-all_load $convenience'
15754       link_all_deplibs_GCJ=yes
15755     fi
15756       ;;
15757
15758     dgux*)
15759       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15760       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15761       hardcode_shlibpath_var_GCJ=no
15762       ;;
15763
15764     freebsd1*)
15765       ld_shlibs_GCJ=no
15766       ;;
15767
15768     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15769     # support.  Future versions do this automatically, but an explicit c++rt0.o
15770     # does not break anything, and helps significantly (at the cost of a little
15771     # extra space).
15772     freebsd2.2*)
15773       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15774       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15775       hardcode_direct_GCJ=yes
15776       hardcode_shlibpath_var_GCJ=no
15777       ;;
15778
15779     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15780     freebsd2*)
15781       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15782       hardcode_direct_GCJ=yes
15783       hardcode_minus_L_GCJ=yes
15784       hardcode_shlibpath_var_GCJ=no
15785       ;;
15786
15787     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15788     freebsd*)
15789       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15790       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15791       hardcode_direct_GCJ=yes
15792       hardcode_shlibpath_var_GCJ=no
15793       ;;
15794
15795     hpux9*)
15796       if test "$GCC" = yes; then
15797         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15798       else
15799         archive_cmds_GCJ='$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'
15800       fi
15801       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15802       hardcode_libdir_separator_GCJ=:
15803       hardcode_direct_GCJ=yes
15804
15805       # hardcode_minus_L: Not really in the search PATH,
15806       # but as the default location of the library.
15807       hardcode_minus_L_GCJ=yes
15808       export_dynamic_flag_spec_GCJ='${wl}-E'
15809       ;;
15810
15811     hpux10* | hpux11*)
15812       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15813         case "$host_cpu" in
15814         hppa*64*|ia64*)
15815           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15816           ;;
15817         *)
15818           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15819           ;;
15820         esac
15821       else
15822         case "$host_cpu" in
15823         hppa*64*|ia64*)
15824           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15825           ;;
15826         *)
15827           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15828           ;;
15829         esac
15830       fi
15831       if test "$with_gnu_ld" = no; then
15832         case "$host_cpu" in
15833         hppa*64*)
15834           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15835           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15836           hardcode_libdir_separator_GCJ=:
15837           hardcode_direct_GCJ=no
15838           hardcode_shlibpath_var_GCJ=no
15839           ;;
15840         ia64*)
15841           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15842           hardcode_direct_GCJ=no
15843           hardcode_shlibpath_var_GCJ=no
15844
15845           # hardcode_minus_L: Not really in the search PATH,
15846           # but as the default location of the library.
15847           hardcode_minus_L_GCJ=yes
15848           ;;
15849         *)
15850           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15851           hardcode_libdir_separator_GCJ=:
15852           hardcode_direct_GCJ=yes
15853           export_dynamic_flag_spec_GCJ='${wl}-E'
15854
15855           # hardcode_minus_L: Not really in the search PATH,
15856           # but as the default location of the library.
15857           hardcode_minus_L_GCJ=yes
15858           ;;
15859         esac
15860       fi
15861       ;;
15862
15863     irix5* | irix6* | nonstopux*)
15864       if test "$GCC" = yes; then
15865         archive_cmds_GCJ='$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'
15866       else
15867         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15868         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15869       fi
15870       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15871       hardcode_libdir_separator_GCJ=:
15872       link_all_deplibs_GCJ=yes
15873       ;;
15874
15875     netbsd*)
15876       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15877         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15878       else
15879         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15880       fi
15881       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15882       hardcode_direct_GCJ=yes
15883       hardcode_shlibpath_var_GCJ=no
15884       ;;
15885
15886     newsos6)
15887       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15888       hardcode_direct_GCJ=yes
15889       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15890       hardcode_libdir_separator_GCJ=:
15891       hardcode_shlibpath_var_GCJ=no
15892       ;;
15893
15894     openbsd*)
15895       hardcode_direct_GCJ=yes
15896       hardcode_shlibpath_var_GCJ=no
15897       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15898         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15899         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15900         export_dynamic_flag_spec_GCJ='${wl}-E'
15901       else
15902        case $host_os in
15903          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15904            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15905            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15906            ;;
15907          *)
15908            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15909            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15910            ;;
15911        esac
15912       fi
15913       ;;
15914
15915     os2*)
15916       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15917       hardcode_minus_L_GCJ=yes
15918       allow_undefined_flag_GCJ=unsupported
15919       archive_cmds_GCJ='$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'
15920       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15921       ;;
15922
15923     osf3*)
15924       if test "$GCC" = yes; then
15925         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15926         archive_cmds_GCJ='$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'
15927       else
15928         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15929         archive_cmds_GCJ='$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'
15930       fi
15931       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15932       hardcode_libdir_separator_GCJ=:
15933       ;;
15934
15935     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15936       if test "$GCC" = yes; then
15937         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15938         archive_cmds_GCJ='$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'
15939         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15940       else
15941         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15942         archive_cmds_GCJ='$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'
15943         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15944         $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'
15945
15946         # Both c and cxx compiler support -rpath directly
15947         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15948       fi
15949       hardcode_libdir_separator_GCJ=:
15950       ;;
15951
15952     sco3.2v5*)
15953       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15954       hardcode_shlibpath_var_GCJ=no
15955       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15956       runpath_var=LD_RUN_PATH
15957       hardcode_runpath_var=yes
15958       ;;
15959
15960     solaris*)
15961       no_undefined_flag_GCJ=' -z text'
15962       if test "$GCC" = yes; then
15963         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15964         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15965           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15966       else
15967         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15968         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15969         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15970       fi
15971       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15972       hardcode_shlibpath_var_GCJ=no
15973       case $host_os in
15974       solaris2.[0-5] | solaris2.[0-5].*) ;;
15975       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15976         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15977       esac
15978       link_all_deplibs_GCJ=yes
15979       ;;
15980
15981     sunos4*)
15982       if test "x$host_vendor" = xsequent; then
15983         # Use $CC to link under sequent, because it throws in some extra .o
15984         # files that make .init and .fini sections work.
15985         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15986       else
15987         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15988       fi
15989       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15990       hardcode_direct_GCJ=yes
15991       hardcode_minus_L_GCJ=yes
15992       hardcode_shlibpath_var_GCJ=no
15993       ;;
15994
15995     sysv4)
15996       case $host_vendor in
15997         sni)
15998           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15999           hardcode_direct_GCJ=yes # is this really true???
16000         ;;
16001         siemens)
16002           ## LD is ld it makes a PLAMLIB
16003           ## CC just makes a GrossModule.
16004           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16005           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16006           hardcode_direct_GCJ=no
16007         ;;
16008         motorola)
16009           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16010           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16011         ;;
16012       esac
16013       runpath_var='LD_RUN_PATH'
16014       hardcode_shlibpath_var_GCJ=no
16015       ;;
16016
16017     sysv4.3*)
16018       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16019       hardcode_shlibpath_var_GCJ=no
16020       export_dynamic_flag_spec_GCJ='-Bexport'
16021       ;;
16022
16023     sysv4*MP*)
16024       if test -d /usr/nec; then
16025         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16026         hardcode_shlibpath_var_GCJ=no
16027         runpath_var=LD_RUN_PATH
16028         hardcode_runpath_var=yes
16029         ld_shlibs_GCJ=yes
16030       fi
16031       ;;
16032
16033     sysv4.2uw2*)
16034       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16035       hardcode_direct_GCJ=yes
16036       hardcode_minus_L_GCJ=no
16037       hardcode_shlibpath_var_GCJ=no
16038       hardcode_runpath_var=yes
16039       runpath_var=LD_RUN_PATH
16040       ;;
16041
16042    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16043       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16044       if test "$GCC" = yes; then
16045         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16046       else
16047         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16048       fi
16049       runpath_var='LD_RUN_PATH'
16050       hardcode_shlibpath_var_GCJ=no
16051       ;;
16052
16053     sysv5*)
16054       no_undefined_flag_GCJ=' -z text'
16055       # $CC -shared without GNU ld will not create a library from C++
16056       # object files and a static libstdc++, better avoid it by now
16057       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16058       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16059                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16060       hardcode_libdir_flag_spec_GCJ=
16061       hardcode_shlibpath_var_GCJ=no
16062       runpath_var='LD_RUN_PATH'
16063       ;;
16064
16065     uts4*)
16066       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16067       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16068       hardcode_shlibpath_var_GCJ=no
16069       ;;
16070
16071     *)
16072       ld_shlibs_GCJ=no
16073       ;;
16074     esac
16075   fi
16076
16077 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16078 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16079 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16080
16081 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16082 if test "$GCC" = yes; then
16083   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16084 fi
16085
16086 #
16087 # Do we need to explicitly link libc?
16088 #
16089 case "x$archive_cmds_need_lc_GCJ" in
16090 x|xyes)
16091   # Assume -lc should be added
16092   archive_cmds_need_lc_GCJ=yes
16093
16094   if test "$enable_shared" = yes && test "$GCC" = yes; then
16095     case $archive_cmds_GCJ in
16096     *'~'*)
16097       # FIXME: we may have to deal with multi-command sequences.
16098       ;;
16099     '$CC '*)
16100       # Test whether the compiler implicitly links with -lc since on some
16101       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16102       # to ld, don't add -lc before -lgcc.
16103       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16104 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16105       $rm conftest*
16106       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16107
16108       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16109   (eval $ac_compile) 2>&5
16110   ac_status=$?
16111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112   (exit $ac_status); } 2>conftest.err; then
16113         soname=conftest
16114         lib=conftest
16115         libobjs=conftest.$ac_objext
16116         deplibs=
16117         wl=$lt_prog_compiler_wl_GCJ
16118         compiler_flags=-v
16119         linker_flags=-v
16120         verstring=
16121         output_objdir=.
16122         libname=conftest
16123         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16124         allow_undefined_flag_GCJ=
16125         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16126   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16127   ac_status=$?
16128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129   (exit $ac_status); }
16130         then
16131           archive_cmds_need_lc_GCJ=no
16132         else
16133           archive_cmds_need_lc_GCJ=yes
16134         fi
16135         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16136       else
16137         cat conftest.err 1>&5
16138       fi
16139       $rm conftest*
16140       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16141 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16142       ;;
16143     esac
16144   fi
16145   ;;
16146 esac
16147
16148 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16149 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16150 hardcode_action_GCJ=
16151 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16152    test -n "$runpath_var GCJ" || \
16153    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16154
16155   # We can hardcode non-existant directories.
16156   if test "$hardcode_direct_GCJ" != no &&
16157      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16158      # have to relink, otherwise we might link with an installed library
16159      # when we should be linking with a yet-to-be-installed one
16160      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16161      test "$hardcode_minus_L_GCJ" != no; then
16162     # Linking always hardcodes the temporary library directory.
16163     hardcode_action_GCJ=relink
16164   else
16165     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16166     hardcode_action_GCJ=immediate
16167   fi
16168 else
16169   # We cannot hardcode anything, or else we can only hardcode existing
16170   # directories.
16171   hardcode_action_GCJ=unsupported
16172 fi
16173 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16174 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16175
16176 if test "$hardcode_action_GCJ" = relink; then
16177   # Fast installation is not supported
16178   enable_fast_install=no
16179 elif test "$shlibpath_overrides_runpath" = yes ||
16180      test "$enable_shared" = no; then
16181   # Fast installation is not necessary
16182   enable_fast_install=needless
16183 fi
16184
16185 striplib=
16186 old_striplib=
16187 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16188 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16189 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16190   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16191   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16192   echo "$as_me:$LINENO: result: yes" >&5
16193 echo "${ECHO_T}yes" >&6
16194 else
16195 # FIXME - insert some real tests, host_os isn't really good enough
16196   case $host_os in
16197    darwin*)
16198        if test -n "$STRIP" ; then
16199          striplib="$STRIP -x"
16200          echo "$as_me:$LINENO: result: yes" >&5
16201 echo "${ECHO_T}yes" >&6
16202        else
16203   echo "$as_me:$LINENO: result: no" >&5
16204 echo "${ECHO_T}no" >&6
16205 fi
16206        ;;
16207    *)
16208   echo "$as_me:$LINENO: result: no" >&5
16209 echo "${ECHO_T}no" >&6
16210     ;;
16211   esac
16212 fi
16213
16214 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16215 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16216 library_names_spec=
16217 libname_spec='lib$name'
16218 soname_spec=
16219 shrext=".so"
16220 postinstall_cmds=
16221 postuninstall_cmds=
16222 finish_cmds=
16223 finish_eval=
16224 shlibpath_var=
16225 shlibpath_overrides_runpath=unknown
16226 version_type=none
16227 dynamic_linker="$host_os ld.so"
16228 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16229 if test "$GCC" = yes; then
16230   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16231   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16232     # if the path contains ";" then we assume it to be the separator
16233     # otherwise default to the standard path separator (i.e. ":") - it is
16234     # assumed that no part of a normal pathname contains ";" but that should
16235     # okay in the real world where ";" in dirpaths is itself problematic.
16236     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16237   else
16238     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16239   fi
16240 else
16241   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16242 fi
16243 need_lib_prefix=unknown
16244 hardcode_into_libs=no
16245
16246 # when you set need_version to no, make sure it does not cause -set_version
16247 # flags to be left without arguments
16248 need_version=unknown
16249
16250 case $host_os in
16251 aix3*)
16252   version_type=linux
16253   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16254   shlibpath_var=LIBPATH
16255
16256   # AIX 3 has no versioning support, so we append a major version to the name.
16257   soname_spec='${libname}${release}${shared_ext}$major'
16258   ;;
16259
16260 aix4* | aix5*)
16261   version_type=linux
16262   need_lib_prefix=no
16263   need_version=no
16264   hardcode_into_libs=yes
16265   if test "$host_cpu" = ia64; then
16266     # AIX 5 supports IA64
16267     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16268     shlibpath_var=LD_LIBRARY_PATH
16269   else
16270     # With GCC up to 2.95.x, collect2 would create an import file
16271     # for dependence libraries.  The import file would start with
16272     # the line `#! .'.  This would cause the generated library to
16273     # depend on `.', always an invalid library.  This was fixed in
16274     # development snapshots of GCC prior to 3.0.
16275     case $host_os in
16276       aix4 | aix4.[01] | aix4.[01].*)
16277       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16278            echo ' yes '
16279            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16280         :
16281       else
16282         can_build_shared=no
16283       fi
16284       ;;
16285     esac
16286     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16287     # soname into executable. Probably we can add versioning support to
16288     # collect2, so additional links can be useful in future.
16289     if test "$aix_use_runtimelinking" = yes; then
16290       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16291       # instead of lib<name>.a to let people know that these are not
16292       # typical AIX shared libraries.
16293       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16294     else
16295       # We preserve .a as extension for shared libraries through AIX4.2
16296       # and later when we are not doing run time linking.
16297       library_names_spec='${libname}${release}.a $libname.a'
16298       soname_spec='${libname}${release}${shared_ext}$major'
16299     fi
16300     shlibpath_var=LIBPATH
16301   fi
16302   ;;
16303
16304 amigaos*)
16305   library_names_spec='$libname.ixlibrary $libname.a'
16306   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16307   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'
16308   ;;
16309
16310 beos*)
16311   library_names_spec='${libname}${shared_ext}'
16312   dynamic_linker="$host_os ld.so"
16313   shlibpath_var=LIBRARY_PATH
16314   ;;
16315
16316 bsdi4*)
16317   version_type=linux
16318   need_version=no
16319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16320   soname_spec='${libname}${release}${shared_ext}$major'
16321   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16322   shlibpath_var=LD_LIBRARY_PATH
16323   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16324   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16325   # the default ld.so.conf also contains /usr/contrib/lib and
16326   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16327   # libtool to hard-code these into programs
16328   ;;
16329
16330 cygwin* | mingw* | pw32*)
16331   version_type=windows
16332   shrext=".dll"
16333   need_version=no
16334   need_lib_prefix=no
16335
16336   case $GCC,$host_os in
16337   yes,cygwin* | yes,mingw* | yes,pw32*)
16338     library_names_spec='$libname.dll.a'
16339     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16340     postinstall_cmds='base_file=`basename \${file}`~
16341       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16342       dldir=$destdir/`dirname \$dlpath`~
16343       test -d \$dldir || mkdir -p \$dldir~
16344       $install_prog $dir/$dlname \$dldir/$dlname'
16345     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16346       dlpath=$dir/\$dldll~
16347        $rm \$dlpath'
16348     shlibpath_overrides_runpath=yes
16349
16350     case $host_os in
16351     cygwin*)
16352       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16353       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16354       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16355       ;;
16356     mingw*)
16357       # MinGW DLLs use traditional 'lib' prefix
16358       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16359       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16360       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16361         # It is most probably a Windows format PATH printed by
16362         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16363         # path with ; separators, and with drive letters. We can handle the
16364         # drive letters (cygwin fileutils understands them), so leave them,
16365         # especially as we might pass files found there to a mingw objdump,
16366         # which wouldn't understand a cygwinified path. Ahh.
16367         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16368       else
16369         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16370       fi
16371       ;;
16372     pw32*)
16373       # pw32 DLLs use 'pw' prefix rather than 'lib'
16374       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16375       ;;
16376     esac
16377     ;;
16378
16379   *)
16380     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16381     ;;
16382   esac
16383   dynamic_linker='Win32 ld.exe'
16384   # FIXME: first we should search . and the directory the executable is in
16385   shlibpath_var=PATH
16386   ;;
16387
16388 darwin* | rhapsody*)
16389   dynamic_linker="$host_os dyld"
16390   version_type=darwin
16391   need_lib_prefix=no
16392   need_version=no
16393   # FIXME: Relying on posixy $() will cause problems for
16394   #        cross-compilation, but unfortunately the echo tests do not
16395   #        yet detect zsh echo's removal of \ escapes.
16396   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16397   soname_spec='${libname}${release}${major}$shared_ext'
16398   shlibpath_overrides_runpath=yes
16399   shlibpath_var=DYLD_LIBRARY_PATH
16400   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16401   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16402   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16403   sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16404   fi
16405   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16406   ;;
16407
16408 dgux*)
16409   version_type=linux
16410   need_lib_prefix=no
16411   need_version=no
16412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16413   soname_spec='${libname}${release}${shared_ext}$major'
16414   shlibpath_var=LD_LIBRARY_PATH
16415   ;;
16416
16417 freebsd1*)
16418   dynamic_linker=no
16419   ;;
16420
16421 freebsd*)
16422   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16423   version_type=freebsd-$objformat
16424   case $version_type in
16425     freebsd-elf*)
16426       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16427       need_version=no
16428       need_lib_prefix=no
16429       ;;
16430     freebsd-*)
16431       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16432       need_version=yes
16433       ;;
16434   esac
16435   shlibpath_var=LD_LIBRARY_PATH
16436   case $host_os in
16437   freebsd2*)
16438     shlibpath_overrides_runpath=yes
16439     ;;
16440   freebsd3.01* | freebsdelf3.01*)
16441     shlibpath_overrides_runpath=yes
16442     hardcode_into_libs=yes
16443     ;;
16444   *) # from 3.2 on
16445     shlibpath_overrides_runpath=no
16446     hardcode_into_libs=yes
16447     ;;
16448   esac
16449   ;;
16450
16451 gnu*)
16452   version_type=linux
16453   need_lib_prefix=no
16454   need_version=no
16455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16456   soname_spec='${libname}${release}${shared_ext}$major'
16457   shlibpath_var=LD_LIBRARY_PATH
16458   hardcode_into_libs=yes
16459   ;;
16460
16461 hpux9* | hpux10* | hpux11*)
16462   # Give a soname corresponding to the major version so that dld.sl refuses to
16463   # link against other versions.
16464   version_type=sunos
16465   need_lib_prefix=no
16466   need_version=no
16467   case "$host_cpu" in
16468   ia64*)
16469     shrext='.so'
16470     hardcode_into_libs=yes
16471     dynamic_linker="$host_os dld.so"
16472     shlibpath_var=LD_LIBRARY_PATH
16473     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16474     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16475     soname_spec='${libname}${release}${shared_ext}$major'
16476     if test "X$HPUX_IA64_MODE" = X32; then
16477       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16478     else
16479       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16480     fi
16481     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16482     ;;
16483    hppa*64*)
16484      shrext='.sl'
16485      hardcode_into_libs=yes
16486      dynamic_linker="$host_os dld.sl"
16487      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16488      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16489      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16490      soname_spec='${libname}${release}${shared_ext}$major'
16491      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16492      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16493      ;;
16494    *)
16495     shrext='.sl'
16496     dynamic_linker="$host_os dld.sl"
16497     shlibpath_var=SHLIB_PATH
16498     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16499     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16500     soname_spec='${libname}${release}${shared_ext}$major'
16501     ;;
16502   esac
16503   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16504   postinstall_cmds='chmod 555 $lib'
16505   ;;
16506
16507 irix5* | irix6* | nonstopux*)
16508   case $host_os in
16509     nonstopux*) version_type=nonstopux ;;
16510     *)
16511         if test "$lt_cv_prog_gnu_ld" = yes; then
16512                 version_type=linux
16513         else
16514                 version_type=irix
16515         fi ;;
16516   esac
16517   need_lib_prefix=no
16518   need_version=no
16519   soname_spec='${libname}${release}${shared_ext}$major'
16520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16521   case $host_os in
16522   irix5* | nonstopux*)
16523     libsuff= shlibsuff=
16524     ;;
16525   *)
16526     case $LD in # libtool.m4 will add one of these switches to LD
16527     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16528       libsuff= shlibsuff= libmagic=32-bit;;
16529     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16530       libsuff=32 shlibsuff=N32 libmagic=N32;;
16531     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16532       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16533     *) libsuff= shlibsuff= libmagic=never-match;;
16534     esac
16535     ;;
16536   esac
16537   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16538   shlibpath_overrides_runpath=no
16539   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16540   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16541   hardcode_into_libs=yes
16542   ;;
16543
16544 # No shared lib support for Linux oldld, aout, or coff.
16545 linux*oldld* | linux*aout* | linux*coff*)
16546   dynamic_linker=no
16547   ;;
16548
16549 # This must be Linux ELF.
16550 linux*)
16551   version_type=linux
16552   need_lib_prefix=no
16553   need_version=no
16554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16555   soname_spec='${libname}${release}${shared_ext}$major'
16556   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16557   shlibpath_var=LD_LIBRARY_PATH
16558   shlibpath_overrides_runpath=no
16559   # This implies no fast_install, which is unacceptable.
16560   # Some rework will be needed to allow for fast_install
16561   # before this can be enabled.
16562   hardcode_into_libs=yes
16563
16564   # We used to test for /lib/ld.so.1 and disable shared libraries on
16565   # powerpc, because MkLinux only supported shared libraries with the
16566   # GNU dynamic linker.  Since this was broken with cross compilers,
16567   # most powerpc-linux boxes support dynamic linking these days and
16568   # people can always --disable-shared, the test was removed, and we
16569   # assume the GNU/Linux dynamic linker is in use.
16570   dynamic_linker='GNU/Linux ld.so'
16571
16572   # Find out which ABI we are using (multilib Linux x86_64 hack).
16573   libsuff=
16574   case "$host_cpu" in
16575   x86_64*|s390x*)
16576     echo '#line 16576 "configure"' > conftest.$ac_ext
16577     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16578   (eval $ac_compile) 2>&5
16579   ac_status=$?
16580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581   (exit $ac_status); }; then
16582       case `/usr/bin/file conftest.$ac_objext` in
16583       *64-bit*)
16584         libsuff=64
16585         ;;
16586       esac
16587     fi
16588     rm -rf conftest*
16589     ;;
16590   *)
16591     ;;
16592   esac
16593   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
16594   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16595   ;;
16596
16597 netbsd*)
16598   version_type=sunos
16599   need_lib_prefix=no
16600   need_version=no
16601   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16602     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16603     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16604     dynamic_linker='NetBSD (a.out) ld.so'
16605   else
16606     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16607     soname_spec='${libname}${release}${shared_ext}$major'
16608     dynamic_linker='NetBSD ld.elf_so'
16609   fi
16610   shlibpath_var=LD_LIBRARY_PATH
16611   shlibpath_overrides_runpath=yes
16612   hardcode_into_libs=yes
16613   ;;
16614
16615 newsos6)
16616   version_type=linux
16617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16618   shlibpath_var=LD_LIBRARY_PATH
16619   shlibpath_overrides_runpath=yes
16620   ;;
16621
16622 nto-qnx)
16623   version_type=linux
16624   need_lib_prefix=no
16625   need_version=no
16626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16627   soname_spec='${libname}${release}${shared_ext}$major'
16628   shlibpath_var=LD_LIBRARY_PATH
16629   shlibpath_overrides_runpath=yes
16630   ;;
16631
16632 openbsd*)
16633   version_type=sunos
16634   need_lib_prefix=no
16635   need_version=no
16636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16637   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16638   shlibpath_var=LD_LIBRARY_PATH
16639   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16640     case $host_os in
16641       openbsd2.[89] | openbsd2.[89].*)
16642         shlibpath_overrides_runpath=no
16643         ;;
16644       *)
16645         shlibpath_overrides_runpath=yes
16646         ;;
16647       esac
16648   else
16649     shlibpath_overrides_runpath=yes
16650   fi
16651   ;;
16652
16653 os2*)
16654   libname_spec='$name'
16655   shrext=".dll"
16656   need_lib_prefix=no
16657   library_names_spec='$libname${shared_ext} $libname.a'
16658   dynamic_linker='OS/2 ld.exe'
16659   shlibpath_var=LIBPATH
16660   ;;
16661
16662 osf3* | osf4* | osf5*)
16663   version_type=osf
16664   need_lib_prefix=no
16665   need_version=no
16666   soname_spec='${libname}${release}${shared_ext}$major'
16667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16668   shlibpath_var=LD_LIBRARY_PATH
16669   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16670   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16671   ;;
16672
16673 sco3.2v5*)
16674   version_type=osf
16675   soname_spec='${libname}${release}${shared_ext}$major'
16676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16677   shlibpath_var=LD_LIBRARY_PATH
16678   ;;
16679
16680 solaris*)
16681   version_type=linux
16682   need_lib_prefix=no
16683   need_version=no
16684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16685   soname_spec='${libname}${release}${shared_ext}$major'
16686   shlibpath_var=LD_LIBRARY_PATH
16687   shlibpath_overrides_runpath=yes
16688   hardcode_into_libs=yes
16689   # ldd complains unless libraries are executable
16690   postinstall_cmds='chmod +x $lib'
16691   ;;
16692
16693 sunos4*)
16694   version_type=sunos
16695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16696   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16697   shlibpath_var=LD_LIBRARY_PATH
16698   shlibpath_overrides_runpath=yes
16699   if test "$with_gnu_ld" = yes; then
16700     need_lib_prefix=no
16701   fi
16702   need_version=yes
16703   ;;
16704
16705 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16706   version_type=linux
16707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16708   soname_spec='${libname}${release}${shared_ext}$major'
16709   shlibpath_var=LD_LIBRARY_PATH
16710   case $host_vendor in
16711     sni)
16712       shlibpath_overrides_runpath=no
16713       need_lib_prefix=no
16714       export_dynamic_flag_spec='${wl}-Blargedynsym'
16715       runpath_var=LD_RUN_PATH
16716       ;;
16717     siemens)
16718       need_lib_prefix=no
16719       ;;
16720     motorola)
16721       need_lib_prefix=no
16722       need_version=no
16723       shlibpath_overrides_runpath=no
16724       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16725       ;;
16726   esac
16727   ;;
16728
16729 sysv4*MP*)
16730   if test -d /usr/nec ;then
16731     version_type=linux
16732     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16733     soname_spec='$libname${shared_ext}.$major'
16734     shlibpath_var=LD_LIBRARY_PATH
16735   fi
16736   ;;
16737
16738 uts4*)
16739   version_type=linux
16740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16741   soname_spec='${libname}${release}${shared_ext}$major'
16742   shlibpath_var=LD_LIBRARY_PATH
16743   ;;
16744
16745 *)
16746   dynamic_linker=no
16747   ;;
16748 esac
16749 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16750 echo "${ECHO_T}$dynamic_linker" >&6
16751 test "$dynamic_linker" = no && can_build_shared=no
16752
16753 if test "x$enable_dlopen" != xyes; then
16754   enable_dlopen=unknown
16755   enable_dlopen_self=unknown
16756   enable_dlopen_self_static=unknown
16757 else
16758   lt_cv_dlopen=no
16759   lt_cv_dlopen_libs=
16760
16761   case $host_os in
16762   beos*)
16763     lt_cv_dlopen="load_add_on"
16764     lt_cv_dlopen_libs=
16765     lt_cv_dlopen_self=yes
16766     ;;
16767
16768   mingw* | pw32*)
16769     lt_cv_dlopen="LoadLibrary"
16770     lt_cv_dlopen_libs=
16771    ;;
16772
16773   cygwin*)
16774     lt_cv_dlopen="dlopen"
16775     lt_cv_dlopen_libs=
16776    ;;
16777
16778   darwin*)
16779   # if libdl is installed we need to link against it
16780     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16781 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16782 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16783   echo $ECHO_N "(cached) $ECHO_C" >&6
16784 else
16785   ac_check_lib_save_LIBS=$LIBS
16786 LIBS="-ldl  $LIBS"
16787 cat >conftest.$ac_ext <<_ACEOF
16788 #line $LINENO "configure"
16789 /* confdefs.h.  */
16790 _ACEOF
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h.  */
16794
16795 /* Override any gcc2 internal prototype to avoid an error.  */
16796 #ifdef __cplusplus
16797 extern "C"
16798 #endif
16799 /* We use char because int might match the return type of a gcc2
16800    builtin and then its argument prototype would still apply.  */
16801 char dlopen ();
16802 int
16803 main ()
16804 {
16805 dlopen ();
16806   ;
16807   return 0;
16808 }
16809 _ACEOF
16810 rm -f conftest.$ac_objext conftest$ac_exeext
16811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16812   (eval $ac_link) 2>&5
16813   ac_status=$?
16814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815   (exit $ac_status); } &&
16816          { ac_try='test -s conftest$ac_exeext'
16817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818   (eval $ac_try) 2>&5
16819   ac_status=$?
16820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821   (exit $ac_status); }; }; then
16822   ac_cv_lib_dl_dlopen=yes
16823 else
16824   echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.$ac_ext >&5
16826
16827 ac_cv_lib_dl_dlopen=no
16828 fi
16829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16830 LIBS=$ac_check_lib_save_LIBS
16831 fi
16832 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16833 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16834 if test $ac_cv_lib_dl_dlopen = yes; then
16835   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16836 else
16837
16838     lt_cv_dlopen="dyld"
16839     lt_cv_dlopen_libs=
16840     lt_cv_dlopen_self=yes
16841
16842 fi
16843
16844    ;;
16845
16846   *)
16847     echo "$as_me:$LINENO: checking for shl_load" >&5
16848 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16849 if test "${ac_cv_func_shl_load+set}" = set; then
16850   echo $ECHO_N "(cached) $ECHO_C" >&6
16851 else
16852   cat >conftest.$ac_ext <<_ACEOF
16853 #line $LINENO "configure"
16854 /* confdefs.h.  */
16855 _ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h.  */
16859 /* System header to define __stub macros and hopefully few prototypes,
16860     which can conflict with char shl_load (); below.
16861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16862     <limits.h> exists even on freestanding compilers.  */
16863 #ifdef __STDC__
16864 # include <limits.h>
16865 #else
16866 # include <assert.h>
16867 #endif
16868 /* Override any gcc2 internal prototype to avoid an error.  */
16869 #ifdef __cplusplus
16870 extern "C"
16871 {
16872 #endif
16873 /* We use char because int might match the return type of a gcc2
16874    builtin and then its argument prototype would still apply.  */
16875 char shl_load ();
16876 /* The GNU C library defines this for functions which it implements
16877     to always fail with ENOSYS.  Some functions are actually named
16878     something starting with __ and the normal name is an alias.  */
16879 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16880 choke me
16881 #else
16882 char (*f) () = shl_load;
16883 #endif
16884 #ifdef __cplusplus
16885 }
16886 #endif
16887
16888 int
16889 main ()
16890 {
16891 return f != shl_load;
16892   ;
16893   return 0;
16894 }
16895 _ACEOF
16896 rm -f conftest.$ac_objext conftest$ac_exeext
16897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16898   (eval $ac_link) 2>&5
16899   ac_status=$?
16900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901   (exit $ac_status); } &&
16902          { ac_try='test -s conftest$ac_exeext'
16903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904   (eval $ac_try) 2>&5
16905   ac_status=$?
16906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907   (exit $ac_status); }; }; then
16908   ac_cv_func_shl_load=yes
16909 else
16910   echo "$as_me: failed program was:" >&5
16911 sed 's/^/| /' conftest.$ac_ext >&5
16912
16913 ac_cv_func_shl_load=no
16914 fi
16915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16916 fi
16917 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16918 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16919 if test $ac_cv_func_shl_load = yes; then
16920   lt_cv_dlopen="shl_load"
16921 else
16922   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16923 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16924 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16925   echo $ECHO_N "(cached) $ECHO_C" >&6
16926 else
16927   ac_check_lib_save_LIBS=$LIBS
16928 LIBS="-ldld  $LIBS"
16929 cat >conftest.$ac_ext <<_ACEOF
16930 #line $LINENO "configure"
16931 /* confdefs.h.  */
16932 _ACEOF
16933 cat confdefs.h >>conftest.$ac_ext
16934 cat >>conftest.$ac_ext <<_ACEOF
16935 /* end confdefs.h.  */
16936
16937 /* Override any gcc2 internal prototype to avoid an error.  */
16938 #ifdef __cplusplus
16939 extern "C"
16940 #endif
16941 /* We use char because int might match the return type of a gcc2
16942    builtin and then its argument prototype would still apply.  */
16943 char shl_load ();
16944 int
16945 main ()
16946 {
16947 shl_load ();
16948   ;
16949   return 0;
16950 }
16951 _ACEOF
16952 rm -f conftest.$ac_objext conftest$ac_exeext
16953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16954   (eval $ac_link) 2>&5
16955   ac_status=$?
16956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957   (exit $ac_status); } &&
16958          { ac_try='test -s conftest$ac_exeext'
16959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16960   (eval $ac_try) 2>&5
16961   ac_status=$?
16962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963   (exit $ac_status); }; }; then
16964   ac_cv_lib_dld_shl_load=yes
16965 else
16966   echo "$as_me: failed program was:" >&5
16967 sed 's/^/| /' conftest.$ac_ext >&5
16968
16969 ac_cv_lib_dld_shl_load=no
16970 fi
16971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16972 LIBS=$ac_check_lib_save_LIBS
16973 fi
16974 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16975 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16976 if test $ac_cv_lib_dld_shl_load = yes; then
16977   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16978 else
16979   echo "$as_me:$LINENO: checking for dlopen" >&5
16980 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16981 if test "${ac_cv_func_dlopen+set}" = set; then
16982   echo $ECHO_N "(cached) $ECHO_C" >&6
16983 else
16984   cat >conftest.$ac_ext <<_ACEOF
16985 #line $LINENO "configure"
16986 /* confdefs.h.  */
16987 _ACEOF
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h.  */
16991 /* System header to define __stub macros and hopefully few prototypes,
16992     which can conflict with char dlopen (); below.
16993     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16994     <limits.h> exists even on freestanding compilers.  */
16995 #ifdef __STDC__
16996 # include <limits.h>
16997 #else
16998 # include <assert.h>
16999 #endif
17000 /* Override any gcc2 internal prototype to avoid an error.  */
17001 #ifdef __cplusplus
17002 extern "C"
17003 {
17004 #endif
17005 /* We use char because int might match the return type of a gcc2
17006    builtin and then its argument prototype would still apply.  */
17007 char dlopen ();
17008 /* The GNU C library defines this for functions which it implements
17009     to always fail with ENOSYS.  Some functions are actually named
17010     something starting with __ and the normal name is an alias.  */
17011 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17012 choke me
17013 #else
17014 char (*f) () = dlopen;
17015 #endif
17016 #ifdef __cplusplus
17017 }
17018 #endif
17019
17020 int
17021 main ()
17022 {
17023 return f != dlopen;
17024   ;
17025   return 0;
17026 }
17027 _ACEOF
17028 rm -f conftest.$ac_objext conftest$ac_exeext
17029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17030   (eval $ac_link) 2>&5
17031   ac_status=$?
17032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033   (exit $ac_status); } &&
17034          { ac_try='test -s conftest$ac_exeext'
17035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036   (eval $ac_try) 2>&5
17037   ac_status=$?
17038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039   (exit $ac_status); }; }; then
17040   ac_cv_func_dlopen=yes
17041 else
17042   echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17044
17045 ac_cv_func_dlopen=no
17046 fi
17047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17048 fi
17049 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17050 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17051 if test $ac_cv_func_dlopen = yes; then
17052   lt_cv_dlopen="dlopen"
17053 else
17054   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17055 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17056 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17057   echo $ECHO_N "(cached) $ECHO_C" >&6
17058 else
17059   ac_check_lib_save_LIBS=$LIBS
17060 LIBS="-ldl  $LIBS"
17061 cat >conftest.$ac_ext <<_ACEOF
17062 #line $LINENO "configure"
17063 /* confdefs.h.  */
17064 _ACEOF
17065 cat confdefs.h >>conftest.$ac_ext
17066 cat >>conftest.$ac_ext <<_ACEOF
17067 /* end confdefs.h.  */
17068
17069 /* Override any gcc2 internal prototype to avoid an error.  */
17070 #ifdef __cplusplus
17071 extern "C"
17072 #endif
17073 /* We use char because int might match the return type of a gcc2
17074    builtin and then its argument prototype would still apply.  */
17075 char dlopen ();
17076 int
17077 main ()
17078 {
17079 dlopen ();
17080   ;
17081   return 0;
17082 }
17083 _ACEOF
17084 rm -f conftest.$ac_objext conftest$ac_exeext
17085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17086   (eval $ac_link) 2>&5
17087   ac_status=$?
17088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089   (exit $ac_status); } &&
17090          { ac_try='test -s conftest$ac_exeext'
17091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17092   (eval $ac_try) 2>&5
17093   ac_status=$?
17094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095   (exit $ac_status); }; }; then
17096   ac_cv_lib_dl_dlopen=yes
17097 else
17098   echo "$as_me: failed program was:" >&5
17099 sed 's/^/| /' conftest.$ac_ext >&5
17100
17101 ac_cv_lib_dl_dlopen=no
17102 fi
17103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17104 LIBS=$ac_check_lib_save_LIBS
17105 fi
17106 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17107 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17108 if test $ac_cv_lib_dl_dlopen = yes; then
17109   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17110 else
17111   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17112 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17113 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17114   echo $ECHO_N "(cached) $ECHO_C" >&6
17115 else
17116   ac_check_lib_save_LIBS=$LIBS
17117 LIBS="-lsvld  $LIBS"
17118 cat >conftest.$ac_ext <<_ACEOF
17119 #line $LINENO "configure"
17120 /* confdefs.h.  */
17121 _ACEOF
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h.  */
17125
17126 /* Override any gcc2 internal prototype to avoid an error.  */
17127 #ifdef __cplusplus
17128 extern "C"
17129 #endif
17130 /* We use char because int might match the return type of a gcc2
17131    builtin and then its argument prototype would still apply.  */
17132 char dlopen ();
17133 int
17134 main ()
17135 {
17136 dlopen ();
17137   ;
17138   return 0;
17139 }
17140 _ACEOF
17141 rm -f conftest.$ac_objext conftest$ac_exeext
17142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17143   (eval $ac_link) 2>&5
17144   ac_status=$?
17145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146   (exit $ac_status); } &&
17147          { ac_try='test -s conftest$ac_exeext'
17148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149   (eval $ac_try) 2>&5
17150   ac_status=$?
17151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152   (exit $ac_status); }; }; then
17153   ac_cv_lib_svld_dlopen=yes
17154 else
17155   echo "$as_me: failed program was:" >&5
17156 sed 's/^/| /' conftest.$ac_ext >&5
17157
17158 ac_cv_lib_svld_dlopen=no
17159 fi
17160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17161 LIBS=$ac_check_lib_save_LIBS
17162 fi
17163 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17164 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17165 if test $ac_cv_lib_svld_dlopen = yes; then
17166   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17167 else
17168   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17169 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17170 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17171   echo $ECHO_N "(cached) $ECHO_C" >&6
17172 else
17173   ac_check_lib_save_LIBS=$LIBS
17174 LIBS="-ldld  $LIBS"
17175 cat >conftest.$ac_ext <<_ACEOF
17176 #line $LINENO "configure"
17177 /* confdefs.h.  */
17178 _ACEOF
17179 cat confdefs.h >>conftest.$ac_ext
17180 cat >>conftest.$ac_ext <<_ACEOF
17181 /* end confdefs.h.  */
17182
17183 /* Override any gcc2 internal prototype to avoid an error.  */
17184 #ifdef __cplusplus
17185 extern "C"
17186 #endif
17187 /* We use char because int might match the return type of a gcc2
17188    builtin and then its argument prototype would still apply.  */
17189 char dld_link ();
17190 int
17191 main ()
17192 {
17193 dld_link ();
17194   ;
17195   return 0;
17196 }
17197 _ACEOF
17198 rm -f conftest.$ac_objext conftest$ac_exeext
17199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17200   (eval $ac_link) 2>&5
17201   ac_status=$?
17202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203   (exit $ac_status); } &&
17204          { ac_try='test -s conftest$ac_exeext'
17205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17206   (eval $ac_try) 2>&5
17207   ac_status=$?
17208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209   (exit $ac_status); }; }; then
17210   ac_cv_lib_dld_dld_link=yes
17211 else
17212   echo "$as_me: failed program was:" >&5
17213 sed 's/^/| /' conftest.$ac_ext >&5
17214
17215 ac_cv_lib_dld_dld_link=no
17216 fi
17217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17218 LIBS=$ac_check_lib_save_LIBS
17219 fi
17220 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17221 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17222 if test $ac_cv_lib_dld_dld_link = yes; then
17223   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17224 fi
17225
17226
17227 fi
17228
17229
17230 fi
17231
17232
17233 fi
17234
17235
17236 fi
17237
17238
17239 fi
17240
17241     ;;
17242   esac
17243
17244   if test "x$lt_cv_dlopen" != xno; then
17245     enable_dlopen=yes
17246   else
17247     enable_dlopen=no
17248   fi
17249
17250   case $lt_cv_dlopen in
17251   dlopen)
17252     save_CPPFLAGS="$CPPFLAGS"
17253     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17254
17255     save_LDFLAGS="$LDFLAGS"
17256     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17257
17258     save_LIBS="$LIBS"
17259     LIBS="$lt_cv_dlopen_libs $LIBS"
17260
17261     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17262 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17263 if test "${lt_cv_dlopen_self+set}" = set; then
17264   echo $ECHO_N "(cached) $ECHO_C" >&6
17265 else
17266           if test "$cross_compiling" = yes; then :
17267   lt_cv_dlopen_self=cross
17268 else
17269   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17270   lt_status=$lt_dlunknown
17271   cat > conftest.$ac_ext <<EOF
17272 #line 17272 "configure"
17273 #include "confdefs.h"
17274
17275 #if HAVE_DLFCN_H
17276 #include <dlfcn.h>
17277 #endif
17278
17279 #include <stdio.h>
17280
17281 #ifdef RTLD_GLOBAL
17282 #  define LT_DLGLOBAL           RTLD_GLOBAL
17283 #else
17284 #  ifdef DL_GLOBAL
17285 #    define LT_DLGLOBAL         DL_GLOBAL
17286 #  else
17287 #    define LT_DLGLOBAL         0
17288 #  endif
17289 #endif
17290
17291 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17292    find out it does not work in some platform. */
17293 #ifndef LT_DLLAZY_OR_NOW
17294 #  ifdef RTLD_LAZY
17295 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17296 #  else
17297 #    ifdef DL_LAZY
17298 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17299 #    else
17300 #      ifdef RTLD_NOW
17301 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17302 #      else
17303 #        ifdef DL_NOW
17304 #          define LT_DLLAZY_OR_NOW      DL_NOW
17305 #        else
17306 #          define LT_DLLAZY_OR_NOW      0
17307 #        endif
17308 #      endif
17309 #    endif
17310 #  endif
17311 #endif
17312
17313 #ifdef __cplusplus
17314 extern "C" void exit (int);
17315 #endif
17316
17317 void fnord() { int i=42;}
17318 int main ()
17319 {
17320   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17321   int status = $lt_dlunknown;
17322
17323   if (self)
17324     {
17325       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17326       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17327       /* dlclose (self); */
17328     }
17329
17330     exit (status);
17331 }
17332 EOF
17333   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17334   (eval $ac_link) 2>&5
17335   ac_status=$?
17336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17338     (./conftest; exit; ) 2>/dev/null
17339     lt_status=$?
17340     case x$lt_status in
17341       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17342       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17343       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17344     esac
17345   else :
17346     # compilation failed
17347     lt_cv_dlopen_self=no
17348   fi
17349 fi
17350 rm -fr conftest*
17351
17352
17353 fi
17354 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17355 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17356
17357     if test "x$lt_cv_dlopen_self" = xyes; then
17358       LDFLAGS="$LDFLAGS $link_static_flag"
17359       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17360 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17361 if test "${lt_cv_dlopen_self_static+set}" = set; then
17362   echo $ECHO_N "(cached) $ECHO_C" >&6
17363 else
17364           if test "$cross_compiling" = yes; then :
17365   lt_cv_dlopen_self_static=cross
17366 else
17367   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17368   lt_status=$lt_dlunknown
17369   cat > conftest.$ac_ext <<EOF
17370 #line 17370 "configure"
17371 #include "confdefs.h"
17372
17373 #if HAVE_DLFCN_H
17374 #include <dlfcn.h>
17375 #endif
17376
17377 #include <stdio.h>
17378
17379 #ifdef RTLD_GLOBAL
17380 #  define LT_DLGLOBAL           RTLD_GLOBAL
17381 #else
17382 #  ifdef DL_GLOBAL
17383 #    define LT_DLGLOBAL         DL_GLOBAL
17384 #  else
17385 #    define LT_DLGLOBAL         0
17386 #  endif
17387 #endif
17388
17389 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17390    find out it does not work in some platform. */
17391 #ifndef LT_DLLAZY_OR_NOW
17392 #  ifdef RTLD_LAZY
17393 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17394 #  else
17395 #    ifdef DL_LAZY
17396 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17397 #    else
17398 #      ifdef RTLD_NOW
17399 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17400 #      else
17401 #        ifdef DL_NOW
17402 #          define LT_DLLAZY_OR_NOW      DL_NOW
17403 #        else
17404 #          define LT_DLLAZY_OR_NOW      0
17405 #        endif
17406 #      endif
17407 #    endif
17408 #  endif
17409 #endif
17410
17411 #ifdef __cplusplus
17412 extern "C" void exit (int);
17413 #endif
17414
17415 void fnord() { int i=42;}
17416 int main ()
17417 {
17418   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17419   int status = $lt_dlunknown;
17420
17421   if (self)
17422     {
17423       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17424       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17425       /* dlclose (self); */
17426     }
17427
17428     exit (status);
17429 }
17430 EOF
17431   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17432   (eval $ac_link) 2>&5
17433   ac_status=$?
17434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17436     (./conftest; exit; ) 2>/dev/null
17437     lt_status=$?
17438     case x$lt_status in
17439       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17440       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17441       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17442     esac
17443   else :
17444     # compilation failed
17445     lt_cv_dlopen_self_static=no
17446   fi
17447 fi
17448 rm -fr conftest*
17449
17450
17451 fi
17452 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17453 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17454     fi
17455
17456     CPPFLAGS="$save_CPPFLAGS"
17457     LDFLAGS="$save_LDFLAGS"
17458     LIBS="$save_LIBS"
17459     ;;
17460   esac
17461
17462   case $lt_cv_dlopen_self in
17463   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17464   *) enable_dlopen_self=unknown ;;
17465   esac
17466
17467   case $lt_cv_dlopen_self_static in
17468   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17469   *) enable_dlopen_self_static=unknown ;;
17470   esac
17471 fi
17472
17473
17474 # The else clause should only fire when bootstrapping the
17475 # libtool distribution, otherwise you forgot to ship ltmain.sh
17476 # with your package, and you will get complaints that there are
17477 # no rules to generate ltmain.sh.
17478 if test -f "$ltmain"; then
17479   # See if we are running on zsh, and set the options which allow our commands through
17480   # without removal of \ escapes.
17481   if test -n "${ZSH_VERSION+set}" ; then
17482     setopt NO_GLOB_SUBST
17483   fi
17484   # Now quote all the things that may contain metacharacters while being
17485   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17486   # variables and quote the copies for generation of the libtool script.
17487   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17488     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17489     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17490     deplibs_check_method reload_flag reload_cmds need_locks \
17491     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17492     lt_cv_sys_global_symbol_to_c_name_address \
17493     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17494     old_postinstall_cmds old_postuninstall_cmds \
17495     compiler_GCJ \
17496     CC_GCJ \
17497     LD_GCJ \
17498     lt_prog_compiler_wl_GCJ \
17499     lt_prog_compiler_pic_GCJ \
17500     lt_prog_compiler_static_GCJ \
17501     lt_prog_compiler_no_builtin_flag_GCJ \
17502     export_dynamic_flag_spec_GCJ \
17503     thread_safe_flag_spec_GCJ \
17504     whole_archive_flag_spec_GCJ \
17505     enable_shared_with_static_runtimes_GCJ \
17506     old_archive_cmds_GCJ \
17507     old_archive_from_new_cmds_GCJ \
17508     predep_objects_GCJ \
17509     postdep_objects_GCJ \
17510     predeps_GCJ \
17511     postdeps_GCJ \
17512     compiler_lib_search_path_GCJ \
17513     archive_cmds_GCJ \
17514     archive_expsym_cmds_GCJ \
17515     postinstall_cmds_GCJ \
17516     postuninstall_cmds_GCJ \
17517     old_archive_from_expsyms_cmds_GCJ \
17518     allow_undefined_flag_GCJ \
17519     no_undefined_flag_GCJ \
17520     export_symbols_cmds_GCJ \
17521     hardcode_libdir_flag_spec_GCJ \
17522     hardcode_libdir_flag_spec_ld_GCJ \
17523     hardcode_libdir_separator_GCJ \
17524     hardcode_automatic_GCJ \
17525     module_cmds_GCJ \
17526     module_expsym_cmds_GCJ \
17527     lt_cv_prog_compiler_c_o_GCJ \
17528     exclude_expsyms_GCJ \
17529     include_expsyms_GCJ; do
17530
17531     case $var in
17532     old_archive_cmds_GCJ | \
17533     old_archive_from_new_cmds_GCJ | \
17534     archive_cmds_GCJ | \
17535     archive_expsym_cmds_GCJ | \
17536     module_cmds_GCJ | \
17537     module_expsym_cmds_GCJ | \
17538     old_archive_from_expsyms_cmds_GCJ | \
17539     export_symbols_cmds_GCJ | \
17540     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17541     postinstall_cmds | postuninstall_cmds | \
17542     old_postinstall_cmds | old_postuninstall_cmds | \
17543     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17544       # Double-quote double-evaled strings.
17545       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17546       ;;
17547     *)
17548       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17549       ;;
17550     esac
17551   done
17552
17553   case $lt_echo in
17554   *'\$0 --fallback-echo"')
17555     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17556     ;;
17557   esac
17558
17559 cfgfile="$ofile"
17560
17561   cat <<__EOF__ >> "$cfgfile"
17562 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17563
17564 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17565
17566 # Shell to use when invoking shell scripts.
17567 SHELL=$lt_SHELL
17568
17569 # Whether or not to build shared libraries.
17570 build_libtool_libs=$enable_shared
17571
17572 # Whether or not to build static libraries.
17573 build_old_libs=$enable_static
17574
17575 # Whether or not to add -lc for building shared libraries.
17576 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17577
17578 # Whether or not to disallow shared libs when runtime libs are static
17579 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17580
17581 # Whether or not to optimize for fast installation.
17582 fast_install=$enable_fast_install
17583
17584 # The host system.
17585 host_alias=$host_alias
17586 host=$host
17587
17588 # An echo program that does not interpret backslashes.
17589 echo=$lt_echo
17590
17591 # The archiver.
17592 AR=$lt_AR
17593 AR_FLAGS=$lt_AR_FLAGS
17594
17595 # A C compiler.
17596 LTCC=$lt_LTCC
17597
17598 # A language-specific compiler.
17599 CC=$lt_compiler_GCJ
17600
17601 # Is the compiler the GNU C compiler?
17602 with_gcc=$GCC_GCJ
17603
17604 # An ERE matcher.
17605 EGREP=$lt_EGREP
17606
17607 # The linker used to build libraries.
17608 LD=$lt_LD_GCJ
17609
17610 # Whether we need hard or soft links.
17611 LN_S=$lt_LN_S
17612
17613 # A BSD-compatible nm program.
17614 NM=$lt_NM
17615
17616 # A symbol stripping program
17617 STRIP=$STRIP
17618
17619 # Used to examine libraries when file_magic_cmd begins "file"
17620 MAGIC_CMD=$MAGIC_CMD
17621
17622 # Used on cygwin: DLL creation program.
17623 DLLTOOL="$DLLTOOL"
17624
17625 # Used on cygwin: object dumper.
17626 OBJDUMP="$OBJDUMP"
17627
17628 # Used on cygwin: assembler.
17629 AS="$AS"
17630
17631 # The name of the directory that contains temporary libtool files.
17632 objdir=$objdir
17633
17634 # How to create reloadable object files.
17635 reload_flag=$lt_reload_flag
17636 reload_cmds=$lt_reload_cmds
17637
17638 # How to pass a linker flag through the compiler.
17639 wl=$lt_lt_prog_compiler_wl_GCJ
17640
17641 # Object file suffix (normally "o").
17642 objext="$ac_objext"
17643
17644 # Old archive suffix (normally "a").
17645 libext="$libext"
17646
17647 # Shared library suffix (normally ".so").
17648 shrext='$shrext'
17649
17650 # Executable file suffix (normally "").
17651 exeext="$exeext"
17652
17653 # Additional compiler flags for building library objects.
17654 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17655 pic_mode=$pic_mode
17656
17657 # What is the maximum length of a command?
17658 max_cmd_len=$lt_cv_sys_max_cmd_len
17659
17660 # Does compiler simultaneously support -c and -o options?
17661 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17662
17663 # Must we lock files when doing compilation ?
17664 need_locks=$lt_need_locks
17665
17666 # Do we need the lib prefix for modules?
17667 need_lib_prefix=$need_lib_prefix
17668
17669 # Do we need a version for libraries?
17670 need_version=$need_version
17671
17672 # Whether dlopen is supported.
17673 dlopen_support=$enable_dlopen
17674
17675 # Whether dlopen of programs is supported.
17676 dlopen_self=$enable_dlopen_self
17677
17678 # Whether dlopen of statically linked programs is supported.
17679 dlopen_self_static=$enable_dlopen_self_static
17680
17681 # Compiler flag to prevent dynamic linking.
17682 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17683
17684 # Compiler flag to turn off builtin functions.
17685 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17686
17687 # Compiler flag to allow reflexive dlopens.
17688 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17689
17690 # Compiler flag to generate shared objects directly from archives.
17691 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17692
17693 # Compiler flag to generate thread-safe objects.
17694 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17695
17696 # Library versioning type.
17697 version_type=$version_type
17698
17699 # Format of library name prefix.
17700 libname_spec=$lt_libname_spec
17701
17702 # List of archive names.  First name is the real one, the rest are links.
17703 # The last name is the one that the linker finds with -lNAME.
17704 library_names_spec=$lt_library_names_spec
17705
17706 # The coded name of the library, if different from the real name.
17707 soname_spec=$lt_soname_spec
17708
17709 # Commands used to build and install an old-style archive.
17710 RANLIB=$lt_RANLIB
17711 old_archive_cmds=$lt_old_archive_cmds_GCJ
17712 old_postinstall_cmds=$lt_old_postinstall_cmds
17713 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17714
17715 # Create an old-style archive from a shared archive.
17716 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17717
17718 # Create a temporary old-style archive to link instead of a shared archive.
17719 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17720
17721 # Commands used to build and install a shared archive.
17722 archive_cmds=$lt_archive_cmds_GCJ
17723 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17724 postinstall_cmds=$lt_postinstall_cmds
17725 postuninstall_cmds=$lt_postuninstall_cmds
17726
17727 # Commands used to build a loadable module (assumed same as above if empty)
17728 module_cmds=$lt_module_cmds_GCJ
17729 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17730
17731 # Commands to strip libraries.
17732 old_striplib=$lt_old_striplib
17733 striplib=$lt_striplib
17734
17735 # Dependencies to place before the objects being linked to create a
17736 # shared library.
17737 predep_objects=$lt_predep_objects_GCJ
17738
17739 # Dependencies to place after the objects being linked to create a
17740 # shared library.
17741 postdep_objects=$lt_postdep_objects_GCJ
17742
17743 # Dependencies to place before the objects being linked to create a
17744 # shared library.
17745 predeps=$lt_predeps_GCJ
17746
17747 # Dependencies to place after the objects being linked to create a
17748 # shared library.
17749 postdeps=$lt_postdeps_GCJ
17750
17751 # The library search path used internally by the compiler when linking
17752 # a shared library.
17753 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17754
17755 # Method to check whether dependent libraries are shared objects.
17756 deplibs_check_method=$lt_deplibs_check_method
17757
17758 # Command to use when deplibs_check_method == file_magic.
17759 file_magic_cmd=$lt_file_magic_cmd
17760
17761 # Flag that allows shared libraries with undefined symbols to be built.
17762 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17763
17764 # Flag that forces no undefined symbols.
17765 no_undefined_flag=$lt_no_undefined_flag_GCJ
17766
17767 # Commands used to finish a libtool library installation in a directory.
17768 finish_cmds=$lt_finish_cmds
17769
17770 # Same as above, but a single script fragment to be evaled but not shown.
17771 finish_eval=$lt_finish_eval
17772
17773 # Take the output of nm and produce a listing of raw symbols and C names.
17774 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17775
17776 # Transform the output of nm in a proper C declaration
17777 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17778
17779 # Transform the output of nm in a C name address pair
17780 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17781
17782 # This is the shared library runtime path variable.
17783 runpath_var=$runpath_var
17784
17785 # This is the shared library path variable.
17786 shlibpath_var=$shlibpath_var
17787
17788 # Is shlibpath searched before the hard-coded library search path?
17789 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17790
17791 # How to hardcode a shared library path into an executable.
17792 hardcode_action=$hardcode_action_GCJ
17793
17794 # Whether we should hardcode library paths into libraries.
17795 hardcode_into_libs=$hardcode_into_libs
17796
17797 # Flag to hardcode \$libdir into a binary during linking.
17798 # This must work even if \$libdir does not exist.
17799 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17800
17801 # If ld is used when linking, flag to hardcode \$libdir into
17802 # a binary during linking. This must work even if \$libdir does
17803 # not exist.
17804 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17805
17806 # Whether we need a single -rpath flag with a separated argument.
17807 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17808
17809 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17810 # resulting binary.
17811 hardcode_direct=$hardcode_direct_GCJ
17812
17813 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17814 # resulting binary.
17815 hardcode_minus_L=$hardcode_minus_L_GCJ
17816
17817 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17818 # the resulting binary.
17819 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17820
17821 # Set to yes if building a shared library automatically hardcodes DIR into the library
17822 # and all subsequent libraries and executables linked against it.
17823 hardcode_automatic=$hardcode_automatic_GCJ
17824
17825 # Variables whose values should be saved in libtool wrapper scripts and
17826 # restored at relink time.
17827 variables_saved_for_relink="$variables_saved_for_relink"
17828
17829 # Whether libtool must link a program against all its dependency libraries.
17830 link_all_deplibs=$link_all_deplibs_GCJ
17831
17832 # Compile-time system search path for libraries
17833 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17834
17835 # Run-time system search path for libraries
17836 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17837
17838 # Fix the shell variable \$srcfile for the compiler.
17839 fix_srcfile_path="$fix_srcfile_path_GCJ"
17840
17841 # Set to yes if exported symbols are required.
17842 always_export_symbols=$always_export_symbols_GCJ
17843
17844 # The commands to list exported symbols.
17845 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17846
17847 # The commands to extract the exported symbol list from a shared archive.
17848 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17849
17850 # Symbols that should not be listed in the preloaded symbols.
17851 exclude_expsyms=$lt_exclude_expsyms_GCJ
17852
17853 # Symbols that must always be exported.
17854 include_expsyms=$lt_include_expsyms_GCJ
17855
17856 # ### END LIBTOOL TAG CONFIG: $tagname
17857
17858 __EOF__
17859
17860
17861 else
17862   # If there is no Makefile yet, we rely on a make rule to execute
17863   # `config.status --recheck' to rerun these tests and create the
17864   # libtool script then.
17865   test -f Makefile && make "$ltmain"
17866 fi
17867
17868
17869 ac_ext=c
17870 ac_cpp='$CPP $CPPFLAGS'
17871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17874
17875 CC="$lt_save_CC"
17876
17877         else
17878           tagname=""
17879         fi
17880         ;;
17881
17882       RC)
17883
17884
17885
17886 # Source file extension for RC test sources.
17887 ac_ext=rc
17888
17889 # Object file extension for compiled RC test sources.
17890 objext=o
17891 objext_RC=$objext
17892
17893 # Code to be used in simple compile tests
17894 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17895
17896 # Code to be used in simple link tests
17897 lt_simple_link_test_code="$lt_simple_compile_test_code"
17898
17899 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17900
17901 # If no C compiler was specified, use CC.
17902 LTCC=${LTCC-"$CC"}
17903
17904 # Allow CC to be a program name with arguments.
17905 compiler=$CC
17906
17907
17908 # Allow CC to be a program name with arguments.
17909 lt_save_CC="$CC"
17910 CC=${RC-"windres"}
17911 compiler=$CC
17912 compiler_RC=$CC
17913 lt_cv_prog_compiler_c_o_RC=yes
17914
17915 # The else clause should only fire when bootstrapping the
17916 # libtool distribution, otherwise you forgot to ship ltmain.sh
17917 # with your package, and you will get complaints that there are
17918 # no rules to generate ltmain.sh.
17919 if test -f "$ltmain"; then
17920   # See if we are running on zsh, and set the options which allow our commands through
17921   # without removal of \ escapes.
17922   if test -n "${ZSH_VERSION+set}" ; then
17923     setopt NO_GLOB_SUBST
17924   fi
17925   # Now quote all the things that may contain metacharacters while being
17926   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17927   # variables and quote the copies for generation of the libtool script.
17928   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17929     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17930     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17931     deplibs_check_method reload_flag reload_cmds need_locks \
17932     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17933     lt_cv_sys_global_symbol_to_c_name_address \
17934     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17935     old_postinstall_cmds old_postuninstall_cmds \
17936     compiler_RC \
17937     CC_RC \
17938     LD_RC \
17939     lt_prog_compiler_wl_RC \
17940     lt_prog_compiler_pic_RC \
17941     lt_prog_compiler_static_RC \
17942     lt_prog_compiler_no_builtin_flag_RC \
17943     export_dynamic_flag_spec_RC \
17944     thread_safe_flag_spec_RC \
17945     whole_archive_flag_spec_RC \
17946     enable_shared_with_static_runtimes_RC \
17947     old_archive_cmds_RC \
17948     old_archive_from_new_cmds_RC \
17949     predep_objects_RC \
17950     postdep_objects_RC \
17951     predeps_RC \
17952     postdeps_RC \
17953     compiler_lib_search_path_RC \
17954     archive_cmds_RC \
17955     archive_expsym_cmds_RC \
17956     postinstall_cmds_RC \
17957     postuninstall_cmds_RC \
17958     old_archive_from_expsyms_cmds_RC \
17959     allow_undefined_flag_RC \
17960     no_undefined_flag_RC \
17961     export_symbols_cmds_RC \
17962     hardcode_libdir_flag_spec_RC \
17963     hardcode_libdir_flag_spec_ld_RC \
17964     hardcode_libdir_separator_RC \
17965     hardcode_automatic_RC \
17966     module_cmds_RC \
17967     module_expsym_cmds_RC \
17968     lt_cv_prog_compiler_c_o_RC \
17969     exclude_expsyms_RC \
17970     include_expsyms_RC; do
17971
17972     case $var in
17973     old_archive_cmds_RC | \
17974     old_archive_from_new_cmds_RC | \
17975     archive_cmds_RC | \
17976     archive_expsym_cmds_RC | \
17977     module_cmds_RC | \
17978     module_expsym_cmds_RC | \
17979     old_archive_from_expsyms_cmds_RC | \
17980     export_symbols_cmds_RC | \
17981     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17982     postinstall_cmds | postuninstall_cmds | \
17983     old_postinstall_cmds | old_postuninstall_cmds | \
17984     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17985       # Double-quote double-evaled strings.
17986       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17987       ;;
17988     *)
17989       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17990       ;;
17991     esac
17992   done
17993
17994   case $lt_echo in
17995   *'\$0 --fallback-echo"')
17996     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17997     ;;
17998   esac
17999
18000 cfgfile="$ofile"
18001
18002   cat <<__EOF__ >> "$cfgfile"
18003 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18004
18005 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18006
18007 # Shell to use when invoking shell scripts.
18008 SHELL=$lt_SHELL
18009
18010 # Whether or not to build shared libraries.
18011 build_libtool_libs=$enable_shared
18012
18013 # Whether or not to build static libraries.
18014 build_old_libs=$enable_static
18015
18016 # Whether or not to add -lc for building shared libraries.
18017 build_libtool_need_lc=$archive_cmds_need_lc_RC
18018
18019 # Whether or not to disallow shared libs when runtime libs are static
18020 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18021
18022 # Whether or not to optimize for fast installation.
18023 fast_install=$enable_fast_install
18024
18025 # The host system.
18026 host_alias=$host_alias
18027 host=$host
18028
18029 # An echo program that does not interpret backslashes.
18030 echo=$lt_echo
18031
18032 # The archiver.
18033 AR=$lt_AR
18034 AR_FLAGS=$lt_AR_FLAGS
18035
18036 # A C compiler.
18037 LTCC=$lt_LTCC
18038
18039 # A language-specific compiler.
18040 CC=$lt_compiler_RC
18041
18042 # Is the compiler the GNU C compiler?
18043 with_gcc=$GCC_RC
18044
18045 # An ERE matcher.
18046 EGREP=$lt_EGREP
18047
18048 # The linker used to build libraries.
18049 LD=$lt_LD_RC
18050
18051 # Whether we need hard or soft links.
18052 LN_S=$lt_LN_S
18053
18054 # A BSD-compatible nm program.
18055 NM=$lt_NM
18056
18057 # A symbol stripping program
18058 STRIP=$STRIP
18059
18060 # Used to examine libraries when file_magic_cmd begins "file"
18061 MAGIC_CMD=$MAGIC_CMD
18062
18063 # Used on cygwin: DLL creation program.
18064 DLLTOOL="$DLLTOOL"
18065
18066 # Used on cygwin: object dumper.
18067 OBJDUMP="$OBJDUMP"
18068
18069 # Used on cygwin: assembler.
18070 AS="$AS"
18071
18072 # The name of the directory that contains temporary libtool files.
18073 objdir=$objdir
18074
18075 # How to create reloadable object files.
18076 reload_flag=$lt_reload_flag
18077 reload_cmds=$lt_reload_cmds
18078
18079 # How to pass a linker flag through the compiler.
18080 wl=$lt_lt_prog_compiler_wl_RC
18081
18082 # Object file suffix (normally "o").
18083 objext="$ac_objext"
18084
18085 # Old archive suffix (normally "a").
18086 libext="$libext"
18087
18088 # Shared library suffix (normally ".so").
18089 shrext='$shrext'
18090
18091 # Executable file suffix (normally "").
18092 exeext="$exeext"
18093
18094 # Additional compiler flags for building library objects.
18095 pic_flag=$lt_lt_prog_compiler_pic_RC
18096 pic_mode=$pic_mode
18097
18098 # What is the maximum length of a command?
18099 max_cmd_len=$lt_cv_sys_max_cmd_len
18100
18101 # Does compiler simultaneously support -c and -o options?
18102 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18103
18104 # Must we lock files when doing compilation ?
18105 need_locks=$lt_need_locks
18106
18107 # Do we need the lib prefix for modules?
18108 need_lib_prefix=$need_lib_prefix
18109
18110 # Do we need a version for libraries?
18111 need_version=$need_version
18112
18113 # Whether dlopen is supported.
18114 dlopen_support=$enable_dlopen
18115
18116 # Whether dlopen of programs is supported.
18117 dlopen_self=$enable_dlopen_self
18118
18119 # Whether dlopen of statically linked programs is supported.
18120 dlopen_self_static=$enable_dlopen_self_static
18121
18122 # Compiler flag to prevent dynamic linking.
18123 link_static_flag=$lt_lt_prog_compiler_static_RC
18124
18125 # Compiler flag to turn off builtin functions.
18126 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18127
18128 # Compiler flag to allow reflexive dlopens.
18129 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18130
18131 # Compiler flag to generate shared objects directly from archives.
18132 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18133
18134 # Compiler flag to generate thread-safe objects.
18135 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18136
18137 # Library versioning type.
18138 version_type=$version_type
18139
18140 # Format of library name prefix.
18141 libname_spec=$lt_libname_spec
18142
18143 # List of archive names.  First name is the real one, the rest are links.
18144 # The last name is the one that the linker finds with -lNAME.
18145 library_names_spec=$lt_library_names_spec
18146
18147 # The coded name of the library, if different from the real name.
18148 soname_spec=$lt_soname_spec
18149
18150 # Commands used to build and install an old-style archive.
18151 RANLIB=$lt_RANLIB
18152 old_archive_cmds=$lt_old_archive_cmds_RC
18153 old_postinstall_cmds=$lt_old_postinstall_cmds
18154 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18155
18156 # Create an old-style archive from a shared archive.
18157 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18158
18159 # Create a temporary old-style archive to link instead of a shared archive.
18160 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18161
18162 # Commands used to build and install a shared archive.
18163 archive_cmds=$lt_archive_cmds_RC
18164 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18165 postinstall_cmds=$lt_postinstall_cmds
18166 postuninstall_cmds=$lt_postuninstall_cmds
18167
18168 # Commands used to build a loadable module (assumed same as above if empty)
18169 module_cmds=$lt_module_cmds_RC
18170 module_expsym_cmds=$lt_module_expsym_cmds_RC
18171
18172 # Commands to strip libraries.
18173 old_striplib=$lt_old_striplib
18174 striplib=$lt_striplib
18175
18176 # Dependencies to place before the objects being linked to create a
18177 # shared library.
18178 predep_objects=$lt_predep_objects_RC
18179
18180 # Dependencies to place after the objects being linked to create a
18181 # shared library.
18182 postdep_objects=$lt_postdep_objects_RC
18183
18184 # Dependencies to place before the objects being linked to create a
18185 # shared library.
18186 predeps=$lt_predeps_RC
18187
18188 # Dependencies to place after the objects being linked to create a
18189 # shared library.
18190 postdeps=$lt_postdeps_RC
18191
18192 # The library search path used internally by the compiler when linking
18193 # a shared library.
18194 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18195
18196 # Method to check whether dependent libraries are shared objects.
18197 deplibs_check_method=$lt_deplibs_check_method
18198
18199 # Command to use when deplibs_check_method == file_magic.
18200 file_magic_cmd=$lt_file_magic_cmd
18201
18202 # Flag that allows shared libraries with undefined symbols to be built.
18203 allow_undefined_flag=$lt_allow_undefined_flag_RC
18204
18205 # Flag that forces no undefined symbols.
18206 no_undefined_flag=$lt_no_undefined_flag_RC
18207
18208 # Commands used to finish a libtool library installation in a directory.
18209 finish_cmds=$lt_finish_cmds
18210
18211 # Same as above, but a single script fragment to be evaled but not shown.
18212 finish_eval=$lt_finish_eval
18213
18214 # Take the output of nm and produce a listing of raw symbols and C names.
18215 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18216
18217 # Transform the output of nm in a proper C declaration
18218 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18219
18220 # Transform the output of nm in a C name address pair
18221 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18222
18223 # This is the shared library runtime path variable.
18224 runpath_var=$runpath_var
18225
18226 # This is the shared library path variable.
18227 shlibpath_var=$shlibpath_var
18228
18229 # Is shlibpath searched before the hard-coded library search path?
18230 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18231
18232 # How to hardcode a shared library path into an executable.
18233 hardcode_action=$hardcode_action_RC
18234
18235 # Whether we should hardcode library paths into libraries.
18236 hardcode_into_libs=$hardcode_into_libs
18237
18238 # Flag to hardcode \$libdir into a binary during linking.
18239 # This must work even if \$libdir does not exist.
18240 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18241
18242 # If ld is used when linking, flag to hardcode \$libdir into
18243 # a binary during linking. This must work even if \$libdir does
18244 # not exist.
18245 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18246
18247 # Whether we need a single -rpath flag with a separated argument.
18248 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18249
18250 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18251 # resulting binary.
18252 hardcode_direct=$hardcode_direct_RC
18253
18254 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18255 # resulting binary.
18256 hardcode_minus_L=$hardcode_minus_L_RC
18257
18258 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18259 # the resulting binary.
18260 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18261
18262 # Set to yes if building a shared library automatically hardcodes DIR into the library
18263 # and all subsequent libraries and executables linked against it.
18264 hardcode_automatic=$hardcode_automatic_RC
18265
18266 # Variables whose values should be saved in libtool wrapper scripts and
18267 # restored at relink time.
18268 variables_saved_for_relink="$variables_saved_for_relink"
18269
18270 # Whether libtool must link a program against all its dependency libraries.
18271 link_all_deplibs=$link_all_deplibs_RC
18272
18273 # Compile-time system search path for libraries
18274 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18275
18276 # Run-time system search path for libraries
18277 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18278
18279 # Fix the shell variable \$srcfile for the compiler.
18280 fix_srcfile_path="$fix_srcfile_path_RC"
18281
18282 # Set to yes if exported symbols are required.
18283 always_export_symbols=$always_export_symbols_RC
18284
18285 # The commands to list exported symbols.
18286 export_symbols_cmds=$lt_export_symbols_cmds_RC
18287
18288 # The commands to extract the exported symbol list from a shared archive.
18289 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18290
18291 # Symbols that should not be listed in the preloaded symbols.
18292 exclude_expsyms=$lt_exclude_expsyms_RC
18293
18294 # Symbols that must always be exported.
18295 include_expsyms=$lt_include_expsyms_RC
18296
18297 # ### END LIBTOOL TAG CONFIG: $tagname
18298
18299 __EOF__
18300
18301
18302 else
18303   # If there is no Makefile yet, we rely on a make rule to execute
18304   # `config.status --recheck' to rerun these tests and create the
18305   # libtool script then.
18306   test -f Makefile && make "$ltmain"
18307 fi
18308
18309
18310 ac_ext=c
18311 ac_cpp='$CPP $CPPFLAGS'
18312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18315
18316 CC="$lt_save_CC"
18317
18318         ;;
18319
18320       *)
18321         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18322 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18323    { (exit 1); exit 1; }; }
18324         ;;
18325       esac
18326
18327       # Append the new tag name to the list of available tags.
18328       if test -n "$tagname" ; then
18329       available_tags="$available_tags $tagname"
18330     fi
18331     fi
18332   done
18333   IFS="$lt_save_ifs"
18334
18335   # Now substitute the updated list of available tags.
18336   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18337     mv "${ofile}T" "$ofile"
18338     chmod +x "$ofile"
18339   else
18340     rm -f "${ofile}T"
18341     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18342 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18343    { (exit 1); exit 1; }; }
18344   fi
18345 fi
18346
18347
18348
18349 # This can be used to rebuild libtool when needed
18350 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18351
18352 # Always use our own libtool.
18353 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18354
18355 # Prevent multiple expansion
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377 # Check whether --enable-64-bit or --disable-64-bit was given.
18378 if test "${enable_64_bit+set}" = set; then
18379   enableval="$enable_64_bit"
18380   case "${enableval}" in
18381   yes)  want64=true  ;;
18382   no)   want64=false ;;
18383   *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit option" >&5
18384 echo "$as_me: error: bad value ${enableval} for 64-bit option" >&2;}
18385    { (exit 1); exit 1; }; } ;;
18386 esac
18387 else
18388   want64=true
18389 fi;
18390 if test "${ac_cv_header_libelf_h+set}" = set; then
18391   echo "$as_me:$LINENO: checking for libelf.h" >&5
18392 echo $ECHO_N "checking for libelf.h... $ECHO_C" >&6
18393 if test "${ac_cv_header_libelf_h+set}" = set; then
18394   echo $ECHO_N "(cached) $ECHO_C" >&6
18395 fi
18396 echo "$as_me:$LINENO: result: $ac_cv_header_libelf_h" >&5
18397 echo "${ECHO_T}$ac_cv_header_libelf_h" >&6
18398 else
18399   # Is the header compilable?
18400 echo "$as_me:$LINENO: checking libelf.h usability" >&5
18401 echo $ECHO_N "checking libelf.h usability... $ECHO_C" >&6
18402 cat >conftest.$ac_ext <<_ACEOF
18403 #line $LINENO "configure"
18404 /* confdefs.h.  */
18405 _ACEOF
18406 cat confdefs.h >>conftest.$ac_ext
18407 cat >>conftest.$ac_ext <<_ACEOF
18408 /* end confdefs.h.  */
18409 $ac_includes_default
18410 #include <libelf.h>
18411 _ACEOF
18412 rm -f conftest.$ac_objext
18413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18414   (eval $ac_compile) 2>&5
18415   ac_status=$?
18416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417   (exit $ac_status); } &&
18418          { ac_try='test -s conftest.$ac_objext'
18419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18420   (eval $ac_try) 2>&5
18421   ac_status=$?
18422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423   (exit $ac_status); }; }; then
18424   ac_header_compiler=yes
18425 else
18426   echo "$as_me: failed program was:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18428
18429 ac_header_compiler=no
18430 fi
18431 rm -f conftest.$ac_objext conftest.$ac_ext
18432 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18433 echo "${ECHO_T}$ac_header_compiler" >&6
18434
18435 # Is the header present?
18436 echo "$as_me:$LINENO: checking libelf.h presence" >&5
18437 echo $ECHO_N "checking libelf.h presence... $ECHO_C" >&6
18438 cat >conftest.$ac_ext <<_ACEOF
18439 #line $LINENO "configure"
18440 /* confdefs.h.  */
18441 _ACEOF
18442 cat confdefs.h >>conftest.$ac_ext
18443 cat >>conftest.$ac_ext <<_ACEOF
18444 /* end confdefs.h.  */
18445 #include <libelf.h>
18446 _ACEOF
18447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18448   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18449   ac_status=$?
18450   grep -v '^ *+' conftest.er1 >conftest.err
18451   rm -f conftest.er1
18452   cat conftest.err >&5
18453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454   (exit $ac_status); } >/dev/null; then
18455   if test -s conftest.err; then
18456     ac_cpp_err=$ac_c_preproc_warn_flag
18457   else
18458     ac_cpp_err=
18459   fi
18460 else
18461   ac_cpp_err=yes
18462 fi
18463 if test -z "$ac_cpp_err"; then
18464   ac_header_preproc=yes
18465 else
18466   echo "$as_me: failed program was:" >&5
18467 sed 's/^/| /' conftest.$ac_ext >&5
18468
18469   ac_header_preproc=no
18470 fi
18471 rm -f conftest.err conftest.$ac_ext
18472 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18473 echo "${ECHO_T}$ac_header_preproc" >&6
18474
18475 # So?  What about this header?
18476 case $ac_header_compiler:$ac_header_preproc in
18477   yes:no )
18478     { echo "$as_me:$LINENO: WARNING: libelf.h: accepted by the compiler, rejected by the preprocessor!" >&5
18479 echo "$as_me: WARNING: libelf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18480     { echo "$as_me:$LINENO: WARNING: libelf.h: proceeding with the preprocessor's result" >&5
18481 echo "$as_me: WARNING: libelf.h: proceeding with the preprocessor's result" >&2;}
18482     (
18483       cat <<\_ASBOX
18484 ## ------------------------------------ ##
18485 ## Report this to bug-autoconf@gnu.org. ##
18486 ## ------------------------------------ ##
18487 _ASBOX
18488     ) |
18489       sed "s/^/$as_me: WARNING:     /" >&2
18490     ;;
18491   no:yes )
18492     { echo "$as_me:$LINENO: WARNING: libelf.h: present but cannot be compiled" >&5
18493 echo "$as_me: WARNING: libelf.h: present but cannot be compiled" >&2;}
18494     { echo "$as_me:$LINENO: WARNING: libelf.h: check for missing prerequisite headers?" >&5
18495 echo "$as_me: WARNING: libelf.h: check for missing prerequisite headers?" >&2;}
18496     { echo "$as_me:$LINENO: WARNING: libelf.h: proceeding with the preprocessor's result" >&5
18497 echo "$as_me: WARNING: libelf.h: proceeding with the preprocessor's result" >&2;}
18498     (
18499       cat <<\_ASBOX
18500 ## ------------------------------------ ##
18501 ## Report this to bug-autoconf@gnu.org. ##
18502 ## ------------------------------------ ##
18503 _ASBOX
18504     ) |
18505       sed "s/^/$as_me: WARNING:     /" >&2
18506     ;;
18507 esac
18508 echo "$as_me:$LINENO: checking for libelf.h" >&5
18509 echo $ECHO_N "checking for libelf.h... $ECHO_C" >&6
18510 if test "${ac_cv_header_libelf_h+set}" = set; then
18511   echo $ECHO_N "(cached) $ECHO_C" >&6
18512 else
18513   ac_cv_header_libelf_h=$ac_header_preproc
18514 fi
18515 echo "$as_me:$LINENO: result: $ac_cv_header_libelf_h" >&5
18516 echo "${ECHO_T}$ac_cv_header_libelf_h" >&6
18517
18518 fi
18519 if test $ac_cv_header_libelf_h = yes; then
18520   :
18521 else
18522
18523   if test -f /usr/include/elfutils/libelf.h; then
18524     CPPFLAGS="$CPPFLAGS -I /usr/include/elfutils"
18525   elif test -f /usr/local/include/elfutils/libelf.h; then
18526     CPPFLAGS="$CPPFLAGS -I /usr/local/include/elfutils"
18527   elif test -f /usr/include/libelf/libelf.h; then
18528     CPPFLAGS="$CPPFLAGS -I /usr/include/libelf"
18529   elif test -f /usr/local/include/libelf/libelf.h; then
18530     CPPFLAGS="$CPPFLAGS -I /usr/local/include/libelf"
18531   else
18532     { { echo "$as_me:$LINENO: error: libelf.h not found" >&5
18533 echo "$as_me: error: libelf.h not found" >&2;}
18534    { (exit 1); exit 1; }; }
18535   fi
18536 fi
18537
18538
18539 LIBGELF=""
18540 if test "$want64"x = falsex; then
18541   GELFINCLUDE='-I$(top_srcdir)/gelfx32'
18542 else
18543   GELFINCLUDE='-I$(top_srcdir)/gelfx'
18544   if test "${ac_cv_header_gelf_h+set}" = set; then
18545   echo "$as_me:$LINENO: checking for gelf.h" >&5
18546 echo $ECHO_N "checking for gelf.h... $ECHO_C" >&6
18547 if test "${ac_cv_header_gelf_h+set}" = set; then
18548   echo $ECHO_N "(cached) $ECHO_C" >&6
18549 fi
18550 echo "$as_me:$LINENO: result: $ac_cv_header_gelf_h" >&5
18551 echo "${ECHO_T}$ac_cv_header_gelf_h" >&6
18552 else
18553   # Is the header compilable?
18554 echo "$as_me:$LINENO: checking gelf.h usability" >&5
18555 echo $ECHO_N "checking gelf.h usability... $ECHO_C" >&6
18556 cat >conftest.$ac_ext <<_ACEOF
18557 #line $LINENO "configure"
18558 /* confdefs.h.  */
18559 _ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h.  */
18563 $ac_includes_default
18564 #include <gelf.h>
18565 _ACEOF
18566 rm -f conftest.$ac_objext
18567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18568   (eval $ac_compile) 2>&5
18569   ac_status=$?
18570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571   (exit $ac_status); } &&
18572          { ac_try='test -s conftest.$ac_objext'
18573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18574   (eval $ac_try) 2>&5
18575   ac_status=$?
18576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577   (exit $ac_status); }; }; then
18578   ac_header_compiler=yes
18579 else
18580   echo "$as_me: failed program was:" >&5
18581 sed 's/^/| /' conftest.$ac_ext >&5
18582
18583 ac_header_compiler=no
18584 fi
18585 rm -f conftest.$ac_objext conftest.$ac_ext
18586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18587 echo "${ECHO_T}$ac_header_compiler" >&6
18588
18589 # Is the header present?
18590 echo "$as_me:$LINENO: checking gelf.h presence" >&5
18591 echo $ECHO_N "checking gelf.h presence... $ECHO_C" >&6
18592 cat >conftest.$ac_ext <<_ACEOF
18593 #line $LINENO "configure"
18594 /* confdefs.h.  */
18595 _ACEOF
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h.  */
18599 #include <gelf.h>
18600 _ACEOF
18601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18602   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18603   ac_status=$?
18604   grep -v '^ *+' conftest.er1 >conftest.err
18605   rm -f conftest.er1
18606   cat conftest.err >&5
18607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608   (exit $ac_status); } >/dev/null; then
18609   if test -s conftest.err; then
18610     ac_cpp_err=$ac_c_preproc_warn_flag
18611   else
18612     ac_cpp_err=
18613   fi
18614 else
18615   ac_cpp_err=yes
18616 fi
18617 if test -z "$ac_cpp_err"; then
18618   ac_header_preproc=yes
18619 else
18620   echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18622
18623   ac_header_preproc=no
18624 fi
18625 rm -f conftest.err conftest.$ac_ext
18626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18627 echo "${ECHO_T}$ac_header_preproc" >&6
18628
18629 # So?  What about this header?
18630 case $ac_header_compiler:$ac_header_preproc in
18631   yes:no )
18632     { echo "$as_me:$LINENO: WARNING: gelf.h: accepted by the compiler, rejected by the preprocessor!" >&5
18633 echo "$as_me: WARNING: gelf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18634     { echo "$as_me:$LINENO: WARNING: gelf.h: proceeding with the preprocessor's result" >&5
18635 echo "$as_me: WARNING: gelf.h: proceeding with the preprocessor's result" >&2;}
18636     (
18637       cat <<\_ASBOX
18638 ## ------------------------------------ ##
18639 ## Report this to bug-autoconf@gnu.org. ##
18640 ## ------------------------------------ ##
18641 _ASBOX
18642     ) |
18643       sed "s/^/$as_me: WARNING:     /" >&2
18644     ;;
18645   no:yes )
18646     { echo "$as_me:$LINENO: WARNING: gelf.h: present but cannot be compiled" >&5
18647 echo "$as_me: WARNING: gelf.h: present but cannot be compiled" >&2;}
18648     { echo "$as_me:$LINENO: WARNING: gelf.h: check for missing prerequisite headers?" >&5
18649 echo "$as_me: WARNING: gelf.h: check for missing prerequisite headers?" >&2;}
18650     { echo "$as_me:$LINENO: WARNING: gelf.h: proceeding with the preprocessor's result" >&5
18651 echo "$as_me: WARNING: gelf.h: proceeding with the preprocessor's result" >&2;}
18652     (
18653       cat <<\_ASBOX
18654 ## ------------------------------------ ##
18655 ## Report this to bug-autoconf@gnu.org. ##
18656 ## ------------------------------------ ##
18657 _ASBOX
18658     ) |
18659       sed "s/^/$as_me: WARNING:     /" >&2
18660     ;;
18661 esac
18662 echo "$as_me:$LINENO: checking for gelf.h" >&5
18663 echo $ECHO_N "checking for gelf.h... $ECHO_C" >&6
18664 if test "${ac_cv_header_gelf_h+set}" = set; then
18665   echo $ECHO_N "(cached) $ECHO_C" >&6
18666 else
18667   ac_cv_header_gelf_h=$ac_header_preproc
18668 fi
18669 echo "$as_me:$LINENO: result: $ac_cv_header_gelf_h" >&5
18670 echo "${ECHO_T}$ac_cv_header_gelf_h" >&6
18671
18672 fi
18673 if test $ac_cv_header_gelf_h = yes; then
18674   :
18675 else
18676
18677     GELFINCLUDE="$GELFINCLUDE "'-I$(top_srcdir)/gelf'
18678     LIBGELF='../gelf/libgelf.la'
18679
18680 fi
18681
18682
18683 fi
18684
18685 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18686 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18687 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18688   echo $ECHO_N "(cached) $ECHO_C" >&6
18689 else
18690   ac_check_lib_save_LIBS=$LIBS
18691 LIBS="-lelf  $LIBS"
18692 cat >conftest.$ac_ext <<_ACEOF
18693 #line $LINENO "configure"
18694 /* confdefs.h.  */
18695 _ACEOF
18696 cat confdefs.h >>conftest.$ac_ext
18697 cat >>conftest.$ac_ext <<_ACEOF
18698 /* end confdefs.h.  */
18699
18700 /* Override any gcc2 internal prototype to avoid an error.  */
18701 #ifdef __cplusplus
18702 extern "C"
18703 #endif
18704 /* We use char because int might match the return type of a gcc2
18705    builtin and then its argument prototype would still apply.  */
18706 char elf_begin ();
18707 int
18708 main ()
18709 {
18710 elf_begin ();
18711   ;
18712   return 0;
18713 }
18714 _ACEOF
18715 rm -f conftest.$ac_objext conftest$ac_exeext
18716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18717   (eval $ac_link) 2>&5
18718   ac_status=$?
18719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720   (exit $ac_status); } &&
18721          { ac_try='test -s conftest$ac_exeext'
18722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18723   (eval $ac_try) 2>&5
18724   ac_status=$?
18725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726   (exit $ac_status); }; }; then
18727   ac_cv_lib_elf_elf_begin=yes
18728 else
18729   echo "$as_me: failed program was:" >&5
18730 sed 's/^/| /' conftest.$ac_ext >&5
18731
18732 ac_cv_lib_elf_elf_begin=no
18733 fi
18734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18735 LIBS=$ac_check_lib_save_LIBS
18736 fi
18737 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18738 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18739 if test $ac_cv_lib_elf_elf_begin = yes; then
18740   cat >>confdefs.h <<_ACEOF
18741 #define HAVE_LIBELF 1
18742 _ACEOF
18743
18744   LIBS="-lelf $LIBS"
18745
18746 fi
18747
18748
18749
18750
18751 echo "$as_me:$LINENO: checking for gelf_getvernaux" >&5
18752 echo $ECHO_N "checking for gelf_getvernaux... $ECHO_C" >&6
18753 if test "${ac_cv_func_gelf_getvernaux+set}" = set; then
18754   echo $ECHO_N "(cached) $ECHO_C" >&6
18755 else
18756   cat >conftest.$ac_ext <<_ACEOF
18757 #line $LINENO "configure"
18758 /* confdefs.h.  */
18759 _ACEOF
18760 cat confdefs.h >>conftest.$ac_ext
18761 cat >>conftest.$ac_ext <<_ACEOF
18762 /* end confdefs.h.  */
18763 /* System header to define __stub macros and hopefully few prototypes,
18764     which can conflict with char gelf_getvernaux (); below.
18765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18766     <limits.h> exists even on freestanding compilers.  */
18767 #ifdef __STDC__
18768 # include <limits.h>
18769 #else
18770 # include <assert.h>
18771 #endif
18772 /* Override any gcc2 internal prototype to avoid an error.  */
18773 #ifdef __cplusplus
18774 extern "C"
18775 {
18776 #endif
18777 /* We use char because int might match the return type of a gcc2
18778    builtin and then its argument prototype would still apply.  */
18779 char gelf_getvernaux ();
18780 /* The GNU C library defines this for functions which it implements
18781     to always fail with ENOSYS.  Some functions are actually named
18782     something starting with __ and the normal name is an alias.  */
18783 #if defined (__stub_gelf_getvernaux) || defined (__stub___gelf_getvernaux)
18784 choke me
18785 #else
18786 char (*f) () = gelf_getvernaux;
18787 #endif
18788 #ifdef __cplusplus
18789 }
18790 #endif
18791
18792 int
18793 main ()
18794 {
18795 return f != gelf_getvernaux;
18796   ;
18797   return 0;
18798 }
18799 _ACEOF
18800 rm -f conftest.$ac_objext conftest$ac_exeext
18801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18802   (eval $ac_link) 2>&5
18803   ac_status=$?
18804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805   (exit $ac_status); } &&
18806          { ac_try='test -s conftest$ac_exeext'
18807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18808   (eval $ac_try) 2>&5
18809   ac_status=$?
18810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811   (exit $ac_status); }; }; then
18812   ac_cv_func_gelf_getvernaux=yes
18813 else
18814   echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18816
18817 ac_cv_func_gelf_getvernaux=no
18818 fi
18819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18820 fi
18821 echo "$as_me:$LINENO: result: $ac_cv_func_gelf_getvernaux" >&5
18822 echo "${ECHO_T}$ac_cv_func_gelf_getvernaux" >&6
18823 if test $ac_cv_func_gelf_getvernaux = yes; then
18824   newbu=true
18825 else
18826   newbu=false
18827 fi
18828
18829
18830 echo "$as_me:$LINENO: checking whether FTW_ACTIONRETVAL is supported" >&5
18831 echo $ECHO_N "checking whether FTW_ACTIONRETVAL is supported... $ECHO_C" >&6
18832 if test "${ac_cv_ftw_actionretval+set}" = set; then
18833   echo $ECHO_N "(cached) $ECHO_C" >&6
18834 else
18835     cat >conftest.$ac_ext <<_ACEOF
18836 #line $LINENO "configure"
18837 /* confdefs.h.  */
18838 _ACEOF
18839 cat confdefs.h >>conftest.$ac_ext
18840 cat >>conftest.$ac_ext <<_ACEOF
18841 /* end confdefs.h.  */
18842
18843   #ifndef _GNU_SOURCE
18844   #define _GNU_SOURCE 1
18845   #endif
18846   #include <ftw.h>
18847   #ifdef FTW_ACTIONRETVAL
18848   FTW supports ACTIONRETVAL
18849   #endif
18850
18851 _ACEOF
18852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18853   $EGREP "FTW supports ACTIONRETVAL" >/dev/null 2>&1; then
18854   ac_cv_ftw_actionretval=yes
18855 else
18856   ac_cv_ftw_actionretval=no
18857 fi
18858 rm -f conftest*
18859
18860 fi
18861 echo "$as_me:$LINENO: result: $ac_cv_ftw_actionretval" >&5
18862 echo "${ECHO_T}$ac_cv_ftw_actionretval" >&6
18863 if test "x$ac_cv_ftw_actionretval" = xyes; then
18864
18865 cat >>confdefs.h <<\_ACEOF
18866 #define HAVE_FTW_ACTIONRETVAL 1
18867 _ACEOF
18868
18869 fi
18870
18871
18872 echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
18873 echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6
18874 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
18875   echo $ECHO_N "(cached) $ECHO_C" >&6
18876 else
18877   ac_check_lib_save_LIBS=$LIBS
18878 LIBS="-lselinux  $LIBS"
18879 cat >conftest.$ac_ext <<_ACEOF
18880 #line $LINENO "configure"
18881 /* confdefs.h.  */
18882 _ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h.  */
18886
18887 /* Override any gcc2 internal prototype to avoid an error.  */
18888 #ifdef __cplusplus
18889 extern "C"
18890 #endif
18891 /* We use char because int might match the return type of a gcc2
18892    builtin and then its argument prototype would still apply.  */
18893 char is_selinux_enabled ();
18894 int
18895 main ()
18896 {
18897 is_selinux_enabled ();
18898   ;
18899   return 0;
18900 }
18901 _ACEOF
18902 rm -f conftest.$ac_objext conftest$ac_exeext
18903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18904   (eval $ac_link) 2>&5
18905   ac_status=$?
18906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907   (exit $ac_status); } &&
18908          { ac_try='test -s conftest$ac_exeext'
18909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18910   (eval $ac_try) 2>&5
18911   ac_status=$?
18912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913   (exit $ac_status); }; }; then
18914   ac_cv_lib_selinux_is_selinux_enabled=yes
18915 else
18916   echo "$as_me: failed program was:" >&5
18917 sed 's/^/| /' conftest.$ac_ext >&5
18918
18919 ac_cv_lib_selinux_is_selinux_enabled=no
18920 fi
18921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18922 LIBS=$ac_check_lib_save_LIBS
18923 fi
18924 echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
18925 echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6
18926 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
18927   cat >>confdefs.h <<_ACEOF
18928 #define HAVE_LIBSELINUX 1
18929 _ACEOF
18930
18931   LIBS="-lselinux $LIBS"
18932
18933 fi
18934
18935
18936 for ac_header in selinux/selinux.h
18937 do
18938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18940   echo "$as_me:$LINENO: checking for $ac_header" >&5
18941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18943   echo $ECHO_N "(cached) $ECHO_C" >&6
18944 fi
18945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18947 else
18948   # Is the header compilable?
18949 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18951 cat >conftest.$ac_ext <<_ACEOF
18952 #line $LINENO "configure"
18953 /* confdefs.h.  */
18954 _ACEOF
18955 cat confdefs.h >>conftest.$ac_ext
18956 cat >>conftest.$ac_ext <<_ACEOF
18957 /* end confdefs.h.  */
18958 $ac_includes_default
18959 #include <$ac_header>
18960 _ACEOF
18961 rm -f conftest.$ac_objext
18962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18963   (eval $ac_compile) 2>&5
18964   ac_status=$?
18965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966   (exit $ac_status); } &&
18967          { ac_try='test -s conftest.$ac_objext'
18968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18969   (eval $ac_try) 2>&5
18970   ac_status=$?
18971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972   (exit $ac_status); }; }; then
18973   ac_header_compiler=yes
18974 else
18975   echo "$as_me: failed program was:" >&5
18976 sed 's/^/| /' conftest.$ac_ext >&5
18977
18978 ac_header_compiler=no
18979 fi
18980 rm -f conftest.$ac_objext conftest.$ac_ext
18981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18982 echo "${ECHO_T}$ac_header_compiler" >&6
18983
18984 # Is the header present?
18985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18987 cat >conftest.$ac_ext <<_ACEOF
18988 #line $LINENO "configure"
18989 /* confdefs.h.  */
18990 _ACEOF
18991 cat confdefs.h >>conftest.$ac_ext
18992 cat >>conftest.$ac_ext <<_ACEOF
18993 /* end confdefs.h.  */
18994 #include <$ac_header>
18995 _ACEOF
18996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18997   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18998   ac_status=$?
18999   grep -v '^ *+' conftest.er1 >conftest.err
19000   rm -f conftest.er1
19001   cat conftest.err >&5
19002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003   (exit $ac_status); } >/dev/null; then
19004   if test -s conftest.err; then
19005     ac_cpp_err=$ac_c_preproc_warn_flag
19006   else
19007     ac_cpp_err=
19008   fi
19009 else
19010   ac_cpp_err=yes
19011 fi
19012 if test -z "$ac_cpp_err"; then
19013   ac_header_preproc=yes
19014 else
19015   echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19017
19018   ac_header_preproc=no
19019 fi
19020 rm -f conftest.err conftest.$ac_ext
19021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19022 echo "${ECHO_T}$ac_header_preproc" >&6
19023
19024 # So?  What about this header?
19025 case $ac_header_compiler:$ac_header_preproc in
19026   yes:no )
19027     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19029     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19031     (
19032       cat <<\_ASBOX
19033 ## ------------------------------------ ##
19034 ## Report this to bug-autoconf@gnu.org. ##
19035 ## ------------------------------------ ##
19036 _ASBOX
19037     ) |
19038       sed "s/^/$as_me: WARNING:     /" >&2
19039     ;;
19040   no:yes )
19041     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19043     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19044 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19045     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19047     (
19048       cat <<\_ASBOX
19049 ## ------------------------------------ ##
19050 ## Report this to bug-autoconf@gnu.org. ##
19051 ## ------------------------------------ ##
19052 _ASBOX
19053     ) |
19054       sed "s/^/$as_me: WARNING:     /" >&2
19055     ;;
19056 esac
19057 echo "$as_me:$LINENO: checking for $ac_header" >&5
19058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19060   echo $ECHO_N "(cached) $ECHO_C" >&6
19061 else
19062   eval "$as_ac_Header=$ac_header_preproc"
19063 fi
19064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19066
19067 fi
19068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19069   cat >>confdefs.h <<_ACEOF
19070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19071 _ACEOF
19072
19073 fi
19074
19075 done
19076
19077
19078 if test x"$newbu" = xtrue; then
19079   # Don't use LFS for libelf-0.x
19080   # Check whether --enable-largefile or --disable-largefile was given.
19081 if test "${enable_largefile+set}" = set; then
19082   enableval="$enable_largefile"
19083
19084 fi;
19085 if test "$enable_largefile" != no; then
19086
19087   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
19088 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
19089 if test "${ac_cv_sys_largefile_CC+set}" = set; then
19090   echo $ECHO_N "(cached) $ECHO_C" >&6
19091 else
19092   ac_cv_sys_largefile_CC=no
19093      if test "$GCC" != yes; then
19094        ac_save_CC=$CC
19095        while :; do
19096          # IRIX 6.2 and later do not support large files by default,
19097          # so use the C compiler's -n32 option if that helps.
19098          cat >conftest.$ac_ext <<_ACEOF
19099 #line $LINENO "configure"
19100 /* confdefs.h.  */
19101 _ACEOF
19102 cat confdefs.h >>conftest.$ac_ext
19103 cat >>conftest.$ac_ext <<_ACEOF
19104 /* end confdefs.h.  */
19105 #include <sys/types.h>
19106  /* Check that off_t can represent 2**63 - 1 correctly.
19107     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19108     since some C++ compilers masquerading as C compilers
19109     incorrectly reject 9223372036854775807.  */
19110 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19111   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19112                        && LARGE_OFF_T % 2147483647 == 1)
19113                       ? 1 : -1];
19114 int
19115 main ()
19116 {
19117
19118   ;
19119   return 0;
19120 }
19121 _ACEOF
19122          rm -f conftest.$ac_objext
19123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19124   (eval $ac_compile) 2>&5
19125   ac_status=$?
19126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127   (exit $ac_status); } &&
19128          { ac_try='test -s conftest.$ac_objext'
19129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19130   (eval $ac_try) 2>&5
19131   ac_status=$?
19132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133   (exit $ac_status); }; }; then
19134   break
19135 else
19136   echo "$as_me: failed program was:" >&5
19137 sed 's/^/| /' conftest.$ac_ext >&5
19138
19139 fi
19140 rm -f conftest.$ac_objext
19141          CC="$CC -n32"
19142          rm -f conftest.$ac_objext
19143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19144   (eval $ac_compile) 2>&5
19145   ac_status=$?
19146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147   (exit $ac_status); } &&
19148          { ac_try='test -s conftest.$ac_objext'
19149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150   (eval $ac_try) 2>&5
19151   ac_status=$?
19152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153   (exit $ac_status); }; }; then
19154   ac_cv_sys_largefile_CC=' -n32'; break
19155 else
19156   echo "$as_me: failed program was:" >&5
19157 sed 's/^/| /' conftest.$ac_ext >&5
19158
19159 fi
19160 rm -f conftest.$ac_objext
19161          break
19162        done
19163        CC=$ac_save_CC
19164        rm -f conftest.$ac_ext
19165     fi
19166 fi
19167 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
19168 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
19169   if test "$ac_cv_sys_largefile_CC" != no; then
19170     CC=$CC$ac_cv_sys_largefile_CC
19171   fi
19172
19173   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19174 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19175 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19176   echo $ECHO_N "(cached) $ECHO_C" >&6
19177 else
19178   while :; do
19179   ac_cv_sys_file_offset_bits=no
19180   cat >conftest.$ac_ext <<_ACEOF
19181 #line $LINENO "configure"
19182 /* confdefs.h.  */
19183 _ACEOF
19184 cat confdefs.h >>conftest.$ac_ext
19185 cat >>conftest.$ac_ext <<_ACEOF
19186 /* end confdefs.h.  */
19187 #include <sys/types.h>
19188  /* Check that off_t can represent 2**63 - 1 correctly.
19189     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19190     since some C++ compilers masquerading as C compilers
19191     incorrectly reject 9223372036854775807.  */
19192 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19193   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19194                        && LARGE_OFF_T % 2147483647 == 1)
19195                       ? 1 : -1];
19196 int
19197 main ()
19198 {
19199
19200   ;
19201   return 0;
19202 }
19203 _ACEOF
19204 rm -f conftest.$ac_objext
19205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19206   (eval $ac_compile) 2>&5
19207   ac_status=$?
19208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209   (exit $ac_status); } &&
19210          { ac_try='test -s conftest.$ac_objext'
19211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19212   (eval $ac_try) 2>&5
19213   ac_status=$?
19214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215   (exit $ac_status); }; }; then
19216   break
19217 else
19218   echo "$as_me: failed program was:" >&5
19219 sed 's/^/| /' conftest.$ac_ext >&5
19220
19221 fi
19222 rm -f conftest.$ac_objext conftest.$ac_ext
19223   cat >conftest.$ac_ext <<_ACEOF
19224 #line $LINENO "configure"
19225 /* confdefs.h.  */
19226 _ACEOF
19227 cat confdefs.h >>conftest.$ac_ext
19228 cat >>conftest.$ac_ext <<_ACEOF
19229 /* end confdefs.h.  */
19230 #define _FILE_OFFSET_BITS 64
19231 #include <sys/types.h>
19232  /* Check that off_t can represent 2**63 - 1 correctly.
19233     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19234     since some C++ compilers masquerading as C compilers
19235     incorrectly reject 9223372036854775807.  */
19236 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19237   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19238                        && LARGE_OFF_T % 2147483647 == 1)
19239                       ? 1 : -1];
19240 int
19241 main ()
19242 {
19243
19244   ;
19245   return 0;
19246 }
19247 _ACEOF
19248 rm -f conftest.$ac_objext
19249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19250   (eval $ac_compile) 2>&5
19251   ac_status=$?
19252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253   (exit $ac_status); } &&
19254          { ac_try='test -s conftest.$ac_objext'
19255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256   (eval $ac_try) 2>&5
19257   ac_status=$?
19258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259   (exit $ac_status); }; }; then
19260   ac_cv_sys_file_offset_bits=64; break
19261 else
19262   echo "$as_me: failed program was:" >&5
19263 sed 's/^/| /' conftest.$ac_ext >&5
19264
19265 fi
19266 rm -f conftest.$ac_objext conftest.$ac_ext
19267   break
19268 done
19269 fi
19270 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19271 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19272 if test "$ac_cv_sys_file_offset_bits" != no; then
19273
19274 cat >>confdefs.h <<_ACEOF
19275 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19276 _ACEOF
19277
19278 fi
19279 rm -f conftest*
19280   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19281 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19282 if test "${ac_cv_sys_large_files+set}" = set; then
19283   echo $ECHO_N "(cached) $ECHO_C" >&6
19284 else
19285   while :; do
19286   ac_cv_sys_large_files=no
19287   cat >conftest.$ac_ext <<_ACEOF
19288 #line $LINENO "configure"
19289 /* confdefs.h.  */
19290 _ACEOF
19291 cat confdefs.h >>conftest.$ac_ext
19292 cat >>conftest.$ac_ext <<_ACEOF
19293 /* end confdefs.h.  */
19294 #include <sys/types.h>
19295  /* Check that off_t can represent 2**63 - 1 correctly.
19296     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19297     since some C++ compilers masquerading as C compilers
19298     incorrectly reject 9223372036854775807.  */
19299 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19300   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19301                        && LARGE_OFF_T % 2147483647 == 1)
19302                       ? 1 : -1];
19303 int
19304 main ()
19305 {
19306
19307   ;
19308   return 0;
19309 }
19310 _ACEOF
19311 rm -f conftest.$ac_objext
19312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19313   (eval $ac_compile) 2>&5
19314   ac_status=$?
19315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316   (exit $ac_status); } &&
19317          { ac_try='test -s conftest.$ac_objext'
19318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319   (eval $ac_try) 2>&5
19320   ac_status=$?
19321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322   (exit $ac_status); }; }; then
19323   break
19324 else
19325   echo "$as_me: failed program was:" >&5
19326 sed 's/^/| /' conftest.$ac_ext >&5
19327
19328 fi
19329 rm -f conftest.$ac_objext conftest.$ac_ext
19330   cat >conftest.$ac_ext <<_ACEOF
19331 #line $LINENO "configure"
19332 /* confdefs.h.  */
19333 _ACEOF
19334 cat confdefs.h >>conftest.$ac_ext
19335 cat >>conftest.$ac_ext <<_ACEOF
19336 /* end confdefs.h.  */
19337 #define _LARGE_FILES 1
19338 #include <sys/types.h>
19339  /* Check that off_t can represent 2**63 - 1 correctly.
19340     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19341     since some C++ compilers masquerading as C compilers
19342     incorrectly reject 9223372036854775807.  */
19343 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19344   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19345                        && LARGE_OFF_T % 2147483647 == 1)
19346                       ? 1 : -1];
19347 int
19348 main ()
19349 {
19350
19351   ;
19352   return 0;
19353 }
19354 _ACEOF
19355 rm -f conftest.$ac_objext
19356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19357   (eval $ac_compile) 2>&5
19358   ac_status=$?
19359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360   (exit $ac_status); } &&
19361          { ac_try='test -s conftest.$ac_objext'
19362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363   (eval $ac_try) 2>&5
19364   ac_status=$?
19365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366   (exit $ac_status); }; }; then
19367   ac_cv_sys_large_files=1; break
19368 else
19369   echo "$as_me: failed program was:" >&5
19370 sed 's/^/| /' conftest.$ac_ext >&5
19371
19372 fi
19373 rm -f conftest.$ac_objext conftest.$ac_ext
19374   break
19375 done
19376 fi
19377 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19378 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19379 if test "$ac_cv_sys_large_files" != no; then
19380
19381 cat >>confdefs.h <<_ACEOF
19382 #define _LARGE_FILES $ac_cv_sys_large_files
19383 _ACEOF
19384
19385 fi
19386 rm -f conftest*
19387 fi
19388
19389 fi
19390
19391 if test "$cross_compiling" = yes; then
19392   { echo "$as_me:$LINENO: WARNING: Could not test whether libelf properly converts Elf64_Sxword quantities.
19393 If you are using libelf-0.7.0 and your libelf is buggy, please use
19394 patches/libelf-0.7.0.patch." >&5
19395 echo "$as_me: WARNING: Could not test whether libelf properly converts Elf64_Sxword quantities.
19396 If you are using libelf-0.7.0 and your libelf is buggy, please use
19397 patches/libelf-0.7.0.patch." >&2;}
19398 else
19399   cat >conftest.$ac_ext <<_ACEOF
19400 #line $LINENO "configure"
19401 /* confdefs.h.  */
19402 _ACEOF
19403 cat confdefs.h >>conftest.$ac_ext
19404 cat >>conftest.$ac_ext <<_ACEOF
19405 /* end confdefs.h.  */
19406
19407 #include <errno.h>
19408 #include <fcntl.h>
19409 #include <elf.h>
19410 #include <libelf.h>
19411 #include <stdlib.h>
19412 #include <stdio.h>
19413 #include <string.h>
19414
19415 static unsigned char sparc64_elf[] = {
19416 0x7f,0x45,0x4c,0x46,0x02,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19417 0x00,0x01,0x00,0x2b,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19418 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x78,
19419 0x00,0x00,0x00,0x02,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x08,0x00,0x05,
19420 0x00,0x00,0x07,0xff,0xf0,0x00,0x00,0x00,0x00,0x2e,0x73,0x79,0x6d,0x74,0x61,0x62,
19421 0x00,0x2e,0x73,0x74,0x72,0x74,0x61,0x62,0x00,0x2e,0x73,0x68,0x73,0x74,0x72,0x74,
19422 0x61,0x62,0x00,0x2e,0x74,0x65,0x78,0x74,0x00,0x2e,0x64,0x61,0x74,0x61,0x00,0x2e,
19423 0x62,0x73,0x73,0x00,0x66,0x6f,0x6f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19424 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19425 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19426 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19427 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1b,0x00,0x00,0x00,0x01,
19428 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19429 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19430 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
19431 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x21,0x00,0x00,0x00,0x01,
19432 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19433 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19434 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
19435 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x27,0x00,0x00,0x00,0x08,
19436 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19437 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19438 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
19439 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x2c,0x00,0x00,0x00,0x01,
19440 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19441 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,
19442 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
19443 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x11,0x00,0x00,0x00,0x03,
19444 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19445 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,
19446 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
19447 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x02,
19448 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19449 0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x78,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x78,
19450 0x00,0x00,0x00,0x07,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,
19451 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x09,0x00,0x00,0x00,0x03,
19452 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19453 0x00,0x00,0x00,0x00,0x00,0x00,0x02,0xf0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
19454 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
19455 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19456 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19457 0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19458 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x02,
19459 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19460 0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19461 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x04,
19462 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
19463 0x00 };
19464
19465 int main (void)
19466 {
19467   Elf *elf;
19468   int fd;
19469   Elf64_Ehdr *ehdr;
19470   Elf64_Addr val;
19471   Elf_Scn *scn;
19472
19473   fd = open ("conflibelftest", O_RDWR | O_CREAT | O_EXCL, 0600);
19474   if (fd == -1) exit (1);
19475   unlink ("conflibelftest");
19476   if (write (fd, sparc64_elf, sizeof(sparc64_elf)) != sizeof(sparc64_elf))
19477     exit (1);
19478   if (lseek (fd, 0, SEEK_SET) != 0) exit (1);
19479   elf_version (EV_CURRENT);
19480   elf = elf_begin (fd, ELF_C_RDWR, NULL); if (elf == NULL) exit (2);
19481   if ((ehdr = elf64_getehdr (elf)) == NULL) exit (3);
19482   scn = NULL;
19483   while ((scn = elf_nextscn (elf, scn)) != NULL)
19484     {
19485       char *name = NULL;
19486       Elf64_Shdr *shdr;
19487       Elf_Data *src, *dst;
19488
19489       if ((shdr = elf64_getshdr (scn))
19490           && (name = elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name))
19491           && !strcmp (name, "foo"))
19492         {
19493           src = elf_rawdata (scn, NULL);
19494           if (shdr->sh_size != 8 || src->d_off || src->d_size != 8) exit (4);
19495           if (src == NULL || elf_rawdata (scn, src) != NULL) exit (5);
19496           if ((dst = elf_newdata (scn)) == NULL) exit (6);
19497           dst->d_buf = &val;
19498           dst->d_size = 8;
19499           dst->d_off = 0;
19500           dst->d_type = ELF_T_SXWORD;
19501           src->d_type = ELF_T_SXWORD;
19502           if (elf64_xlatetom (dst, src, ELFDATA2MSB) == NULL) exit (7);
19503           if (val != 0x7fff0000000)
19504             exit (42);
19505           elf_end (elf);
19506           exit (0);
19507         }
19508     }
19509   exit (8);
19510 }
19511
19512 _ACEOF
19513 rm -f conftest$ac_exeext
19514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19515   (eval $ac_link) 2>&5
19516   ac_status=$?
19517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520   (eval $ac_try) 2>&5
19521   ac_status=$?
19522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523   (exit $ac_status); }; }; then
19524   :
19525 else
19526   echo "$as_me: program exited with status $ac_status" >&5
19527 echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19529
19530 ( exit $ac_status )
19531 { { echo "$as_me:$LINENO: error: libelf does not properly convert Elf64_Sxword quantities.
19532 If you are using libelf-0.7.0, please use patches/libelf-0.7.0.patch." >&5
19533 echo "$as_me: error: libelf does not properly convert Elf64_Sxword quantities.
19534 If you are using libelf-0.7.0, please use patches/libelf-0.7.0.patch." >&2;}
19535    { (exit 1); exit 1; }; }
19536 fi
19537 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19538 fi
19539
19540
19541                                                                                           ac_config_files="$ac_config_files Makefile src/Makefile gelfx/Makefile gelfx32/Makefile gelf/Makefile m4/Makefile patches/Makefile doc/Makefile testsuite/Makefile"
19542 cat >confcache <<\_ACEOF
19543 # This file is a shell script that caches the results of configure
19544 # tests run on this system so they can be shared between configure
19545 # scripts and configure runs, see configure's option --config-cache.
19546 # It is not useful on other systems.  If it contains results you don't
19547 # want to keep, you may remove or edit it.
19548 #
19549 # config.status only pays attention to the cache file if you give it
19550 # the --recheck option to rerun configure.
19551 #
19552 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19553 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19554 # following values.
19555
19556 _ACEOF
19557
19558 # The following way of writing the cache mishandles newlines in values,
19559 # but we know of no workaround that is simple, portable, and efficient.
19560 # So, don't put newlines in cache variables' values.
19561 # Ultrix sh set writes to stderr and can't be redirected directly,
19562 # and sets the high bit in the cache file unless we assign to the vars.
19563 {
19564   (set) 2>&1 |
19565     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19566     *ac_space=\ *)
19567       # `set' does not quote correctly, so add quotes (double-quote
19568       # substitution turns \\\\ into \\, and sed turns \\ into \).
19569       sed -n \
19570         "s/'/'\\\\''/g;
19571           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19572       ;;
19573     *)
19574       # `set' quotes correctly as required by POSIX, so do not add quotes.
19575       sed -n \
19576         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19577       ;;
19578     esac;
19579 } |
19580   sed '
19581      t clear
19582      : clear
19583      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19584      t end
19585      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19586      : end' >>confcache
19587 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19588   if test -w $cache_file; then
19589     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19590     cat confcache >$cache_file
19591   else
19592     echo "not updating unwritable cache $cache_file"
19593   fi
19594 fi
19595 rm -f confcache
19596
19597 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19598 # Let make expand exec_prefix.
19599 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19600
19601 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19602 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19603 # trailing colons and then remove the whole line if VPATH becomes empty
19604 # (actually we leave an empty line to preserve line numbers).
19605 if test "x$srcdir" = x.; then
19606   ac_vpsub='/^[         ]*VPATH[        ]*=/{
19607 s/:*\$(srcdir):*/:/;
19608 s/:*\${srcdir}:*/:/;
19609 s/:*@srcdir@:*/:/;
19610 s/^\([^=]*=[    ]*\):*/\1/;
19611 s/:*$//;
19612 s/^[^=]*=[      ]*$//;
19613 }'
19614 fi
19615
19616 DEFS=-DHAVE_CONFIG_H
19617
19618 ac_libobjs=
19619 ac_ltlibobjs=
19620 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19621   # 1. Remove the extension, and $U if already installed.
19622   ac_i=`echo "$ac_i" |
19623          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19624   # 2. Add them.
19625   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19626   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19627 done
19628 LIBOBJS=$ac_libobjs
19629
19630 LTLIBOBJS=$ac_ltlibobjs
19631
19632
19633 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19634   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19635 Usually this means the macro was only invoked conditionally." >&5
19636 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19637 Usually this means the macro was only invoked conditionally." >&2;}
19638    { (exit 1); exit 1; }; }
19639 fi
19640
19641 : ${CONFIG_STATUS=./config.status}
19642 ac_clean_files_save=$ac_clean_files
19643 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19644 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19645 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19646 cat >$CONFIG_STATUS <<_ACEOF
19647 #! $SHELL
19648 # Generated by $as_me.
19649 # Run this file to recreate the current configuration.
19650 # Compiler output produced by configure, useful for debugging
19651 # configure, is in config.log if it exists.
19652
19653 debug=false
19654 ac_cs_recheck=false
19655 ac_cs_silent=false
19656 SHELL=\${CONFIG_SHELL-$SHELL}
19657 _ACEOF
19658
19659 cat >>$CONFIG_STATUS <<\_ACEOF
19660 ## --------------------- ##
19661 ## M4sh Initialization.  ##
19662 ## --------------------- ##
19663
19664 # Be Bourne compatible
19665 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19666   emulate sh
19667   NULLCMD=:
19668   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19669   # is contrary to our usage.  Disable this feature.
19670   alias -g '${1+"$@"}'='"$@"'
19671 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19672   set -o posix
19673 fi
19674
19675 # Support unset when possible.
19676 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19677   as_unset=unset
19678 else
19679   as_unset=false
19680 fi
19681
19682
19683 # Work around bugs in pre-3.0 UWIN ksh.
19684 $as_unset ENV MAIL MAILPATH
19685 PS1='$ '
19686 PS2='> '
19687 PS4='+ '
19688
19689 # NLS nuisances.
19690 for as_var in \
19691   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19692   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19693   LC_TELEPHONE LC_TIME
19694 do
19695   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19696     eval $as_var=C; export $as_var
19697   else
19698     $as_unset $as_var
19699   fi
19700 done
19701
19702 # Required to use basename.
19703 if expr a : '\(a\)' >/dev/null 2>&1; then
19704   as_expr=expr
19705 else
19706   as_expr=false
19707 fi
19708
19709 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19710   as_basename=basename
19711 else
19712   as_basename=false
19713 fi
19714
19715
19716 # Name of the executable.
19717 as_me=`$as_basename "$0" ||
19718 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19719          X"$0" : 'X\(//\)$' \| \
19720          X"$0" : 'X\(/\)$' \| \
19721          .     : '\(.\)' 2>/dev/null ||
19722 echo X/"$0" |
19723     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19724           /^X\/\(\/\/\)$/{ s//\1/; q; }
19725           /^X\/\(\/\).*/{ s//\1/; q; }
19726           s/.*/./; q'`
19727
19728
19729 # PATH needs CR, and LINENO needs CR and PATH.
19730 # Avoid depending upon Character Ranges.
19731 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19732 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19733 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19734 as_cr_digits='0123456789'
19735 as_cr_alnum=$as_cr_Letters$as_cr_digits
19736
19737 # The user is always right.
19738 if test "${PATH_SEPARATOR+set}" != set; then
19739   echo "#! /bin/sh" >conf$$.sh
19740   echo  "exit 0"   >>conf$$.sh
19741   chmod +x conf$$.sh
19742   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19743     PATH_SEPARATOR=';'
19744   else
19745     PATH_SEPARATOR=:
19746   fi
19747   rm -f conf$$.sh
19748 fi
19749
19750
19751   as_lineno_1=$LINENO
19752   as_lineno_2=$LINENO
19753   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19754   test "x$as_lineno_1" != "x$as_lineno_2" &&
19755   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19756   # Find who we are.  Look in the path if we contain no path at all
19757   # relative or not.
19758   case $0 in
19759     *[\\/]* ) as_myself=$0 ;;
19760     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19761 for as_dir in $PATH
19762 do
19763   IFS=$as_save_IFS
19764   test -z "$as_dir" && as_dir=.
19765   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19766 done
19767
19768        ;;
19769   esac
19770   # We did not find ourselves, most probably we were run as `sh COMMAND'
19771   # in which case we are not to be found in the path.
19772   if test "x$as_myself" = x; then
19773     as_myself=$0
19774   fi
19775   if test ! -f "$as_myself"; then
19776     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19777 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19778    { (exit 1); exit 1; }; }
19779   fi
19780   case $CONFIG_SHELL in
19781   '')
19782     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19783 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19784 do
19785   IFS=$as_save_IFS
19786   test -z "$as_dir" && as_dir=.
19787   for as_base in sh bash ksh sh5; do
19788          case $as_dir in
19789          /*)
19790            if ("$as_dir/$as_base" -c '
19791   as_lineno_1=$LINENO
19792   as_lineno_2=$LINENO
19793   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19794   test "x$as_lineno_1" != "x$as_lineno_2" &&
19795   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19796              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19797              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19798              CONFIG_SHELL=$as_dir/$as_base
19799              export CONFIG_SHELL
19800              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19801            fi;;
19802          esac
19803        done
19804 done
19805 ;;
19806   esac
19807
19808   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19809   # uniformly replaced by the line number.  The first 'sed' inserts a
19810   # line-number line before each line; the second 'sed' does the real
19811   # work.  The second script uses 'N' to pair each line-number line
19812   # with the numbered line, and appends trailing '-' during
19813   # substitution so that $LINENO is not a special case at line end.
19814   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19815   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19816   sed '=' <$as_myself |
19817     sed '
19818       N
19819       s,$,-,
19820       : loop
19821       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19822       t loop
19823       s,-$,,
19824       s,^['$as_cr_digits']*\n,,
19825     ' >$as_me.lineno &&
19826   chmod +x $as_me.lineno ||
19827     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19828 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19829    { (exit 1); exit 1; }; }
19830
19831   # Don't try to exec as it changes $[0], causing all sort of problems
19832   # (the dirname of $[0] is not the place where we might find the
19833   # original and so on.  Autoconf is especially sensible to this).
19834   . ./$as_me.lineno
19835   # Exit status is that of the last command.
19836   exit
19837 }
19838
19839
19840 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19841   *c*,-n*) ECHO_N= ECHO_C='
19842 ' ECHO_T='      ' ;;
19843   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19844   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19845 esac
19846
19847 if expr a : '\(a\)' >/dev/null 2>&1; then
19848   as_expr=expr
19849 else
19850   as_expr=false
19851 fi
19852
19853 rm -f conf$$ conf$$.exe conf$$.file
19854 echo >conf$$.file
19855 if ln -s conf$$.file conf$$ 2>/dev/null; then
19856   # We could just check for DJGPP; but this test a) works b) is more generic
19857   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19858   if test -f conf$$.exe; then
19859     # Don't use ln at all; we don't have any links
19860     as_ln_s='cp -p'
19861   else
19862     as_ln_s='ln -s'
19863   fi
19864 elif ln conf$$.file conf$$ 2>/dev/null; then
19865   as_ln_s=ln
19866 else
19867   as_ln_s='cp -p'
19868 fi
19869 rm -f conf$$ conf$$.exe conf$$.file
19870
19871 if mkdir -p . 2>/dev/null; then
19872   as_mkdir_p=:
19873 else
19874   as_mkdir_p=false
19875 fi
19876
19877 as_executable_p="test -f"
19878
19879 # Sed expression to map a string onto a valid CPP name.
19880 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19881
19882 # Sed expression to map a string onto a valid variable name.
19883 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19884
19885
19886 # IFS
19887 # We need space, tab and new line, in precisely that order.
19888 as_nl='
19889 '
19890 IFS="   $as_nl"
19891
19892 # CDPATH.
19893 $as_unset CDPATH
19894
19895 exec 6>&1
19896
19897 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19898 # report actual input values of CONFIG_FILES etc. instead of their
19899 # values after options handling.  Logging --version etc. is OK.
19900 exec 5>>config.log
19901 {
19902   echo
19903   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19904 ## Running $as_me. ##
19905 _ASBOX
19906 } >&5
19907 cat >&5 <<_CSEOF
19908
19909 This file was extended by $as_me, which was
19910 generated by GNU Autoconf 2.57.  Invocation command line was
19911
19912   CONFIG_FILES    = $CONFIG_FILES
19913   CONFIG_HEADERS  = $CONFIG_HEADERS
19914   CONFIG_LINKS    = $CONFIG_LINKS
19915   CONFIG_COMMANDS = $CONFIG_COMMANDS
19916   $ $0 $@
19917
19918 _CSEOF
19919 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19920 echo >&5
19921 _ACEOF
19922
19923 # Files that config.status was made for.
19924 if test -n "$ac_config_files"; then
19925   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19926 fi
19927
19928 if test -n "$ac_config_headers"; then
19929   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19930 fi
19931
19932 if test -n "$ac_config_links"; then
19933   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19934 fi
19935
19936 if test -n "$ac_config_commands"; then
19937   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19938 fi
19939
19940 cat >>$CONFIG_STATUS <<\_ACEOF
19941
19942 ac_cs_usage="\
19943 \`$as_me' instantiates files from templates according to the
19944 current configuration.
19945
19946 Usage: $0 [OPTIONS] [FILE]...
19947
19948   -h, --help       print this help, then exit
19949   -V, --version    print version number, then exit
19950   -q, --quiet      do not print progress messages
19951   -d, --debug      don't remove temporary files
19952       --recheck    update $as_me by reconfiguring in the same conditions
19953   --file=FILE[:TEMPLATE]
19954                    instantiate the configuration file FILE
19955   --header=FILE[:TEMPLATE]
19956                    instantiate the configuration header FILE
19957
19958 Configuration files:
19959 $config_files
19960
19961 Configuration headers:
19962 $config_headers
19963
19964 Configuration commands:
19965 $config_commands
19966
19967 Report bugs to <bug-autoconf@gnu.org>."
19968 _ACEOF
19969
19970 cat >>$CONFIG_STATUS <<_ACEOF
19971 ac_cs_version="\\
19972 config.status
19973 configured by $0, generated by GNU Autoconf 2.57,
19974   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19975
19976 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19977 Free Software Foundation, Inc.
19978 This config.status script is free software; the Free Software Foundation
19979 gives unlimited permission to copy, distribute and modify it."
19980 srcdir=$srcdir
19981 INSTALL="$INSTALL"
19982 _ACEOF
19983
19984 cat >>$CONFIG_STATUS <<\_ACEOF
19985 # If no file are specified by the user, then we need to provide default
19986 # value.  By we need to know if files were specified by the user.
19987 ac_need_defaults=:
19988 while test $# != 0
19989 do
19990   case $1 in
19991   --*=*)
19992     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19993     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19994     ac_shift=:
19995     ;;
19996   -*)
19997     ac_option=$1
19998     ac_optarg=$2
19999     ac_shift=shift
20000     ;;
20001   *) # This is not an option, so the user has probably given explicit
20002      # arguments.
20003      ac_option=$1
20004      ac_need_defaults=false;;
20005   esac
20006
20007   case $ac_option in
20008   # Handling of the options.
20009 _ACEOF
20010 cat >>$CONFIG_STATUS <<\_ACEOF
20011   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20012     ac_cs_recheck=: ;;
20013   --version | --vers* | -V )
20014     echo "$ac_cs_version"; exit 0 ;;
20015   --he | --h)
20016     # Conflict between --help and --header
20017     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20018 Try \`$0 --help' for more information." >&5
20019 echo "$as_me: error: ambiguous option: $1
20020 Try \`$0 --help' for more information." >&2;}
20021    { (exit 1); exit 1; }; };;
20022   --help | --hel | -h )
20023     echo "$ac_cs_usage"; exit 0 ;;
20024   --debug | --d* | -d )
20025     debug=: ;;
20026   --file | --fil | --fi | --f )
20027     $ac_shift
20028     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20029     ac_need_defaults=false;;
20030   --header | --heade | --head | --hea )
20031     $ac_shift
20032     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20033     ac_need_defaults=false;;
20034   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20035   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20036     ac_cs_silent=: ;;
20037
20038   # This is an error.
20039   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20040 Try \`$0 --help' for more information." >&5
20041 echo "$as_me: error: unrecognized option: $1
20042 Try \`$0 --help' for more information." >&2;}
20043    { (exit 1); exit 1; }; } ;;
20044
20045   *) ac_config_targets="$ac_config_targets $1" ;;
20046
20047   esac
20048   shift
20049 done
20050
20051 ac_configure_extra_args=
20052
20053 if $ac_cs_silent; then
20054   exec 6>/dev/null
20055   ac_configure_extra_args="$ac_configure_extra_args --silent"
20056 fi
20057
20058 _ACEOF
20059 cat >>$CONFIG_STATUS <<_ACEOF
20060 if \$ac_cs_recheck; then
20061   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20062   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20063 fi
20064
20065 _ACEOF
20066
20067 cat >>$CONFIG_STATUS <<_ACEOF
20068 #
20069 # INIT-COMMANDS section.
20070 #
20071
20072 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20073
20074 _ACEOF
20075
20076
20077
20078 cat >>$CONFIG_STATUS <<\_ACEOF
20079 for ac_config_target in $ac_config_targets
20080 do
20081   case "$ac_config_target" in
20082   # Handling of arguments.
20083   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20084   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20085   "gelfx/Makefile" ) CONFIG_FILES="$CONFIG_FILES gelfx/Makefile" ;;
20086   "gelfx32/Makefile" ) CONFIG_FILES="$CONFIG_FILES gelfx32/Makefile" ;;
20087   "gelf/Makefile" ) CONFIG_FILES="$CONFIG_FILES gelf/Makefile" ;;
20088   "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
20089   "patches/Makefile" ) CONFIG_FILES="$CONFIG_FILES patches/Makefile" ;;
20090   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20091   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
20092   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20093   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20094   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20095 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20096    { (exit 1); exit 1; }; };;
20097   esac
20098 done
20099
20100 # If the user did not use the arguments to specify the items to instantiate,
20101 # then the envvar interface is used.  Set only those that are not.
20102 # We use the long form for the default assignment because of an extremely
20103 # bizarre bug on SunOS 4.1.3.
20104 if $ac_need_defaults; then
20105   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20106   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20107   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20108 fi
20109
20110 # Have a temporary directory for convenience.  Make it in the build tree
20111 # simply because there is no reason to put it here, and in addition,
20112 # creating and moving files from /tmp can sometimes cause problems.
20113 # Create a temporary directory, and hook for its removal unless debugging.
20114 $debug ||
20115 {
20116   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20117   trap '{ (exit 1); exit 1; }' 1 2 13 15
20118 }
20119
20120 # Create a (secure) tmp directory for tmp files.
20121
20122 {
20123   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20124   test -n "$tmp" && test -d "$tmp"
20125 }  ||
20126 {
20127   tmp=./confstat$$-$RANDOM
20128   (umask 077 && mkdir $tmp)
20129 } ||
20130 {
20131    echo "$me: cannot create a temporary directory in ." >&2
20132    { (exit 1); exit 1; }
20133 }
20134
20135 _ACEOF
20136
20137 cat >>$CONFIG_STATUS <<_ACEOF
20138
20139 #
20140 # CONFIG_FILES section.
20141 #
20142
20143 # No need to generate the scripts if there are no CONFIG_FILES.
20144 # This happens for instance when ./config.status config.h
20145 if test -n "\$CONFIG_FILES"; then
20146   # Protect against being on the right side of a sed subst in config.status.
20147   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20148    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20149 s,@SHELL@,$SHELL,;t t
20150 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20151 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20152 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20153 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20154 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20155 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20156 s,@exec_prefix@,$exec_prefix,;t t
20157 s,@prefix@,$prefix,;t t
20158 s,@program_transform_name@,$program_transform_name,;t t
20159 s,@bindir@,$bindir,;t t
20160 s,@sbindir@,$sbindir,;t t
20161 s,@libexecdir@,$libexecdir,;t t
20162 s,@datadir@,$datadir,;t t
20163 s,@sysconfdir@,$sysconfdir,;t t
20164 s,@sharedstatedir@,$sharedstatedir,;t t
20165 s,@localstatedir@,$localstatedir,;t t
20166 s,@libdir@,$libdir,;t t
20167 s,@includedir@,$includedir,;t t
20168 s,@oldincludedir@,$oldincludedir,;t t
20169 s,@infodir@,$infodir,;t t
20170 s,@mandir@,$mandir,;t t
20171 s,@build_alias@,$build_alias,;t t
20172 s,@host_alias@,$host_alias,;t t
20173 s,@target_alias@,$target_alias,;t t
20174 s,@DEFS@,$DEFS,;t t
20175 s,@ECHO_C@,$ECHO_C,;t t
20176 s,@ECHO_N@,$ECHO_N,;t t
20177 s,@ECHO_T@,$ECHO_T,;t t
20178 s,@LIBS@,$LIBS,;t t
20179 s,@build@,$build,;t t
20180 s,@build_cpu@,$build_cpu,;t t
20181 s,@build_vendor@,$build_vendor,;t t
20182 s,@build_os@,$build_os,;t t
20183 s,@host@,$host,;t t
20184 s,@host_cpu@,$host_cpu,;t t
20185 s,@host_vendor@,$host_vendor,;t t
20186 s,@host_os@,$host_os,;t t
20187 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20188 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20189 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20190 s,@PACKAGE@,$PACKAGE,;t t
20191 s,@VERSION@,$VERSION,;t t
20192 s,@ACLOCAL@,$ACLOCAL,;t t
20193 s,@AUTOCONF@,$AUTOCONF,;t t
20194 s,@AUTOMAKE@,$AUTOMAKE,;t t
20195 s,@AUTOHEADER@,$AUTOHEADER,;t t
20196 s,@MAKEINFO@,$MAKEINFO,;t t
20197 s,@AMTAR@,$AMTAR,;t t
20198 s,@install_sh@,$install_sh,;t t
20199 s,@STRIP@,$STRIP,;t t
20200 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20201 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20202 s,@AWK@,$AWK,;t t
20203 s,@SET_MAKE@,$SET_MAKE,;t t
20204 s,@CC@,$CC,;t t
20205 s,@CFLAGS@,$CFLAGS,;t t
20206 s,@LDFLAGS@,$LDFLAGS,;t t
20207 s,@CPPFLAGS@,$CPPFLAGS,;t t
20208 s,@ac_ct_CC@,$ac_ct_CC,;t t
20209 s,@EXEEXT@,$EXEEXT,;t t
20210 s,@OBJEXT@,$OBJEXT,;t t
20211 s,@DEPDIR@,$DEPDIR,;t t
20212 s,@am__include@,$am__include,;t t
20213 s,@am__quote@,$am__quote,;t t
20214 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20215 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20216 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20217 s,@CCDEPMODE@,$CCDEPMODE,;t t
20218 s,@CXX@,$CXX,;t t
20219 s,@CXXFLAGS@,$CXXFLAGS,;t t
20220 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20221 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20222 s,@CPP@,$CPP,;t t
20223 s,@EGREP@,$EGREP,;t t
20224 s,@LN_S@,$LN_S,;t t
20225 s,@ECHO@,$ECHO,;t t
20226 s,@AR@,$AR,;t t
20227 s,@ac_ct_AR@,$ac_ct_AR,;t t
20228 s,@RANLIB@,$RANLIB,;t t
20229 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20230 s,@CXXCPP@,$CXXCPP,;t t
20231 s,@F77@,$F77,;t t
20232 s,@FFLAGS@,$FFLAGS,;t t
20233 s,@ac_ct_F77@,$ac_ct_F77,;t t
20234 s,@LIBTOOL@,$LIBTOOL,;t t
20235 s,@GELFINCLUDE@,$GELFINCLUDE,;t t
20236 s,@LIBGELF@,$LIBGELF,;t t
20237 s,@LIBOBJS@,$LIBOBJS,;t t
20238 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20239 CEOF
20240
20241 _ACEOF
20242
20243   cat >>$CONFIG_STATUS <<\_ACEOF
20244   # Split the substitutions into bite-sized pieces for seds with
20245   # small command number limits, like on Digital OSF/1 and HP-UX.
20246   ac_max_sed_lines=48
20247   ac_sed_frag=1 # Number of current file.
20248   ac_beg=1 # First line for current file.
20249   ac_end=$ac_max_sed_lines # Line after last line for current file.
20250   ac_more_lines=:
20251   ac_sed_cmds=
20252   while $ac_more_lines; do
20253     if test $ac_beg -gt 1; then
20254       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20255     else
20256       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20257     fi
20258     if test ! -s $tmp/subs.frag; then
20259       ac_more_lines=false
20260     else
20261       # The purpose of the label and of the branching condition is to
20262       # speed up the sed processing (if there are no `@' at all, there
20263       # is no need to browse any of the substitutions).
20264       # These are the two extra sed commands mentioned above.
20265       (echo ':t
20266   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20267       if test -z "$ac_sed_cmds"; then
20268         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20269       else
20270         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20271       fi
20272       ac_sed_frag=`expr $ac_sed_frag + 1`
20273       ac_beg=$ac_end
20274       ac_end=`expr $ac_end + $ac_max_sed_lines`
20275     fi
20276   done
20277   if test -z "$ac_sed_cmds"; then
20278     ac_sed_cmds=cat
20279   fi
20280 fi # test -n "$CONFIG_FILES"
20281
20282 _ACEOF
20283 cat >>$CONFIG_STATUS <<\_ACEOF
20284 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20285   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20286   case $ac_file in
20287   - | *:- | *:-:* ) # input from stdin
20288         cat >$tmp/stdin
20289         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20290         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20291   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20292         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20293   * )   ac_file_in=$ac_file.in ;;
20294   esac
20295
20296   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20297   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20298 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20299          X"$ac_file" : 'X\(//\)[^/]' \| \
20300          X"$ac_file" : 'X\(//\)$' \| \
20301          X"$ac_file" : 'X\(/\)' \| \
20302          .     : '\(.\)' 2>/dev/null ||
20303 echo X"$ac_file" |
20304     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20305           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20306           /^X\(\/\/\)$/{ s//\1/; q; }
20307           /^X\(\/\).*/{ s//\1/; q; }
20308           s/.*/./; q'`
20309   { if $as_mkdir_p; then
20310     mkdir -p "$ac_dir"
20311   else
20312     as_dir="$ac_dir"
20313     as_dirs=
20314     while test ! -d "$as_dir"; do
20315       as_dirs="$as_dir $as_dirs"
20316       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20317 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20318          X"$as_dir" : 'X\(//\)[^/]' \| \
20319          X"$as_dir" : 'X\(//\)$' \| \
20320          X"$as_dir" : 'X\(/\)' \| \
20321          .     : '\(.\)' 2>/dev/null ||
20322 echo X"$as_dir" |
20323     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20324           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20325           /^X\(\/\/\)$/{ s//\1/; q; }
20326           /^X\(\/\).*/{ s//\1/; q; }
20327           s/.*/./; q'`
20328     done
20329     test ! -n "$as_dirs" || mkdir $as_dirs
20330   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20331 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20332    { (exit 1); exit 1; }; }; }
20333
20334   ac_builddir=.
20335
20336 if test "$ac_dir" != .; then
20337   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20338   # A "../" for each directory in $ac_dir_suffix.
20339   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20340 else
20341   ac_dir_suffix= ac_top_builddir=
20342 fi
20343
20344 case $srcdir in
20345   .)  # No --srcdir option.  We are building in place.
20346     ac_srcdir=.
20347     if test -z "$ac_top_builddir"; then
20348        ac_top_srcdir=.
20349     else
20350        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20351     fi ;;
20352   [\\/]* | ?:[\\/]* )  # Absolute path.
20353     ac_srcdir=$srcdir$ac_dir_suffix;
20354     ac_top_srcdir=$srcdir ;;
20355   *) # Relative path.
20356     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20357     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20358 esac
20359 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20360 # absolute.
20361 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20362 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20363 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20364 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20365
20366
20367   case $INSTALL in
20368   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20369   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20370   esac
20371
20372   if test x"$ac_file" != x-; then
20373     { echo "$as_me:$LINENO: creating $ac_file" >&5
20374 echo "$as_me: creating $ac_file" >&6;}
20375     rm -f "$ac_file"
20376   fi
20377   # Let's still pretend it is `configure' which instantiates (i.e., don't
20378   # use $as_me), people would be surprised to read:
20379   #    /* config.h.  Generated by config.status.  */
20380   if test x"$ac_file" = x-; then
20381     configure_input=
20382   else
20383     configure_input="$ac_file.  "
20384   fi
20385   configure_input=$configure_input"Generated from `echo $ac_file_in |
20386                                      sed 's,.*/,,'` by configure."
20387
20388   # First look for the input files in the build tree, otherwise in the
20389   # src tree.
20390   ac_file_inputs=`IFS=:
20391     for f in $ac_file_in; do
20392       case $f in
20393       -) echo $tmp/stdin ;;
20394       [\\/$]*)
20395          # Absolute (can't be DOS-style, as IFS=:)
20396          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20397 echo "$as_me: error: cannot find input file: $f" >&2;}
20398    { (exit 1); exit 1; }; }
20399          echo $f;;
20400       *) # Relative
20401          if test -f "$f"; then
20402            # Build tree
20403            echo $f
20404          elif test -f "$srcdir/$f"; then
20405            # Source tree
20406            echo $srcdir/$f
20407          else
20408            # /dev/null tree
20409            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20410 echo "$as_me: error: cannot find input file: $f" >&2;}
20411    { (exit 1); exit 1; }; }
20412          fi;;
20413       esac
20414     done` || { (exit 1); exit 1; }
20415 _ACEOF
20416 cat >>$CONFIG_STATUS <<_ACEOF
20417   sed "$ac_vpsub
20418 $extrasub
20419 _ACEOF
20420 cat >>$CONFIG_STATUS <<\_ACEOF
20421 :t
20422 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20423 s,@configure_input@,$configure_input,;t t
20424 s,@srcdir@,$ac_srcdir,;t t
20425 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20426 s,@top_srcdir@,$ac_top_srcdir,;t t
20427 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20428 s,@builddir@,$ac_builddir,;t t
20429 s,@abs_builddir@,$ac_abs_builddir,;t t
20430 s,@top_builddir@,$ac_top_builddir,;t t
20431 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20432 s,@INSTALL@,$ac_INSTALL,;t t
20433 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20434   rm -f $tmp/stdin
20435   if test x"$ac_file" != x-; then
20436     mv $tmp/out $ac_file
20437   else
20438     cat $tmp/out
20439     rm -f $tmp/out
20440   fi
20441
20442 done
20443 _ACEOF
20444 cat >>$CONFIG_STATUS <<\_ACEOF
20445
20446 #
20447 # CONFIG_HEADER section.
20448 #
20449
20450 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20451 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20452 #
20453 # ac_d sets the value in "#define NAME VALUE" lines.
20454 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
20455 ac_dB='[        ].*$,\1#\2'
20456 ac_dC=' '
20457 ac_dD=',;t'
20458 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20459 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20460 ac_uB='$,\1#\2define\3'
20461 ac_uC=' '
20462 ac_uD=',;t'
20463
20464 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20465   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20466   case $ac_file in
20467   - | *:- | *:-:* ) # input from stdin
20468         cat >$tmp/stdin
20469         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20470         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20471   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20472         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20473   * )   ac_file_in=$ac_file.in ;;
20474   esac
20475
20476   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20477 echo "$as_me: creating $ac_file" >&6;}
20478
20479   # First look for the input files in the build tree, otherwise in the
20480   # src tree.
20481   ac_file_inputs=`IFS=:
20482     for f in $ac_file_in; do
20483       case $f in
20484       -) echo $tmp/stdin ;;
20485       [\\/$]*)
20486          # Absolute (can't be DOS-style, as IFS=:)
20487          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20488 echo "$as_me: error: cannot find input file: $f" >&2;}
20489    { (exit 1); exit 1; }; }
20490          echo $f;;
20491       *) # Relative
20492          if test -f "$f"; then
20493            # Build tree
20494            echo $f
20495          elif test -f "$srcdir/$f"; then
20496            # Source tree
20497            echo $srcdir/$f
20498          else
20499            # /dev/null tree
20500            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20501 echo "$as_me: error: cannot find input file: $f" >&2;}
20502    { (exit 1); exit 1; }; }
20503          fi;;
20504       esac
20505     done` || { (exit 1); exit 1; }
20506   # Remove the trailing spaces.
20507   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
20508
20509 _ACEOF
20510
20511 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20512 # `conftest.undefs', that substitutes the proper values into
20513 # config.h.in to produce config.h.  The first handles `#define'
20514 # templates, and the second `#undef' templates.
20515 # And first: Protect against being on the right side of a sed subst in
20516 # config.status.  Protect against being in an unquoted here document
20517 # in config.status.
20518 rm -f conftest.defines conftest.undefs
20519 # Using a here document instead of a string reduces the quoting nightmare.
20520 # Putting comments in sed scripts is not portable.
20521 #
20522 # `end' is used to avoid that the second main sed command (meant for
20523 # 0-ary CPP macros) applies to n-ary macro definitions.
20524 # See the Autoconf documentation for `clear'.
20525 cat >confdef2sed.sed <<\_ACEOF
20526 s/[\\&,]/\\&/g
20527 s,[\\$`],\\&,g
20528 t clear
20529 : clear
20530 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20531 t end
20532 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20533 : end
20534 _ACEOF
20535 # If some macros were called several times there might be several times
20536 # the same #defines, which is useless.  Nevertheless, we may not want to
20537 # sort them, since we want the *last* AC-DEFINE to be honored.
20538 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20539 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20540 rm -f confdef2sed.sed
20541
20542 # This sed command replaces #undef with comments.  This is necessary, for
20543 # example, in the case of _POSIX_SOURCE, which is predefined and required
20544 # on some systems where configure will not decide to define it.
20545 cat >>conftest.undefs <<\_ACEOF
20546 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20547 _ACEOF
20548
20549 # Break up conftest.defines because some shells have a limit on the size
20550 # of here documents, and old seds have small limits too (100 cmds).
20551 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20552 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20553 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20554 echo '  :' >>$CONFIG_STATUS
20555 rm -f conftest.tail
20556 while grep . conftest.defines >/dev/null
20557 do
20558   # Write a limited-size here document to $tmp/defines.sed.
20559   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20560   # Speed up: don't consider the non `#define' lines.
20561   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
20562   # Work around the forget-to-reset-the-flag bug.
20563   echo 't clr' >>$CONFIG_STATUS
20564   echo ': clr' >>$CONFIG_STATUS
20565   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20566   echo 'CEOF
20567   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20568   rm -f $tmp/in
20569   mv $tmp/out $tmp/in
20570 ' >>$CONFIG_STATUS
20571   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20572   rm -f conftest.defines
20573   mv conftest.tail conftest.defines
20574 done
20575 rm -f conftest.defines
20576 echo '  fi # grep' >>$CONFIG_STATUS
20577 echo >>$CONFIG_STATUS
20578
20579 # Break up conftest.undefs because some shells have a limit on the size
20580 # of here documents, and old seds have small limits too (100 cmds).
20581 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20582 rm -f conftest.tail
20583 while grep . conftest.undefs >/dev/null
20584 do
20585   # Write a limited-size here document to $tmp/undefs.sed.
20586   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20587   # Speed up: don't consider the non `#undef'
20588   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20589   # Work around the forget-to-reset-the-flag bug.
20590   echo 't clr' >>$CONFIG_STATUS
20591   echo ': clr' >>$CONFIG_STATUS
20592   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20593   echo 'CEOF
20594   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20595   rm -f $tmp/in
20596   mv $tmp/out $tmp/in
20597 ' >>$CONFIG_STATUS
20598   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20599   rm -f conftest.undefs
20600   mv conftest.tail conftest.undefs
20601 done
20602 rm -f conftest.undefs
20603
20604 cat >>$CONFIG_STATUS <<\_ACEOF
20605   # Let's still pretend it is `configure' which instantiates (i.e., don't
20606   # use $as_me), people would be surprised to read:
20607   #    /* config.h.  Generated by config.status.  */
20608   if test x"$ac_file" = x-; then
20609     echo "/* Generated by configure.  */" >$tmp/config.h
20610   else
20611     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20612   fi
20613   cat $tmp/in >>$tmp/config.h
20614   rm -f $tmp/in
20615   if test x"$ac_file" != x-; then
20616     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20617       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20618 echo "$as_me: $ac_file is unchanged" >&6;}
20619     else
20620       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20621 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20622          X"$ac_file" : 'X\(//\)[^/]' \| \
20623          X"$ac_file" : 'X\(//\)$' \| \
20624          X"$ac_file" : 'X\(/\)' \| \
20625          .     : '\(.\)' 2>/dev/null ||
20626 echo X"$ac_file" |
20627     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20628           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20629           /^X\(\/\/\)$/{ s//\1/; q; }
20630           /^X\(\/\).*/{ s//\1/; q; }
20631           s/.*/./; q'`
20632       { if $as_mkdir_p; then
20633     mkdir -p "$ac_dir"
20634   else
20635     as_dir="$ac_dir"
20636     as_dirs=
20637     while test ! -d "$as_dir"; do
20638       as_dirs="$as_dir $as_dirs"
20639       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20640 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20641          X"$as_dir" : 'X\(//\)[^/]' \| \
20642          X"$as_dir" : 'X\(//\)$' \| \
20643          X"$as_dir" : 'X\(/\)' \| \
20644          .     : '\(.\)' 2>/dev/null ||
20645 echo X"$as_dir" |
20646     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20647           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20648           /^X\(\/\/\)$/{ s//\1/; q; }
20649           /^X\(\/\).*/{ s//\1/; q; }
20650           s/.*/./; q'`
20651     done
20652     test ! -n "$as_dirs" || mkdir $as_dirs
20653   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20654 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20655    { (exit 1); exit 1; }; }; }
20656
20657       rm -f $ac_file
20658       mv $tmp/config.h $ac_file
20659     fi
20660   else
20661     cat $tmp/config.h
20662     rm -f $tmp/config.h
20663   fi
20664   # Run the commands associated with the file.
20665   case $ac_file in
20666     config.h ) # update the timestamp
20667 echo 'timestamp for config.h' >"./stamp-h1"
20668  ;;
20669   esac
20670 done
20671 _ACEOF
20672 cat >>$CONFIG_STATUS <<\_ACEOF
20673
20674 #
20675 # CONFIG_COMMANDS section.
20676 #
20677 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20678   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20679   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20680   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20681 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20682          X"$ac_dest" : 'X\(//\)[^/]' \| \
20683          X"$ac_dest" : 'X\(//\)$' \| \
20684          X"$ac_dest" : 'X\(/\)' \| \
20685          .     : '\(.\)' 2>/dev/null ||
20686 echo X"$ac_dest" |
20687     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20688           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20689           /^X\(\/\/\)$/{ s//\1/; q; }
20690           /^X\(\/\).*/{ s//\1/; q; }
20691           s/.*/./; q'`
20692   ac_builddir=.
20693
20694 if test "$ac_dir" != .; then
20695   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20696   # A "../" for each directory in $ac_dir_suffix.
20697   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20698 else
20699   ac_dir_suffix= ac_top_builddir=
20700 fi
20701
20702 case $srcdir in
20703   .)  # No --srcdir option.  We are building in place.
20704     ac_srcdir=.
20705     if test -z "$ac_top_builddir"; then
20706        ac_top_srcdir=.
20707     else
20708        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20709     fi ;;
20710   [\\/]* | ?:[\\/]* )  # Absolute path.
20711     ac_srcdir=$srcdir$ac_dir_suffix;
20712     ac_top_srcdir=$srcdir ;;
20713   *) # Relative path.
20714     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20715     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20716 esac
20717 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20718 # absolute.
20719 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20720 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20721 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20722 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20723
20724
20725   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20726 echo "$as_me: executing $ac_dest commands" >&6;}
20727   case $ac_dest in
20728     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20729   # Strip MF so we end up with the name of the file.
20730   mf=`echo "$mf" | sed -e 's/:.*$//'`
20731   # Check whether this is an Automake generated Makefile or not.
20732   # We used to match only the files named `Makefile.in', but
20733   # some people rename them; so instead we look at the file content.
20734   # Grep'ing the first line is not enough: some people post-process
20735   # each Makefile.in and add a new line on top of each file to say so.
20736   # So let's grep whole file.
20737   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20738     dirpart=`(dirname "$mf") 2>/dev/null ||
20739 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20740          X"$mf" : 'X\(//\)[^/]' \| \
20741          X"$mf" : 'X\(//\)$' \| \
20742          X"$mf" : 'X\(/\)' \| \
20743          .     : '\(.\)' 2>/dev/null ||
20744 echo X"$mf" |
20745     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20746           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20747           /^X\(\/\/\)$/{ s//\1/; q; }
20748           /^X\(\/\).*/{ s//\1/; q; }
20749           s/.*/./; q'`
20750   else
20751     continue
20752   fi
20753   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
20754   # Extract the definition of DEP_FILES from the Makefile without
20755   # running `make'.
20756   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
20757   test -z "$DEPDIR" && continue
20758   # When using ansi2knr, U may be empty or an underscore; expand it
20759   U=`sed -n -e '/^U = / s///p' < "$mf"`
20760   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
20761   # We invoke sed twice because it is the simplest approach to
20762   # changing $(DEPDIR) to its actual value in the expansion.
20763   for file in `sed -n -e '
20764     /^DEP_FILES = .*\\\\$/ {
20765       s/^DEP_FILES = //
20766       :loop
20767         s/\\\\$//
20768         p
20769         n
20770         /\\\\$/ b loop
20771       p
20772     }
20773     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
20774        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20775     # Make sure the directory exists.
20776     test -f "$dirpart/$file" && continue
20777     fdir=`(dirname "$file") 2>/dev/null ||
20778 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20779          X"$file" : 'X\(//\)[^/]' \| \
20780          X"$file" : 'X\(//\)$' \| \
20781          X"$file" : 'X\(/\)' \| \
20782          .     : '\(.\)' 2>/dev/null ||
20783 echo X"$file" |
20784     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20785           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20786           /^X\(\/\/\)$/{ s//\1/; q; }
20787           /^X\(\/\).*/{ s//\1/; q; }
20788           s/.*/./; q'`
20789     { if $as_mkdir_p; then
20790     mkdir -p $dirpart/$fdir
20791   else
20792     as_dir=$dirpart/$fdir
20793     as_dirs=
20794     while test ! -d "$as_dir"; do
20795       as_dirs="$as_dir $as_dirs"
20796       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20797 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20798          X"$as_dir" : 'X\(//\)[^/]' \| \
20799          X"$as_dir" : 'X\(//\)$' \| \
20800          X"$as_dir" : 'X\(/\)' \| \
20801          .     : '\(.\)' 2>/dev/null ||
20802 echo X"$as_dir" |
20803     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20804           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20805           /^X\(\/\/\)$/{ s//\1/; q; }
20806           /^X\(\/\).*/{ s//\1/; q; }
20807           s/.*/./; q'`
20808     done
20809     test ! -n "$as_dirs" || mkdir $as_dirs
20810   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20811 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20812    { (exit 1); exit 1; }; }; }
20813
20814     # echo "creating $dirpart/$file"
20815     echo '# dummy' > "$dirpart/$file"
20816   done
20817 done
20818  ;;
20819   esac
20820 done
20821 _ACEOF
20822
20823 cat >>$CONFIG_STATUS <<\_ACEOF
20824
20825 { (exit 0); exit 0; }
20826 _ACEOF
20827 chmod +x $CONFIG_STATUS
20828 ac_clean_files=$ac_clean_files_save
20829
20830
20831 # configure is writing to config.log, and then calls config.status.
20832 # config.status does its own redirection, appending to config.log.
20833 # Unfortunately, on DOS this fails, as config.log is still kept open
20834 # by configure, so config.status won't be able to write to it; its
20835 # output is simply discarded.  So we exec the FD to /dev/null,
20836 # effectively closing config.log, so it can be properly (re)opened and
20837 # appended to by config.status.  When coming back to configure, we
20838 # need to make the FD available again.
20839 if test "$no_create" != yes; then
20840   ac_cs_success=:
20841   ac_config_status_args=
20842   test "$silent" = yes &&
20843     ac_config_status_args="$ac_config_status_args --quiet"
20844   exec 5>/dev/null
20845   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20846   exec 5>>config.log
20847   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20848   # would make configure fail if this is the last instruction.
20849   $ac_cs_success || { (exit 1); exit 1; }
20850 fi
20851