]> git.sur5r.net Git - openldap/blob - contrib/ldapc++/configure
Don't return frontend as SLAPI_BACKEND, return actual backend instead
[openldap] / contrib / ldapc++ / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $echo works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<EOF
274 $*
275 EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289        echo_test_string="`eval $cmd`" &&
290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292       break
293     fi
294   done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299    test "X$echo_testing_string" = "X$echo_test_string"; then
300   :
301 else
302   # The Solaris, AIX, and Digital Unix default echo programs unquote
303   # backslashes.  This makes it impossible to quote backslashes using
304   #   echo "$something" | sed 's/\\/\\\\/g'
305   #
306   # So, first we look for a working echo in the user's PATH.
307
308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309   for dir in $PATH /usr/ucb; do
310     IFS="$lt_save_ifs"
311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       echo="$dir/echo"
316       break
317     fi
318   done
319   IFS="$lt_save_ifs"
320
321   if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       # This shell has a builtin print -r that does the trick.
327       echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329          test "X$CONFIG_SHELL" != X/bin/ksh; then
330       # If we have ksh, try running configure again with it.
331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332       export ORIGINAL_CONFIG_SHELL
333       CONFIG_SHELL=/bin/ksh
334       export CONFIG_SHELL
335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337       # Try using printf.
338       echo='printf %s\n'
339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341          test "X$echo_testing_string" = "X$echo_test_string"; then
342         # Cool, printf works
343         :
344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345            test "X$echo_testing_string" = 'X\t' &&
346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347            test "X$echo_testing_string" = "X$echo_test_string"; then
348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349         export CONFIG_SHELL
350         SHELL="$CONFIG_SHELL"
351         export SHELL
352         echo="$CONFIG_SHELL $0 --fallback-echo"
353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         echo="$CONFIG_SHELL $0 --fallback-echo"
358       else
359         # maybe with a smaller string...
360         prev=:
361
362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364           then
365             break
366           fi
367           prev="$cmd"
368         done
369
370         if test "$prev" != 'sed 50q "$0"'; then
371           echo_test_string=`eval $prev`
372           export echo_test_string
373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374         else
375           # Oops.  We lost completely, so just stick with echo.
376           echo=echo
377         fi
378       fi
379     fi
380   fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="examples/main.cpp"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 #  include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 #  include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 #  include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
466 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS'
467 ac_subst_files=''
468
469 # Initialize some variables set by options.
470 ac_init_help=
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
474 cache_file=/dev/null
475 exec_prefix=NONE
476 no_create=
477 no_recursion=
478 prefix=NONE
479 program_prefix=NONE
480 program_suffix=NONE
481 program_transform_name=s,x,x,
482 silent=
483 site=
484 srcdir=
485 verbose=
486 x_includes=NONE
487 x_libraries=NONE
488
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
506
507 ac_prev=
508 for ac_option
509 do
510   # If the previous option needs an argument, assign it.
511   if test -n "$ac_prev"; then
512     eval "$ac_prev=\$ac_option"
513     ac_prev=
514     continue
515   fi
516
517   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519   # Accept the important Cygnus configure options, so we can diagnose typos.
520
521   case $ac_option in
522
523   -bindir | --bindir | --bindi | --bind | --bin | --bi)
524     ac_prev=bindir ;;
525   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526     bindir=$ac_optarg ;;
527
528   -build | --build | --buil | --bui | --bu)
529     ac_prev=build_alias ;;
530   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531     build_alias=$ac_optarg ;;
532
533   -cache-file | --cache-file | --cache-fil | --cache-fi \
534   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535     ac_prev=cache_file ;;
536   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538     cache_file=$ac_optarg ;;
539
540   --config-cache | -C)
541     cache_file=config.cache ;;
542
543   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544     ac_prev=datadir ;;
545   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546   | --da=*)
547     datadir=$ac_optarg ;;
548
549   -disable-* | --disable-*)
550     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551     # Reject names that are not valid shell variable names.
552     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554    { (exit 1); exit 1; }; }
555     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556     eval "enable_$ac_feature=no" ;;
557
558   -enable-* | --enable-*)
559     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560     # Reject names that are not valid shell variable names.
561     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563    { (exit 1); exit 1; }; }
564     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565     case $ac_option in
566       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567       *) ac_optarg=yes ;;
568     esac
569     eval "enable_$ac_feature='$ac_optarg'" ;;
570
571   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573   | --exec | --exe | --ex)
574     ac_prev=exec_prefix ;;
575   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577   | --exec=* | --exe=* | --ex=*)
578     exec_prefix=$ac_optarg ;;
579
580   -gas | --gas | --ga | --g)
581     # Obsolete; use --with-gas.
582     with_gas=yes ;;
583
584   -help | --help | --hel | --he | -h)
585     ac_init_help=long ;;
586   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587     ac_init_help=recursive ;;
588   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589     ac_init_help=short ;;
590
591   -host | --host | --hos | --ho)
592     ac_prev=host_alias ;;
593   -host=* | --host=* | --hos=* | --ho=*)
594     host_alias=$ac_optarg ;;
595
596   -includedir | --includedir | --includedi | --included | --include \
597   | --includ | --inclu | --incl | --inc)
598     ac_prev=includedir ;;
599   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600   | --includ=* | --inclu=* | --incl=* | --inc=*)
601     includedir=$ac_optarg ;;
602
603   -infodir | --infodir | --infodi | --infod | --info | --inf)
604     ac_prev=infodir ;;
605   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606     infodir=$ac_optarg ;;
607
608   -libdir | --libdir | --libdi | --libd)
609     ac_prev=libdir ;;
610   -libdir=* | --libdir=* | --libdi=* | --libd=*)
611     libdir=$ac_optarg ;;
612
613   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614   | --libexe | --libex | --libe)
615     ac_prev=libexecdir ;;
616   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617   | --libexe=* | --libex=* | --libe=*)
618     libexecdir=$ac_optarg ;;
619
620   -localstatedir | --localstatedir | --localstatedi | --localstated \
621   | --localstate | --localstat | --localsta | --localst \
622   | --locals | --local | --loca | --loc | --lo)
623     ac_prev=localstatedir ;;
624   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627     localstatedir=$ac_optarg ;;
628
629   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630     ac_prev=mandir ;;
631   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632     mandir=$ac_optarg ;;
633
634   -nfp | --nfp | --nf)
635     # Obsolete; use --without-fp.
636     with_fp=no ;;
637
638   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639   | --no-cr | --no-c | -n)
640     no_create=yes ;;
641
642   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644     no_recursion=yes ;;
645
646   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648   | --oldin | --oldi | --old | --ol | --o)
649     ac_prev=oldincludedir ;;
650   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653     oldincludedir=$ac_optarg ;;
654
655   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656     ac_prev=prefix ;;
657   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658     prefix=$ac_optarg ;;
659
660   -program-prefix | --program-prefix | --program-prefi | --program-pref \
661   | --program-pre | --program-pr | --program-p)
662     ac_prev=program_prefix ;;
663   -program-prefix=* | --program-prefix=* | --program-prefi=* \
664   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665     program_prefix=$ac_optarg ;;
666
667   -program-suffix | --program-suffix | --program-suffi | --program-suff \
668   | --program-suf | --program-su | --program-s)
669     ac_prev=program_suffix ;;
670   -program-suffix=* | --program-suffix=* | --program-suffi=* \
671   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672     program_suffix=$ac_optarg ;;
673
674   -program-transform-name | --program-transform-name \
675   | --program-transform-nam | --program-transform-na \
676   | --program-transform-n | --program-transform- \
677   | --program-transform | --program-transfor \
678   | --program-transfo | --program-transf \
679   | --program-trans | --program-tran \
680   | --progr-tra | --program-tr | --program-t)
681     ac_prev=program_transform_name ;;
682   -program-transform-name=* | --program-transform-name=* \
683   | --program-transform-nam=* | --program-transform-na=* \
684   | --program-transform-n=* | --program-transform-=* \
685   | --program-transform=* | --program-transfor=* \
686   | --program-transfo=* | --program-transf=* \
687   | --program-trans=* | --program-tran=* \
688   | --progr-tra=* | --program-tr=* | --program-t=*)
689     program_transform_name=$ac_optarg ;;
690
691   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692   | -silent | --silent | --silen | --sile | --sil)
693     silent=yes ;;
694
695   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696     ac_prev=sbindir ;;
697   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698   | --sbi=* | --sb=*)
699     sbindir=$ac_optarg ;;
700
701   -sharedstatedir | --sharedstatedir | --sharedstatedi \
702   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703   | --sharedst | --shareds | --shared | --share | --shar \
704   | --sha | --sh)
705     ac_prev=sharedstatedir ;;
706   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709   | --sha=* | --sh=*)
710     sharedstatedir=$ac_optarg ;;
711
712   -site | --site | --sit)
713     ac_prev=site ;;
714   -site=* | --site=* | --sit=*)
715     site=$ac_optarg ;;
716
717   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718     ac_prev=srcdir ;;
719   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720     srcdir=$ac_optarg ;;
721
722   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723   | --syscon | --sysco | --sysc | --sys | --sy)
724     ac_prev=sysconfdir ;;
725   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727     sysconfdir=$ac_optarg ;;
728
729   -target | --target | --targe | --targ | --tar | --ta | --t)
730     ac_prev=target_alias ;;
731   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732     target_alias=$ac_optarg ;;
733
734   -v | -verbose | --verbose | --verbos | --verbo | --verb)
735     verbose=yes ;;
736
737   -version | --version | --versio | --versi | --vers | -V)
738     ac_init_version=: ;;
739
740   -with-* | --with-*)
741     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742     # Reject names that are not valid shell variable names.
743     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744       { echo "$as_me: error: invalid package name: $ac_package" >&2
745    { (exit 1); exit 1; }; }
746     ac_package=`echo $ac_package| sed 's/-/_/g'`
747     case $ac_option in
748       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749       *) ac_optarg=yes ;;
750     esac
751     eval "with_$ac_package='$ac_optarg'" ;;
752
753   -without-* | --without-*)
754     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755     # Reject names that are not valid shell variable names.
756     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757       { echo "$as_me: error: invalid package name: $ac_package" >&2
758    { (exit 1); exit 1; }; }
759     ac_package=`echo $ac_package | sed 's/-/_/g'`
760     eval "with_$ac_package=no" ;;
761
762   --x)
763     # Obsolete; use --with-x.
764     with_x=yes ;;
765
766   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767   | --x-incl | --x-inc | --x-in | --x-i)
768     ac_prev=x_includes ;;
769   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771     x_includes=$ac_optarg ;;
772
773   -x-libraries | --x-libraries | --x-librarie | --x-librari \
774   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775     ac_prev=x_libraries ;;
776   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778     x_libraries=$ac_optarg ;;
779
780   -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782    { (exit 1); exit 1; }; }
783     ;;
784
785   *=*)
786     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787     # Reject names that are not valid shell variable names.
788     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790    { (exit 1); exit 1; }; }
791     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792     eval "$ac_envvar='$ac_optarg'"
793     export $ac_envvar ;;
794
795   *)
796     # FIXME: should be removed in autoconf 3.0.
797     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801     ;;
802
803   esac
804 done
805
806 if test -n "$ac_prev"; then
807   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808   { echo "$as_me: error: missing argument to $ac_option" >&2
809    { (exit 1); exit 1; }; }
810 fi
811
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
814 do
815   eval ac_val=$`echo $ac_var`
816   case $ac_val in
817     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819    { (exit 1); exit 1; }; };;
820   esac
821 done
822
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825               localstatedir libdir includedir oldincludedir infodir mandir
826 do
827   eval ac_val=$`echo $ac_var`
828   case $ac_val in
829     [\\/$]* | ?:[\\/]* ) ;;
830     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831    { (exit 1); exit 1; }; };;
832   esac
833 done
834
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
838 build=$build_alias
839 host=$host_alias
840 target=$target_alias
841
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844   if test "x$build_alias" = x; then
845     cross_compiling=maybe
846     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847     If a cross compiler is detected then cross compile mode will be used." >&2
848   elif test "x$build_alias" != "x$host_alias"; then
849     cross_compiling=yes
850   fi
851 fi
852
853 ac_tool_prefix=
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856 test "$silent" = yes && exec 6>/dev/null
857
858
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861   ac_srcdir_defaulted=yes
862   # Try the directory containing this script, then its parent.
863   ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865          X"$0" : 'X\(//\)[^/]' \| \
866          X"$0" : 'X\(//\)$' \| \
867          X"$0" : 'X\(/\)' \| \
868          .     : '\(.\)' 2>/dev/null ||
869 echo X"$0" |
870     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872           /^X\(\/\/\)$/{ s//\1/; q; }
873           /^X\(\/\).*/{ s//\1/; q; }
874           s/.*/./; q'`
875   srcdir=$ac_confdir
876   if test ! -r $srcdir/$ac_unique_file; then
877     srcdir=..
878   fi
879 else
880   ac_srcdir_defaulted=no
881 fi
882 if test ! -r $srcdir/$ac_unique_file; then
883   if test "$ac_srcdir_defaulted" = yes; then
884     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885    { (exit 1); exit 1; }; }
886   else
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888    { (exit 1); exit 1; }; }
889   fi
890 fi
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893    { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CXX_set=${CXX+set}
908 ac_env_CXX_value=$CXX
909 ac_cv_env_CXX_set=${CXX+set}
910 ac_cv_env_CXX_value=$CXX
911 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
912 ac_env_CXXFLAGS_value=$CXXFLAGS
913 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
914 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CC_set=${CC+set}
924 ac_env_CC_value=$CC
925 ac_cv_env_CC_set=${CC+set}
926 ac_cv_env_CC_value=$CC
927 ac_env_CFLAGS_set=${CFLAGS+set}
928 ac_env_CFLAGS_value=$CFLAGS
929 ac_cv_env_CFLAGS_set=${CFLAGS+set}
930 ac_cv_env_CFLAGS_value=$CFLAGS
931 ac_env_CPP_set=${CPP+set}
932 ac_env_CPP_value=$CPP
933 ac_cv_env_CPP_set=${CPP+set}
934 ac_cv_env_CPP_value=$CPP
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
947
948 #
949 # Report the --help message.
950 #
951 if test "$ac_init_help" = "long"; then
952   # Omit some internal or obsolete options to make the list less imposing.
953   # This message is too long to be a string in the A/UX 3.1 sh.
954   cat <<_ACEOF
955 \`configure' configures this package to adapt to many kinds of systems.
956
957 Usage: $0 [OPTION]... [VAR=VALUE]...
958
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE.  See below for descriptions of some of the useful variables.
961
962 Defaults for the options are specified in brackets.
963
964 Configuration:
965   -h, --help              display this help and exit
966       --help=short        display options specific to this package
967       --help=recursive    display the short help of all the included packages
968   -V, --version           display version information and exit
969   -q, --quiet, --silent   do not print \`checking...' messages
970       --cache-file=FILE   cache test results in FILE [disabled]
971   -C, --config-cache      alias for \`--cache-file=config.cache'
972   -n, --no-create         do not create output files
973       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
974
975 _ACEOF
976
977   cat <<_ACEOF
978 Installation directories:
979   --prefix=PREFIX         install architecture-independent files in PREFIX
980                           [$ac_default_prefix]
981   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
982                           [PREFIX]
983
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
988
989 For better control, use the options below.
990
991 Fine tuning of the installation directories:
992   --bindir=DIR           user executables [EPREFIX/bin]
993   --sbindir=DIR          system admin executables [EPREFIX/sbin]
994   --libexecdir=DIR       program executables [EPREFIX/libexec]
995   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
996   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
997   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
998   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
999   --libdir=DIR           object code libraries [EPREFIX/lib]
1000   --includedir=DIR       C header files [PREFIX/include]
1001   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1002   --infodir=DIR          info documentation [PREFIX/info]
1003   --mandir=DIR           man documentation [PREFIX/man]
1004 _ACEOF
1005
1006   cat <<\_ACEOF
1007
1008 Program names:
1009   --program-prefix=PREFIX            prepend PREFIX to installed program names
1010   --program-suffix=SUFFIX            append SUFFIX to installed program names
1011   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1012
1013 System types:
1014   --build=BUILD     configure for building on BUILD [guessed]
1015   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1016 _ACEOF
1017 fi
1018
1019 if test -n "$ac_init_help"; then
1020
1021   cat <<\_ACEOF
1022
1023 Optional Features:
1024   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1026   --disable-dependency-tracking  speeds up one-time build
1027   --enable-dependency-tracking   do not reject slow dependency extractors
1028   --enable-shared[=PKGS]
1029                           build shared libraries [default=yes]
1030   --enable-static[=PKGS]
1031                           build static libraries [default=yes]
1032   --enable-fast-install[=PKGS]
1033                           optimize for fast installation [default=yes]
1034   --disable-libtool-lock  avoid locking (might break parallel builds)
1035 --enable-debug
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   --with-libldap=DIR          Path to the libldap library /usr/local/lib
1046   --with-ldap-includes=DIR    Path to the libldap include files /usr/local/include
1047
1048 Some influential environment variables:
1049   CXX         C++ compiler command
1050   CXXFLAGS    C++ compiler flags
1051   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1052               nonstandard directory <lib dir>
1053   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1054               headers in a nonstandard directory <include dir>
1055   CC          C compiler command
1056   CFLAGS      C compiler flags
1057   CPP         C preprocessor
1058   CXXCPP      C++ preprocessor
1059   F77         Fortran 77 compiler command
1060   FFLAGS      Fortran 77 compiler flags
1061
1062 Use these variables to override the choices made by `configure' or to help
1063 it to find libraries and programs with nonstandard names/locations.
1064
1065 _ACEOF
1066 fi
1067
1068 if test "$ac_init_help" = "recursive"; then
1069   # If there are subdirs, report their specific --help.
1070   ac_popdir=`pwd`
1071   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1072     test -d $ac_dir || continue
1073     ac_builddir=.
1074
1075 if test "$ac_dir" != .; then
1076   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1077   # A "../" for each directory in $ac_dir_suffix.
1078   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1079 else
1080   ac_dir_suffix= ac_top_builddir=
1081 fi
1082
1083 case $srcdir in
1084   .)  # No --srcdir option.  We are building in place.
1085     ac_srcdir=.
1086     if test -z "$ac_top_builddir"; then
1087        ac_top_srcdir=.
1088     else
1089        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1090     fi ;;
1091   [\\/]* | ?:[\\/]* )  # Absolute path.
1092     ac_srcdir=$srcdir$ac_dir_suffix;
1093     ac_top_srcdir=$srcdir ;;
1094   *) # Relative path.
1095     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1096     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1097 esac
1098
1099 # Do not use `cd foo && pwd` to compute absolute paths, because
1100 # the directories may not exist.
1101 case `pwd` in
1102 .) ac_abs_builddir="$ac_dir";;
1103 *)
1104   case "$ac_dir" in
1105   .) ac_abs_builddir=`pwd`;;
1106   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1107   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1108   esac;;
1109 esac
1110 case $ac_abs_builddir in
1111 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1112 *)
1113   case ${ac_top_builddir}. in
1114   .) ac_abs_top_builddir=$ac_abs_builddir;;
1115   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1116   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1117   esac;;
1118 esac
1119 case $ac_abs_builddir in
1120 .) ac_abs_srcdir=$ac_srcdir;;
1121 *)
1122   case $ac_srcdir in
1123   .) ac_abs_srcdir=$ac_abs_builddir;;
1124   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1125   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1126   esac;;
1127 esac
1128 case $ac_abs_builddir in
1129 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1130 *)
1131   case $ac_top_srcdir in
1132   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1133   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1134   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1135   esac;;
1136 esac
1137
1138     cd $ac_dir
1139     # Check for guested configure; otherwise get Cygnus style configure.
1140     if test -f $ac_srcdir/configure.gnu; then
1141       echo
1142       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1143     elif test -f $ac_srcdir/configure; then
1144       echo
1145       $SHELL $ac_srcdir/configure  --help=recursive
1146     elif test -f $ac_srcdir/configure.ac ||
1147            test -f $ac_srcdir/configure.in; then
1148       echo
1149       $ac_configure --help
1150     else
1151       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1152     fi
1153     cd $ac_popdir
1154   done
1155 fi
1156
1157 test -n "$ac_init_help" && exit 0
1158 if $ac_init_version; then
1159   cat <<\_ACEOF
1160
1161 Copyright (C) 2003 Free Software Foundation, Inc.
1162 This configure script is free software; the Free Software Foundation
1163 gives unlimited permission to copy, distribute and modify it.
1164 _ACEOF
1165   exit 0
1166 fi
1167 exec 5>config.log
1168 cat >&5 <<_ACEOF
1169 This file contains any messages produced by compilers while
1170 running configure, to aid debugging if configure makes a mistake.
1171
1172 It was created by $as_me, which was
1173 generated by GNU Autoconf 2.59.  Invocation command line was
1174
1175   $ $0 $@
1176
1177 _ACEOF
1178 {
1179 cat <<_ASUNAME
1180 ## --------- ##
1181 ## Platform. ##
1182 ## --------- ##
1183
1184 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1185 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1186 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1187 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1188 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1189
1190 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1191 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1192
1193 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1194 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1195 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1196 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1197 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1198 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1199 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1200
1201 _ASUNAME
1202
1203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1204 for as_dir in $PATH
1205 do
1206   IFS=$as_save_IFS
1207   test -z "$as_dir" && as_dir=.
1208   echo "PATH: $as_dir"
1209 done
1210
1211 } >&5
1212
1213 cat >&5 <<_ACEOF
1214
1215
1216 ## ----------- ##
1217 ## Core tests. ##
1218 ## ----------- ##
1219
1220 _ACEOF
1221
1222
1223 # Keep a trace of the command line.
1224 # Strip out --no-create and --no-recursion so they do not pile up.
1225 # Strip out --silent because we don't want to record it for future runs.
1226 # Also quote any args containing shell meta-characters.
1227 # Make two passes to allow for proper duplicate-argument suppression.
1228 ac_configure_args=
1229 ac_configure_args0=
1230 ac_configure_args1=
1231 ac_sep=
1232 ac_must_keep_next=false
1233 for ac_pass in 1 2
1234 do
1235   for ac_arg
1236   do
1237     case $ac_arg in
1238     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1239     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240     | -silent | --silent | --silen | --sile | --sil)
1241       continue ;;
1242     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1243       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1244     esac
1245     case $ac_pass in
1246     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1247     2)
1248       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1249       if test $ac_must_keep_next = true; then
1250         ac_must_keep_next=false # Got value, back to normal.
1251       else
1252         case $ac_arg in
1253           *=* | --config-cache | -C | -disable-* | --disable-* \
1254           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1255           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1256           | -with-* | --with-* | -without-* | --without-* | --x)
1257             case "$ac_configure_args0 " in
1258               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1259             esac
1260             ;;
1261           -* ) ac_must_keep_next=true ;;
1262         esac
1263       fi
1264       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1265       # Get rid of the leading space.
1266       ac_sep=" "
1267       ;;
1268     esac
1269   done
1270 done
1271 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1272 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1273
1274 # When interrupted or exit'd, cleanup temporary files, and complete
1275 # config.log.  We remove comments because anyway the quotes in there
1276 # would cause problems or look ugly.
1277 # WARNING: Be sure not to use single quotes in there, as some shells,
1278 # such as our DU 5.0 friend, will then `close' the trap.
1279 trap 'exit_status=$?
1280   # Save into config.log some information that might help in debugging.
1281   {
1282     echo
1283
1284     cat <<\_ASBOX
1285 ## ---------------- ##
1286 ## Cache variables. ##
1287 ## ---------------- ##
1288 _ASBOX
1289     echo
1290     # The following way of writing the cache mishandles newlines in values,
1291 {
1292   (set) 2>&1 |
1293     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1294     *ac_space=\ *)
1295       sed -n \
1296         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1297           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1298       ;;
1299     *)
1300       sed -n \
1301         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1302       ;;
1303     esac;
1304 }
1305     echo
1306
1307     cat <<\_ASBOX
1308 ## ----------------- ##
1309 ## Output variables. ##
1310 ## ----------------- ##
1311 _ASBOX
1312     echo
1313     for ac_var in $ac_subst_vars
1314     do
1315       eval ac_val=$`echo $ac_var`
1316       echo "$ac_var='"'"'$ac_val'"'"'"
1317     done | sort
1318     echo
1319
1320     if test -n "$ac_subst_files"; then
1321       cat <<\_ASBOX
1322 ## ------------- ##
1323 ## Output files. ##
1324 ## ------------- ##
1325 _ASBOX
1326       echo
1327       for ac_var in $ac_subst_files
1328       do
1329         eval ac_val=$`echo $ac_var`
1330         echo "$ac_var='"'"'$ac_val'"'"'"
1331       done | sort
1332       echo
1333     fi
1334
1335     if test -s confdefs.h; then
1336       cat <<\_ASBOX
1337 ## ----------- ##
1338 ## confdefs.h. ##
1339 ## ----------- ##
1340 _ASBOX
1341       echo
1342       sed "/^$/d" confdefs.h | sort
1343       echo
1344     fi
1345     test "$ac_signal" != 0 &&
1346       echo "$as_me: caught signal $ac_signal"
1347     echo "$as_me: exit $exit_status"
1348   } >&5
1349   rm -f core *.core &&
1350   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1351     exit $exit_status
1352      ' 0
1353 for ac_signal in 1 2 13 15; do
1354   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1355 done
1356 ac_signal=0
1357
1358 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1359 rm -rf conftest* confdefs.h
1360 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1361 echo >confdefs.h
1362
1363 # Predefined preprocessor variables.
1364
1365 cat >>confdefs.h <<_ACEOF
1366 #define PACKAGE_NAME "$PACKAGE_NAME"
1367 _ACEOF
1368
1369
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1372 _ACEOF
1373
1374
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1377 _ACEOF
1378
1379
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_STRING "$PACKAGE_STRING"
1382 _ACEOF
1383
1384
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1387 _ACEOF
1388
1389
1390 # Let the site file select an alternate cache file if it wants to.
1391 # Prefer explicitly selected file to automatically selected ones.
1392 if test -z "$CONFIG_SITE"; then
1393   if test "x$prefix" != xNONE; then
1394     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1395   else
1396     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1397   fi
1398 fi
1399 for ac_site_file in $CONFIG_SITE; do
1400   if test -r "$ac_site_file"; then
1401     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1402 echo "$as_me: loading site script $ac_site_file" >&6;}
1403     sed 's/^/| /' "$ac_site_file" >&5
1404     . "$ac_site_file"
1405   fi
1406 done
1407
1408 if test -r "$cache_file"; then
1409   # Some versions of bash will fail to source /dev/null (special
1410   # files actually), so we avoid doing that.
1411   if test -f "$cache_file"; then
1412     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1413 echo "$as_me: loading cache $cache_file" >&6;}
1414     case $cache_file in
1415       [\\/]* | ?:[\\/]* ) . $cache_file;;
1416       *)                      . ./$cache_file;;
1417     esac
1418   fi
1419 else
1420   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1421 echo "$as_me: creating cache $cache_file" >&6;}
1422   >$cache_file
1423 fi
1424
1425 # Check that the precious variables saved in the cache have kept the same
1426 # value.
1427 ac_cache_corrupted=false
1428 for ac_var in `(set) 2>&1 |
1429                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1430   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1431   eval ac_new_set=\$ac_env_${ac_var}_set
1432   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1433   eval ac_new_val="\$ac_env_${ac_var}_value"
1434   case $ac_old_set,$ac_new_set in
1435     set,)
1436       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1437 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1438       ac_cache_corrupted=: ;;
1439     ,set)
1440       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1441 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1442       ac_cache_corrupted=: ;;
1443     ,);;
1444     *)
1445       if test "x$ac_old_val" != "x$ac_new_val"; then
1446         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1447 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1448         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1449 echo "$as_me:   former value:  $ac_old_val" >&2;}
1450         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1451 echo "$as_me:   current value: $ac_new_val" >&2;}
1452         ac_cache_corrupted=:
1453       fi;;
1454   esac
1455   # Pass precious variables to config.status.
1456   if test "$ac_new_set" = set; then
1457     case $ac_new_val in
1458     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1459       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1460     *) ac_arg=$ac_var=$ac_new_val ;;
1461     esac
1462     case " $ac_configure_args " in
1463       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1464       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1465     esac
1466   fi
1467 done
1468 if $ac_cache_corrupted; then
1469   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1470 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1471   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1472 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1473    { (exit 1); exit 1; }; }
1474 fi
1475
1476 ac_ext=c
1477 ac_cpp='$CPP $CPPFLAGS'
1478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500 am__api_version="1.9"
1501 ac_aux_dir=
1502 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1503   if test -f $ac_dir/install-sh; then
1504     ac_aux_dir=$ac_dir
1505     ac_install_sh="$ac_aux_dir/install-sh -c"
1506     break
1507   elif test -f $ac_dir/install.sh; then
1508     ac_aux_dir=$ac_dir
1509     ac_install_sh="$ac_aux_dir/install.sh -c"
1510     break
1511   elif test -f $ac_dir/shtool; then
1512     ac_aux_dir=$ac_dir
1513     ac_install_sh="$ac_aux_dir/shtool install -c"
1514     break
1515   fi
1516 done
1517 if test -z "$ac_aux_dir"; then
1518   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1519 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1520    { (exit 1); exit 1; }; }
1521 fi
1522 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1523 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1524 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1525
1526 # Find a good install program.  We prefer a C program (faster),
1527 # so one script is as good as another.  But avoid the broken or
1528 # incompatible versions:
1529 # SysV /etc/install, /usr/sbin/install
1530 # SunOS /usr/etc/install
1531 # IRIX /sbin/install
1532 # AIX /bin/install
1533 # AmigaOS /C/install, which installs bootblocks on floppy discs
1534 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1535 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1536 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1537 # OS/2's system install, which has a completely different semantic
1538 # ./install, which can be erroneously created by make from ./install.sh.
1539 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1540 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1541 if test -z "$INSTALL"; then
1542 if test "${ac_cv_path_install+set}" = set; then
1543   echo $ECHO_N "(cached) $ECHO_C" >&6
1544 else
1545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1546 for as_dir in $PATH
1547 do
1548   IFS=$as_save_IFS
1549   test -z "$as_dir" && as_dir=.
1550   # Account for people who put trailing slashes in PATH elements.
1551 case $as_dir/ in
1552   ./ | .// | /cC/* | \
1553   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1554   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1555   /usr/ucb/* ) ;;
1556   *)
1557     # OSF1 and SCO ODT 3.0 have their own names for install.
1558     # Don't use installbsd from OSF since it installs stuff as root
1559     # by default.
1560     for ac_prog in ginstall scoinst install; do
1561       for ac_exec_ext in '' $ac_executable_extensions; do
1562         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1563           if test $ac_prog = install &&
1564             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1565             # AIX install.  It has an incompatible calling convention.
1566             :
1567           elif test $ac_prog = install &&
1568             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1569             # program-specific install script used by HP pwplus--don't use.
1570             :
1571           else
1572             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1573             break 3
1574           fi
1575         fi
1576       done
1577     done
1578     ;;
1579 esac
1580 done
1581
1582
1583 fi
1584   if test "${ac_cv_path_install+set}" = set; then
1585     INSTALL=$ac_cv_path_install
1586   else
1587     # As a last resort, use the slow shell script.  We don't cache a
1588     # path for INSTALL within a source directory, because that will
1589     # break other packages using the cache if that directory is
1590     # removed, or if the path is relative.
1591     INSTALL=$ac_install_sh
1592   fi
1593 fi
1594 echo "$as_me:$LINENO: result: $INSTALL" >&5
1595 echo "${ECHO_T}$INSTALL" >&6
1596
1597 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1598 # It thinks the first close brace ends the variable substitution.
1599 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1600
1601 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1602
1603 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1604
1605 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1606 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1607 # Just in case
1608 sleep 1
1609 echo timestamp > conftest.file
1610 # Do `set' in a subshell so we don't clobber the current shell's
1611 # arguments.  Must try -L first in case configure is actually a
1612 # symlink; some systems play weird games with the mod time of symlinks
1613 # (eg FreeBSD returns the mod time of the symlink's containing
1614 # directory).
1615 if (
1616    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1617    if test "$*" = "X"; then
1618       # -L didn't work.
1619       set X `ls -t $srcdir/configure conftest.file`
1620    fi
1621    rm -f conftest.file
1622    if test "$*" != "X $srcdir/configure conftest.file" \
1623       && test "$*" != "X conftest.file $srcdir/configure"; then
1624
1625       # If neither matched, then we have a broken ls.  This can happen
1626       # if, for instance, CONFIG_SHELL is bash and it inherits a
1627       # broken ls alias from the environment.  This has actually
1628       # happened.  Such a system could not be considered "sane".
1629       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1630 alias in your environment" >&5
1631 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1632 alias in your environment" >&2;}
1633    { (exit 1); exit 1; }; }
1634    fi
1635
1636    test "$2" = conftest.file
1637    )
1638 then
1639    # Ok.
1640    :
1641 else
1642    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1643 Check your system clock" >&5
1644 echo "$as_me: error: newly created file is older than distributed files!
1645 Check your system clock" >&2;}
1646    { (exit 1); exit 1; }; }
1647 fi
1648 echo "$as_me:$LINENO: result: yes" >&5
1649 echo "${ECHO_T}yes" >&6
1650 test "$program_prefix" != NONE &&
1651   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1652 # Use a double $ so make ignores it.
1653 test "$program_suffix" != NONE &&
1654   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1655 # Double any \ or $.  echo might interpret backslashes.
1656 # By default was `s,x,x', remove it if useless.
1657 cat <<\_ACEOF >conftest.sed
1658 s/[\\$]/&&/g;s/;s,x,x,$//
1659 _ACEOF
1660 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1661 rm conftest.sed
1662
1663 # expand $ac_aux_dir to an absolute path
1664 am_aux_dir=`cd $ac_aux_dir && pwd`
1665
1666 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1667 # Use eval to expand $SHELL
1668 if eval "$MISSING --run true"; then
1669   am_missing_run="$MISSING --run "
1670 else
1671   am_missing_run=
1672   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1673 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1674 fi
1675
1676 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1677   # We used to keeping the `.' as first argument, in order to
1678   # allow $(mkdir_p) to be used without argument.  As in
1679   #   $(mkdir_p) $(somedir)
1680   # where $(somedir) is conditionally defined.  However this is wrong
1681   # for two reasons:
1682   #  1. if the package is installed by a user who cannot write `.'
1683   #     make install will fail,
1684   #  2. the above comment should most certainly read
1685   #     $(mkdir_p) $(DESTDIR)$(somedir)
1686   #     so it does not work when $(somedir) is undefined and
1687   #     $(DESTDIR) is not.
1688   #  To support the latter case, we have to write
1689   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1690   #  so the `.' trick is pointless.
1691   mkdir_p='mkdir -p --'
1692 else
1693   # On NextStep and OpenStep, the `mkdir' command does not
1694   # recognize any option.  It will interpret all options as
1695   # directories to create, and then abort because `.' already
1696   # exists.
1697   for d in ./-p ./--version;
1698   do
1699     test -d $d && rmdir $d
1700   done
1701   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1702   if test -f "$ac_aux_dir/mkinstalldirs"; then
1703     mkdir_p='$(mkinstalldirs)'
1704   else
1705     mkdir_p='$(install_sh) -d'
1706   fi
1707 fi
1708
1709 for ac_prog in gawk mawk nawk awk
1710 do
1711   # Extract the first word of "$ac_prog", so it can be a program name with args.
1712 set dummy $ac_prog; ac_word=$2
1713 echo "$as_me:$LINENO: checking for $ac_word" >&5
1714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1715 if test "${ac_cv_prog_AWK+set}" = set; then
1716   echo $ECHO_N "(cached) $ECHO_C" >&6
1717 else
1718   if test -n "$AWK"; then
1719   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1720 else
1721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722 for as_dir in $PATH
1723 do
1724   IFS=$as_save_IFS
1725   test -z "$as_dir" && as_dir=.
1726   for ac_exec_ext in '' $ac_executable_extensions; do
1727   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1728     ac_cv_prog_AWK="$ac_prog"
1729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1730     break 2
1731   fi
1732 done
1733 done
1734
1735 fi
1736 fi
1737 AWK=$ac_cv_prog_AWK
1738 if test -n "$AWK"; then
1739   echo "$as_me:$LINENO: result: $AWK" >&5
1740 echo "${ECHO_T}$AWK" >&6
1741 else
1742   echo "$as_me:$LINENO: result: no" >&5
1743 echo "${ECHO_T}no" >&6
1744 fi
1745
1746   test -n "$AWK" && break
1747 done
1748
1749 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1750 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1751 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1752 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1753   echo $ECHO_N "(cached) $ECHO_C" >&6
1754 else
1755   cat >conftest.make <<\_ACEOF
1756 all:
1757         @echo 'ac_maketemp="$(MAKE)"'
1758 _ACEOF
1759 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1760 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1761 if test -n "$ac_maketemp"; then
1762   eval ac_cv_prog_make_${ac_make}_set=yes
1763 else
1764   eval ac_cv_prog_make_${ac_make}_set=no
1765 fi
1766 rm -f conftest.make
1767 fi
1768 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1769   echo "$as_me:$LINENO: result: yes" >&5
1770 echo "${ECHO_T}yes" >&6
1771   SET_MAKE=
1772 else
1773   echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1775   SET_MAKE="MAKE=${MAKE-make}"
1776 fi
1777
1778 rm -rf .tst 2>/dev/null
1779 mkdir .tst 2>/dev/null
1780 if test -d .tst; then
1781   am__leading_dot=.
1782 else
1783   am__leading_dot=_
1784 fi
1785 rmdir .tst 2>/dev/null
1786
1787 # test to see if srcdir already configured
1788 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1789    test -f $srcdir/config.status; then
1790   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1791 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1792    { (exit 1); exit 1; }; }
1793 fi
1794
1795 # test whether we have cygpath
1796 if test -z "$CYGPATH_W"; then
1797   if (cygpath --version) >/dev/null 2>/dev/null; then
1798     CYGPATH_W='cygpath -w'
1799   else
1800     CYGPATH_W=echo
1801   fi
1802 fi
1803
1804
1805 # Define the identity of the package.
1806  PACKAGE=main
1807  VERSION=0.0.1
1808
1809
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE "$PACKAGE"
1812 _ACEOF
1813
1814
1815 cat >>confdefs.h <<_ACEOF
1816 #define VERSION "$VERSION"
1817 _ACEOF
1818
1819 # Some tools Automake needs.
1820
1821 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1822
1823
1824 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1825
1826
1827 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1828
1829
1830 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1831
1832
1833 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1834
1835 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1836
1837 # Installed binaries are usually stripped using `strip' when the user
1838 # run `make install-strip'.  However `strip' might not be the right
1839 # tool to use in cross-compilation environments, therefore Automake
1840 # will honor the `STRIP' environment variable to overrule this program.
1841 if test "$cross_compiling" != no; then
1842   if test -n "$ac_tool_prefix"; then
1843   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1844 set dummy ${ac_tool_prefix}strip; ac_word=$2
1845 echo "$as_me:$LINENO: checking for $ac_word" >&5
1846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847 if test "${ac_cv_prog_STRIP+set}" = set; then
1848   echo $ECHO_N "(cached) $ECHO_C" >&6
1849 else
1850   if test -n "$STRIP"; then
1851   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1852 else
1853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854 for as_dir in $PATH
1855 do
1856   IFS=$as_save_IFS
1857   test -z "$as_dir" && as_dir=.
1858   for ac_exec_ext in '' $ac_executable_extensions; do
1859   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862     break 2
1863   fi
1864 done
1865 done
1866
1867 fi
1868 fi
1869 STRIP=$ac_cv_prog_STRIP
1870 if test -n "$STRIP"; then
1871   echo "$as_me:$LINENO: result: $STRIP" >&5
1872 echo "${ECHO_T}$STRIP" >&6
1873 else
1874   echo "$as_me:$LINENO: result: no" >&5
1875 echo "${ECHO_T}no" >&6
1876 fi
1877
1878 fi
1879 if test -z "$ac_cv_prog_STRIP"; then
1880   ac_ct_STRIP=$STRIP
1881   # Extract the first word of "strip", so it can be a program name with args.
1882 set dummy strip; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1886   echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888   if test -n "$ac_ct_STRIP"; then
1889   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1890 else
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1893 do
1894   IFS=$as_save_IFS
1895   test -z "$as_dir" && as_dir=.
1896   for ac_exec_ext in '' $ac_executable_extensions; do
1897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898     ac_cv_prog_ac_ct_STRIP="strip"
1899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900     break 2
1901   fi
1902 done
1903 done
1904
1905   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1906 fi
1907 fi
1908 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1909 if test -n "$ac_ct_STRIP"; then
1910   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1911 echo "${ECHO_T}$ac_ct_STRIP" >&6
1912 else
1913   echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1915 fi
1916
1917   STRIP=$ac_ct_STRIP
1918 else
1919   STRIP="$ac_cv_prog_STRIP"
1920 fi
1921
1922 fi
1923 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1924
1925 # We need awk for the "check" target.  The system "awk" is bad on
1926 # some platforms.
1927 # Always define AMTAR for backward compatibility.
1928
1929 AMTAR=${AMTAR-"${am_missing_run}tar"}
1930
1931 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1932
1933
1934
1935
1936
1937           ac_config_headers="$ac_config_headers src/config.h"
1938
1939
1940
1941 # Find a good install program.  We prefer a C program (faster),
1942 # so one script is as good as another.  But avoid the broken or
1943 # incompatible versions:
1944 # SysV /etc/install, /usr/sbin/install
1945 # SunOS /usr/etc/install
1946 # IRIX /sbin/install
1947 # AIX /bin/install
1948 # AmigaOS /C/install, which installs bootblocks on floppy discs
1949 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1950 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1951 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1952 # OS/2's system install, which has a completely different semantic
1953 # ./install, which can be erroneously created by make from ./install.sh.
1954 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1955 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1956 if test -z "$INSTALL"; then
1957 if test "${ac_cv_path_install+set}" = set; then
1958   echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961 for as_dir in $PATH
1962 do
1963   IFS=$as_save_IFS
1964   test -z "$as_dir" && as_dir=.
1965   # Account for people who put trailing slashes in PATH elements.
1966 case $as_dir/ in
1967   ./ | .// | /cC/* | \
1968   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1969   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1970   /usr/ucb/* ) ;;
1971   *)
1972     # OSF1 and SCO ODT 3.0 have their own names for install.
1973     # Don't use installbsd from OSF since it installs stuff as root
1974     # by default.
1975     for ac_prog in ginstall scoinst install; do
1976       for ac_exec_ext in '' $ac_executable_extensions; do
1977         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1978           if test $ac_prog = install &&
1979             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1980             # AIX install.  It has an incompatible calling convention.
1981             :
1982           elif test $ac_prog = install &&
1983             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1984             # program-specific install script used by HP pwplus--don't use.
1985             :
1986           else
1987             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1988             break 3
1989           fi
1990         fi
1991       done
1992     done
1993     ;;
1994 esac
1995 done
1996
1997
1998 fi
1999   if test "${ac_cv_path_install+set}" = set; then
2000     INSTALL=$ac_cv_path_install
2001   else
2002     # As a last resort, use the slow shell script.  We don't cache a
2003     # path for INSTALL within a source directory, because that will
2004     # break other packages using the cache if that directory is
2005     # removed, or if the path is relative.
2006     INSTALL=$ac_install_sh
2007   fi
2008 fi
2009 echo "$as_me:$LINENO: result: $INSTALL" >&5
2010 echo "${ECHO_T}$INSTALL" >&6
2011
2012 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2013 # It thinks the first close brace ends the variable substitution.
2014 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2015
2016 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2017
2018 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2019
2020 ac_ext=cc
2021 ac_cpp='$CXXCPP $CPPFLAGS'
2022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2025 if test -n "$ac_tool_prefix"; then
2026   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2027   do
2028     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2029 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2030 echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032 if test "${ac_cv_prog_CXX+set}" = set; then
2033   echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035   if test -n "$CXX"; then
2036   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2037 else
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 for as_dir in $PATH
2040 do
2041   IFS=$as_save_IFS
2042   test -z "$as_dir" && as_dir=.
2043   for ac_exec_ext in '' $ac_executable_extensions; do
2044   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047     break 2
2048   fi
2049 done
2050 done
2051
2052 fi
2053 fi
2054 CXX=$ac_cv_prog_CXX
2055 if test -n "$CXX"; then
2056   echo "$as_me:$LINENO: result: $CXX" >&5
2057 echo "${ECHO_T}$CXX" >&6
2058 else
2059   echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6
2061 fi
2062
2063     test -n "$CXX" && break
2064   done
2065 fi
2066 if test -z "$CXX"; then
2067   ac_ct_CXX=$CXX
2068   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2069 do
2070   # Extract the first word of "$ac_prog", so it can be a program name with args.
2071 set dummy $ac_prog; ac_word=$2
2072 echo "$as_me:$LINENO: checking for $ac_word" >&5
2073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2074 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2075   echo $ECHO_N "(cached) $ECHO_C" >&6
2076 else
2077   if test -n "$ac_ct_CXX"; then
2078   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2079 else
2080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 for as_dir in $PATH
2082 do
2083   IFS=$as_save_IFS
2084   test -z "$as_dir" && as_dir=.
2085   for ac_exec_ext in '' $ac_executable_extensions; do
2086   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2087     ac_cv_prog_ac_ct_CXX="$ac_prog"
2088     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089     break 2
2090   fi
2091 done
2092 done
2093
2094 fi
2095 fi
2096 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2097 if test -n "$ac_ct_CXX"; then
2098   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2099 echo "${ECHO_T}$ac_ct_CXX" >&6
2100 else
2101   echo "$as_me:$LINENO: result: no" >&5
2102 echo "${ECHO_T}no" >&6
2103 fi
2104
2105   test -n "$ac_ct_CXX" && break
2106 done
2107 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2108
2109   CXX=$ac_ct_CXX
2110 fi
2111
2112
2113 # Provide some information about the compiler.
2114 echo "$as_me:$LINENO:" \
2115      "checking for C++ compiler version" >&5
2116 ac_compiler=`set X $ac_compile; echo $2`
2117 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2118   (eval $ac_compiler --version </dev/null >&5) 2>&5
2119   ac_status=$?
2120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121   (exit $ac_status); }
2122 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2123   (eval $ac_compiler -v </dev/null >&5) 2>&5
2124   ac_status=$?
2125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126   (exit $ac_status); }
2127 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2128   (eval $ac_compiler -V </dev/null >&5) 2>&5
2129   ac_status=$?
2130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131   (exit $ac_status); }
2132
2133 cat >conftest.$ac_ext <<_ACEOF
2134 /* confdefs.h.  */
2135 _ACEOF
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h.  */
2139
2140 int
2141 main ()
2142 {
2143
2144   ;
2145   return 0;
2146 }
2147 _ACEOF
2148 ac_clean_files_save=$ac_clean_files
2149 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2150 # Try to create an executable without -o first, disregard a.out.
2151 # It will help us diagnose broken compilers, and finding out an intuition
2152 # of exeext.
2153 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2154 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2155 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2156 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2157   (eval $ac_link_default) 2>&5
2158   ac_status=$?
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); }; then
2161   # Find the output, starting from the most likely.  This scheme is
2162 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2163 # resort.
2164
2165 # Be careful to initialize this variable, since it used to be cached.
2166 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2167 ac_cv_exeext=
2168 # b.out is created by i960 compilers.
2169 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2170 do
2171   test -f "$ac_file" || continue
2172   case $ac_file in
2173     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2174         ;;
2175     conftest.$ac_ext )
2176         # This is the source file.
2177         ;;
2178     [ab].out )
2179         # We found the default executable, but exeext='' is most
2180         # certainly right.
2181         break;;
2182     *.* )
2183         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2184         # FIXME: I believe we export ac_cv_exeext for Libtool,
2185         # but it would be cool to find out if it's true.  Does anybody
2186         # maintain Libtool? --akim.
2187         export ac_cv_exeext
2188         break;;
2189     * )
2190         break;;
2191   esac
2192 done
2193 else
2194   echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2196
2197 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2198 See \`config.log' for more details." >&5
2199 echo "$as_me: error: C++ compiler cannot create executables
2200 See \`config.log' for more details." >&2;}
2201    { (exit 77); exit 77; }; }
2202 fi
2203
2204 ac_exeext=$ac_cv_exeext
2205 echo "$as_me:$LINENO: result: $ac_file" >&5
2206 echo "${ECHO_T}$ac_file" >&6
2207
2208 # Check the compiler produces executables we can run.  If not, either
2209 # the compiler is broken, or we cross compile.
2210 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2211 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2212 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2213 # If not cross compiling, check that we can run a simple program.
2214 if test "$cross_compiling" != yes; then
2215   if { ac_try='./$ac_file'
2216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217   (eval $ac_try) 2>&5
2218   ac_status=$?
2219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220   (exit $ac_status); }; }; then
2221     cross_compiling=no
2222   else
2223     if test "$cross_compiling" = maybe; then
2224         cross_compiling=yes
2225     else
2226         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2227 If you meant to cross compile, use \`--host'.
2228 See \`config.log' for more details." >&5
2229 echo "$as_me: error: cannot run C++ compiled programs.
2230 If you meant to cross compile, use \`--host'.
2231 See \`config.log' for more details." >&2;}
2232    { (exit 1); exit 1; }; }
2233     fi
2234   fi
2235 fi
2236 echo "$as_me:$LINENO: result: yes" >&5
2237 echo "${ECHO_T}yes" >&6
2238
2239 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2240 ac_clean_files=$ac_clean_files_save
2241 # Check the compiler produces executables we can run.  If not, either
2242 # the compiler is broken, or we cross compile.
2243 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2244 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2245 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2246 echo "${ECHO_T}$cross_compiling" >&6
2247
2248 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2249 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2251   (eval $ac_link) 2>&5
2252   ac_status=$?
2253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254   (exit $ac_status); }; then
2255   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2256 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2257 # work properly (i.e., refer to `conftest.exe'), while it won't with
2258 # `rm'.
2259 for ac_file in conftest.exe conftest conftest.*; do
2260   test -f "$ac_file" || continue
2261   case $ac_file in
2262     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2263     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2264           export ac_cv_exeext
2265           break;;
2266     * ) break;;
2267   esac
2268 done
2269 else
2270   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2273 See \`config.log' for more details." >&2;}
2274    { (exit 1); exit 1; }; }
2275 fi
2276
2277 rm -f conftest$ac_cv_exeext
2278 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2279 echo "${ECHO_T}$ac_cv_exeext" >&6
2280
2281 rm -f conftest.$ac_ext
2282 EXEEXT=$ac_cv_exeext
2283 ac_exeext=$EXEEXT
2284 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2285 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2286 if test "${ac_cv_objext+set}" = set; then
2287   echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
2289   cat >conftest.$ac_ext <<_ACEOF
2290 /* confdefs.h.  */
2291 _ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h.  */
2295
2296 int
2297 main ()
2298 {
2299
2300   ;
2301   return 0;
2302 }
2303 _ACEOF
2304 rm -f conftest.o conftest.obj
2305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306   (eval $ac_compile) 2>&5
2307   ac_status=$?
2308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309   (exit $ac_status); }; then
2310   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2311   case $ac_file in
2312     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2313     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2314        break;;
2315   esac
2316 done
2317 else
2318   echo "$as_me: failed program was:" >&5
2319 sed 's/^/| /' conftest.$ac_ext >&5
2320
2321 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2322 See \`config.log' for more details." >&5
2323 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2324 See \`config.log' for more details." >&2;}
2325    { (exit 1); exit 1; }; }
2326 fi
2327
2328 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2329 fi
2330 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2331 echo "${ECHO_T}$ac_cv_objext" >&6
2332 OBJEXT=$ac_cv_objext
2333 ac_objext=$OBJEXT
2334 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2335 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2336 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2337   echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339   cat >conftest.$ac_ext <<_ACEOF
2340 /* confdefs.h.  */
2341 _ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h.  */
2345
2346 int
2347 main ()
2348 {
2349 #ifndef __GNUC__
2350        choke me
2351 #endif
2352
2353   ;
2354   return 0;
2355 }
2356 _ACEOF
2357 rm -f conftest.$ac_objext
2358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359   (eval $ac_compile) 2>conftest.er1
2360   ac_status=$?
2361   grep -v '^ *+' conftest.er1 >conftest.err
2362   rm -f conftest.er1
2363   cat conftest.err >&5
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); } &&
2366          { ac_try='test -z "$ac_cxx_werror_flag"
2367                          || test ! -s conftest.err'
2368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369   (eval $ac_try) 2>&5
2370   ac_status=$?
2371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372   (exit $ac_status); }; } &&
2373          { ac_try='test -s conftest.$ac_objext'
2374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375   (eval $ac_try) 2>&5
2376   ac_status=$?
2377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378   (exit $ac_status); }; }; then
2379   ac_compiler_gnu=yes
2380 else
2381   echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2383
2384 ac_compiler_gnu=no
2385 fi
2386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2387 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2388
2389 fi
2390 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2391 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2392 GXX=`test $ac_compiler_gnu = yes && echo yes`
2393 ac_test_CXXFLAGS=${CXXFLAGS+set}
2394 ac_save_CXXFLAGS=$CXXFLAGS
2395 CXXFLAGS="-g"
2396 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2397 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2398 if test "${ac_cv_prog_cxx_g+set}" = set; then
2399   echo $ECHO_N "(cached) $ECHO_C" >&6
2400 else
2401   cat >conftest.$ac_ext <<_ACEOF
2402 /* confdefs.h.  */
2403 _ACEOF
2404 cat confdefs.h >>conftest.$ac_ext
2405 cat >>conftest.$ac_ext <<_ACEOF
2406 /* end confdefs.h.  */
2407
2408 int
2409 main ()
2410 {
2411
2412   ;
2413   return 0;
2414 }
2415 _ACEOF
2416 rm -f conftest.$ac_objext
2417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2418   (eval $ac_compile) 2>conftest.er1
2419   ac_status=$?
2420   grep -v '^ *+' conftest.er1 >conftest.err
2421   rm -f conftest.er1
2422   cat conftest.err >&5
2423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424   (exit $ac_status); } &&
2425          { ac_try='test -z "$ac_cxx_werror_flag"
2426                          || test ! -s conftest.err'
2427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428   (eval $ac_try) 2>&5
2429   ac_status=$?
2430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431   (exit $ac_status); }; } &&
2432          { ac_try='test -s conftest.$ac_objext'
2433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434   (eval $ac_try) 2>&5
2435   ac_status=$?
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); }; }; then
2438   ac_cv_prog_cxx_g=yes
2439 else
2440   echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2442
2443 ac_cv_prog_cxx_g=no
2444 fi
2445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2446 fi
2447 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2448 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2449 if test "$ac_test_CXXFLAGS" = set; then
2450   CXXFLAGS=$ac_save_CXXFLAGS
2451 elif test $ac_cv_prog_cxx_g = yes; then
2452   if test "$GXX" = yes; then
2453     CXXFLAGS="-g -O2"
2454   else
2455     CXXFLAGS="-g"
2456   fi
2457 else
2458   if test "$GXX" = yes; then
2459     CXXFLAGS="-O2"
2460   else
2461     CXXFLAGS=
2462   fi
2463 fi
2464 for ac_declaration in \
2465    '' \
2466    'extern "C" void std::exit (int) throw (); using std::exit;' \
2467    'extern "C" void std::exit (int); using std::exit;' \
2468    'extern "C" void exit (int) throw ();' \
2469    'extern "C" void exit (int);' \
2470    'void exit (int);'
2471 do
2472   cat >conftest.$ac_ext <<_ACEOF
2473 /* confdefs.h.  */
2474 _ACEOF
2475 cat confdefs.h >>conftest.$ac_ext
2476 cat >>conftest.$ac_ext <<_ACEOF
2477 /* end confdefs.h.  */
2478 $ac_declaration
2479 #include <stdlib.h>
2480 int
2481 main ()
2482 {
2483 exit (42);
2484   ;
2485   return 0;
2486 }
2487 _ACEOF
2488 rm -f conftest.$ac_objext
2489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2490   (eval $ac_compile) 2>conftest.er1
2491   ac_status=$?
2492   grep -v '^ *+' conftest.er1 >conftest.err
2493   rm -f conftest.er1
2494   cat conftest.err >&5
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); } &&
2497          { ac_try='test -z "$ac_cxx_werror_flag"
2498                          || test ! -s conftest.err'
2499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500   (eval $ac_try) 2>&5
2501   ac_status=$?
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); }; } &&
2504          { ac_try='test -s conftest.$ac_objext'
2505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506   (eval $ac_try) 2>&5
2507   ac_status=$?
2508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509   (exit $ac_status); }; }; then
2510   :
2511 else
2512   echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2514
2515 continue
2516 fi
2517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2518   cat >conftest.$ac_ext <<_ACEOF
2519 /* confdefs.h.  */
2520 _ACEOF
2521 cat confdefs.h >>conftest.$ac_ext
2522 cat >>conftest.$ac_ext <<_ACEOF
2523 /* end confdefs.h.  */
2524 $ac_declaration
2525 int
2526 main ()
2527 {
2528 exit (42);
2529   ;
2530   return 0;
2531 }
2532 _ACEOF
2533 rm -f conftest.$ac_objext
2534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2535   (eval $ac_compile) 2>conftest.er1
2536   ac_status=$?
2537   grep -v '^ *+' conftest.er1 >conftest.err
2538   rm -f conftest.er1
2539   cat conftest.err >&5
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); } &&
2542          { ac_try='test -z "$ac_cxx_werror_flag"
2543                          || test ! -s conftest.err'
2544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545   (eval $ac_try) 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }; } &&
2549          { ac_try='test -s conftest.$ac_objext'
2550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551   (eval $ac_try) 2>&5
2552   ac_status=$?
2553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554   (exit $ac_status); }; }; then
2555   break
2556 else
2557   echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2559
2560 fi
2561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2562 done
2563 rm -f conftest*
2564 if test -n "$ac_declaration"; then
2565   echo '#ifdef __cplusplus' >>confdefs.h
2566   echo $ac_declaration      >>confdefs.h
2567   echo '#endif'             >>confdefs.h
2568 fi
2569
2570 ac_ext=c
2571 ac_cpp='$CPP $CPPFLAGS'
2572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2575 DEPDIR="${am__leading_dot}deps"
2576
2577           ac_config_commands="$ac_config_commands depfiles"
2578
2579
2580 am_make=${MAKE-make}
2581 cat > confinc << 'END'
2582 am__doit:
2583         @echo done
2584 .PHONY: am__doit
2585 END
2586 # If we don't find an include directive, just comment out the code.
2587 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2588 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2589 am__include="#"
2590 am__quote=
2591 _am_result=none
2592 # First try GNU make style include.
2593 echo "include confinc" > confmf
2594 # We grep out `Entering directory' and `Leaving directory'
2595 # messages which can occur if `w' ends up in MAKEFLAGS.
2596 # In particular we don't look at `^make:' because GNU make might
2597 # be invoked under some other name (usually "gmake"), in which
2598 # case it prints its new name instead of `make'.
2599 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2600    am__include=include
2601    am__quote=
2602    _am_result=GNU
2603 fi
2604 # Now try BSD make style include.
2605 if test "$am__include" = "#"; then
2606    echo '.include "confinc"' > confmf
2607    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2608       am__include=.include
2609       am__quote="\""
2610       _am_result=BSD
2611    fi
2612 fi
2613
2614
2615 echo "$as_me:$LINENO: result: $_am_result" >&5
2616 echo "${ECHO_T}$_am_result" >&6
2617 rm -f confinc confmf
2618
2619 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2620 if test "${enable_dependency_tracking+set}" = set; then
2621   enableval="$enable_dependency_tracking"
2622
2623 fi;
2624 if test "x$enable_dependency_tracking" != xno; then
2625   am_depcomp="$ac_aux_dir/depcomp"
2626   AMDEPBACKSLASH='\'
2627 fi
2628
2629
2630 if test "x$enable_dependency_tracking" != xno; then
2631   AMDEP_TRUE=
2632   AMDEP_FALSE='#'
2633 else
2634   AMDEP_TRUE='#'
2635   AMDEP_FALSE=
2636 fi
2637
2638
2639
2640
2641 depcc="$CXX"  am_compiler_list=
2642
2643 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2644 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2645 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2646   echo $ECHO_N "(cached) $ECHO_C" >&6
2647 else
2648   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2649   # We make a subdir and do the tests there.  Otherwise we can end up
2650   # making bogus files that we don't know about and never remove.  For
2651   # instance it was reported that on HP-UX the gcc test will end up
2652   # making a dummy file named `D' -- because `-MD' means `put the output
2653   # in D'.
2654   mkdir conftest.dir
2655   # Copy depcomp to subdir because otherwise we won't find it if we're
2656   # using a relative directory.
2657   cp "$am_depcomp" conftest.dir
2658   cd conftest.dir
2659   # We will build objects and dependencies in a subdirectory because
2660   # it helps to detect inapplicable dependency modes.  For instance
2661   # both Tru64's cc and ICC support -MD to output dependencies as a
2662   # side effect of compilation, but ICC will put the dependencies in
2663   # the current directory while Tru64 will put them in the object
2664   # directory.
2665   mkdir sub
2666
2667   am_cv_CXX_dependencies_compiler_type=none
2668   if test "$am_compiler_list" = ""; then
2669      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2670   fi
2671   for depmode in $am_compiler_list; do
2672     # Setup a source with many dependencies, because some compilers
2673     # like to wrap large dependency lists on column 80 (with \), and
2674     # we should not choose a depcomp mode which is confused by this.
2675     #
2676     # We need to recreate these files for each test, as the compiler may
2677     # overwrite some of them when testing with obscure command lines.
2678     # This happens at least with the AIX C compiler.
2679     : > sub/conftest.c
2680     for i in 1 2 3 4 5 6; do
2681       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2682       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2683       # Solaris 8's {/usr,}/bin/sh.
2684       touch sub/conftst$i.h
2685     done
2686     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2687
2688     case $depmode in
2689     nosideeffect)
2690       # after this tag, mechanisms are not by side-effect, so they'll
2691       # only be used when explicitly requested
2692       if test "x$enable_dependency_tracking" = xyes; then
2693         continue
2694       else
2695         break
2696       fi
2697       ;;
2698     none) break ;;
2699     esac
2700     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2701     # mode.  It turns out that the SunPro C++ compiler does not properly
2702     # handle `-M -o', and we need to detect this.
2703     if depmode=$depmode \
2704        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2705        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2706        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2707          >/dev/null 2>conftest.err &&
2708        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2709        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2710        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2711       # icc doesn't choke on unknown options, it will just issue warnings
2712       # or remarks (even with -Werror).  So we grep stderr for any message
2713       # that says an option was ignored or not supported.
2714       # When given -MP, icc 7.0 and 7.1 complain thusly:
2715       #   icc: Command line warning: ignoring option '-M'; no argument required
2716       # The diagnosis changed in icc 8.0:
2717       #   icc: Command line remark: option '-MP' not supported
2718       if (grep 'ignoring option' conftest.err ||
2719           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2720         am_cv_CXX_dependencies_compiler_type=$depmode
2721         break
2722       fi
2723     fi
2724   done
2725
2726   cd ..
2727   rm -rf conftest.dir
2728 else
2729   am_cv_CXX_dependencies_compiler_type=none
2730 fi
2731
2732 fi
2733 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2734 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2735 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2736
2737
2738
2739 if
2740   test "x$enable_dependency_tracking" != xno \
2741   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2742   am__fastdepCXX_TRUE=
2743   am__fastdepCXX_FALSE='#'
2744 else
2745   am__fastdepCXX_TRUE='#'
2746   am__fastdepCXX_FALSE=
2747 fi
2748
2749
2750 # Check whether --enable-shared or --disable-shared was given.
2751 if test "${enable_shared+set}" = set; then
2752   enableval="$enable_shared"
2753   p=${PACKAGE-default}
2754     case $enableval in
2755     yes) enable_shared=yes ;;
2756     no) enable_shared=no ;;
2757     *)
2758       enable_shared=no
2759       # Look at the argument we got.  We use all the common list separators.
2760       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2761       for pkg in $enableval; do
2762         IFS="$lt_save_ifs"
2763         if test "X$pkg" = "X$p"; then
2764           enable_shared=yes
2765         fi
2766       done
2767       IFS="$lt_save_ifs"
2768       ;;
2769     esac
2770 else
2771   enable_shared=yes
2772 fi;
2773
2774 # Check whether --enable-static or --disable-static was given.
2775 if test "${enable_static+set}" = set; then
2776   enableval="$enable_static"
2777   p=${PACKAGE-default}
2778     case $enableval in
2779     yes) enable_static=yes ;;
2780     no) enable_static=no ;;
2781     *)
2782      enable_static=no
2783       # Look at the argument we got.  We use all the common list separators.
2784       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2785       for pkg in $enableval; do
2786         IFS="$lt_save_ifs"
2787         if test "X$pkg" = "X$p"; then
2788           enable_static=yes
2789         fi
2790       done
2791       IFS="$lt_save_ifs"
2792       ;;
2793     esac
2794 else
2795   enable_static=yes
2796 fi;
2797
2798 # Check whether --enable-fast-install or --disable-fast-install was given.
2799 if test "${enable_fast_install+set}" = set; then
2800   enableval="$enable_fast_install"
2801   p=${PACKAGE-default}
2802     case $enableval in
2803     yes) enable_fast_install=yes ;;
2804     no) enable_fast_install=no ;;
2805     *)
2806       enable_fast_install=no
2807       # Look at the argument we got.  We use all the common list separators.
2808       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2809       for pkg in $enableval; do
2810         IFS="$lt_save_ifs"
2811         if test "X$pkg" = "X$p"; then
2812           enable_fast_install=yes
2813         fi
2814       done
2815       IFS="$lt_save_ifs"
2816       ;;
2817     esac
2818 else
2819   enable_fast_install=yes
2820 fi;
2821
2822 # Make sure we can run config.sub.
2823 $ac_config_sub sun4 >/dev/null 2>&1 ||
2824   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2825 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2826    { (exit 1); exit 1; }; }
2827
2828 echo "$as_me:$LINENO: checking build system type" >&5
2829 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2830 if test "${ac_cv_build+set}" = set; then
2831   echo $ECHO_N "(cached) $ECHO_C" >&6
2832 else
2833   ac_cv_build_alias=$build_alias
2834 test -z "$ac_cv_build_alias" &&
2835   ac_cv_build_alias=`$ac_config_guess`
2836 test -z "$ac_cv_build_alias" &&
2837   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2838 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2839    { (exit 1); exit 1; }; }
2840 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2841   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2842 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2843    { (exit 1); exit 1; }; }
2844
2845 fi
2846 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2847 echo "${ECHO_T}$ac_cv_build" >&6
2848 build=$ac_cv_build
2849 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2850 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2851 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2852
2853
2854 echo "$as_me:$LINENO: checking host system type" >&5
2855 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2856 if test "${ac_cv_host+set}" = set; then
2857   echo $ECHO_N "(cached) $ECHO_C" >&6
2858 else
2859   ac_cv_host_alias=$host_alias
2860 test -z "$ac_cv_host_alias" &&
2861   ac_cv_host_alias=$ac_cv_build_alias
2862 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2863   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2864 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2865    { (exit 1); exit 1; }; }
2866
2867 fi
2868 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2869 echo "${ECHO_T}$ac_cv_host" >&6
2870 host=$ac_cv_host
2871 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2872 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2873 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2874
2875
2876 ac_ext=c
2877 ac_cpp='$CPP $CPPFLAGS'
2878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881 if test -n "$ac_tool_prefix"; then
2882   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2883 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2884 echo "$as_me:$LINENO: checking for $ac_word" >&5
2885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2886 if test "${ac_cv_prog_CC+set}" = set; then
2887   echo $ECHO_N "(cached) $ECHO_C" >&6
2888 else
2889   if test -n "$CC"; then
2890   ac_cv_prog_CC="$CC" # Let the user override the test.
2891 else
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2894 do
2895   IFS=$as_save_IFS
2896   test -z "$as_dir" && as_dir=.
2897   for ac_exec_ext in '' $ac_executable_extensions; do
2898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2899     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901     break 2
2902   fi
2903 done
2904 done
2905
2906 fi
2907 fi
2908 CC=$ac_cv_prog_CC
2909 if test -n "$CC"; then
2910   echo "$as_me:$LINENO: result: $CC" >&5
2911 echo "${ECHO_T}$CC" >&6
2912 else
2913   echo "$as_me:$LINENO: result: no" >&5
2914 echo "${ECHO_T}no" >&6
2915 fi
2916
2917 fi
2918 if test -z "$ac_cv_prog_CC"; then
2919   ac_ct_CC=$CC
2920   # Extract the first word of "gcc", so it can be a program name with args.
2921 set dummy gcc; ac_word=$2
2922 echo "$as_me:$LINENO: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2925   echo $ECHO_N "(cached) $ECHO_C" >&6
2926 else
2927   if test -n "$ac_ct_CC"; then
2928   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933   IFS=$as_save_IFS
2934   test -z "$as_dir" && as_dir=.
2935   for ac_exec_ext in '' $ac_executable_extensions; do
2936   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2937     ac_cv_prog_ac_ct_CC="gcc"
2938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2939     break 2
2940   fi
2941 done
2942 done
2943
2944 fi
2945 fi
2946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2947 if test -n "$ac_ct_CC"; then
2948   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2949 echo "${ECHO_T}$ac_ct_CC" >&6
2950 else
2951   echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6
2953 fi
2954
2955   CC=$ac_ct_CC
2956 else
2957   CC="$ac_cv_prog_CC"
2958 fi
2959
2960 if test -z "$CC"; then
2961   if test -n "$ac_tool_prefix"; then
2962   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2963 set dummy ${ac_tool_prefix}cc; ac_word=$2
2964 echo "$as_me:$LINENO: checking for $ac_word" >&5
2965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2966 if test "${ac_cv_prog_CC+set}" = set; then
2967   echo $ECHO_N "(cached) $ECHO_C" >&6
2968 else
2969   if test -n "$CC"; then
2970   ac_cv_prog_CC="$CC" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975   IFS=$as_save_IFS
2976   test -z "$as_dir" && as_dir=.
2977   for ac_exec_ext in '' $ac_executable_extensions; do
2978   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979     ac_cv_prog_CC="${ac_tool_prefix}cc"
2980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2981     break 2
2982   fi
2983 done
2984 done
2985
2986 fi
2987 fi
2988 CC=$ac_cv_prog_CC
2989 if test -n "$CC"; then
2990   echo "$as_me:$LINENO: result: $CC" >&5
2991 echo "${ECHO_T}$CC" >&6
2992 else
2993   echo "$as_me:$LINENO: result: no" >&5
2994 echo "${ECHO_T}no" >&6
2995 fi
2996
2997 fi
2998 if test -z "$ac_cv_prog_CC"; then
2999   ac_ct_CC=$CC
3000   # Extract the first word of "cc", so it can be a program name with args.
3001 set dummy cc; ac_word=$2
3002 echo "$as_me:$LINENO: checking for $ac_word" >&5
3003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3004 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3005   echo $ECHO_N "(cached) $ECHO_C" >&6
3006 else
3007   if test -n "$ac_ct_CC"; then
3008   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3012 do
3013   IFS=$as_save_IFS
3014   test -z "$as_dir" && as_dir=.
3015   for ac_exec_ext in '' $ac_executable_extensions; do
3016   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017     ac_cv_prog_ac_ct_CC="cc"
3018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3019     break 2
3020   fi
3021 done
3022 done
3023
3024 fi
3025 fi
3026 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3027 if test -n "$ac_ct_CC"; then
3028   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3029 echo "${ECHO_T}$ac_ct_CC" >&6
3030 else
3031   echo "$as_me:$LINENO: result: no" >&5
3032 echo "${ECHO_T}no" >&6
3033 fi
3034
3035   CC=$ac_ct_CC
3036 else
3037   CC="$ac_cv_prog_CC"
3038 fi
3039
3040 fi
3041 if test -z "$CC"; then
3042   # Extract the first word of "cc", so it can be a program name with args.
3043 set dummy cc; ac_word=$2
3044 echo "$as_me:$LINENO: checking for $ac_word" >&5
3045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3046 if test "${ac_cv_prog_CC+set}" = set; then
3047   echo $ECHO_N "(cached) $ECHO_C" >&6
3048 else
3049   if test -n "$CC"; then
3050   ac_cv_prog_CC="$CC" # Let the user override the test.
3051 else
3052   ac_prog_rejected=no
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3055 do
3056   IFS=$as_save_IFS
3057   test -z "$as_dir" && as_dir=.
3058   for ac_exec_ext in '' $ac_executable_extensions; do
3059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3060     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3061        ac_prog_rejected=yes
3062        continue
3063      fi
3064     ac_cv_prog_CC="cc"
3065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3066     break 2
3067   fi
3068 done
3069 done
3070
3071 if test $ac_prog_rejected = yes; then
3072   # We found a bogon in the path, so make sure we never use it.
3073   set dummy $ac_cv_prog_CC
3074   shift
3075   if test $# != 0; then
3076     # We chose a different compiler from the bogus one.
3077     # However, it has the same basename, so the bogon will be chosen
3078     # first if we set CC to just the basename; use the full file name.
3079     shift
3080     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3081   fi
3082 fi
3083 fi
3084 fi
3085 CC=$ac_cv_prog_CC
3086 if test -n "$CC"; then
3087   echo "$as_me:$LINENO: result: $CC" >&5
3088 echo "${ECHO_T}$CC" >&6
3089 else
3090   echo "$as_me:$LINENO: result: no" >&5
3091 echo "${ECHO_T}no" >&6
3092 fi
3093
3094 fi
3095 if test -z "$CC"; then
3096   if test -n "$ac_tool_prefix"; then
3097   for ac_prog in cl
3098   do
3099     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3100 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3101 echo "$as_me:$LINENO: checking for $ac_word" >&5
3102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3103 if test "${ac_cv_prog_CC+set}" = set; then
3104   echo $ECHO_N "(cached) $ECHO_C" >&6
3105 else
3106   if test -n "$CC"; then
3107   ac_cv_prog_CC="$CC" # Let the user override the test.
3108 else
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 for as_dir in $PATH
3111 do
3112   IFS=$as_save_IFS
3113   test -z "$as_dir" && as_dir=.
3114   for ac_exec_ext in '' $ac_executable_extensions; do
3115   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3116     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3118     break 2
3119   fi
3120 done
3121 done
3122
3123 fi
3124 fi
3125 CC=$ac_cv_prog_CC
3126 if test -n "$CC"; then
3127   echo "$as_me:$LINENO: result: $CC" >&5
3128 echo "${ECHO_T}$CC" >&6
3129 else
3130   echo "$as_me:$LINENO: result: no" >&5
3131 echo "${ECHO_T}no" >&6
3132 fi
3133
3134     test -n "$CC" && break
3135   done
3136 fi
3137 if test -z "$CC"; then
3138   ac_ct_CC=$CC
3139   for ac_prog in cl
3140 do
3141   # Extract the first word of "$ac_prog", so it can be a program name with args.
3142 set dummy $ac_prog; ac_word=$2
3143 echo "$as_me:$LINENO: checking for $ac_word" >&5
3144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3145 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3146   echo $ECHO_N "(cached) $ECHO_C" >&6
3147 else
3148   if test -n "$ac_ct_CC"; then
3149   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3150 else
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 for as_dir in $PATH
3153 do
3154   IFS=$as_save_IFS
3155   test -z "$as_dir" && as_dir=.
3156   for ac_exec_ext in '' $ac_executable_extensions; do
3157   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158     ac_cv_prog_ac_ct_CC="$ac_prog"
3159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3160     break 2
3161   fi
3162 done
3163 done
3164
3165 fi
3166 fi
3167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3168 if test -n "$ac_ct_CC"; then
3169   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3170 echo "${ECHO_T}$ac_ct_CC" >&6
3171 else
3172   echo "$as_me:$LINENO: result: no" >&5
3173 echo "${ECHO_T}no" >&6
3174 fi
3175
3176   test -n "$ac_ct_CC" && break
3177 done
3178
3179   CC=$ac_ct_CC
3180 fi
3181
3182 fi
3183
3184
3185 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3186 See \`config.log' for more details." >&5
3187 echo "$as_me: error: no acceptable C compiler found in \$PATH
3188 See \`config.log' for more details." >&2;}
3189    { (exit 1); exit 1; }; }
3190
3191 # Provide some information about the compiler.
3192 echo "$as_me:$LINENO:" \
3193      "checking for C compiler version" >&5
3194 ac_compiler=`set X $ac_compile; echo $2`
3195 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3196   (eval $ac_compiler --version </dev/null >&5) 2>&5
3197   ac_status=$?
3198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199   (exit $ac_status); }
3200 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3201   (eval $ac_compiler -v </dev/null >&5) 2>&5
3202   ac_status=$?
3203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204   (exit $ac_status); }
3205 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3206   (eval $ac_compiler -V </dev/null >&5) 2>&5
3207   ac_status=$?
3208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209   (exit $ac_status); }
3210
3211 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3212 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3213 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3214   echo $ECHO_N "(cached) $ECHO_C" >&6
3215 else
3216   cat >conftest.$ac_ext <<_ACEOF
3217 /* confdefs.h.  */
3218 _ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h.  */
3222
3223 int
3224 main ()
3225 {
3226 #ifndef __GNUC__
3227        choke me
3228 #endif
3229
3230   ;
3231   return 0;
3232 }
3233 _ACEOF
3234 rm -f conftest.$ac_objext
3235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3236   (eval $ac_compile) 2>conftest.er1
3237   ac_status=$?
3238   grep -v '^ *+' conftest.er1 >conftest.err
3239   rm -f conftest.er1
3240   cat conftest.err >&5
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); } &&
3243          { ac_try='test -z "$ac_c_werror_flag"
3244                          || test ! -s conftest.err'
3245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246   (eval $ac_try) 2>&5
3247   ac_status=$?
3248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249   (exit $ac_status); }; } &&
3250          { ac_try='test -s conftest.$ac_objext'
3251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252   (eval $ac_try) 2>&5
3253   ac_status=$?
3254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255   (exit $ac_status); }; }; then
3256   ac_compiler_gnu=yes
3257 else
3258   echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3260
3261 ac_compiler_gnu=no
3262 fi
3263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3264 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3265
3266 fi
3267 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3268 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3269 GCC=`test $ac_compiler_gnu = yes && echo yes`
3270 ac_test_CFLAGS=${CFLAGS+set}
3271 ac_save_CFLAGS=$CFLAGS
3272 CFLAGS="-g"
3273 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3274 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3275 if test "${ac_cv_prog_cc_g+set}" = set; then
3276   echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278   cat >conftest.$ac_ext <<_ACEOF
3279 /* confdefs.h.  */
3280 _ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h.  */
3284
3285 int
3286 main ()
3287 {
3288
3289   ;
3290   return 0;
3291 }
3292 _ACEOF
3293 rm -f conftest.$ac_objext
3294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3295   (eval $ac_compile) 2>conftest.er1
3296   ac_status=$?
3297   grep -v '^ *+' conftest.er1 >conftest.err
3298   rm -f conftest.er1
3299   cat conftest.err >&5
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); } &&
3302          { ac_try='test -z "$ac_c_werror_flag"
3303                          || test ! -s conftest.err'
3304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305   (eval $ac_try) 2>&5
3306   ac_status=$?
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); }; } &&
3309          { ac_try='test -s conftest.$ac_objext'
3310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3311   (eval $ac_try) 2>&5
3312   ac_status=$?
3313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314   (exit $ac_status); }; }; then
3315   ac_cv_prog_cc_g=yes
3316 else
3317   echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3319
3320 ac_cv_prog_cc_g=no
3321 fi
3322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3323 fi
3324 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3325 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3326 if test "$ac_test_CFLAGS" = set; then
3327   CFLAGS=$ac_save_CFLAGS
3328 elif test $ac_cv_prog_cc_g = yes; then
3329   if test "$GCC" = yes; then
3330     CFLAGS="-g -O2"
3331   else
3332     CFLAGS="-g"
3333   fi
3334 else
3335   if test "$GCC" = yes; then
3336     CFLAGS="-O2"
3337   else
3338     CFLAGS=
3339   fi
3340 fi
3341 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3342 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3343 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3344   echo $ECHO_N "(cached) $ECHO_C" >&6
3345 else
3346   ac_cv_prog_cc_stdc=no
3347 ac_save_CC=$CC
3348 cat >conftest.$ac_ext <<_ACEOF
3349 /* confdefs.h.  */
3350 _ACEOF
3351 cat confdefs.h >>conftest.$ac_ext
3352 cat >>conftest.$ac_ext <<_ACEOF
3353 /* end confdefs.h.  */
3354 #include <stdarg.h>
3355 #include <stdio.h>
3356 #include <sys/types.h>
3357 #include <sys/stat.h>
3358 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3359 struct buf { int x; };
3360 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3361 static char *e (p, i)
3362      char **p;
3363      int i;
3364 {
3365   return p[i];
3366 }
3367 static char *f (char * (*g) (char **, int), char **p, ...)
3368 {
3369   char *s;
3370   va_list v;
3371   va_start (v,p);
3372   s = g (p, va_arg (v,int));
3373   va_end (v);
3374   return s;
3375 }
3376
3377 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3378    function prototypes and stuff, but not '\xHH' hex character constants.
3379    These don't provoke an error unfortunately, instead are silently treated
3380    as 'x'.  The following induces an error, until -std1 is added to get
3381    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3382    array size at least.  It's necessary to write '\x00'==0 to get something
3383    that's true only with -std1.  */
3384 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3385
3386 int test (int i, double x);
3387 struct s1 {int (*f) (int a);};
3388 struct s2 {int (*f) (double a);};
3389 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3390 int argc;
3391 char **argv;
3392 int
3393 main ()
3394 {
3395 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3396   ;
3397   return 0;
3398 }
3399 _ACEOF
3400 # Don't try gcc -ansi; that turns off useful extensions and
3401 # breaks some systems' header files.
3402 # AIX                   -qlanglvl=ansi
3403 # Ultrix and OSF/1      -std1
3404 # HP-UX 10.20 and later -Ae
3405 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3406 # SVR4                  -Xc -D__EXTENSIONS__
3407 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3408 do
3409   CC="$ac_save_CC $ac_arg"
3410   rm -f conftest.$ac_objext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3412   (eval $ac_compile) 2>conftest.er1
3413   ac_status=$?
3414   grep -v '^ *+' conftest.er1 >conftest.err
3415   rm -f conftest.er1
3416   cat conftest.err >&5
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); } &&
3419          { ac_try='test -z "$ac_c_werror_flag"
3420                          || test ! -s conftest.err'
3421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422   (eval $ac_try) 2>&5
3423   ac_status=$?
3424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425   (exit $ac_status); }; } &&
3426          { ac_try='test -s conftest.$ac_objext'
3427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428   (eval $ac_try) 2>&5
3429   ac_status=$?
3430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431   (exit $ac_status); }; }; then
3432   ac_cv_prog_cc_stdc=$ac_arg
3433 break
3434 else
3435   echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3437
3438 fi
3439 rm -f conftest.err conftest.$ac_objext
3440 done
3441 rm -f conftest.$ac_ext conftest.$ac_objext
3442 CC=$ac_save_CC
3443
3444 fi
3445
3446 case "x$ac_cv_prog_cc_stdc" in
3447   x|xno)
3448     echo "$as_me:$LINENO: result: none needed" >&5
3449 echo "${ECHO_T}none needed" >&6 ;;
3450   *)
3451     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3452 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3453     CC="$CC $ac_cv_prog_cc_stdc" ;;
3454 esac
3455
3456 # Some people use a C++ compiler to compile C.  Since we use `exit',
3457 # in C++ we need to declare it.  In case someone uses the same compiler
3458 # for both compiling C and C++ we need to have the C++ compiler decide
3459 # the declaration of exit, since it's the most demanding environment.
3460 cat >conftest.$ac_ext <<_ACEOF
3461 #ifndef __cplusplus
3462   choke me
3463 #endif
3464 _ACEOF
3465 rm -f conftest.$ac_objext
3466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3467   (eval $ac_compile) 2>conftest.er1
3468   ac_status=$?
3469   grep -v '^ *+' conftest.er1 >conftest.err
3470   rm -f conftest.er1
3471   cat conftest.err >&5
3472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473   (exit $ac_status); } &&
3474          { ac_try='test -z "$ac_c_werror_flag"
3475                          || test ! -s conftest.err'
3476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477   (eval $ac_try) 2>&5
3478   ac_status=$?
3479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480   (exit $ac_status); }; } &&
3481          { ac_try='test -s conftest.$ac_objext'
3482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3483   (eval $ac_try) 2>&5
3484   ac_status=$?
3485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); }; }; then
3487   for ac_declaration in \
3488    '' \
3489    'extern "C" void std::exit (int) throw (); using std::exit;' \
3490    'extern "C" void std::exit (int); using std::exit;' \
3491    'extern "C" void exit (int) throw ();' \
3492    'extern "C" void exit (int);' \
3493    'void exit (int);'
3494 do
3495   cat >conftest.$ac_ext <<_ACEOF
3496 /* confdefs.h.  */
3497 _ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h.  */
3501 $ac_declaration
3502 #include <stdlib.h>
3503 int
3504 main ()
3505 {
3506 exit (42);
3507   ;
3508   return 0;
3509 }
3510 _ACEOF
3511 rm -f conftest.$ac_objext
3512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3513   (eval $ac_compile) 2>conftest.er1
3514   ac_status=$?
3515   grep -v '^ *+' conftest.er1 >conftest.err
3516   rm -f conftest.er1
3517   cat conftest.err >&5
3518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519   (exit $ac_status); } &&
3520          { ac_try='test -z "$ac_c_werror_flag"
3521                          || test ! -s conftest.err'
3522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523   (eval $ac_try) 2>&5
3524   ac_status=$?
3525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526   (exit $ac_status); }; } &&
3527          { ac_try='test -s conftest.$ac_objext'
3528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529   (eval $ac_try) 2>&5
3530   ac_status=$?
3531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532   (exit $ac_status); }; }; then
3533   :
3534 else
3535   echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3537
3538 continue
3539 fi
3540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3541   cat >conftest.$ac_ext <<_ACEOF
3542 /* confdefs.h.  */
3543 _ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h.  */
3547 $ac_declaration
3548 int
3549 main ()
3550 {
3551 exit (42);
3552   ;
3553   return 0;
3554 }
3555 _ACEOF
3556 rm -f conftest.$ac_objext
3557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3558   (eval $ac_compile) 2>conftest.er1
3559   ac_status=$?
3560   grep -v '^ *+' conftest.er1 >conftest.err
3561   rm -f conftest.er1
3562   cat conftest.err >&5
3563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564   (exit $ac_status); } &&
3565          { ac_try='test -z "$ac_c_werror_flag"
3566                          || test ! -s conftest.err'
3567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568   (eval $ac_try) 2>&5
3569   ac_status=$?
3570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571   (exit $ac_status); }; } &&
3572          { ac_try='test -s conftest.$ac_objext'
3573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574   (eval $ac_try) 2>&5
3575   ac_status=$?
3576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577   (exit $ac_status); }; }; then
3578   break
3579 else
3580   echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3582
3583 fi
3584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3585 done
3586 rm -f conftest*
3587 if test -n "$ac_declaration"; then
3588   echo '#ifdef __cplusplus' >>confdefs.h
3589   echo $ac_declaration      >>confdefs.h
3590   echo '#endif'             >>confdefs.h
3591 fi
3592
3593 else
3594   echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3596
3597 fi
3598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3599 ac_ext=c
3600 ac_cpp='$CPP $CPPFLAGS'
3601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3604
3605 depcc="$CC"   am_compiler_list=
3606
3607 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3608 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3609 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3610   echo $ECHO_N "(cached) $ECHO_C" >&6
3611 else
3612   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3613   # We make a subdir and do the tests there.  Otherwise we can end up
3614   # making bogus files that we don't know about and never remove.  For
3615   # instance it was reported that on HP-UX the gcc test will end up
3616   # making a dummy file named `D' -- because `-MD' means `put the output
3617   # in D'.
3618   mkdir conftest.dir
3619   # Copy depcomp to subdir because otherwise we won't find it if we're
3620   # using a relative directory.
3621   cp "$am_depcomp" conftest.dir
3622   cd conftest.dir
3623   # We will build objects and dependencies in a subdirectory because
3624   # it helps to detect inapplicable dependency modes.  For instance
3625   # both Tru64's cc and ICC support -MD to output dependencies as a
3626   # side effect of compilation, but ICC will put the dependencies in
3627   # the current directory while Tru64 will put them in the object
3628   # directory.
3629   mkdir sub
3630
3631   am_cv_CC_dependencies_compiler_type=none
3632   if test "$am_compiler_list" = ""; then
3633      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3634   fi
3635   for depmode in $am_compiler_list; do
3636     # Setup a source with many dependencies, because some compilers
3637     # like to wrap large dependency lists on column 80 (with \), and
3638     # we should not choose a depcomp mode which is confused by this.
3639     #
3640     # We need to recreate these files for each test, as the compiler may
3641     # overwrite some of them when testing with obscure command lines.
3642     # This happens at least with the AIX C compiler.
3643     : > sub/conftest.c
3644     for i in 1 2 3 4 5 6; do
3645       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3646       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3647       # Solaris 8's {/usr,}/bin/sh.
3648       touch sub/conftst$i.h
3649     done
3650     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3651
3652     case $depmode in
3653     nosideeffect)
3654       # after this tag, mechanisms are not by side-effect, so they'll
3655       # only be used when explicitly requested
3656       if test "x$enable_dependency_tracking" = xyes; then
3657         continue
3658       else
3659         break
3660       fi
3661       ;;
3662     none) break ;;
3663     esac
3664     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3665     # mode.  It turns out that the SunPro C++ compiler does not properly
3666     # handle `-M -o', and we need to detect this.
3667     if depmode=$depmode \
3668        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3669        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3670        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3671          >/dev/null 2>conftest.err &&
3672        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3673        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3674        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3675       # icc doesn't choke on unknown options, it will just issue warnings
3676       # or remarks (even with -Werror).  So we grep stderr for any message
3677       # that says an option was ignored or not supported.
3678       # When given -MP, icc 7.0 and 7.1 complain thusly:
3679       #   icc: Command line warning: ignoring option '-M'; no argument required
3680       # The diagnosis changed in icc 8.0:
3681       #   icc: Command line remark: option '-MP' not supported
3682       if (grep 'ignoring option' conftest.err ||
3683           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3684         am_cv_CC_dependencies_compiler_type=$depmode
3685         break
3686       fi
3687     fi
3688   done
3689
3690   cd ..
3691   rm -rf conftest.dir
3692 else
3693   am_cv_CC_dependencies_compiler_type=none
3694 fi
3695
3696 fi
3697 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3698 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3699 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3700
3701
3702
3703 if
3704   test "x$enable_dependency_tracking" != xno \
3705   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3706   am__fastdepCC_TRUE=
3707   am__fastdepCC_FALSE='#'
3708 else
3709   am__fastdepCC_TRUE='#'
3710   am__fastdepCC_FALSE=
3711 fi
3712
3713
3714 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3715 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3716 if test "${lt_cv_path_SED+set}" = set; then
3717   echo $ECHO_N "(cached) $ECHO_C" >&6
3718 else
3719   # Loop through the user's path and test for sed and gsed.
3720 # Then use that list of sed's as ones to test for truncation.
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 for as_dir in $PATH
3723 do
3724   IFS=$as_save_IFS
3725   test -z "$as_dir" && as_dir=.
3726   for lt_ac_prog in sed gsed; do
3727     for ac_exec_ext in '' $ac_executable_extensions; do
3728       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3729         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3730       fi
3731     done
3732   done
3733 done
3734 lt_ac_max=0
3735 lt_ac_count=0
3736 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3737 # along with /bin/sed that truncates output.
3738 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3739   test ! -f $lt_ac_sed && continue
3740   cat /dev/null > conftest.in
3741   lt_ac_count=0
3742   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3743   # Check for GNU sed and select it if it is found.
3744   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3745     lt_cv_path_SED=$lt_ac_sed
3746     break
3747   fi
3748   while true; do
3749     cat conftest.in conftest.in >conftest.tmp
3750     mv conftest.tmp conftest.in
3751     cp conftest.in conftest.nl
3752     echo >>conftest.nl
3753     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3754     cmp -s conftest.out conftest.nl || break
3755     # 10000 chars as input seems more than enough
3756     test $lt_ac_count -gt 10 && break
3757     lt_ac_count=`expr $lt_ac_count + 1`
3758     if test $lt_ac_count -gt $lt_ac_max; then
3759       lt_ac_max=$lt_ac_count
3760       lt_cv_path_SED=$lt_ac_sed
3761     fi
3762   done
3763 done
3764
3765 fi
3766
3767 SED=$lt_cv_path_SED
3768 echo "$as_me:$LINENO: result: $SED" >&5
3769 echo "${ECHO_T}$SED" >&6
3770
3771 echo "$as_me:$LINENO: checking for egrep" >&5
3772 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3773 if test "${ac_cv_prog_egrep+set}" = set; then
3774   echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3777     then ac_cv_prog_egrep='grep -E'
3778     else ac_cv_prog_egrep='egrep'
3779     fi
3780 fi
3781 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3782 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3783  EGREP=$ac_cv_prog_egrep
3784
3785
3786
3787 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3788 if test "${with_gnu_ld+set}" = set; then
3789   withval="$with_gnu_ld"
3790   test "$withval" = no || with_gnu_ld=yes
3791 else
3792   with_gnu_ld=no
3793 fi;
3794 ac_prog=ld
3795 if test "$GCC" = yes; then
3796   # Check if gcc -print-prog-name=ld gives a path.
3797   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3798 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3799   case $host in
3800   *-*-mingw*)
3801     # gcc leaves a trailing carriage return which upsets mingw
3802     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3803   *)
3804     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3805   esac
3806   case $ac_prog in
3807     # Accept absolute paths.
3808     [\\/]* | ?:[\\/]*)
3809       re_direlt='/[^/][^/]*/\.\./'
3810       # Canonicalize the pathname of ld
3811       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3812       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3813         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3814       done
3815       test -z "$LD" && LD="$ac_prog"
3816       ;;
3817   "")
3818     # If it fails, then pretend we aren't using GCC.
3819     ac_prog=ld
3820     ;;
3821   *)
3822     # If it is relative, then search for the first ld in PATH.
3823     with_gnu_ld=unknown
3824     ;;
3825   esac
3826 elif test "$with_gnu_ld" = yes; then
3827   echo "$as_me:$LINENO: checking for GNU ld" >&5
3828 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3829 else
3830   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3831 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3832 fi
3833 if test "${lt_cv_path_LD+set}" = set; then
3834   echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836   if test -z "$LD"; then
3837   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3838   for ac_dir in $PATH; do
3839     IFS="$lt_save_ifs"
3840     test -z "$ac_dir" && ac_dir=.
3841     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3842       lt_cv_path_LD="$ac_dir/$ac_prog"
3843       # Check to see if the program is GNU ld.  I'd rather use --version,
3844       # but apparently some GNU ld's only accept -v.
3845       # Break only if it was the GNU/non-GNU ld that we prefer.
3846       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3847       *GNU* | *'with BFD'*)
3848         test "$with_gnu_ld" != no && break
3849         ;;
3850       *)
3851         test "$with_gnu_ld" != yes && break
3852         ;;
3853       esac
3854     fi
3855   done
3856   IFS="$lt_save_ifs"
3857 else
3858   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3859 fi
3860 fi
3861
3862 LD="$lt_cv_path_LD"
3863 if test -n "$LD"; then
3864   echo "$as_me:$LINENO: result: $LD" >&5
3865 echo "${ECHO_T}$LD" >&6
3866 else
3867   echo "$as_me:$LINENO: result: no" >&5
3868 echo "${ECHO_T}no" >&6
3869 fi
3870 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3871 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3872    { (exit 1); exit 1; }; }
3873 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3874 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3875 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3876   echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3879 case `$LD -v 2>&1 </dev/null` in
3880 *GNU* | *'with BFD'*)
3881   lt_cv_prog_gnu_ld=yes
3882   ;;
3883 *)
3884   lt_cv_prog_gnu_ld=no
3885   ;;
3886 esac
3887 fi
3888 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3889 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3890 with_gnu_ld=$lt_cv_prog_gnu_ld
3891
3892
3893 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3894 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3895 if test "${lt_cv_ld_reload_flag+set}" = set; then
3896   echo $ECHO_N "(cached) $ECHO_C" >&6
3897 else
3898   lt_cv_ld_reload_flag='-r'
3899 fi
3900 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3901 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3902 reload_flag=$lt_cv_ld_reload_flag
3903 case $reload_flag in
3904 "" | " "*) ;;
3905 *) reload_flag=" $reload_flag" ;;
3906 esac
3907 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3908 case $host_os in
3909   darwin*)
3910     if test "$GCC" = yes; then
3911       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3912     else
3913       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3914     fi
3915     ;;
3916 esac
3917
3918 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3919 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3920 if test "${lt_cv_path_NM+set}" = set; then
3921   echo $ECHO_N "(cached) $ECHO_C" >&6
3922 else
3923   if test -n "$NM"; then
3924   # Let the user override the test.
3925   lt_cv_path_NM="$NM"
3926 else
3927   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3928   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3929     IFS="$lt_save_ifs"
3930     test -z "$ac_dir" && ac_dir=.
3931     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3932     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3933       # Check to see if the nm accepts a BSD-compat flag.
3934       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3935       #   nm: unknown option "B" ignored
3936       # Tru64's nm complains that /dev/null is an invalid object file
3937       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3938       */dev/null* | *'Invalid file or object type'*)
3939         lt_cv_path_NM="$tmp_nm -B"
3940         break
3941         ;;
3942       *)
3943         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3944         */dev/null*)
3945           lt_cv_path_NM="$tmp_nm -p"
3946           break
3947           ;;
3948         *)
3949           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3950           continue # so that we can try to find one that supports BSD flags
3951           ;;
3952         esac
3953       esac
3954     fi
3955   done
3956   IFS="$lt_save_ifs"
3957   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3958 fi
3959 fi
3960 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3961 echo "${ECHO_T}$lt_cv_path_NM" >&6
3962 NM="$lt_cv_path_NM"
3963
3964 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3965 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3966 LN_S=$as_ln_s
3967 if test "$LN_S" = "ln -s"; then
3968   echo "$as_me:$LINENO: result: yes" >&5
3969 echo "${ECHO_T}yes" >&6
3970 else
3971   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3972 echo "${ECHO_T}no, using $LN_S" >&6
3973 fi
3974
3975 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3976 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3977 if test "${lt_cv_deplibs_check_method+set}" = set; then
3978   echo $ECHO_N "(cached) $ECHO_C" >&6
3979 else
3980   lt_cv_file_magic_cmd='$MAGIC_CMD'
3981 lt_cv_file_magic_test_file=
3982 lt_cv_deplibs_check_method='unknown'
3983 # Need to set the preceding variable on all platforms that support
3984 # interlibrary dependencies.
3985 # 'none' -- dependencies not supported.
3986 # `unknown' -- same as none, but documents that we really don't know.
3987 # 'pass_all' -- all dependencies passed with no checks.
3988 # 'test_compile' -- check by making test program.
3989 # 'file_magic [[regex]]' -- check by looking for files in library path
3990 # which responds to the $file_magic_cmd with a given extended regex.
3991 # If you have `file' or equivalent on your system and you're not sure
3992 # whether `pass_all' will *always* work, you probably want this one.
3993
3994 case $host_os in
3995 aix4* | aix5*)
3996   lt_cv_deplibs_check_method=pass_all
3997   ;;
3998
3999 beos*)
4000   lt_cv_deplibs_check_method=pass_all
4001   ;;
4002
4003 bsdi[45]*)
4004   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4005   lt_cv_file_magic_cmd='/usr/bin/file -L'
4006   lt_cv_file_magic_test_file=/shlib/libc.so
4007   ;;
4008
4009 cygwin*)
4010   # func_win32_libid is a shell function defined in ltmain.sh
4011   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4012   lt_cv_file_magic_cmd='func_win32_libid'
4013   ;;
4014
4015 mingw* | pw32*)
4016   # Base MSYS/MinGW do not provide the 'file' command needed by
4017   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4018   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4019   lt_cv_file_magic_cmd='$OBJDUMP -f'
4020   ;;
4021
4022 darwin* | rhapsody*)
4023   lt_cv_deplibs_check_method=pass_all
4024   ;;
4025
4026 freebsd* | kfreebsd*-gnu | dragonfly*)
4027   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4028     case $host_cpu in
4029     i*86 )
4030       # Not sure whether the presence of OpenBSD here was a mistake.
4031       # Let's accept both of them until this is cleared up.
4032       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4033       lt_cv_file_magic_cmd=/usr/bin/file
4034       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4035       ;;
4036     esac
4037   else
4038     lt_cv_deplibs_check_method=pass_all
4039   fi
4040   ;;
4041
4042 gnu*)
4043   lt_cv_deplibs_check_method=pass_all
4044   ;;
4045
4046 hpux10.20* | hpux11*)
4047   lt_cv_file_magic_cmd=/usr/bin/file
4048   case "$host_cpu" in
4049   ia64*)
4050     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4051     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4052     ;;
4053   hppa*64*)
4054     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]'
4055     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4056     ;;
4057   *)
4058     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4059     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4060     ;;
4061   esac
4062   ;;
4063
4064 irix5* | irix6* | nonstopux*)
4065   case $LD in
4066   *-32|*"-32 ") libmagic=32-bit;;
4067   *-n32|*"-n32 ") libmagic=N32;;
4068   *-64|*"-64 ") libmagic=64-bit;;
4069   *) libmagic=never-match;;
4070   esac
4071   lt_cv_deplibs_check_method=pass_all
4072   ;;
4073
4074 # This must be Linux ELF.
4075 linux*)
4076   lt_cv_deplibs_check_method=pass_all
4077   ;;
4078
4079 netbsd*)
4080   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4081     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4082   else
4083     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4084   fi
4085   ;;
4086
4087 newos6*)
4088   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4089   lt_cv_file_magic_cmd=/usr/bin/file
4090   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4091   ;;
4092
4093 nto-qnx*)
4094   lt_cv_deplibs_check_method=unknown
4095   ;;
4096
4097 openbsd*)
4098   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4099     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4100   else
4101     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4102   fi
4103   ;;
4104
4105 osf3* | osf4* | osf5*)
4106   lt_cv_deplibs_check_method=pass_all
4107   ;;
4108
4109 sco3.2v5*)
4110   lt_cv_deplibs_check_method=pass_all
4111   ;;
4112
4113 solaris*)
4114   lt_cv_deplibs_check_method=pass_all
4115   ;;
4116
4117 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4118   case $host_vendor in
4119   motorola)
4120     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]'
4121     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4122     ;;
4123   ncr)
4124     lt_cv_deplibs_check_method=pass_all
4125     ;;
4126   sequent)
4127     lt_cv_file_magic_cmd='/bin/file'
4128     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4129     ;;
4130   sni)
4131     lt_cv_file_magic_cmd='/bin/file'
4132     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4133     lt_cv_file_magic_test_file=/lib/libc.so
4134     ;;
4135   siemens)
4136     lt_cv_deplibs_check_method=pass_all
4137     ;;
4138   esac
4139   ;;
4140
4141 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4142   lt_cv_deplibs_check_method=pass_all
4143   ;;
4144 esac
4145
4146 fi
4147 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4148 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4149 file_magic_cmd=$lt_cv_file_magic_cmd
4150 deplibs_check_method=$lt_cv_deplibs_check_method
4151 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4152
4153
4154
4155
4156 # If no C compiler was specified, use CC.
4157 LTCC=${LTCC-"$CC"}
4158
4159 # Allow CC to be a program name with arguments.
4160 compiler=$CC
4161
4162
4163 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4164 if test "${enable_libtool_lock+set}" = set; then
4165   enableval="$enable_libtool_lock"
4166
4167 fi;
4168 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4169
4170 # Some flags need to be propagated to the compiler or linker for good
4171 # libtool support.
4172 case $host in
4173 ia64-*-hpux*)
4174   # Find out which ABI we are using.
4175   echo 'int i;' > conftest.$ac_ext
4176   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4177   (eval $ac_compile) 2>&5
4178   ac_status=$?
4179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180   (exit $ac_status); }; then
4181     case `/usr/bin/file conftest.$ac_objext` in
4182     *ELF-32*)
4183       HPUX_IA64_MODE="32"
4184       ;;
4185     *ELF-64*)
4186       HPUX_IA64_MODE="64"
4187       ;;
4188     esac
4189   fi
4190   rm -rf conftest*
4191   ;;
4192 *-*-irix6*)
4193   # Find out which ABI we are using.
4194   echo '#line 4194 "configure"' > conftest.$ac_ext
4195   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4196   (eval $ac_compile) 2>&5
4197   ac_status=$?
4198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199   (exit $ac_status); }; then
4200    if test "$lt_cv_prog_gnu_ld" = yes; then
4201     case `/usr/bin/file conftest.$ac_objext` in
4202     *32-bit*)
4203       LD="${LD-ld} -melf32bsmip"
4204       ;;
4205     *N32*)
4206       LD="${LD-ld} -melf32bmipn32"
4207       ;;
4208     *64-bit*)
4209       LD="${LD-ld} -melf64bmip"
4210       ;;
4211     esac
4212    else
4213     case `/usr/bin/file conftest.$ac_objext` in
4214     *32-bit*)
4215       LD="${LD-ld} -32"
4216       ;;
4217     *N32*)
4218       LD="${LD-ld} -n32"
4219       ;;
4220     *64-bit*)
4221       LD="${LD-ld} -64"
4222       ;;
4223     esac
4224    fi
4225   fi
4226   rm -rf conftest*
4227   ;;
4228
4229 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4230   # Find out which ABI we are using.
4231   echo 'int i;' > conftest.$ac_ext
4232   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4233   (eval $ac_compile) 2>&5
4234   ac_status=$?
4235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236   (exit $ac_status); }; then
4237     case "`/usr/bin/file conftest.o`" in
4238     *32-bit*)
4239       case $host in
4240         x86_64-*linux*)
4241           LD="${LD-ld} -m elf_i386"
4242           ;;
4243         ppc64-*linux*|powerpc64-*linux*)
4244           LD="${LD-ld} -m elf32ppclinux"
4245           ;;
4246         s390x-*linux*)
4247           LD="${LD-ld} -m elf_s390"
4248           ;;
4249         sparc64-*linux*)
4250           LD="${LD-ld} -m elf32_sparc"
4251           ;;
4252       esac
4253       ;;
4254     *64-bit*)
4255       case $host in
4256         x86_64-*linux*)
4257           LD="${LD-ld} -m elf_x86_64"
4258           ;;
4259         ppc*-*linux*|powerpc*-*linux*)
4260           LD="${LD-ld} -m elf64ppc"
4261           ;;
4262         s390*-*linux*)
4263           LD="${LD-ld} -m elf64_s390"
4264           ;;
4265         sparc*-*linux*)
4266           LD="${LD-ld} -m elf64_sparc"
4267           ;;
4268       esac
4269       ;;
4270     esac
4271   fi
4272   rm -rf conftest*
4273   ;;
4274
4275 *-*-sco3.2v5*)
4276   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4277   SAVE_CFLAGS="$CFLAGS"
4278   CFLAGS="$CFLAGS -belf"
4279   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4280 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4281 if test "${lt_cv_cc_needs_belf+set}" = set; then
4282   echo $ECHO_N "(cached) $ECHO_C" >&6
4283 else
4284   ac_ext=c
4285 ac_cpp='$CPP $CPPFLAGS'
4286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4289
4290      cat >conftest.$ac_ext <<_ACEOF
4291 /* confdefs.h.  */
4292 _ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h.  */
4296
4297 int
4298 main ()
4299 {
4300
4301   ;
4302   return 0;
4303 }
4304 _ACEOF
4305 rm -f conftest.$ac_objext conftest$ac_exeext
4306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4307   (eval $ac_link) 2>conftest.er1
4308   ac_status=$?
4309   grep -v '^ *+' conftest.er1 >conftest.err
4310   rm -f conftest.er1
4311   cat conftest.err >&5
4312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313   (exit $ac_status); } &&
4314          { ac_try='test -z "$ac_c_werror_flag"
4315                          || test ! -s conftest.err'
4316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317   (eval $ac_try) 2>&5
4318   ac_status=$?
4319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320   (exit $ac_status); }; } &&
4321          { ac_try='test -s conftest$ac_exeext'
4322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323   (eval $ac_try) 2>&5
4324   ac_status=$?
4325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326   (exit $ac_status); }; }; then
4327   lt_cv_cc_needs_belf=yes
4328 else
4329   echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4331
4332 lt_cv_cc_needs_belf=no
4333 fi
4334 rm -f conftest.err conftest.$ac_objext \
4335       conftest$ac_exeext conftest.$ac_ext
4336      ac_ext=c
4337 ac_cpp='$CPP $CPPFLAGS'
4338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4341
4342 fi
4343 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4344 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4345   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4346     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4347     CFLAGS="$SAVE_CFLAGS"
4348   fi
4349   ;;
4350
4351 esac
4352
4353 need_locks="$enable_libtool_lock"
4354
4355
4356 ac_ext=c
4357 ac_cpp='$CPP $CPPFLAGS'
4358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4361 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4362 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4363 # On Suns, sometimes $CPP names a directory.
4364 if test -n "$CPP" && test -d "$CPP"; then
4365   CPP=
4366 fi
4367 if test -z "$CPP"; then
4368   if test "${ac_cv_prog_CPP+set}" = set; then
4369   echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371       # Double quotes because CPP needs to be expanded
4372     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4373     do
4374       ac_preproc_ok=false
4375 for ac_c_preproc_warn_flag in '' yes
4376 do
4377   # Use a header file that comes with gcc, so configuring glibc
4378   # with a fresh cross-compiler works.
4379   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4380   # <limits.h> exists even on freestanding compilers.
4381   # On the NeXT, cc -E runs the code through the compiler's parser,
4382   # not just through cpp. "Syntax error" is here to catch this case.
4383   cat >conftest.$ac_ext <<_ACEOF
4384 /* confdefs.h.  */
4385 _ACEOF
4386 cat confdefs.h >>conftest.$ac_ext
4387 cat >>conftest.$ac_ext <<_ACEOF
4388 /* end confdefs.h.  */
4389 #ifdef __STDC__
4390 # include <limits.h>
4391 #else
4392 # include <assert.h>
4393 #endif
4394                      Syntax error
4395 _ACEOF
4396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4397   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4398   ac_status=$?
4399   grep -v '^ *+' conftest.er1 >conftest.err
4400   rm -f conftest.er1
4401   cat conftest.err >&5
4402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403   (exit $ac_status); } >/dev/null; then
4404   if test -s conftest.err; then
4405     ac_cpp_err=$ac_c_preproc_warn_flag
4406     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4407   else
4408     ac_cpp_err=
4409   fi
4410 else
4411   ac_cpp_err=yes
4412 fi
4413 if test -z "$ac_cpp_err"; then
4414   :
4415 else
4416   echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4418
4419   # Broken: fails on valid input.
4420 continue
4421 fi
4422 rm -f conftest.err conftest.$ac_ext
4423
4424   # OK, works on sane cases.  Now check whether non-existent headers
4425   # can be detected and how.
4426   cat >conftest.$ac_ext <<_ACEOF
4427 /* confdefs.h.  */
4428 _ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h.  */
4432 #include <ac_nonexistent.h>
4433 _ACEOF
4434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4435   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4436   ac_status=$?
4437   grep -v '^ *+' conftest.er1 >conftest.err
4438   rm -f conftest.er1
4439   cat conftest.err >&5
4440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441   (exit $ac_status); } >/dev/null; then
4442   if test -s conftest.err; then
4443     ac_cpp_err=$ac_c_preproc_warn_flag
4444     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4445   else
4446     ac_cpp_err=
4447   fi
4448 else
4449   ac_cpp_err=yes
4450 fi
4451 if test -z "$ac_cpp_err"; then
4452   # Broken: success on invalid input.
4453 continue
4454 else
4455   echo "$as_me: failed program was:" >&5
4456 sed 's/^/| /' conftest.$ac_ext >&5
4457
4458   # Passes both tests.
4459 ac_preproc_ok=:
4460 break
4461 fi
4462 rm -f conftest.err conftest.$ac_ext
4463
4464 done
4465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4466 rm -f conftest.err conftest.$ac_ext
4467 if $ac_preproc_ok; then
4468   break
4469 fi
4470
4471     done
4472     ac_cv_prog_CPP=$CPP
4473
4474 fi
4475   CPP=$ac_cv_prog_CPP
4476 else
4477   ac_cv_prog_CPP=$CPP
4478 fi
4479 echo "$as_me:$LINENO: result: $CPP" >&5
4480 echo "${ECHO_T}$CPP" >&6
4481 ac_preproc_ok=false
4482 for ac_c_preproc_warn_flag in '' yes
4483 do
4484   # Use a header file that comes with gcc, so configuring glibc
4485   # with a fresh cross-compiler works.
4486   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4487   # <limits.h> exists even on freestanding compilers.
4488   # On the NeXT, cc -E runs the code through the compiler's parser,
4489   # not just through cpp. "Syntax error" is here to catch this case.
4490   cat >conftest.$ac_ext <<_ACEOF
4491 /* confdefs.h.  */
4492 _ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h.  */
4496 #ifdef __STDC__
4497 # include <limits.h>
4498 #else
4499 # include <assert.h>
4500 #endif
4501                      Syntax error
4502 _ACEOF
4503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4504   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4505   ac_status=$?
4506   grep -v '^ *+' conftest.er1 >conftest.err
4507   rm -f conftest.er1
4508   cat conftest.err >&5
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); } >/dev/null; then
4511   if test -s conftest.err; then
4512     ac_cpp_err=$ac_c_preproc_warn_flag
4513     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4514   else
4515     ac_cpp_err=
4516   fi
4517 else
4518   ac_cpp_err=yes
4519 fi
4520 if test -z "$ac_cpp_err"; then
4521   :
4522 else
4523   echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4525
4526   # Broken: fails on valid input.
4527 continue
4528 fi
4529 rm -f conftest.err conftest.$ac_ext
4530
4531   # OK, works on sane cases.  Now check whether non-existent headers
4532   # can be detected and how.
4533   cat >conftest.$ac_ext <<_ACEOF
4534 /* confdefs.h.  */
4535 _ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h.  */
4539 #include <ac_nonexistent.h>
4540 _ACEOF
4541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4542   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4543   ac_status=$?
4544   grep -v '^ *+' conftest.er1 >conftest.err
4545   rm -f conftest.er1
4546   cat conftest.err >&5
4547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548   (exit $ac_status); } >/dev/null; then
4549   if test -s conftest.err; then
4550     ac_cpp_err=$ac_c_preproc_warn_flag
4551     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4552   else
4553     ac_cpp_err=
4554   fi
4555 else
4556   ac_cpp_err=yes
4557 fi
4558 if test -z "$ac_cpp_err"; then
4559   # Broken: success on invalid input.
4560 continue
4561 else
4562   echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4564
4565   # Passes both tests.
4566 ac_preproc_ok=:
4567 break
4568 fi
4569 rm -f conftest.err conftest.$ac_ext
4570
4571 done
4572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4573 rm -f conftest.err conftest.$ac_ext
4574 if $ac_preproc_ok; then
4575   :
4576 else
4577   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4578 See \`config.log' for more details." >&5
4579 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4580 See \`config.log' for more details." >&2;}
4581    { (exit 1); exit 1; }; }
4582 fi
4583
4584 ac_ext=c
4585 ac_cpp='$CPP $CPPFLAGS'
4586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4589
4590
4591 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4592 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4593 if test "${ac_cv_header_stdc+set}" = set; then
4594   echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596   cat >conftest.$ac_ext <<_ACEOF
4597 /* confdefs.h.  */
4598 _ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h.  */
4602 #include <stdlib.h>
4603 #include <stdarg.h>
4604 #include <string.h>
4605 #include <float.h>
4606
4607 int
4608 main ()
4609 {
4610
4611   ;
4612   return 0;
4613 }
4614 _ACEOF
4615 rm -f conftest.$ac_objext
4616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4617   (eval $ac_compile) 2>conftest.er1
4618   ac_status=$?
4619   grep -v '^ *+' conftest.er1 >conftest.err
4620   rm -f conftest.er1
4621   cat conftest.err >&5
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); } &&
4624          { ac_try='test -z "$ac_c_werror_flag"
4625                          || test ! -s conftest.err'
4626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627   (eval $ac_try) 2>&5
4628   ac_status=$?
4629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630   (exit $ac_status); }; } &&
4631          { ac_try='test -s conftest.$ac_objext'
4632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633   (eval $ac_try) 2>&5
4634   ac_status=$?
4635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636   (exit $ac_status); }; }; then
4637   ac_cv_header_stdc=yes
4638 else
4639   echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4641
4642 ac_cv_header_stdc=no
4643 fi
4644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4645
4646 if test $ac_cv_header_stdc = yes; then
4647   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4648   cat >conftest.$ac_ext <<_ACEOF
4649 /* confdefs.h.  */
4650 _ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h.  */
4654 #include <string.h>
4655
4656 _ACEOF
4657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4658   $EGREP "memchr" >/dev/null 2>&1; then
4659   :
4660 else
4661   ac_cv_header_stdc=no
4662 fi
4663 rm -f conftest*
4664
4665 fi
4666
4667 if test $ac_cv_header_stdc = yes; then
4668   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4669   cat >conftest.$ac_ext <<_ACEOF
4670 /* confdefs.h.  */
4671 _ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h.  */
4675 #include <stdlib.h>
4676
4677 _ACEOF
4678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4679   $EGREP "free" >/dev/null 2>&1; then
4680   :
4681 else
4682   ac_cv_header_stdc=no
4683 fi
4684 rm -f conftest*
4685
4686 fi
4687
4688 if test $ac_cv_header_stdc = yes; then
4689   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4690   if test "$cross_compiling" = yes; then
4691   :
4692 else
4693   cat >conftest.$ac_ext <<_ACEOF
4694 /* confdefs.h.  */
4695 _ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h.  */
4699 #include <ctype.h>
4700 #if ((' ' & 0x0FF) == 0x020)
4701 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4702 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4703 #else
4704 # define ISLOWER(c) \
4705                    (('a' <= (c) && (c) <= 'i') \
4706                      || ('j' <= (c) && (c) <= 'r') \
4707                      || ('s' <= (c) && (c) <= 'z'))
4708 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4709 #endif
4710
4711 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4712 int
4713 main ()
4714 {
4715   int i;
4716   for (i = 0; i < 256; i++)
4717     if (XOR (islower (i), ISLOWER (i))
4718         || toupper (i) != TOUPPER (i))
4719       exit(2);
4720   exit (0);
4721 }
4722 _ACEOF
4723 rm -f conftest$ac_exeext
4724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4725   (eval $ac_link) 2>&5
4726   ac_status=$?
4727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730   (eval $ac_try) 2>&5
4731   ac_status=$?
4732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733   (exit $ac_status); }; }; then
4734   :
4735 else
4736   echo "$as_me: program exited with status $ac_status" >&5
4737 echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4739
4740 ( exit $ac_status )
4741 ac_cv_header_stdc=no
4742 fi
4743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4744 fi
4745 fi
4746 fi
4747 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4748 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4749 if test $ac_cv_header_stdc = yes; then
4750
4751 cat >>confdefs.h <<\_ACEOF
4752 #define STDC_HEADERS 1
4753 _ACEOF
4754
4755 fi
4756
4757 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4768                   inttypes.h stdint.h unistd.h
4769 do
4770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4771 echo "$as_me:$LINENO: checking for $ac_header" >&5
4772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4774   echo $ECHO_N "(cached) $ECHO_C" >&6
4775 else
4776   cat >conftest.$ac_ext <<_ACEOF
4777 /* confdefs.h.  */
4778 _ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h.  */
4782 $ac_includes_default
4783
4784 #include <$ac_header>
4785 _ACEOF
4786 rm -f conftest.$ac_objext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788   (eval $ac_compile) 2>conftest.er1
4789   ac_status=$?
4790   grep -v '^ *+' conftest.er1 >conftest.err
4791   rm -f conftest.er1
4792   cat conftest.err >&5
4793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794   (exit $ac_status); } &&
4795          { ac_try='test -z "$ac_c_werror_flag"
4796                          || test ! -s conftest.err'
4797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798   (eval $ac_try) 2>&5
4799   ac_status=$?
4800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801   (exit $ac_status); }; } &&
4802          { ac_try='test -s conftest.$ac_objext'
4803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804   (eval $ac_try) 2>&5
4805   ac_status=$?
4806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807   (exit $ac_status); }; }; then
4808   eval "$as_ac_Header=yes"
4809 else
4810   echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4812
4813 eval "$as_ac_Header=no"
4814 fi
4815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4816 fi
4817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4820   cat >>confdefs.h <<_ACEOF
4821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4822 _ACEOF
4823
4824 fi
4825
4826 done
4827
4828
4829
4830 for ac_header in dlfcn.h
4831 do
4832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4834   echo "$as_me:$LINENO: checking for $ac_header" >&5
4835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4837   echo $ECHO_N "(cached) $ECHO_C" >&6
4838 fi
4839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4841 else
4842   # Is the header compilable?
4843 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4845 cat >conftest.$ac_ext <<_ACEOF
4846 /* confdefs.h.  */
4847 _ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h.  */
4851 $ac_includes_default
4852 #include <$ac_header>
4853 _ACEOF
4854 rm -f conftest.$ac_objext
4855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4856   (eval $ac_compile) 2>conftest.er1
4857   ac_status=$?
4858   grep -v '^ *+' conftest.er1 >conftest.err
4859   rm -f conftest.er1
4860   cat conftest.err >&5
4861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862   (exit $ac_status); } &&
4863          { ac_try='test -z "$ac_c_werror_flag"
4864                          || test ! -s conftest.err'
4865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866   (eval $ac_try) 2>&5
4867   ac_status=$?
4868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869   (exit $ac_status); }; } &&
4870          { ac_try='test -s conftest.$ac_objext'
4871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872   (eval $ac_try) 2>&5
4873   ac_status=$?
4874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875   (exit $ac_status); }; }; then
4876   ac_header_compiler=yes
4877 else
4878   echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4880
4881 ac_header_compiler=no
4882 fi
4883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4885 echo "${ECHO_T}$ac_header_compiler" >&6
4886
4887 # Is the header present?
4888 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4890 cat >conftest.$ac_ext <<_ACEOF
4891 /* confdefs.h.  */
4892 _ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h.  */
4896 #include <$ac_header>
4897 _ACEOF
4898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4899   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4900   ac_status=$?
4901   grep -v '^ *+' conftest.er1 >conftest.err
4902   rm -f conftest.er1
4903   cat conftest.err >&5
4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905   (exit $ac_status); } >/dev/null; then
4906   if test -s conftest.err; then
4907     ac_cpp_err=$ac_c_preproc_warn_flag
4908     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4909   else
4910     ac_cpp_err=
4911   fi
4912 else
4913   ac_cpp_err=yes
4914 fi
4915 if test -z "$ac_cpp_err"; then
4916   ac_header_preproc=yes
4917 else
4918   echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.$ac_ext >&5
4920
4921   ac_header_preproc=no
4922 fi
4923 rm -f conftest.err conftest.$ac_ext
4924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4925 echo "${ECHO_T}$ac_header_preproc" >&6
4926
4927 # So?  What about this header?
4928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4929   yes:no: )
4930     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4932     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4934     ac_header_preproc=yes
4935     ;;
4936   no:yes:* )
4937     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4939     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4940 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4941     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4943     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4944 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4945     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4947     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4949     (
4950       cat <<\_ASBOX
4951 ## ------------------------------------------ ##
4952 ## Report this to the AC_PACKAGE_NAME lists.  ##
4953 ## ------------------------------------------ ##
4954 _ASBOX
4955     ) |
4956       sed "s/^/$as_me: WARNING:     /" >&2
4957     ;;
4958 esac
4959 echo "$as_me:$LINENO: checking for $ac_header" >&5
4960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4962   echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964   eval "$as_ac_Header=\$ac_header_preproc"
4965 fi
4966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4968
4969 fi
4970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4971   cat >>confdefs.h <<_ACEOF
4972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4973 _ACEOF
4974
4975 fi
4976
4977 done
4978
4979
4980
4981 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4982     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4983     (test "X$CXX" != "Xg++"))) ; then
4984   ac_ext=cc
4985 ac_cpp='$CXXCPP $CPPFLAGS'
4986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4989 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4990 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4991 if test -z "$CXXCPP"; then
4992   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4993   echo $ECHO_N "(cached) $ECHO_C" >&6
4994 else
4995       # Double quotes because CXXCPP needs to be expanded
4996     for CXXCPP in "$CXX -E" "/lib/cpp"
4997     do
4998       ac_preproc_ok=false
4999 for ac_cxx_preproc_warn_flag in '' yes
5000 do
5001   # Use a header file that comes with gcc, so configuring glibc
5002   # with a fresh cross-compiler works.
5003   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5004   # <limits.h> exists even on freestanding compilers.
5005   # On the NeXT, cc -E runs the code through the compiler's parser,
5006   # not just through cpp. "Syntax error" is here to catch this case.
5007   cat >conftest.$ac_ext <<_ACEOF
5008 /* confdefs.h.  */
5009 _ACEOF
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h.  */
5013 #ifdef __STDC__
5014 # include <limits.h>
5015 #else
5016 # include <assert.h>
5017 #endif
5018                      Syntax error
5019 _ACEOF
5020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5021   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5022   ac_status=$?
5023   grep -v '^ *+' conftest.er1 >conftest.err
5024   rm -f conftest.er1
5025   cat conftest.err >&5
5026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027   (exit $ac_status); } >/dev/null; then
5028   if test -s conftest.err; then
5029     ac_cpp_err=$ac_cxx_preproc_warn_flag
5030     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5031   else
5032     ac_cpp_err=
5033   fi
5034 else
5035   ac_cpp_err=yes
5036 fi
5037 if test -z "$ac_cpp_err"; then
5038   :
5039 else
5040   echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5042
5043   # Broken: fails on valid input.
5044 continue
5045 fi
5046 rm -f conftest.err conftest.$ac_ext
5047
5048   # OK, works on sane cases.  Now check whether non-existent headers
5049   # can be detected and how.
5050   cat >conftest.$ac_ext <<_ACEOF
5051 /* confdefs.h.  */
5052 _ACEOF
5053 cat confdefs.h >>conftest.$ac_ext
5054 cat >>conftest.$ac_ext <<_ACEOF
5055 /* end confdefs.h.  */
5056 #include <ac_nonexistent.h>
5057 _ACEOF
5058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5059   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5060   ac_status=$?
5061   grep -v '^ *+' conftest.er1 >conftest.err
5062   rm -f conftest.er1
5063   cat conftest.err >&5
5064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065   (exit $ac_status); } >/dev/null; then
5066   if test -s conftest.err; then
5067     ac_cpp_err=$ac_cxx_preproc_warn_flag
5068     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5069   else
5070     ac_cpp_err=
5071   fi
5072 else
5073   ac_cpp_err=yes
5074 fi
5075 if test -z "$ac_cpp_err"; then
5076   # Broken: success on invalid input.
5077 continue
5078 else
5079   echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5081
5082   # Passes both tests.
5083 ac_preproc_ok=:
5084 break
5085 fi
5086 rm -f conftest.err conftest.$ac_ext
5087
5088 done
5089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5090 rm -f conftest.err conftest.$ac_ext
5091 if $ac_preproc_ok; then
5092   break
5093 fi
5094
5095     done
5096     ac_cv_prog_CXXCPP=$CXXCPP
5097
5098 fi
5099   CXXCPP=$ac_cv_prog_CXXCPP
5100 else
5101   ac_cv_prog_CXXCPP=$CXXCPP
5102 fi
5103 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5104 echo "${ECHO_T}$CXXCPP" >&6
5105 ac_preproc_ok=false
5106 for ac_cxx_preproc_warn_flag in '' yes
5107 do
5108   # Use a header file that comes with gcc, so configuring glibc
5109   # with a fresh cross-compiler works.
5110   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5111   # <limits.h> exists even on freestanding compilers.
5112   # On the NeXT, cc -E runs the code through the compiler's parser,
5113   # not just through cpp. "Syntax error" is here to catch this case.
5114   cat >conftest.$ac_ext <<_ACEOF
5115 /* confdefs.h.  */
5116 _ACEOF
5117 cat confdefs.h >>conftest.$ac_ext
5118 cat >>conftest.$ac_ext <<_ACEOF
5119 /* end confdefs.h.  */
5120 #ifdef __STDC__
5121 # include <limits.h>
5122 #else
5123 # include <assert.h>
5124 #endif
5125                      Syntax error
5126 _ACEOF
5127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5128   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5129   ac_status=$?
5130   grep -v '^ *+' conftest.er1 >conftest.err
5131   rm -f conftest.er1
5132   cat conftest.err >&5
5133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134   (exit $ac_status); } >/dev/null; then
5135   if test -s conftest.err; then
5136     ac_cpp_err=$ac_cxx_preproc_warn_flag
5137     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5138   else
5139     ac_cpp_err=
5140   fi
5141 else
5142   ac_cpp_err=yes
5143 fi
5144 if test -z "$ac_cpp_err"; then
5145   :
5146 else
5147   echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5149
5150   # Broken: fails on valid input.
5151 continue
5152 fi
5153 rm -f conftest.err conftest.$ac_ext
5154
5155   # OK, works on sane cases.  Now check whether non-existent headers
5156   # can be detected and how.
5157   cat >conftest.$ac_ext <<_ACEOF
5158 /* confdefs.h.  */
5159 _ACEOF
5160 cat confdefs.h >>conftest.$ac_ext
5161 cat >>conftest.$ac_ext <<_ACEOF
5162 /* end confdefs.h.  */
5163 #include <ac_nonexistent.h>
5164 _ACEOF
5165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5166   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5167   ac_status=$?
5168   grep -v '^ *+' conftest.er1 >conftest.err
5169   rm -f conftest.er1
5170   cat conftest.err >&5
5171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172   (exit $ac_status); } >/dev/null; then
5173   if test -s conftest.err; then
5174     ac_cpp_err=$ac_cxx_preproc_warn_flag
5175     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5176   else
5177     ac_cpp_err=
5178   fi
5179 else
5180   ac_cpp_err=yes
5181 fi
5182 if test -z "$ac_cpp_err"; then
5183   # Broken: success on invalid input.
5184 continue
5185 else
5186   echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5188
5189   # Passes both tests.
5190 ac_preproc_ok=:
5191 break
5192 fi
5193 rm -f conftest.err conftest.$ac_ext
5194
5195 done
5196 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5197 rm -f conftest.err conftest.$ac_ext
5198 if $ac_preproc_ok; then
5199   :
5200 else
5201   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5202 See \`config.log' for more details." >&5
5203 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5204 See \`config.log' for more details." >&2;}
5205    { (exit 1); exit 1; }; }
5206 fi
5207
5208 ac_ext=cc
5209 ac_cpp='$CXXCPP $CPPFLAGS'
5210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213
5214 fi
5215
5216
5217 ac_ext=f
5218 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5219 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5220 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5221 if test -n "$ac_tool_prefix"; then
5222   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5223   do
5224     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5225 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5226 echo "$as_me:$LINENO: checking for $ac_word" >&5
5227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5228 if test "${ac_cv_prog_F77+set}" = set; then
5229   echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231   if test -n "$F77"; then
5232   ac_cv_prog_F77="$F77" # Let the user override the test.
5233 else
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5236 do
5237   IFS=$as_save_IFS
5238   test -z "$as_dir" && as_dir=.
5239   for ac_exec_ext in '' $ac_executable_extensions; do
5240   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5243     break 2
5244   fi
5245 done
5246 done
5247
5248 fi
5249 fi
5250 F77=$ac_cv_prog_F77
5251 if test -n "$F77"; then
5252   echo "$as_me:$LINENO: result: $F77" >&5
5253 echo "${ECHO_T}$F77" >&6
5254 else
5255   echo "$as_me:$LINENO: result: no" >&5
5256 echo "${ECHO_T}no" >&6
5257 fi
5258
5259     test -n "$F77" && break
5260   done
5261 fi
5262 if test -z "$F77"; then
5263   ac_ct_F77=$F77
5264   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5265 do
5266   # Extract the first word of "$ac_prog", so it can be a program name with args.
5267 set dummy $ac_prog; ac_word=$2
5268 echo "$as_me:$LINENO: checking for $ac_word" >&5
5269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5270 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5271   echo $ECHO_N "(cached) $ECHO_C" >&6
5272 else
5273   if test -n "$ac_ct_F77"; then
5274   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5275 else
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5278 do
5279   IFS=$as_save_IFS
5280   test -z "$as_dir" && as_dir=.
5281   for ac_exec_ext in '' $ac_executable_extensions; do
5282   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5283     ac_cv_prog_ac_ct_F77="$ac_prog"
5284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285     break 2
5286   fi
5287 done
5288 done
5289
5290 fi
5291 fi
5292 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5293 if test -n "$ac_ct_F77"; then
5294   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5295 echo "${ECHO_T}$ac_ct_F77" >&6
5296 else
5297   echo "$as_me:$LINENO: result: no" >&5
5298 echo "${ECHO_T}no" >&6
5299 fi
5300
5301   test -n "$ac_ct_F77" && break
5302 done
5303
5304   F77=$ac_ct_F77
5305 fi
5306
5307
5308 # Provide some information about the compiler.
5309 echo "$as_me:5309:" \
5310      "checking for Fortran 77 compiler version" >&5
5311 ac_compiler=`set X $ac_compile; echo $2`
5312 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5313   (eval $ac_compiler --version </dev/null >&5) 2>&5
5314   ac_status=$?
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); }
5317 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5318   (eval $ac_compiler -v </dev/null >&5) 2>&5
5319   ac_status=$?
5320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321   (exit $ac_status); }
5322 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5323   (eval $ac_compiler -V </dev/null >&5) 2>&5
5324   ac_status=$?
5325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326   (exit $ac_status); }
5327 rm -f a.out
5328
5329 # If we don't use `.F' as extension, the preprocessor is not run on the
5330 # input file.  (Note that this only needs to work for GNU compilers.)
5331 ac_save_ext=$ac_ext
5332 ac_ext=F
5333 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5334 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5335 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5336   echo $ECHO_N "(cached) $ECHO_C" >&6
5337 else
5338   cat >conftest.$ac_ext <<_ACEOF
5339       program main
5340 #ifndef __GNUC__
5341        choke me
5342 #endif
5343
5344       end
5345 _ACEOF
5346 rm -f conftest.$ac_objext
5347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5348   (eval $ac_compile) 2>conftest.er1
5349   ac_status=$?
5350   grep -v '^ *+' conftest.er1 >conftest.err
5351   rm -f conftest.er1
5352   cat conftest.err >&5
5353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354   (exit $ac_status); } &&
5355          { ac_try='test -z "$ac_f77_werror_flag"
5356                          || test ! -s conftest.err'
5357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358   (eval $ac_try) 2>&5
5359   ac_status=$?
5360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361   (exit $ac_status); }; } &&
5362          { ac_try='test -s conftest.$ac_objext'
5363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5364   (eval $ac_try) 2>&5
5365   ac_status=$?
5366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367   (exit $ac_status); }; }; then
5368   ac_compiler_gnu=yes
5369 else
5370   echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5372
5373 ac_compiler_gnu=no
5374 fi
5375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5376 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5377
5378 fi
5379 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5380 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5381 ac_ext=$ac_save_ext
5382 ac_test_FFLAGS=${FFLAGS+set}
5383 ac_save_FFLAGS=$FFLAGS
5384 FFLAGS=
5385 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5386 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5387 if test "${ac_cv_prog_f77_g+set}" = set; then
5388   echo $ECHO_N "(cached) $ECHO_C" >&6
5389 else
5390   FFLAGS=-g
5391 cat >conftest.$ac_ext <<_ACEOF
5392       program main
5393
5394       end
5395 _ACEOF
5396 rm -f conftest.$ac_objext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5398   (eval $ac_compile) 2>conftest.er1
5399   ac_status=$?
5400   grep -v '^ *+' conftest.er1 >conftest.err
5401   rm -f conftest.er1
5402   cat conftest.err >&5
5403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404   (exit $ac_status); } &&
5405          { ac_try='test -z "$ac_f77_werror_flag"
5406                          || test ! -s conftest.err'
5407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408   (eval $ac_try) 2>&5
5409   ac_status=$?
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); }; } &&
5412          { ac_try='test -s conftest.$ac_objext'
5413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414   (eval $ac_try) 2>&5
5415   ac_status=$?
5416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417   (exit $ac_status); }; }; then
5418   ac_cv_prog_f77_g=yes
5419 else
5420   echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5422
5423 ac_cv_prog_f77_g=no
5424 fi
5425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5426
5427 fi
5428 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5429 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5430 if test "$ac_test_FFLAGS" = set; then
5431   FFLAGS=$ac_save_FFLAGS
5432 elif test $ac_cv_prog_f77_g = yes; then
5433   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5434     FFLAGS="-g -O2"
5435   else
5436     FFLAGS="-g"
5437   fi
5438 else
5439   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5440     FFLAGS="-O2"
5441   else
5442     FFLAGS=
5443   fi
5444 fi
5445
5446 G77=`test $ac_compiler_gnu = yes && echo yes`
5447 ac_ext=c
5448 ac_cpp='$CPP $CPPFLAGS'
5449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5452
5453
5454
5455 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5456
5457 # find the maximum length of command line arguments
5458 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5459 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5460 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5461   echo $ECHO_N "(cached) $ECHO_C" >&6
5462 else
5463     i=0
5464   teststring="ABCD"
5465
5466   case $build_os in
5467   msdosdjgpp*)
5468     # On DJGPP, this test can blow up pretty badly due to problems in libc
5469     # (any single argument exceeding 2000 bytes causes a buffer overrun
5470     # during glob expansion).  Even if it were fixed, the result of this
5471     # check would be larger than it should be.
5472     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5473     ;;
5474
5475   gnu*)
5476     # Under GNU Hurd, this test is not required because there is
5477     # no limit to the length of command line arguments.
5478     # Libtool will interpret -1 as no limit whatsoever
5479     lt_cv_sys_max_cmd_len=-1;
5480     ;;
5481
5482   cygwin* | mingw*)
5483     # On Win9x/ME, this test blows up -- it succeeds, but takes
5484     # about 5 minutes as the teststring grows exponentially.
5485     # Worse, since 9x/ME are not pre-emptively multitasking,
5486     # you end up with a "frozen" computer, even though with patience
5487     # the test eventually succeeds (with a max line length of 256k).
5488     # Instead, let's just punt: use the minimum linelength reported by
5489     # all of the supported platforms: 8192 (on NT/2K/XP).
5490     lt_cv_sys_max_cmd_len=8192;
5491     ;;
5492
5493   amigaos*)
5494     # On AmigaOS with pdksh, this test takes hours, literally.
5495     # So we just punt and use a minimum line length of 8192.
5496     lt_cv_sys_max_cmd_len=8192;
5497     ;;
5498
5499   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5500     # This has been around since 386BSD, at least.  Likely further.
5501     if test -x /sbin/sysctl; then
5502       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5503     elif test -x /usr/sbin/sysctl; then
5504       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5505     else
5506       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5507     fi
5508     # And add a safety zone
5509     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5510     ;;
5511   osf*)
5512     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5513     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5514     # nice to cause kernel panics so lets avoid the loop below.
5515     # First set a reasonable default.
5516     lt_cv_sys_max_cmd_len=16384
5517     #
5518     if test -x /sbin/sysconfig; then
5519       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5520         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5521       esac
5522     fi
5523     ;;
5524   *)
5525     # If test is not a shell built-in, we'll probably end up computing a
5526     # maximum length that is only half of the actual maximum length, but
5527     # we can't tell.
5528     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5529     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5530                = "XX$teststring") >/dev/null 2>&1 &&
5531             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5532             lt_cv_sys_max_cmd_len=$new_result &&
5533             test $i != 17 # 1/2 MB should be enough
5534     do
5535       i=`expr $i + 1`
5536       teststring=$teststring$teststring
5537     done
5538     teststring=
5539     # Add a significant safety factor because C++ compilers can tack on massive
5540     # amounts of additional arguments before passing them to the linker.
5541     # It appears as though 1/2 is a usable value.
5542     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5543     ;;
5544   esac
5545
5546 fi
5547
5548 if test -n $lt_cv_sys_max_cmd_len ; then
5549   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5550 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5551 else
5552   echo "$as_me:$LINENO: result: none" >&5
5553 echo "${ECHO_T}none" >&6
5554 fi
5555
5556
5557
5558
5559 # Check for command to grab the raw symbol name followed by C symbol from nm.
5560 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5561 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5562 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5563   echo $ECHO_N "(cached) $ECHO_C" >&6
5564 else
5565
5566 # These are sane defaults that work on at least a few old systems.
5567 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5568
5569 # Character class describing NM global symbol codes.
5570 symcode='[BCDEGRST]'
5571
5572 # Regexp to match symbols that can be accessed directly from C.
5573 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5574
5575 # Transform an extracted symbol line into a proper C declaration
5576 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5577
5578 # Transform an extracted symbol line into symbol name and symbol address
5579 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'"
5580
5581 # Define system-specific variables.
5582 case $host_os in
5583 aix*)
5584   symcode='[BCDT]'
5585   ;;
5586 cygwin* | mingw* | pw32*)
5587   symcode='[ABCDGISTW]'
5588   ;;
5589 hpux*) # Its linker distinguishes data from code symbols
5590   if test "$host_cpu" = ia64; then
5591     symcode='[ABCDEGRST]'
5592   fi
5593   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5594   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'"
5595   ;;
5596 linux*)
5597   if test "$host_cpu" = ia64; then
5598     symcode='[ABCDGIRSTW]'
5599     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5600     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'"
5601   fi
5602   ;;
5603 irix* | nonstopux*)
5604   symcode='[BCDEGRST]'
5605   ;;
5606 osf*)
5607   symcode='[BCDEGQRST]'
5608   ;;
5609 solaris* | sysv5*)
5610   symcode='[BDRT]'
5611   ;;
5612 sysv4)
5613   symcode='[DFNSTU]'
5614   ;;
5615 esac
5616
5617 # Handle CRLF in mingw tool chain
5618 opt_cr=
5619 case $build_os in
5620 mingw*)
5621   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5622   ;;
5623 esac
5624
5625 # If we're using GNU nm, then use its standard symbol codes.
5626 case `$NM -V 2>&1` in
5627 *GNU* | *'with BFD'*)
5628   symcode='[ABCDGIRSTW]' ;;
5629 esac
5630
5631 # Try without a prefix undercore, then with it.
5632 for ac_symprfx in "" "_"; do
5633
5634   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5635   symxfrm="\\1 $ac_symprfx\\2 \\2"
5636
5637   # Write the raw and C identifiers.
5638   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5639
5640   # Check to see that the pipe works correctly.
5641   pipe_works=no
5642
5643   rm -f conftest*
5644   cat > conftest.$ac_ext <<EOF
5645 #ifdef __cplusplus
5646 extern "C" {
5647 #endif
5648 char nm_test_var;
5649 void nm_test_func(){}
5650 #ifdef __cplusplus
5651 }
5652 #endif
5653 int main(){nm_test_var='a';nm_test_func();return(0);}
5654 EOF
5655
5656   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5657   (eval $ac_compile) 2>&5
5658   ac_status=$?
5659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660   (exit $ac_status); }; then
5661     # Now try to grab the symbols.
5662     nlist=conftest.nm
5663     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5664   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5665   ac_status=$?
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); } && test -s "$nlist"; then
5668       # Try sorting and uniquifying the output.
5669       if sort "$nlist" | uniq > "$nlist"T; then
5670         mv -f "$nlist"T "$nlist"
5671       else
5672         rm -f "$nlist"T
5673       fi
5674
5675       # Make sure that we snagged all the symbols we need.
5676       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5677         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5678           cat <<EOF > conftest.$ac_ext
5679 #ifdef __cplusplus
5680 extern "C" {
5681 #endif
5682
5683 EOF
5684           # Now generate the symbol file.
5685           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5686
5687           cat <<EOF >> conftest.$ac_ext
5688 #if defined (__STDC__) && __STDC__
5689 # define lt_ptr_t void *
5690 #else
5691 # define lt_ptr_t char *
5692 # define const
5693 #endif
5694
5695 /* The mapping between symbol names and symbols. */
5696 const struct {
5697   const char *name;
5698   lt_ptr_t address;
5699 }
5700 lt_preloaded_symbols[] =
5701 {
5702 EOF
5703           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5704           cat <<\EOF >> conftest.$ac_ext
5705   {0, (lt_ptr_t) 0}
5706 };
5707
5708 #ifdef __cplusplus
5709 }
5710 #endif
5711 EOF
5712           # Now try linking the two files.
5713           mv conftest.$ac_objext conftstm.$ac_objext
5714           lt_save_LIBS="$LIBS"
5715           lt_save_CFLAGS="$CFLAGS"
5716           LIBS="conftstm.$ac_objext"
5717           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5718           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5719   (eval $ac_link) 2>&5
5720   ac_status=$?
5721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5723             pipe_works=yes
5724           fi
5725           LIBS="$lt_save_LIBS"
5726           CFLAGS="$lt_save_CFLAGS"
5727         else
5728           echo "cannot find nm_test_func in $nlist" >&5
5729         fi
5730       else
5731         echo "cannot find nm_test_var in $nlist" >&5
5732       fi
5733     else
5734       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5735     fi
5736   else
5737     echo "$progname: failed program was:" >&5
5738     cat conftest.$ac_ext >&5
5739   fi
5740   rm -f conftest* conftst*
5741
5742   # Do not use the global_symbol_pipe unless it works.
5743   if test "$pipe_works" = yes; then
5744     break
5745   else
5746     lt_cv_sys_global_symbol_pipe=
5747   fi
5748 done
5749
5750 fi
5751
5752 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5753   lt_cv_sys_global_symbol_to_cdecl=
5754 fi
5755 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5756   echo "$as_me:$LINENO: result: failed" >&5
5757 echo "${ECHO_T}failed" >&6
5758 else
5759   echo "$as_me:$LINENO: result: ok" >&5
5760 echo "${ECHO_T}ok" >&6
5761 fi
5762
5763 echo "$as_me:$LINENO: checking for objdir" >&5
5764 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5765 if test "${lt_cv_objdir+set}" = set; then
5766   echo $ECHO_N "(cached) $ECHO_C" >&6
5767 else
5768   rm -f .libs 2>/dev/null
5769 mkdir .libs 2>/dev/null
5770 if test -d .libs; then
5771   lt_cv_objdir=.libs
5772 else
5773   # MS-DOS does not allow filenames that begin with a dot.
5774   lt_cv_objdir=_libs
5775 fi
5776 rmdir .libs 2>/dev/null
5777 fi
5778 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5779 echo "${ECHO_T}$lt_cv_objdir" >&6
5780 objdir=$lt_cv_objdir
5781
5782
5783
5784
5785
5786 case $host_os in
5787 aix3*)
5788   # AIX sometimes has problems with the GCC collect2 program.  For some
5789   # reason, if we set the COLLECT_NAMES environment variable, the problems
5790   # vanish in a puff of smoke.
5791   if test "X${COLLECT_NAMES+set}" != Xset; then
5792     COLLECT_NAMES=
5793     export COLLECT_NAMES
5794   fi
5795   ;;
5796 esac
5797
5798 # Sed substitution that helps us do robust quoting.  It backslashifies
5799 # metacharacters that are still active within double-quoted strings.
5800 Xsed='sed -e s/^X//'
5801 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5802
5803 # Same as above, but do not quote variable references.
5804 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5805
5806 # Sed substitution to delay expansion of an escaped shell variable in a
5807 # double_quote_subst'ed string.
5808 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5809
5810 # Sed substitution to avoid accidental globbing in evaled expressions
5811 no_glob_subst='s/\*/\\\*/g'
5812
5813 # Constants:
5814 rm="rm -f"
5815
5816 # Global variables:
5817 default_ofile=libtool
5818 can_build_shared=yes
5819
5820 # All known linkers require a `.a' archive for static linking (except M$VC,
5821 # which needs '.lib').
5822 libext=a
5823 ltmain="$ac_aux_dir/ltmain.sh"
5824 ofile="$default_ofile"
5825 with_gnu_ld="$lt_cv_prog_gnu_ld"
5826
5827 if test -n "$ac_tool_prefix"; then
5828   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5829 set dummy ${ac_tool_prefix}ar; ac_word=$2
5830 echo "$as_me:$LINENO: checking for $ac_word" >&5
5831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5832 if test "${ac_cv_prog_AR+set}" = set; then
5833   echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835   if test -n "$AR"; then
5836   ac_cv_prog_AR="$AR" # Let the user override the test.
5837 else
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 for as_dir in $PATH
5840 do
5841   IFS=$as_save_IFS
5842   test -z "$as_dir" && as_dir=.
5843   for ac_exec_ext in '' $ac_executable_extensions; do
5844   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5845     ac_cv_prog_AR="${ac_tool_prefix}ar"
5846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5847     break 2
5848   fi
5849 done
5850 done
5851
5852 fi
5853 fi
5854 AR=$ac_cv_prog_AR
5855 if test -n "$AR"; then
5856   echo "$as_me:$LINENO: result: $AR" >&5
5857 echo "${ECHO_T}$AR" >&6
5858 else
5859   echo "$as_me:$LINENO: result: no" >&5
5860 echo "${ECHO_T}no" >&6
5861 fi
5862
5863 fi
5864 if test -z "$ac_cv_prog_AR"; then
5865   ac_ct_AR=$AR
5866   # Extract the first word of "ar", so it can be a program name with args.
5867 set dummy ar; ac_word=$2
5868 echo "$as_me:$LINENO: checking for $ac_word" >&5
5869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5870 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5871   echo $ECHO_N "(cached) $ECHO_C" >&6
5872 else
5873   if test -n "$ac_ct_AR"; then
5874   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5875 else
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5878 do
5879   IFS=$as_save_IFS
5880   test -z "$as_dir" && as_dir=.
5881   for ac_exec_ext in '' $ac_executable_extensions; do
5882   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5883     ac_cv_prog_ac_ct_AR="ar"
5884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5885     break 2
5886   fi
5887 done
5888 done
5889
5890   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5891 fi
5892 fi
5893 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5894 if test -n "$ac_ct_AR"; then
5895   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5896 echo "${ECHO_T}$ac_ct_AR" >&6
5897 else
5898   echo "$as_me:$LINENO: result: no" >&5
5899 echo "${ECHO_T}no" >&6
5900 fi
5901
5902   AR=$ac_ct_AR
5903 else
5904   AR="$ac_cv_prog_AR"
5905 fi
5906
5907 if test -n "$ac_tool_prefix"; then
5908   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5909 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5910 echo "$as_me:$LINENO: checking for $ac_word" >&5
5911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5912 if test "${ac_cv_prog_RANLIB+set}" = set; then
5913   echo $ECHO_N "(cached) $ECHO_C" >&6
5914 else
5915   if test -n "$RANLIB"; then
5916   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5917 else
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH
5920 do
5921   IFS=$as_save_IFS
5922   test -z "$as_dir" && as_dir=.
5923   for ac_exec_ext in '' $ac_executable_extensions; do
5924   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5925     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5927     break 2
5928   fi
5929 done
5930 done
5931
5932 fi
5933 fi
5934 RANLIB=$ac_cv_prog_RANLIB
5935 if test -n "$RANLIB"; then
5936   echo "$as_me:$LINENO: result: $RANLIB" >&5
5937 echo "${ECHO_T}$RANLIB" >&6
5938 else
5939   echo "$as_me:$LINENO: result: no" >&5
5940 echo "${ECHO_T}no" >&6
5941 fi
5942
5943 fi
5944 if test -z "$ac_cv_prog_RANLIB"; then
5945   ac_ct_RANLIB=$RANLIB
5946   # Extract the first word of "ranlib", so it can be a program name with args.
5947 set dummy ranlib; ac_word=$2
5948 echo "$as_me:$LINENO: checking for $ac_word" >&5
5949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5950 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5951   echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953   if test -n "$ac_ct_RANLIB"; then
5954   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5955 else
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 for as_dir in $PATH
5958 do
5959   IFS=$as_save_IFS
5960   test -z "$as_dir" && as_dir=.
5961   for ac_exec_ext in '' $ac_executable_extensions; do
5962   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5963     ac_cv_prog_ac_ct_RANLIB="ranlib"
5964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5965     break 2
5966   fi
5967 done
5968 done
5969
5970   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5971 fi
5972 fi
5973 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5974 if test -n "$ac_ct_RANLIB"; then
5975   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5976 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5977 else
5978   echo "$as_me:$LINENO: result: no" >&5
5979 echo "${ECHO_T}no" >&6
5980 fi
5981
5982   RANLIB=$ac_ct_RANLIB
5983 else
5984   RANLIB="$ac_cv_prog_RANLIB"
5985 fi
5986
5987 if test -n "$ac_tool_prefix"; then
5988   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5989 set dummy ${ac_tool_prefix}strip; ac_word=$2
5990 echo "$as_me:$LINENO: checking for $ac_word" >&5
5991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5992 if test "${ac_cv_prog_STRIP+set}" = set; then
5993   echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995   if test -n "$STRIP"; then
5996   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5997 else
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 for as_dir in $PATH
6000 do
6001   IFS=$as_save_IFS
6002   test -z "$as_dir" && as_dir=.
6003   for ac_exec_ext in '' $ac_executable_extensions; do
6004   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6005     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007     break 2
6008   fi
6009 done
6010 done
6011
6012 fi
6013 fi
6014 STRIP=$ac_cv_prog_STRIP
6015 if test -n "$STRIP"; then
6016   echo "$as_me:$LINENO: result: $STRIP" >&5
6017 echo "${ECHO_T}$STRIP" >&6
6018 else
6019   echo "$as_me:$LINENO: result: no" >&5
6020 echo "${ECHO_T}no" >&6
6021 fi
6022
6023 fi
6024 if test -z "$ac_cv_prog_STRIP"; then
6025   ac_ct_STRIP=$STRIP
6026   # Extract the first word of "strip", so it can be a program name with args.
6027 set dummy strip; ac_word=$2
6028 echo "$as_me:$LINENO: checking for $ac_word" >&5
6029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6030 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6031   echo $ECHO_N "(cached) $ECHO_C" >&6
6032 else
6033   if test -n "$ac_ct_STRIP"; then
6034   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6035 else
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH
6038 do
6039   IFS=$as_save_IFS
6040   test -z "$as_dir" && as_dir=.
6041   for ac_exec_ext in '' $ac_executable_extensions; do
6042   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6043     ac_cv_prog_ac_ct_STRIP="strip"
6044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6045     break 2
6046   fi
6047 done
6048 done
6049
6050   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6051 fi
6052 fi
6053 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6054 if test -n "$ac_ct_STRIP"; then
6055   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6056 echo "${ECHO_T}$ac_ct_STRIP" >&6
6057 else
6058   echo "$as_me:$LINENO: result: no" >&5
6059 echo "${ECHO_T}no" >&6
6060 fi
6061
6062   STRIP=$ac_ct_STRIP
6063 else
6064   STRIP="$ac_cv_prog_STRIP"
6065 fi
6066
6067
6068 old_CC="$CC"
6069 old_CFLAGS="$CFLAGS"
6070
6071 # Set sane defaults for various variables
6072 test -z "$AR" && AR=ar
6073 test -z "$AR_FLAGS" && AR_FLAGS=cru
6074 test -z "$AS" && AS=as
6075 test -z "$CC" && CC=cc
6076 test -z "$LTCC" && LTCC=$CC
6077 test -z "$DLLTOOL" && DLLTOOL=dlltool
6078 test -z "$LD" && LD=ld
6079 test -z "$LN_S" && LN_S="ln -s"
6080 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6081 test -z "$NM" && NM=nm
6082 test -z "$SED" && SED=sed
6083 test -z "$OBJDUMP" && OBJDUMP=objdump
6084 test -z "$RANLIB" && RANLIB=:
6085 test -z "$STRIP" && STRIP=:
6086 test -z "$ac_objext" && ac_objext=o
6087
6088 # Determine commands to create old-style static archives.
6089 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6090 old_postinstall_cmds='chmod 644 $oldlib'
6091 old_postuninstall_cmds=
6092
6093 if test -n "$RANLIB"; then
6094   case $host_os in
6095   openbsd*)
6096     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6097     ;;
6098   *)
6099     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6100     ;;
6101   esac
6102   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6103 fi
6104
6105 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6106
6107 # Only perform the check for file, if the check method requires it
6108 case $deplibs_check_method in
6109 file_magic*)
6110   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6111     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6112 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6113 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6114   echo $ECHO_N "(cached) $ECHO_C" >&6
6115 else
6116   case $MAGIC_CMD in
6117 [\\/*] |  ?:[\\/]*)
6118   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6119   ;;
6120 *)
6121   lt_save_MAGIC_CMD="$MAGIC_CMD"
6122   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6123   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6124   for ac_dir in $ac_dummy; do
6125     IFS="$lt_save_ifs"
6126     test -z "$ac_dir" && ac_dir=.
6127     if test -f $ac_dir/${ac_tool_prefix}file; then
6128       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6129       if test -n "$file_magic_test_file"; then
6130         case $deplibs_check_method in
6131         "file_magic "*)
6132           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6133           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6134           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6135             $EGREP "$file_magic_regex" > /dev/null; then
6136             :
6137           else
6138             cat <<EOF 1>&2
6139
6140 *** Warning: the command libtool uses to detect shared libraries,
6141 *** $file_magic_cmd, produces output that libtool cannot recognize.
6142 *** The result is that libtool may fail to recognize shared libraries
6143 *** as such.  This will affect the creation of libtool libraries that
6144 *** depend on shared libraries, but programs linked with such libtool
6145 *** libraries will work regardless of this problem.  Nevertheless, you
6146 *** may want to report the problem to your system manager and/or to
6147 *** bug-libtool@gnu.org
6148
6149 EOF
6150           fi ;;
6151         esac
6152       fi
6153       break
6154     fi
6155   done
6156   IFS="$lt_save_ifs"
6157   MAGIC_CMD="$lt_save_MAGIC_CMD"
6158   ;;
6159 esac
6160 fi
6161
6162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6163 if test -n "$MAGIC_CMD"; then
6164   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6165 echo "${ECHO_T}$MAGIC_CMD" >&6
6166 else
6167   echo "$as_me:$LINENO: result: no" >&5
6168 echo "${ECHO_T}no" >&6
6169 fi
6170
6171 if test -z "$lt_cv_path_MAGIC_CMD"; then
6172   if test -n "$ac_tool_prefix"; then
6173     echo "$as_me:$LINENO: checking for file" >&5
6174 echo $ECHO_N "checking for file... $ECHO_C" >&6
6175 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6176   echo $ECHO_N "(cached) $ECHO_C" >&6
6177 else
6178   case $MAGIC_CMD in
6179 [\\/*] |  ?:[\\/]*)
6180   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6181   ;;
6182 *)
6183   lt_save_MAGIC_CMD="$MAGIC_CMD"
6184   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6185   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6186   for ac_dir in $ac_dummy; do
6187     IFS="$lt_save_ifs"
6188     test -z "$ac_dir" && ac_dir=.
6189     if test -f $ac_dir/file; then
6190       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6191       if test -n "$file_magic_test_file"; then
6192         case $deplibs_check_method in
6193         "file_magic "*)
6194           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6195           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6196           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6197             $EGREP "$file_magic_regex" > /dev/null; then
6198             :
6199           else
6200             cat <<EOF 1>&2
6201
6202 *** Warning: the command libtool uses to detect shared libraries,
6203 *** $file_magic_cmd, produces output that libtool cannot recognize.
6204 *** The result is that libtool may fail to recognize shared libraries
6205 *** as such.  This will affect the creation of libtool libraries that
6206 *** depend on shared libraries, but programs linked with such libtool
6207 *** libraries will work regardless of this problem.  Nevertheless, you
6208 *** may want to report the problem to your system manager and/or to
6209 *** bug-libtool@gnu.org
6210
6211 EOF
6212           fi ;;
6213         esac
6214       fi
6215       break
6216     fi
6217   done
6218   IFS="$lt_save_ifs"
6219   MAGIC_CMD="$lt_save_MAGIC_CMD"
6220   ;;
6221 esac
6222 fi
6223
6224 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6225 if test -n "$MAGIC_CMD"; then
6226   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6227 echo "${ECHO_T}$MAGIC_CMD" >&6
6228 else
6229   echo "$as_me:$LINENO: result: no" >&5
6230 echo "${ECHO_T}no" >&6
6231 fi
6232
6233   else
6234     MAGIC_CMD=:
6235   fi
6236 fi
6237
6238   fi
6239   ;;
6240 esac
6241
6242 enable_dlopen=no
6243 enable_win32_dll=no
6244
6245 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6246 if test "${enable_libtool_lock+set}" = set; then
6247   enableval="$enable_libtool_lock"
6248
6249 fi;
6250 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6251
6252
6253 # Check whether --with-pic or --without-pic was given.
6254 if test "${with_pic+set}" = set; then
6255   withval="$with_pic"
6256   pic_mode="$withval"
6257 else
6258   pic_mode=default
6259 fi;
6260 test -z "$pic_mode" && pic_mode=default
6261
6262 # Use C for the default configuration in the libtool script
6263 tagname=
6264 lt_save_CC="$CC"
6265 ac_ext=c
6266 ac_cpp='$CPP $CPPFLAGS'
6267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6270
6271
6272 # Source file extension for C test sources.
6273 ac_ext=c
6274
6275 # Object file extension for compiled C test sources.
6276 objext=o
6277 objext=$objext
6278
6279 # Code to be used in simple compile tests
6280 lt_simple_compile_test_code="int some_variable = 0;\n"
6281
6282 # Code to be used in simple link tests
6283 lt_simple_link_test_code='int main(){return(0);}\n'
6284
6285
6286 # If no C compiler was specified, use CC.
6287 LTCC=${LTCC-"$CC"}
6288
6289 # Allow CC to be a program name with arguments.
6290 compiler=$CC
6291
6292
6293 #
6294 # Check for any special shared library compilation flags.
6295 #
6296 lt_prog_cc_shlib=
6297 if test "$GCC" = no; then
6298   case $host_os in
6299   sco3.2v5*)
6300     lt_prog_cc_shlib='-belf'
6301     ;;
6302   esac
6303 fi
6304 if test -n "$lt_prog_cc_shlib"; then
6305   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6306 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6307   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6308   else
6309     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6310 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6311     lt_cv_prog_cc_can_build_shared=no
6312   fi
6313 fi
6314
6315
6316 #
6317 # Check to make sure the static flag actually works.
6318 #
6319 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6320 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6321 if test "${lt_prog_compiler_static_works+set}" = set; then
6322   echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324   lt_prog_compiler_static_works=no
6325    save_LDFLAGS="$LDFLAGS"
6326    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6327    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6328    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6329      # The compiler can only warn and ignore the option if not recognized
6330      # So say no if there are warnings
6331      if test -s conftest.err; then
6332        # Append any errors to the config.log.
6333        cat conftest.err 1>&5
6334      else
6335        lt_prog_compiler_static_works=yes
6336      fi
6337    fi
6338    $rm conftest*
6339    LDFLAGS="$save_LDFLAGS"
6340
6341 fi
6342 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6343 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6344
6345 if test x"$lt_prog_compiler_static_works" = xyes; then
6346     :
6347 else
6348     lt_prog_compiler_static=
6349 fi
6350
6351
6352
6353
6354 lt_prog_compiler_no_builtin_flag=
6355
6356 if test "$GCC" = yes; then
6357   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6358
6359
6360 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6361 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6362 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6363   echo $ECHO_N "(cached) $ECHO_C" >&6
6364 else
6365   lt_cv_prog_compiler_rtti_exceptions=no
6366   ac_outfile=conftest.$ac_objext
6367    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6368    lt_compiler_flag="-fno-rtti -fno-exceptions"
6369    # Insert the option either (1) after the last *FLAGS variable, or
6370    # (2) before a word containing "conftest.", or (3) at the end.
6371    # Note that $ac_compile itself does not contain backslashes and begins
6372    # with a dollar sign (not a hyphen), so the echo should work correctly.
6373    # The option is referenced via a variable to avoid confusing sed.
6374    lt_compile=`echo "$ac_compile" | $SED \
6375    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6376    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6377    -e 's:$: $lt_compiler_flag:'`
6378    (eval echo "\"\$as_me:6378: $lt_compile\"" >&5)
6379    (eval "$lt_compile" 2>conftest.err)
6380    ac_status=$?
6381    cat conftest.err >&5
6382    echo "$as_me:6382: \$? = $ac_status" >&5
6383    if (exit $ac_status) && test -s "$ac_outfile"; then
6384      # The compiler can only warn and ignore the option if not recognized
6385      # So say no if there are warnings
6386      if test ! -s conftest.err; then
6387        lt_cv_prog_compiler_rtti_exceptions=yes
6388      fi
6389    fi
6390    $rm conftest*
6391
6392 fi
6393 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6394 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6395
6396 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6397     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6398 else
6399     :
6400 fi
6401
6402 fi
6403
6404 lt_prog_compiler_wl=
6405 lt_prog_compiler_pic=
6406 lt_prog_compiler_static=
6407
6408 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6409 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6410
6411   if test "$GCC" = yes; then
6412     lt_prog_compiler_wl='-Wl,'
6413     lt_prog_compiler_static='-static'
6414
6415     case $host_os in
6416       aix*)
6417       # All AIX code is PIC.
6418       if test "$host_cpu" = ia64; then
6419         # AIX 5 now supports IA64 processor
6420         lt_prog_compiler_static='-Bstatic'
6421       fi
6422       ;;
6423
6424     amigaos*)
6425       # FIXME: we need at least 68020 code to build shared libraries, but
6426       # adding the `-m68020' flag to GCC prevents building anything better,
6427       # like `-m68040'.
6428       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6429       ;;
6430
6431     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6432       # PIC is the default for these OSes.
6433       ;;
6434
6435     mingw* | pw32* | os2*)
6436       # This hack is so that the source file can tell whether it is being
6437       # built for inclusion in a dll (and should export symbols for example).
6438       lt_prog_compiler_pic='-DDLL_EXPORT'
6439       ;;
6440
6441     darwin* | rhapsody*)
6442       # PIC is the default on this platform
6443       # Common symbols not allowed in MH_DYLIB files
6444       lt_prog_compiler_pic='-fno-common'
6445       ;;
6446
6447     msdosdjgpp*)
6448       # Just because we use GCC doesn't mean we suddenly get shared libraries
6449       # on systems that don't support them.
6450       lt_prog_compiler_can_build_shared=no
6451       enable_shared=no
6452       ;;
6453
6454     sysv4*MP*)
6455       if test -d /usr/nec; then
6456         lt_prog_compiler_pic=-Kconform_pic
6457       fi
6458       ;;
6459
6460     hpux*)
6461       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6462       # not for PA HP-UX.
6463       case "$host_cpu" in
6464       hppa*64*|ia64*)
6465         # +Z the default
6466         ;;
6467       *)
6468         lt_prog_compiler_pic='-fPIC'
6469         ;;
6470       esac
6471       ;;
6472
6473     *)
6474       lt_prog_compiler_pic='-fPIC'
6475       ;;
6476     esac
6477   else
6478     # PORTME Check for flag to pass linker flags through the system compiler.
6479     case $host_os in
6480     aix*)
6481       lt_prog_compiler_wl='-Wl,'
6482       if test "$host_cpu" = ia64; then
6483         # AIX 5 now supports IA64 processor
6484         lt_prog_compiler_static='-Bstatic'
6485       else
6486         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6487       fi
6488       ;;
6489       darwin*)
6490         # PIC is the default on this platform
6491         # Common symbols not allowed in MH_DYLIB files
6492        case "$cc_basename" in
6493          xlc*)
6494          lt_prog_compiler_pic='-qnocommon'
6495          lt_prog_compiler_wl='-Wl,'
6496          ;;
6497        esac
6498        ;;
6499
6500     mingw* | pw32* | os2*)
6501       # This hack is so that the source file can tell whether it is being
6502       # built for inclusion in a dll (and should export symbols for example).
6503       lt_prog_compiler_pic='-DDLL_EXPORT'
6504       ;;
6505
6506     hpux9* | hpux10* | hpux11*)
6507       lt_prog_compiler_wl='-Wl,'
6508       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6509       # not for PA HP-UX.
6510       case "$host_cpu" in
6511       hppa*64*|ia64*)
6512         # +Z the default
6513         ;;
6514       *)
6515         lt_prog_compiler_pic='+Z'
6516         ;;
6517       esac
6518       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6519       lt_prog_compiler_static='${wl}-a ${wl}archive'
6520       ;;
6521
6522     irix5* | irix6* | nonstopux*)
6523       lt_prog_compiler_wl='-Wl,'
6524       # PIC (with -KPIC) is the default.
6525       lt_prog_compiler_static='-non_shared'
6526       ;;
6527
6528     newsos6)
6529       lt_prog_compiler_pic='-KPIC'
6530       lt_prog_compiler_static='-Bstatic'
6531       ;;
6532
6533     linux*)
6534       case $cc_basename in
6535       icc* | ecc*)
6536         lt_prog_compiler_wl='-Wl,'
6537         lt_prog_compiler_pic='-KPIC'
6538         lt_prog_compiler_static='-static'
6539         ;;
6540       pgcc | pgf77 | pgf90)
6541         # Portland Group compilers (*not* the Pentium gcc compiler,
6542         # which looks to be a dead project)
6543         lt_prog_compiler_wl='-Wl,'
6544         lt_prog_compiler_pic='-fpic'
6545         lt_prog_compiler_static='-static'
6546         ;;
6547       ccc*)
6548         lt_prog_compiler_wl='-Wl,'
6549         # All Alpha code is PIC.
6550         lt_prog_compiler_static='-non_shared'
6551         ;;
6552       esac
6553       ;;
6554
6555     osf3* | osf4* | osf5*)
6556       lt_prog_compiler_wl='-Wl,'
6557       # All OSF/1 code is PIC.
6558       lt_prog_compiler_static='-non_shared'
6559       ;;
6560
6561     sco3.2v5*)
6562       lt_prog_compiler_pic='-Kpic'
6563       lt_prog_compiler_static='-dn'
6564       ;;
6565
6566     solaris*)
6567       lt_prog_compiler_wl='-Wl,'
6568       lt_prog_compiler_pic='-KPIC'
6569       lt_prog_compiler_static='-Bstatic'
6570       ;;
6571
6572     sunos4*)
6573       lt_prog_compiler_wl='-Qoption ld '
6574       lt_prog_compiler_pic='-PIC'
6575       lt_prog_compiler_static='-Bstatic'
6576       ;;
6577
6578     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6579       lt_prog_compiler_wl='-Wl,'
6580       lt_prog_compiler_pic='-KPIC'
6581       lt_prog_compiler_static='-Bstatic'
6582       ;;
6583
6584     sysv4*MP*)
6585       if test -d /usr/nec ;then
6586         lt_prog_compiler_pic='-Kconform_pic'
6587         lt_prog_compiler_static='-Bstatic'
6588       fi
6589       ;;
6590
6591     unicos*)
6592       lt_prog_compiler_wl='-Wl,'
6593       lt_prog_compiler_can_build_shared=no
6594       ;;
6595
6596     uts4*)
6597       lt_prog_compiler_pic='-pic'
6598       lt_prog_compiler_static='-Bstatic'
6599       ;;
6600
6601     *)
6602       lt_prog_compiler_can_build_shared=no
6603       ;;
6604     esac
6605   fi
6606
6607 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6608 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6609
6610 #
6611 # Check to make sure the PIC flag actually works.
6612 #
6613 if test -n "$lt_prog_compiler_pic"; then
6614
6615 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6616 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6617 if test "${lt_prog_compiler_pic_works+set}" = set; then
6618   echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6620   lt_prog_compiler_pic_works=no
6621   ac_outfile=conftest.$ac_objext
6622    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6623    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6624    # Insert the option either (1) after the last *FLAGS variable, or
6625    # (2) before a word containing "conftest.", or (3) at the end.
6626    # Note that $ac_compile itself does not contain backslashes and begins
6627    # with a dollar sign (not a hyphen), so the echo should work correctly.
6628    # The option is referenced via a variable to avoid confusing sed.
6629    lt_compile=`echo "$ac_compile" | $SED \
6630    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6631    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6632    -e 's:$: $lt_compiler_flag:'`
6633    (eval echo "\"\$as_me:6633: $lt_compile\"" >&5)
6634    (eval "$lt_compile" 2>conftest.err)
6635    ac_status=$?
6636    cat conftest.err >&5
6637    echo "$as_me:6637: \$? = $ac_status" >&5
6638    if (exit $ac_status) && test -s "$ac_outfile"; then
6639      # The compiler can only warn and ignore the option if not recognized
6640      # So say no if there are warnings
6641      if test ! -s conftest.err; then
6642        lt_prog_compiler_pic_works=yes
6643      fi
6644    fi
6645    $rm conftest*
6646
6647 fi
6648 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6649 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6650
6651 if test x"$lt_prog_compiler_pic_works" = xyes; then
6652     case $lt_prog_compiler_pic in
6653      "" | " "*) ;;
6654      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6655      esac
6656 else
6657     lt_prog_compiler_pic=
6658      lt_prog_compiler_can_build_shared=no
6659 fi
6660
6661 fi
6662 case "$host_os" in
6663   # For platforms which do not support PIC, -DPIC is meaningless:
6664   *djgpp*)
6665     lt_prog_compiler_pic=
6666     ;;
6667   *)
6668     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6669     ;;
6670 esac
6671
6672 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6673 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6674 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6675   echo $ECHO_N "(cached) $ECHO_C" >&6
6676 else
6677   lt_cv_prog_compiler_c_o=no
6678    $rm -r conftest 2>/dev/null
6679    mkdir conftest
6680    cd conftest
6681    mkdir out
6682    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6683
6684    lt_compiler_flag="-o out/conftest2.$ac_objext"
6685    # Insert the option either (1) after the last *FLAGS variable, or
6686    # (2) before a word containing "conftest.", or (3) at the end.
6687    # Note that $ac_compile itself does not contain backslashes and begins
6688    # with a dollar sign (not a hyphen), so the echo should work correctly.
6689    lt_compile=`echo "$ac_compile" | $SED \
6690    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6691    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6692    -e 's:$: $lt_compiler_flag:'`
6693    (eval echo "\"\$as_me:6693: $lt_compile\"" >&5)
6694    (eval "$lt_compile" 2>out/conftest.err)
6695    ac_status=$?
6696    cat out/conftest.err >&5
6697    echo "$as_me:6697: \$? = $ac_status" >&5
6698    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6699    then
6700      # The compiler can only warn and ignore the option if not recognized
6701      # So say no if there are warnings
6702      if test ! -s out/conftest.err; then
6703        lt_cv_prog_compiler_c_o=yes
6704      fi
6705    fi
6706    chmod u+w .
6707    $rm conftest*
6708    # SGI C++ compiler will create directory out/ii_files/ for
6709    # template instantiation
6710    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6711    $rm out/* && rmdir out
6712    cd ..
6713    rmdir conftest
6714    $rm conftest*
6715
6716 fi
6717 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6718 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6719
6720
6721 hard_links="nottested"
6722 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6723   # do not overwrite the value of need_locks provided by the user
6724   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6725 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6726   hard_links=yes
6727   $rm conftest*
6728   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6729   touch conftest.a
6730   ln conftest.a conftest.b 2>&5 || hard_links=no
6731   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6732   echo "$as_me:$LINENO: result: $hard_links" >&5
6733 echo "${ECHO_T}$hard_links" >&6
6734   if test "$hard_links" = no; then
6735     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6736 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6737     need_locks=warn
6738   fi
6739 else
6740   need_locks=no
6741 fi
6742
6743 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6744 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6745
6746   runpath_var=
6747   allow_undefined_flag=
6748   enable_shared_with_static_runtimes=no
6749   archive_cmds=
6750   archive_expsym_cmds=
6751   old_archive_From_new_cmds=
6752   old_archive_from_expsyms_cmds=
6753   export_dynamic_flag_spec=
6754   whole_archive_flag_spec=
6755   thread_safe_flag_spec=
6756   hardcode_libdir_flag_spec=
6757   hardcode_libdir_flag_spec_ld=
6758   hardcode_libdir_separator=
6759   hardcode_direct=no
6760   hardcode_minus_L=no
6761   hardcode_shlibpath_var=unsupported
6762   link_all_deplibs=unknown
6763   hardcode_automatic=no
6764   module_cmds=
6765   module_expsym_cmds=
6766   always_export_symbols=no
6767   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6768   # include_expsyms should be a list of space-separated symbols to be *always*
6769   # included in the symbol list
6770   include_expsyms=
6771   # exclude_expsyms can be an extended regexp of symbols to exclude
6772   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6773   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6774   # as well as any symbol that contains `d'.
6775   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6776   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6777   # platforms (ab)use it in PIC code, but their linkers get confused if
6778   # the symbol is explicitly referenced.  Since portable code cannot
6779   # rely on this symbol name, it's probably fine to never include it in
6780   # preloaded symbol tables.
6781   extract_expsyms_cmds=
6782
6783   case $host_os in
6784   cygwin* | mingw* | pw32*)
6785     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6786     # When not using gcc, we currently assume that we are using
6787     # Microsoft Visual C++.
6788     if test "$GCC" != yes; then
6789       with_gnu_ld=no
6790     fi
6791     ;;
6792   openbsd*)
6793     with_gnu_ld=no
6794     ;;
6795   esac
6796
6797   ld_shlibs=yes
6798   if test "$with_gnu_ld" = yes; then
6799     # If archive_cmds runs LD, not CC, wlarc should be empty
6800     wlarc='${wl}'
6801
6802     # See if GNU ld supports shared libraries.
6803     case $host_os in
6804     aix3* | aix4* | aix5*)
6805       # On AIX/PPC, the GNU linker is very broken
6806       if test "$host_cpu" != ia64; then
6807         ld_shlibs=no
6808         cat <<EOF 1>&2
6809
6810 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6811 *** to be unable to reliably create shared libraries on AIX.
6812 *** Therefore, libtool is disabling shared libraries support.  If you
6813 *** really care for shared libraries, you may want to modify your PATH
6814 *** so that a non-GNU linker is found, and then restart.
6815
6816 EOF
6817       fi
6818       ;;
6819
6820     amigaos*)
6821       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)'
6822       hardcode_libdir_flag_spec='-L$libdir'
6823       hardcode_minus_L=yes
6824
6825       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6826       # that the semantics of dynamic libraries on AmigaOS, at least up
6827       # to version 4, is to share data among multiple programs linked
6828       # with the same dynamic library.  Since this doesn't match the
6829       # behavior of shared libraries on other platforms, we can't use
6830       # them.
6831       ld_shlibs=no
6832       ;;
6833
6834     beos*)
6835       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6836         allow_undefined_flag=unsupported
6837         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6838         # support --undefined.  This deserves some investigation.  FIXME
6839         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6840       else
6841         ld_shlibs=no
6842       fi
6843       ;;
6844
6845     cygwin* | mingw* | pw32*)
6846       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6847       # as there is no search path for DLLs.
6848       hardcode_libdir_flag_spec='-L$libdir'
6849       allow_undefined_flag=unsupported
6850       always_export_symbols=no
6851       enable_shared_with_static_runtimes=yes
6852       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6853
6854       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6855         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6856         # If the export-symbols file already is a .def file (1st line
6857         # is EXPORTS), use it as is; otherwise, prepend...
6858         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6859           cp $export_symbols $output_objdir/$soname.def;
6860         else
6861           echo EXPORTS > $output_objdir/$soname.def;
6862           cat $export_symbols >> $output_objdir/$soname.def;
6863         fi~
6864         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6865       else
6866         ld_shlibs=no
6867       fi
6868       ;;
6869
6870     netbsd*)
6871       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6872         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6873         wlarc=
6874       else
6875         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6876         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6877       fi
6878       ;;
6879
6880     solaris* | sysv5*)
6881       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6882         ld_shlibs=no
6883         cat <<EOF 1>&2
6884
6885 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6886 *** create shared libraries on Solaris systems.  Therefore, libtool
6887 *** is disabling shared libraries support.  We urge you to upgrade GNU
6888 *** binutils to release 2.9.1 or newer.  Another option is to modify
6889 *** your PATH or compiler configuration so that the native linker is
6890 *** used, and then restart.
6891
6892 EOF
6893       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6894         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6895         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6896       else
6897         ld_shlibs=no
6898       fi
6899       ;;
6900
6901     sunos4*)
6902       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6903       wlarc=
6904       hardcode_direct=yes
6905       hardcode_shlibpath_var=no
6906       ;;
6907
6908   linux*)
6909     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6910       tmp_addflag=
6911       case $CC,$host_cpu in
6912       pgf77* | pgf90* )                 # Portland Group f77 and f90 compilers
6913         tmp_addflag=' -fpic' ;;
6914       ecc*,ia64* | icc*,ia64*)          # Intel C compiler on ia64
6915         tmp_addflag=' -i_dynamic' ;;
6916       efc*,ia64* | ifort*,ia64*)        # Intel Fortran compiler on ia64
6917         tmp_addflag=' -i_dynamic -nofor_main' ;;
6918       ifc* | ifort*)                    # Intel Fortran compiler
6919         tmp_addflag=' -nofor_main' ;;
6920       esac
6921       archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6922       supports_anon_versioning=no
6923       case `$LD -v 2>/dev/null` in
6924         *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6925         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6926         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6927         *\ 2.11.*) ;; # other 2.11 versions
6928         *) supports_anon_versioning=yes ;;
6929       esac
6930       if test $supports_anon_versioning = yes; then
6931         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6932 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6933 $echo "local: *; };" >> $output_objdir/$libname.ver~
6934         $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6935       else
6936         archive_expsym_cmds=$archive_cmds
6937       fi
6938     else
6939       ld_shlibs=no
6940     fi
6941     ;;
6942
6943     *)
6944       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6945         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6946         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6947       else
6948         ld_shlibs=no
6949       fi
6950       ;;
6951     esac
6952
6953     if test "$ld_shlibs" = yes; then
6954       runpath_var=LD_RUN_PATH
6955       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6956       export_dynamic_flag_spec='${wl}--export-dynamic'
6957       # ancient GNU ld didn't support --whole-archive et. al.
6958       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6959         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6960       else
6961         whole_archive_flag_spec=
6962       fi
6963     fi
6964   else
6965     # PORTME fill in a description of your system's linker (not GNU ld)
6966     case $host_os in
6967     aix3*)
6968       allow_undefined_flag=unsupported
6969       always_export_symbols=yes
6970       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'
6971       # Note: this linker hardcodes the directories in LIBPATH if there
6972       # are no directories specified by -L.
6973       hardcode_minus_L=yes
6974       if test "$GCC" = yes && test -z "$link_static_flag"; then
6975         # Neither direct hardcoding nor static linking is supported with a
6976         # broken collect2.
6977         hardcode_direct=unsupported
6978       fi
6979       ;;
6980
6981     aix4* | aix5*)
6982       if test "$host_cpu" = ia64; then
6983         # On IA64, the linker does run time linking by default, so we don't
6984         # have to do anything special.
6985         aix_use_runtimelinking=no
6986         exp_sym_flag='-Bexport'
6987         no_entry_flag=""
6988       else
6989         # If we're using GNU nm, then we don't want the "-C" option.
6990         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6991         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6992           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'
6993         else
6994           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'
6995         fi
6996         aix_use_runtimelinking=no
6997
6998         # Test if we are trying to use run time linking or normal
6999         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7000         # need to do runtime linking.
7001         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7002           for ld_flag in $LDFLAGS; do
7003           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7004             aix_use_runtimelinking=yes
7005             break
7006           fi
7007           done
7008         esac
7009
7010         exp_sym_flag='-bexport'
7011         no_entry_flag='-bnoentry'
7012       fi
7013
7014       # When large executables or shared objects are built, AIX ld can
7015       # have problems creating the table of contents.  If linking a library
7016       # or program results in "error TOC overflow" add -mminimal-toc to
7017       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7018       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7019
7020       archive_cmds=''
7021       hardcode_direct=yes
7022       hardcode_libdir_separator=':'
7023       link_all_deplibs=yes
7024
7025       if test "$GCC" = yes; then
7026         case $host_os in aix4.[012]|aix4.[012].*)
7027         # We only want to do this on AIX 4.2 and lower, the check
7028         # below for broken collect2 doesn't work under 4.3+
7029           collect2name=`${CC} -print-prog-name=collect2`
7030           if test -f "$collect2name" && \
7031            strings "$collect2name" | grep resolve_lib_name >/dev/null
7032           then
7033           # We have reworked collect2
7034           hardcode_direct=yes
7035           else
7036           # We have old collect2
7037           hardcode_direct=unsupported
7038           # It fails to find uninstalled libraries when the uninstalled
7039           # path is not listed in the libpath.  Setting hardcode_minus_L
7040           # to unsupported forces relinking
7041           hardcode_minus_L=yes
7042           hardcode_libdir_flag_spec='-L$libdir'
7043           hardcode_libdir_separator=
7044           fi
7045         esac
7046         shared_flag='-shared'
7047         if test "$aix_use_runtimelinking" = yes; then
7048           shared_flag="$shared_flag "'${wl}-G'
7049         fi
7050       else
7051         # not using gcc
7052         if test "$host_cpu" = ia64; then
7053         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7054         # chokes on -Wl,-G. The following line is correct:
7055           shared_flag='-G'
7056         else
7057         if test "$aix_use_runtimelinking" = yes; then
7058             shared_flag='${wl}-G'
7059           else
7060             shared_flag='${wl}-bM:SRE'
7061         fi
7062         fi
7063       fi
7064
7065       # It seems that -bexpall does not export symbols beginning with
7066       # underscore (_), so it is better to generate a list of symbols to export.
7067       always_export_symbols=yes
7068       if test "$aix_use_runtimelinking" = yes; then
7069         # Warning - without using the other runtime loading flags (-brtl),
7070         # -berok will link without error, but may produce a broken library.
7071         allow_undefined_flag='-berok'
7072        # Determine the default libpath from the value encoded in an empty executable.
7073        cat >conftest.$ac_ext <<_ACEOF
7074 /* confdefs.h.  */
7075 _ACEOF
7076 cat confdefs.h >>conftest.$ac_ext
7077 cat >>conftest.$ac_ext <<_ACEOF
7078 /* end confdefs.h.  */
7079
7080 int
7081 main ()
7082 {
7083
7084   ;
7085   return 0;
7086 }
7087 _ACEOF
7088 rm -f conftest.$ac_objext conftest$ac_exeext
7089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7090   (eval $ac_link) 2>conftest.er1
7091   ac_status=$?
7092   grep -v '^ *+' conftest.er1 >conftest.err
7093   rm -f conftest.er1
7094   cat conftest.err >&5
7095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096   (exit $ac_status); } &&
7097          { ac_try='test -z "$ac_c_werror_flag"
7098                          || test ! -s conftest.err'
7099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100   (eval $ac_try) 2>&5
7101   ac_status=$?
7102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103   (exit $ac_status); }; } &&
7104          { ac_try='test -s conftest$ac_exeext'
7105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7106   (eval $ac_try) 2>&5
7107   ac_status=$?
7108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109   (exit $ac_status); }; }; then
7110
7111 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7112 }'`
7113 # Check for a 64-bit object if we didn't find anything.
7114 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; }
7115 }'`; fi
7116 else
7117   echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7119
7120 fi
7121 rm -f conftest.err conftest.$ac_objext \
7122       conftest$ac_exeext conftest.$ac_ext
7123 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7124
7125        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7126         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"
7127        else
7128         if test "$host_cpu" = ia64; then
7129           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7130           allow_undefined_flag="-z nodefs"
7131           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"
7132         else
7133          # Determine the default libpath from the value encoded in an empty executable.
7134          cat >conftest.$ac_ext <<_ACEOF
7135 /* confdefs.h.  */
7136 _ACEOF
7137 cat confdefs.h >>conftest.$ac_ext
7138 cat >>conftest.$ac_ext <<_ACEOF
7139 /* end confdefs.h.  */
7140
7141 int
7142 main ()
7143 {
7144
7145   ;
7146   return 0;
7147 }
7148 _ACEOF
7149 rm -f conftest.$ac_objext conftest$ac_exeext
7150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7151   (eval $ac_link) 2>conftest.er1
7152   ac_status=$?
7153   grep -v '^ *+' conftest.er1 >conftest.err
7154   rm -f conftest.er1
7155   cat conftest.err >&5
7156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157   (exit $ac_status); } &&
7158          { ac_try='test -z "$ac_c_werror_flag"
7159                          || test ! -s conftest.err'
7160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161   (eval $ac_try) 2>&5
7162   ac_status=$?
7163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164   (exit $ac_status); }; } &&
7165          { ac_try='test -s conftest$ac_exeext'
7166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167   (eval $ac_try) 2>&5
7168   ac_status=$?
7169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170   (exit $ac_status); }; }; then
7171
7172 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7173 }'`
7174 # Check for a 64-bit object if we didn't find anything.
7175 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; }
7176 }'`; fi
7177 else
7178   echo "$as_me: failed program was:" >&5
7179 sed 's/^/| /' conftest.$ac_ext >&5
7180
7181 fi
7182 rm -f conftest.err conftest.$ac_objext \
7183       conftest$ac_exeext conftest.$ac_ext
7184 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7185
7186          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7187           # Warning - without using the other run time loading flags,
7188           # -berok will link without error, but may produce a broken library.
7189           no_undefined_flag=' ${wl}-bernotok'
7190           allow_undefined_flag=' ${wl}-berok'
7191           # -bexpall does not export symbols beginning with underscore (_)
7192           always_export_symbols=yes
7193           # Exported symbols can be pulled into shared objects from archives
7194           whole_archive_flag_spec=' '
7195           archive_cmds_need_lc=yes
7196           # This is similar to how AIX traditionally builds it's shared libraries.
7197           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'
7198         fi
7199       fi
7200       ;;
7201
7202     amigaos*)
7203       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)'
7204       hardcode_libdir_flag_spec='-L$libdir'
7205       hardcode_minus_L=yes
7206       # see comment about different semantics on the GNU ld section
7207       ld_shlibs=no
7208       ;;
7209
7210     bsdi[45]*)
7211       export_dynamic_flag_spec=-rdynamic
7212       ;;
7213
7214     cygwin* | mingw* | pw32*)
7215       # When not using gcc, we currently assume that we are using
7216       # Microsoft Visual C++.
7217       # hardcode_libdir_flag_spec is actually meaningless, as there is
7218       # no search path for DLLs.
7219       hardcode_libdir_flag_spec=' '
7220       allow_undefined_flag=unsupported
7221       # Tell ltmain to make .lib files, not .a files.
7222       libext=lib
7223       # Tell ltmain to make .dll files, not .so files.
7224       shrext_cmds=".dll"
7225       # FIXME: Setting linknames here is a bad hack.
7226       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7227       # The linker will automatically build a .lib file if we build a DLL.
7228       old_archive_From_new_cmds='true'
7229       # FIXME: Should let the user specify the lib program.
7230       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7231       fix_srcfile_path='`cygpath -w "$srcfile"`'
7232       enable_shared_with_static_runtimes=yes
7233       ;;
7234
7235     darwin* | rhapsody*)
7236       case "$host_os" in
7237         rhapsody* | darwin1.[012])
7238          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7239          ;;
7240        *) # Darwin 1.3 on
7241          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7242            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7243          else
7244            case ${MACOSX_DEPLOYMENT_TARGET} in
7245              10.[012])
7246                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7247                ;;
7248              10.*)
7249                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7250                ;;
7251            esac
7252          fi
7253          ;;
7254       esac
7255       archive_cmds_need_lc=no
7256       hardcode_direct=no
7257       hardcode_automatic=yes
7258       hardcode_shlibpath_var=unsupported
7259       whole_archive_flag_spec=''
7260       link_all_deplibs=yes
7261     if test "$GCC" = yes ; then
7262         output_verbose_link_cmd='echo'
7263         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7264       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7265       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7266       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}'
7267       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7268     else
7269       case "$cc_basename" in
7270         xlc*)
7271          output_verbose_link_cmd='echo'
7272          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7273          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7274           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7275          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7276           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7277           ;;
7278        *)
7279          ld_shlibs=no
7280           ;;
7281       esac
7282     fi
7283       ;;
7284
7285     dgux*)
7286       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7287       hardcode_libdir_flag_spec='-L$libdir'
7288       hardcode_shlibpath_var=no
7289       ;;
7290
7291     freebsd1*)
7292       ld_shlibs=no
7293       ;;
7294
7295     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7296     # support.  Future versions do this automatically, but an explicit c++rt0.o
7297     # does not break anything, and helps significantly (at the cost of a little
7298     # extra space).
7299     freebsd2.2*)
7300       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7301       hardcode_libdir_flag_spec='-R$libdir'
7302       hardcode_direct=yes
7303       hardcode_shlibpath_var=no
7304       ;;
7305
7306     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7307     freebsd2*)
7308       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7309       hardcode_direct=yes
7310       hardcode_minus_L=yes
7311       hardcode_shlibpath_var=no
7312       ;;
7313
7314     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7315     freebsd* | kfreebsd*-gnu | dragonfly*)
7316       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7317       hardcode_libdir_flag_spec='-R$libdir'
7318       hardcode_direct=yes
7319       hardcode_shlibpath_var=no
7320       ;;
7321
7322     hpux9*)
7323       if test "$GCC" = yes; then
7324         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'
7325       else
7326         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'
7327       fi
7328       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7329       hardcode_libdir_separator=:
7330       hardcode_direct=yes
7331
7332       # hardcode_minus_L: Not really in the search PATH,
7333       # but as the default location of the library.
7334       hardcode_minus_L=yes
7335       export_dynamic_flag_spec='${wl}-E'
7336       ;;
7337
7338     hpux10* | hpux11*)
7339       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7340         case "$host_cpu" in
7341         hppa*64*|ia64*)
7342           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7343           ;;
7344         *)
7345           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7346           ;;
7347         esac
7348       else
7349         case "$host_cpu" in
7350         hppa*64*|ia64*)
7351           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7352           ;;
7353         *)
7354           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7355           ;;
7356         esac
7357       fi
7358       if test "$with_gnu_ld" = no; then
7359         case "$host_cpu" in
7360         hppa*64*)
7361           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7362           hardcode_libdir_flag_spec_ld='+b $libdir'
7363           hardcode_libdir_separator=:
7364           hardcode_direct=no
7365           hardcode_shlibpath_var=no
7366           ;;
7367         ia64*)
7368           hardcode_libdir_flag_spec='-L$libdir'
7369           hardcode_direct=no
7370           hardcode_shlibpath_var=no
7371
7372           # hardcode_minus_L: Not really in the search PATH,
7373           # but as the default location of the library.
7374           hardcode_minus_L=yes
7375           ;;
7376         *)
7377           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7378           hardcode_libdir_separator=:
7379           hardcode_direct=yes
7380           export_dynamic_flag_spec='${wl}-E'
7381
7382           # hardcode_minus_L: Not really in the search PATH,
7383           # but as the default location of the library.
7384           hardcode_minus_L=yes
7385           ;;
7386         esac
7387       fi
7388       ;;
7389
7390     irix5* | irix6* | nonstopux*)
7391       if test "$GCC" = yes; then
7392         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'
7393       else
7394         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'
7395         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7396       fi
7397       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7398       hardcode_libdir_separator=:
7399       link_all_deplibs=yes
7400       ;;
7401
7402     netbsd*)
7403       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7404         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7405       else
7406         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7407       fi
7408       hardcode_libdir_flag_spec='-R$libdir'
7409       hardcode_direct=yes
7410       hardcode_shlibpath_var=no
7411       ;;
7412
7413     newsos6)
7414       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7415       hardcode_direct=yes
7416       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7417       hardcode_libdir_separator=:
7418       hardcode_shlibpath_var=no
7419       ;;
7420
7421     openbsd*)
7422       hardcode_direct=yes
7423       hardcode_shlibpath_var=no
7424       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7425         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7426         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7427         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7428         export_dynamic_flag_spec='${wl}-E'
7429       else
7430        case $host_os in
7431          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7432            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7433            hardcode_libdir_flag_spec='-R$libdir'
7434            ;;
7435          *)
7436            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7437            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7438            ;;
7439        esac
7440       fi
7441       ;;
7442
7443     os2*)
7444       hardcode_libdir_flag_spec='-L$libdir'
7445       hardcode_minus_L=yes
7446       allow_undefined_flag=unsupported
7447       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'
7448       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7449       ;;
7450
7451     osf3*)
7452       if test "$GCC" = yes; then
7453         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7454         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'
7455       else
7456         allow_undefined_flag=' -expect_unresolved \*'
7457         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'
7458       fi
7459       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7460       hardcode_libdir_separator=:
7461       ;;
7462
7463     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7464       if test "$GCC" = yes; then
7465         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7466         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'
7467         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7468       else
7469         allow_undefined_flag=' -expect_unresolved \*'
7470         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'
7471         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7472         $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'
7473
7474         # Both c and cxx compiler support -rpath directly
7475         hardcode_libdir_flag_spec='-rpath $libdir'
7476       fi
7477       hardcode_libdir_separator=:
7478       ;;
7479
7480     sco3.2v5*)
7481       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7482       hardcode_shlibpath_var=no
7483       export_dynamic_flag_spec='${wl}-Bexport'
7484       runpath_var=LD_RUN_PATH
7485       hardcode_runpath_var=yes
7486       ;;
7487
7488     solaris*)
7489       no_undefined_flag=' -z text'
7490       if test "$GCC" = yes; then
7491         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7492         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7493           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7494       else
7495         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7496         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7497         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7498       fi
7499       hardcode_libdir_flag_spec='-R$libdir'
7500       hardcode_shlibpath_var=no
7501       case $host_os in
7502       solaris2.[0-5] | solaris2.[0-5].*) ;;
7503       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7504         whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
7505       esac
7506       link_all_deplibs=yes
7507       ;;
7508
7509     sunos4*)
7510       if test "x$host_vendor" = xsequent; then
7511         # Use $CC to link under sequent, because it throws in some extra .o
7512         # files that make .init and .fini sections work.
7513         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7514       else
7515         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7516       fi
7517       hardcode_libdir_flag_spec='-L$libdir'
7518       hardcode_direct=yes
7519       hardcode_minus_L=yes
7520       hardcode_shlibpath_var=no
7521       ;;
7522
7523     sysv4)
7524       case $host_vendor in
7525         sni)
7526           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7527           hardcode_direct=yes # is this really true???
7528         ;;
7529         siemens)
7530           ## LD is ld it makes a PLAMLIB
7531           ## CC just makes a GrossModule.
7532           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7533           reload_cmds='$CC -r -o $output$reload_objs'
7534           hardcode_direct=no
7535         ;;
7536         motorola)
7537           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7538           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7539         ;;
7540       esac
7541       runpath_var='LD_RUN_PATH'
7542       hardcode_shlibpath_var=no
7543       ;;
7544
7545     sysv4.3*)
7546       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7547       hardcode_shlibpath_var=no
7548       export_dynamic_flag_spec='-Bexport'
7549       ;;
7550
7551     sysv4*MP*)
7552       if test -d /usr/nec; then
7553         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7554         hardcode_shlibpath_var=no
7555         runpath_var=LD_RUN_PATH
7556         hardcode_runpath_var=yes
7557         ld_shlibs=yes
7558       fi
7559       ;;
7560
7561     sysv4.2uw2*)
7562       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7563       hardcode_direct=yes
7564       hardcode_minus_L=no
7565       hardcode_shlibpath_var=no
7566       hardcode_runpath_var=yes
7567       runpath_var=LD_RUN_PATH
7568       ;;
7569
7570    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7571       no_undefined_flag='${wl}-z ${wl}text'
7572       if test "$GCC" = yes; then
7573         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7574       else
7575         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7576       fi
7577       runpath_var='LD_RUN_PATH'
7578       hardcode_shlibpath_var=no
7579       ;;
7580
7581     sysv5*)
7582       no_undefined_flag=' -z text'
7583       # $CC -shared without GNU ld will not create a library from C++
7584       # object files and a static libstdc++, better avoid it by now
7585       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7586       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7587                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7588       hardcode_libdir_flag_spec=
7589       hardcode_shlibpath_var=no
7590       runpath_var='LD_RUN_PATH'
7591       ;;
7592
7593     uts4*)
7594       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7595       hardcode_libdir_flag_spec='-L$libdir'
7596       hardcode_shlibpath_var=no
7597       ;;
7598
7599     *)
7600       ld_shlibs=no
7601       ;;
7602     esac
7603   fi
7604
7605 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7606 echo "${ECHO_T}$ld_shlibs" >&6
7607 test "$ld_shlibs" = no && can_build_shared=no
7608
7609 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7610 if test "$GCC" = yes; then
7611   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7612 fi
7613
7614 #
7615 # Do we need to explicitly link libc?
7616 #
7617 case "x$archive_cmds_need_lc" in
7618 x|xyes)
7619   # Assume -lc should be added
7620   archive_cmds_need_lc=yes
7621
7622   if test "$enable_shared" = yes && test "$GCC" = yes; then
7623     case $archive_cmds in
7624     *'~'*)
7625       # FIXME: we may have to deal with multi-command sequences.
7626       ;;
7627     '$CC '*)
7628       # Test whether the compiler implicitly links with -lc since on some
7629       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7630       # to ld, don't add -lc before -lgcc.
7631       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7632 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7633       $rm conftest*
7634       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7635
7636       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7637   (eval $ac_compile) 2>&5
7638   ac_status=$?
7639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640   (exit $ac_status); } 2>conftest.err; then
7641         soname=conftest
7642         lib=conftest
7643         libobjs=conftest.$ac_objext
7644         deplibs=
7645         wl=$lt_prog_compiler_wl
7646         compiler_flags=-v
7647         linker_flags=-v
7648         verstring=
7649         output_objdir=.
7650         libname=conftest
7651         lt_save_allow_undefined_flag=$allow_undefined_flag
7652         allow_undefined_flag=
7653         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7654   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7655   ac_status=$?
7656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657   (exit $ac_status); }
7658         then
7659           archive_cmds_need_lc=no
7660         else
7661           archive_cmds_need_lc=yes
7662         fi
7663         allow_undefined_flag=$lt_save_allow_undefined_flag
7664       else
7665         cat conftest.err 1>&5
7666       fi
7667       $rm conftest*
7668       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7669 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7670       ;;
7671     esac
7672   fi
7673   ;;
7674 esac
7675
7676 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7677 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7678 library_names_spec=
7679 libname_spec='lib$name'
7680 soname_spec=
7681 shrext_cmds=".so"
7682 postinstall_cmds=
7683 postuninstall_cmds=
7684 finish_cmds=
7685 finish_eval=
7686 shlibpath_var=
7687 shlibpath_overrides_runpath=unknown
7688 version_type=none
7689 dynamic_linker="$host_os ld.so"
7690 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7691 if test "$GCC" = yes; then
7692   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7693   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7694     # if the path contains ";" then we assume it to be the separator
7695     # otherwise default to the standard path separator (i.e. ":") - it is
7696     # assumed that no part of a normal pathname contains ";" but that should
7697     # okay in the real world where ";" in dirpaths is itself problematic.
7698     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7699   else
7700     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7701   fi
7702 else
7703   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7704 fi
7705 need_lib_prefix=unknown
7706 hardcode_into_libs=no
7707
7708 # when you set need_version to no, make sure it does not cause -set_version
7709 # flags to be left without arguments
7710 need_version=unknown
7711
7712 case $host_os in
7713 aix3*)
7714   version_type=linux
7715   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7716   shlibpath_var=LIBPATH
7717
7718   # AIX 3 has no versioning support, so we append a major version to the name.
7719   soname_spec='${libname}${release}${shared_ext}$major'
7720   ;;
7721
7722 aix4* | aix5*)
7723   version_type=linux
7724   need_lib_prefix=no
7725   need_version=no
7726   hardcode_into_libs=yes
7727   if test "$host_cpu" = ia64; then
7728     # AIX 5 supports IA64
7729     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7730     shlibpath_var=LD_LIBRARY_PATH
7731   else
7732     # With GCC up to 2.95.x, collect2 would create an import file
7733     # for dependence libraries.  The import file would start with
7734     # the line `#! .'.  This would cause the generated library to
7735     # depend on `.', always an invalid library.  This was fixed in
7736     # development snapshots of GCC prior to 3.0.
7737     case $host_os in
7738       aix4 | aix4.[01] | aix4.[01].*)
7739       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7740            echo ' yes '
7741            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7742         :
7743       else
7744         can_build_shared=no
7745       fi
7746       ;;
7747     esac
7748     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7749     # soname into executable. Probably we can add versioning support to
7750     # collect2, so additional links can be useful in future.
7751     if test "$aix_use_runtimelinking" = yes; then
7752       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7753       # instead of lib<name>.a to let people know that these are not
7754       # typical AIX shared libraries.
7755       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7756     else
7757       # We preserve .a as extension for shared libraries through AIX4.2
7758       # and later when we are not doing run time linking.
7759       library_names_spec='${libname}${release}.a $libname.a'
7760       soname_spec='${libname}${release}${shared_ext}$major'
7761     fi
7762     shlibpath_var=LIBPATH
7763   fi
7764   ;;
7765
7766 amigaos*)
7767   library_names_spec='$libname.ixlibrary $libname.a'
7768   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7769   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'
7770   ;;
7771
7772 beos*)
7773   library_names_spec='${libname}${shared_ext}'
7774   dynamic_linker="$host_os ld.so"
7775   shlibpath_var=LIBRARY_PATH
7776   ;;
7777
7778 bsdi[45]*)
7779   version_type=linux
7780   need_version=no
7781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7782   soname_spec='${libname}${release}${shared_ext}$major'
7783   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7784   shlibpath_var=LD_LIBRARY_PATH
7785   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7786   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7787   # the default ld.so.conf also contains /usr/contrib/lib and
7788   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7789   # libtool to hard-code these into programs
7790   ;;
7791
7792 cygwin* | mingw* | pw32*)
7793   version_type=windows
7794   shrext_cmds=".dll"
7795   need_version=no
7796   need_lib_prefix=no
7797
7798   case $GCC,$host_os in
7799   yes,cygwin* | yes,mingw* | yes,pw32*)
7800     library_names_spec='$libname.dll.a'
7801     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7802     postinstall_cmds='base_file=`basename \${file}`~
7803       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7804       dldir=$destdir/`dirname \$dlpath`~
7805       test -d \$dldir || mkdir -p \$dldir~
7806       $install_prog $dir/$dlname \$dldir/$dlname'
7807     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7808       dlpath=$dir/\$dldll~
7809        $rm \$dlpath'
7810     shlibpath_overrides_runpath=yes
7811
7812     case $host_os in
7813     cygwin*)
7814       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7815       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7816       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7817       ;;
7818     mingw*)
7819       # MinGW DLLs use traditional 'lib' prefix
7820       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7821       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7822       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7823         # It is most probably a Windows format PATH printed by
7824         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7825         # path with ; separators, and with drive letters. We can handle the
7826         # drive letters (cygwin fileutils understands them), so leave them,
7827         # especially as we might pass files found there to a mingw objdump,
7828         # which wouldn't understand a cygwinified path. Ahh.
7829         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7830       else
7831         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7832       fi
7833       ;;
7834     pw32*)
7835       # pw32 DLLs use 'pw' prefix rather than 'lib'
7836       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7837       ;;
7838     esac
7839     ;;
7840
7841   *)
7842     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7843     ;;
7844   esac
7845   dynamic_linker='Win32 ld.exe'
7846   # FIXME: first we should search . and the directory the executable is in
7847   shlibpath_var=PATH
7848   ;;
7849
7850 darwin* | rhapsody*)
7851   dynamic_linker="$host_os dyld"
7852   version_type=darwin
7853   need_lib_prefix=no
7854   need_version=no
7855   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7856   soname_spec='${libname}${release}${major}$shared_ext'
7857   shlibpath_overrides_runpath=yes
7858   shlibpath_var=DYLD_LIBRARY_PATH
7859   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7860   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7861   if test "$GCC" = yes; then
7862     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"`
7863   else
7864     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7865   fi
7866   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7867   ;;
7868
7869 dgux*)
7870   version_type=linux
7871   need_lib_prefix=no
7872   need_version=no
7873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7874   soname_spec='${libname}${release}${shared_ext}$major'
7875   shlibpath_var=LD_LIBRARY_PATH
7876   ;;
7877
7878 freebsd1*)
7879   dynamic_linker=no
7880   ;;
7881
7882 kfreebsd*-gnu)
7883   version_type=linux
7884   need_lib_prefix=no
7885   need_version=no
7886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7887   soname_spec='${libname}${release}${shared_ext}$major'
7888   shlibpath_var=LD_LIBRARY_PATH
7889   shlibpath_overrides_runpath=no
7890   hardcode_into_libs=yes
7891   dynamic_linker='GNU ld.so'
7892   ;;
7893
7894 freebsd* | dragonfly*)
7895   # DragonFly does not have aout.  When/if they implement a new
7896   # versioning mechanism, adjust this.
7897   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7898   version_type=freebsd-$objformat
7899   case $version_type in
7900     freebsd-elf*)
7901       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7902       need_version=no
7903       need_lib_prefix=no
7904       ;;
7905     freebsd-*)
7906       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7907       need_version=yes
7908       ;;
7909   esac
7910   shlibpath_var=LD_LIBRARY_PATH
7911   case $host_os in
7912   freebsd2*)
7913     shlibpath_overrides_runpath=yes
7914     ;;
7915   freebsd3.[01]* | freebsdelf3.[01]*)
7916     shlibpath_overrides_runpath=yes
7917     hardcode_into_libs=yes
7918     ;;
7919   *) # from 3.2 on
7920     shlibpath_overrides_runpath=no
7921     hardcode_into_libs=yes
7922     ;;
7923   esac
7924   ;;
7925
7926 gnu*)
7927   version_type=linux
7928   need_lib_prefix=no
7929   need_version=no
7930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7931   soname_spec='${libname}${release}${shared_ext}$major'
7932   shlibpath_var=LD_LIBRARY_PATH
7933   hardcode_into_libs=yes
7934   ;;
7935
7936 hpux9* | hpux10* | hpux11*)
7937   # Give a soname corresponding to the major version so that dld.sl refuses to
7938   # link against other versions.
7939   version_type=sunos
7940   need_lib_prefix=no
7941   need_version=no
7942   case "$host_cpu" in
7943   ia64*)
7944     shrext_cmds='.so'
7945     hardcode_into_libs=yes
7946     dynamic_linker="$host_os dld.so"
7947     shlibpath_var=LD_LIBRARY_PATH
7948     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7949     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7950     soname_spec='${libname}${release}${shared_ext}$major'
7951     if test "X$HPUX_IA64_MODE" = X32; then
7952       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7953     else
7954       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7955     fi
7956     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7957     ;;
7958    hppa*64*)
7959      shrext_cmds='.sl'
7960      hardcode_into_libs=yes
7961      dynamic_linker="$host_os dld.sl"
7962      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7963      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7964      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7965      soname_spec='${libname}${release}${shared_ext}$major'
7966      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7967      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7968      ;;
7969    *)
7970     shrext_cmds='.sl'
7971     dynamic_linker="$host_os dld.sl"
7972     shlibpath_var=SHLIB_PATH
7973     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7974     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7975     soname_spec='${libname}${release}${shared_ext}$major'
7976     ;;
7977   esac
7978   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7979   postinstall_cmds='chmod 555 $lib'
7980   ;;
7981
7982 irix5* | irix6* | nonstopux*)
7983   case $host_os in
7984     nonstopux*) version_type=nonstopux ;;
7985     *)
7986         if test "$lt_cv_prog_gnu_ld" = yes; then
7987                 version_type=linux
7988         else
7989                 version_type=irix
7990         fi ;;
7991   esac
7992   need_lib_prefix=no
7993   need_version=no
7994   soname_spec='${libname}${release}${shared_ext}$major'
7995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7996   case $host_os in
7997   irix5* | nonstopux*)
7998     libsuff= shlibsuff=
7999     ;;
8000   *)
8001     case $LD in # libtool.m4 will add one of these switches to LD
8002     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8003       libsuff= shlibsuff= libmagic=32-bit;;
8004     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8005       libsuff=32 shlibsuff=N32 libmagic=N32;;
8006     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8007       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8008     *) libsuff= shlibsuff= libmagic=never-match;;
8009     esac
8010     ;;
8011   esac
8012   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8013   shlibpath_overrides_runpath=no
8014   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8015   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8016   hardcode_into_libs=yes
8017   ;;
8018
8019 # No shared lib support for Linux oldld, aout, or coff.
8020 linux*oldld* | linux*aout* | linux*coff*)
8021   dynamic_linker=no
8022   ;;
8023
8024 # This must be Linux ELF.
8025 linux*)
8026   version_type=linux
8027   need_lib_prefix=no
8028   need_version=no
8029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8030   soname_spec='${libname}${release}${shared_ext}$major'
8031   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8032   shlibpath_var=LD_LIBRARY_PATH
8033   shlibpath_overrides_runpath=no
8034   # This implies no fast_install, which is unacceptable.
8035   # Some rework will be needed to allow for fast_install
8036   # before this can be enabled.
8037   hardcode_into_libs=yes
8038
8039   # Append ld.so.conf contents to the search path
8040   if test -f /etc/ld.so.conf; then
8041     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8042     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8043   fi
8044
8045   # We used to test for /lib/ld.so.1 and disable shared libraries on
8046   # powerpc, because MkLinux only supported shared libraries with the
8047   # GNU dynamic linker.  Since this was broken with cross compilers,
8048   # most powerpc-linux boxes support dynamic linking these days and
8049   # people can always --disable-shared, the test was removed, and we
8050   # assume the GNU/Linux dynamic linker is in use.
8051   dynamic_linker='GNU/Linux ld.so'
8052   ;;
8053
8054 knetbsd*-gnu)
8055   version_type=linux
8056   need_lib_prefix=no
8057   need_version=no
8058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8059   soname_spec='${libname}${release}${shared_ext}$major'
8060   shlibpath_var=LD_LIBRARY_PATH
8061   shlibpath_overrides_runpath=no
8062   hardcode_into_libs=yes
8063   dynamic_linker='GNU ld.so'
8064   ;;
8065
8066 netbsd*)
8067   version_type=sunos
8068   need_lib_prefix=no
8069   need_version=no
8070   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8071     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8072     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8073     dynamic_linker='NetBSD (a.out) ld.so'
8074   else
8075     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8076     soname_spec='${libname}${release}${shared_ext}$major'
8077     dynamic_linker='NetBSD ld.elf_so'
8078   fi
8079   shlibpath_var=LD_LIBRARY_PATH
8080   shlibpath_overrides_runpath=yes
8081   hardcode_into_libs=yes
8082   ;;
8083
8084 newsos6)
8085   version_type=linux
8086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8087   shlibpath_var=LD_LIBRARY_PATH
8088   shlibpath_overrides_runpath=yes
8089   ;;
8090
8091 nto-qnx*)
8092   version_type=linux
8093   need_lib_prefix=no
8094   need_version=no
8095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8096   soname_spec='${libname}${release}${shared_ext}$major'
8097   shlibpath_var=LD_LIBRARY_PATH
8098   shlibpath_overrides_runpath=yes
8099   ;;
8100
8101 openbsd*)
8102   version_type=sunos
8103   need_lib_prefix=no
8104   need_version=no
8105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8106   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8107   shlibpath_var=LD_LIBRARY_PATH
8108   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8109     case $host_os in
8110       openbsd2.[89] | openbsd2.[89].*)
8111         shlibpath_overrides_runpath=no
8112         ;;
8113       *)
8114         shlibpath_overrides_runpath=yes
8115         ;;
8116       esac
8117   else
8118     shlibpath_overrides_runpath=yes
8119   fi
8120   ;;
8121
8122 os2*)
8123   libname_spec='$name'
8124   shrext_cmds=".dll"
8125   need_lib_prefix=no
8126   library_names_spec='$libname${shared_ext} $libname.a'
8127   dynamic_linker='OS/2 ld.exe'
8128   shlibpath_var=LIBPATH
8129   ;;
8130
8131 osf3* | osf4* | osf5*)
8132   version_type=osf
8133   need_lib_prefix=no
8134   need_version=no
8135   soname_spec='${libname}${release}${shared_ext}$major'
8136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8137   shlibpath_var=LD_LIBRARY_PATH
8138   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8139   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8140   ;;
8141
8142 sco3.2v5*)
8143   version_type=osf
8144   soname_spec='${libname}${release}${shared_ext}$major'
8145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8146   shlibpath_var=LD_LIBRARY_PATH
8147   ;;
8148
8149 solaris*)
8150   version_type=linux
8151   need_lib_prefix=no
8152   need_version=no
8153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8154   soname_spec='${libname}${release}${shared_ext}$major'
8155   shlibpath_var=LD_LIBRARY_PATH
8156   shlibpath_overrides_runpath=yes
8157   hardcode_into_libs=yes
8158   # ldd complains unless libraries are executable
8159   postinstall_cmds='chmod +x $lib'
8160   ;;
8161
8162 sunos4*)
8163   version_type=sunos
8164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8165   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8166   shlibpath_var=LD_LIBRARY_PATH
8167   shlibpath_overrides_runpath=yes
8168   if test "$with_gnu_ld" = yes; then
8169     need_lib_prefix=no
8170   fi
8171   need_version=yes
8172   ;;
8173
8174 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8175   version_type=linux
8176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8177   soname_spec='${libname}${release}${shared_ext}$major'
8178   shlibpath_var=LD_LIBRARY_PATH
8179   case $host_vendor in
8180     sni)
8181       shlibpath_overrides_runpath=no
8182       need_lib_prefix=no
8183       export_dynamic_flag_spec='${wl}-Blargedynsym'
8184       runpath_var=LD_RUN_PATH
8185       ;;
8186     siemens)
8187       need_lib_prefix=no
8188       ;;
8189     motorola)
8190       need_lib_prefix=no
8191       need_version=no
8192       shlibpath_overrides_runpath=no
8193       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8194       ;;
8195   esac
8196   ;;
8197
8198 sysv4*MP*)
8199   if test -d /usr/nec ;then
8200     version_type=linux
8201     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8202     soname_spec='$libname${shared_ext}.$major'
8203     shlibpath_var=LD_LIBRARY_PATH
8204   fi
8205   ;;
8206
8207 uts4*)
8208   version_type=linux
8209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8210   soname_spec='${libname}${release}${shared_ext}$major'
8211   shlibpath_var=LD_LIBRARY_PATH
8212   ;;
8213
8214 *)
8215   dynamic_linker=no
8216   ;;
8217 esac
8218 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8219 echo "${ECHO_T}$dynamic_linker" >&6
8220 test "$dynamic_linker" = no && can_build_shared=no
8221
8222 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8223 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8224 hardcode_action=
8225 if test -n "$hardcode_libdir_flag_spec" || \
8226    test -n "$runpath_var" || \
8227    test "X$hardcode_automatic" = "Xyes" ; then
8228
8229   # We can hardcode non-existant directories.
8230   if test "$hardcode_direct" != no &&
8231      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8232      # have to relink, otherwise we might link with an installed library
8233      # when we should be linking with a yet-to-be-installed one
8234      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8235      test "$hardcode_minus_L" != no; then
8236     # Linking always hardcodes the temporary library directory.
8237     hardcode_action=relink
8238   else
8239     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8240     hardcode_action=immediate
8241   fi
8242 else
8243   # We cannot hardcode anything, or else we can only hardcode existing
8244   # directories.
8245   hardcode_action=unsupported
8246 fi
8247 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8248 echo "${ECHO_T}$hardcode_action" >&6
8249
8250 if test "$hardcode_action" = relink; then
8251   # Fast installation is not supported
8252   enable_fast_install=no
8253 elif test "$shlibpath_overrides_runpath" = yes ||
8254      test "$enable_shared" = no; then
8255   # Fast installation is not necessary
8256   enable_fast_install=needless
8257 fi
8258
8259 striplib=
8260 old_striplib=
8261 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8262 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8263 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8264   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8265   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8266   echo "$as_me:$LINENO: result: yes" >&5
8267 echo "${ECHO_T}yes" >&6
8268 else
8269 # FIXME - insert some real tests, host_os isn't really good enough
8270   case $host_os in
8271    darwin*)
8272        if test -n "$STRIP" ; then
8273          striplib="$STRIP -x"
8274          echo "$as_me:$LINENO: result: yes" >&5
8275 echo "${ECHO_T}yes" >&6
8276        else
8277   echo "$as_me:$LINENO: result: no" >&5
8278 echo "${ECHO_T}no" >&6
8279 fi
8280        ;;
8281    *)
8282   echo "$as_me:$LINENO: result: no" >&5
8283 echo "${ECHO_T}no" >&6
8284     ;;
8285   esac
8286 fi
8287
8288 if test "x$enable_dlopen" != xyes; then
8289   enable_dlopen=unknown
8290   enable_dlopen_self=unknown
8291   enable_dlopen_self_static=unknown
8292 else
8293   lt_cv_dlopen=no
8294   lt_cv_dlopen_libs=
8295
8296   case $host_os in
8297   beos*)
8298     lt_cv_dlopen="load_add_on"
8299     lt_cv_dlopen_libs=
8300     lt_cv_dlopen_self=yes
8301     ;;
8302
8303   mingw* | pw32*)
8304     lt_cv_dlopen="LoadLibrary"
8305     lt_cv_dlopen_libs=
8306    ;;
8307
8308   cygwin*)
8309     lt_cv_dlopen="dlopen"
8310     lt_cv_dlopen_libs=
8311    ;;
8312
8313   darwin*)
8314   # if libdl is installed we need to link against it
8315     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8316 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8317 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8318   echo $ECHO_N "(cached) $ECHO_C" >&6
8319 else
8320   ac_check_lib_save_LIBS=$LIBS
8321 LIBS="-ldl  $LIBS"
8322 cat >conftest.$ac_ext <<_ACEOF
8323 /* confdefs.h.  */
8324 _ACEOF
8325 cat confdefs.h >>conftest.$ac_ext
8326 cat >>conftest.$ac_ext <<_ACEOF
8327 /* end confdefs.h.  */
8328
8329 /* Override any gcc2 internal prototype to avoid an error.  */
8330 #ifdef __cplusplus
8331 extern "C"
8332 #endif
8333 /* We use char because int might match the return type of a gcc2
8334    builtin and then its argument prototype would still apply.  */
8335 char dlopen ();
8336 int
8337 main ()
8338 {
8339 dlopen ();
8340   ;
8341   return 0;
8342 }
8343 _ACEOF
8344 rm -f conftest.$ac_objext conftest$ac_exeext
8345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8346   (eval $ac_link) 2>conftest.er1
8347   ac_status=$?
8348   grep -v '^ *+' conftest.er1 >conftest.err
8349   rm -f conftest.er1
8350   cat conftest.err >&5
8351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352   (exit $ac_status); } &&
8353          { ac_try='test -z "$ac_c_werror_flag"
8354                          || test ! -s conftest.err'
8355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356   (eval $ac_try) 2>&5
8357   ac_status=$?
8358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359   (exit $ac_status); }; } &&
8360          { ac_try='test -s conftest$ac_exeext'
8361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8362   (eval $ac_try) 2>&5
8363   ac_status=$?
8364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365   (exit $ac_status); }; }; then
8366   ac_cv_lib_dl_dlopen=yes
8367 else
8368   echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8370
8371 ac_cv_lib_dl_dlopen=no
8372 fi
8373 rm -f conftest.err conftest.$ac_objext \
8374       conftest$ac_exeext conftest.$ac_ext
8375 LIBS=$ac_check_lib_save_LIBS
8376 fi
8377 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8378 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8379 if test $ac_cv_lib_dl_dlopen = yes; then
8380   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8381 else
8382
8383     lt_cv_dlopen="dyld"
8384     lt_cv_dlopen_libs=
8385     lt_cv_dlopen_self=yes
8386
8387 fi
8388
8389    ;;
8390
8391   *)
8392     echo "$as_me:$LINENO: checking for shl_load" >&5
8393 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8394 if test "${ac_cv_func_shl_load+set}" = set; then
8395   echo $ECHO_N "(cached) $ECHO_C" >&6
8396 else
8397   cat >conftest.$ac_ext <<_ACEOF
8398 /* confdefs.h.  */
8399 _ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h.  */
8403 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8404    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8405 #define shl_load innocuous_shl_load
8406
8407 /* System header to define __stub macros and hopefully few prototypes,
8408     which can conflict with char shl_load (); below.
8409     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8410     <limits.h> exists even on freestanding compilers.  */
8411
8412 #ifdef __STDC__
8413 # include <limits.h>
8414 #else
8415 # include <assert.h>
8416 #endif
8417
8418 #undef shl_load
8419
8420 /* Override any gcc2 internal prototype to avoid an error.  */
8421 #ifdef __cplusplus
8422 extern "C"
8423 {
8424 #endif
8425 /* We use char because int might match the return type of a gcc2
8426    builtin and then its argument prototype would still apply.  */
8427 char shl_load ();
8428 /* The GNU C library defines this for functions which it implements
8429     to always fail with ENOSYS.  Some functions are actually named
8430     something starting with __ and the normal name is an alias.  */
8431 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8432 choke me
8433 #else
8434 char (*f) () = shl_load;
8435 #endif
8436 #ifdef __cplusplus
8437 }
8438 #endif
8439
8440 int
8441 main ()
8442 {
8443 return f != shl_load;
8444   ;
8445   return 0;
8446 }
8447 _ACEOF
8448 rm -f conftest.$ac_objext conftest$ac_exeext
8449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8450   (eval $ac_link) 2>conftest.er1
8451   ac_status=$?
8452   grep -v '^ *+' conftest.er1 >conftest.err
8453   rm -f conftest.er1
8454   cat conftest.err >&5
8455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456   (exit $ac_status); } &&
8457          { ac_try='test -z "$ac_c_werror_flag"
8458                          || test ! -s conftest.err'
8459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460   (eval $ac_try) 2>&5
8461   ac_status=$?
8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463   (exit $ac_status); }; } &&
8464          { ac_try='test -s conftest$ac_exeext'
8465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466   (eval $ac_try) 2>&5
8467   ac_status=$?
8468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469   (exit $ac_status); }; }; then
8470   ac_cv_func_shl_load=yes
8471 else
8472   echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8474
8475 ac_cv_func_shl_load=no
8476 fi
8477 rm -f conftest.err conftest.$ac_objext \
8478       conftest$ac_exeext conftest.$ac_ext
8479 fi
8480 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8481 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8482 if test $ac_cv_func_shl_load = yes; then
8483   lt_cv_dlopen="shl_load"
8484 else
8485   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8486 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8487 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8488   echo $ECHO_N "(cached) $ECHO_C" >&6
8489 else
8490   ac_check_lib_save_LIBS=$LIBS
8491 LIBS="-ldld  $LIBS"
8492 cat >conftest.$ac_ext <<_ACEOF
8493 /* confdefs.h.  */
8494 _ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h.  */
8498
8499 /* Override any gcc2 internal prototype to avoid an error.  */
8500 #ifdef __cplusplus
8501 extern "C"
8502 #endif
8503 /* We use char because int might match the return type of a gcc2
8504    builtin and then its argument prototype would still apply.  */
8505 char shl_load ();
8506 int
8507 main ()
8508 {
8509 shl_load ();
8510   ;
8511   return 0;
8512 }
8513 _ACEOF
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8516   (eval $ac_link) 2>conftest.er1
8517   ac_status=$?
8518   grep -v '^ *+' conftest.er1 >conftest.err
8519   rm -f conftest.er1
8520   cat conftest.err >&5
8521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); } &&
8523          { ac_try='test -z "$ac_c_werror_flag"
8524                          || test ! -s conftest.err'
8525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526   (eval $ac_try) 2>&5
8527   ac_status=$?
8528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529   (exit $ac_status); }; } &&
8530          { ac_try='test -s conftest$ac_exeext'
8531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532   (eval $ac_try) 2>&5
8533   ac_status=$?
8534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535   (exit $ac_status); }; }; then
8536   ac_cv_lib_dld_shl_load=yes
8537 else
8538   echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8540
8541 ac_cv_lib_dld_shl_load=no
8542 fi
8543 rm -f conftest.err conftest.$ac_objext \
8544       conftest$ac_exeext conftest.$ac_ext
8545 LIBS=$ac_check_lib_save_LIBS
8546 fi
8547 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8548 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8549 if test $ac_cv_lib_dld_shl_load = yes; then
8550   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8551 else
8552   echo "$as_me:$LINENO: checking for dlopen" >&5
8553 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8554 if test "${ac_cv_func_dlopen+set}" = set; then
8555   echo $ECHO_N "(cached) $ECHO_C" >&6
8556 else
8557   cat >conftest.$ac_ext <<_ACEOF
8558 /* confdefs.h.  */
8559 _ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h.  */
8563 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8564    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8565 #define dlopen innocuous_dlopen
8566
8567 /* System header to define __stub macros and hopefully few prototypes,
8568     which can conflict with char dlopen (); below.
8569     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8570     <limits.h> exists even on freestanding compilers.  */
8571
8572 #ifdef __STDC__
8573 # include <limits.h>
8574 #else
8575 # include <assert.h>
8576 #endif
8577
8578 #undef dlopen
8579
8580 /* Override any gcc2 internal prototype to avoid an error.  */
8581 #ifdef __cplusplus
8582 extern "C"
8583 {
8584 #endif
8585 /* We use char because int might match the return type of a gcc2
8586    builtin and then its argument prototype would still apply.  */
8587 char dlopen ();
8588 /* The GNU C library defines this for functions which it implements
8589     to always fail with ENOSYS.  Some functions are actually named
8590     something starting with __ and the normal name is an alias.  */
8591 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8592 choke me
8593 #else
8594 char (*f) () = dlopen;
8595 #endif
8596 #ifdef __cplusplus
8597 }
8598 #endif
8599
8600 int
8601 main ()
8602 {
8603 return f != dlopen;
8604   ;
8605   return 0;
8606 }
8607 _ACEOF
8608 rm -f conftest.$ac_objext conftest$ac_exeext
8609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8610   (eval $ac_link) 2>conftest.er1
8611   ac_status=$?
8612   grep -v '^ *+' conftest.er1 >conftest.err
8613   rm -f conftest.er1
8614   cat conftest.err >&5
8615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616   (exit $ac_status); } &&
8617          { ac_try='test -z "$ac_c_werror_flag"
8618                          || test ! -s conftest.err'
8619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620   (eval $ac_try) 2>&5
8621   ac_status=$?
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); }; } &&
8624          { ac_try='test -s conftest$ac_exeext'
8625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626   (eval $ac_try) 2>&5
8627   ac_status=$?
8628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629   (exit $ac_status); }; }; then
8630   ac_cv_func_dlopen=yes
8631 else
8632   echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8634
8635 ac_cv_func_dlopen=no
8636 fi
8637 rm -f conftest.err conftest.$ac_objext \
8638       conftest$ac_exeext conftest.$ac_ext
8639 fi
8640 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8641 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8642 if test $ac_cv_func_dlopen = yes; then
8643   lt_cv_dlopen="dlopen"
8644 else
8645   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8646 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8647 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8648   echo $ECHO_N "(cached) $ECHO_C" >&6
8649 else
8650   ac_check_lib_save_LIBS=$LIBS
8651 LIBS="-ldl  $LIBS"
8652 cat >conftest.$ac_ext <<_ACEOF
8653 /* confdefs.h.  */
8654 _ACEOF
8655 cat confdefs.h >>conftest.$ac_ext
8656 cat >>conftest.$ac_ext <<_ACEOF
8657 /* end confdefs.h.  */
8658
8659 /* Override any gcc2 internal prototype to avoid an error.  */
8660 #ifdef __cplusplus
8661 extern "C"
8662 #endif
8663 /* We use char because int might match the return type of a gcc2
8664    builtin and then its argument prototype would still apply.  */
8665 char dlopen ();
8666 int
8667 main ()
8668 {
8669 dlopen ();
8670   ;
8671   return 0;
8672 }
8673 _ACEOF
8674 rm -f conftest.$ac_objext conftest$ac_exeext
8675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8676   (eval $ac_link) 2>conftest.er1
8677   ac_status=$?
8678   grep -v '^ *+' conftest.er1 >conftest.err
8679   rm -f conftest.er1
8680   cat conftest.err >&5
8681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682   (exit $ac_status); } &&
8683          { ac_try='test -z "$ac_c_werror_flag"
8684                          || test ! -s conftest.err'
8685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8686   (eval $ac_try) 2>&5
8687   ac_status=$?
8688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689   (exit $ac_status); }; } &&
8690          { ac_try='test -s conftest$ac_exeext'
8691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8692   (eval $ac_try) 2>&5
8693   ac_status=$?
8694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695   (exit $ac_status); }; }; then
8696   ac_cv_lib_dl_dlopen=yes
8697 else
8698   echo "$as_me: failed program was:" >&5
8699 sed 's/^/| /' conftest.$ac_ext >&5
8700
8701 ac_cv_lib_dl_dlopen=no
8702 fi
8703 rm -f conftest.err conftest.$ac_objext \
8704       conftest$ac_exeext conftest.$ac_ext
8705 LIBS=$ac_check_lib_save_LIBS
8706 fi
8707 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8708 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8709 if test $ac_cv_lib_dl_dlopen = yes; then
8710   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8711 else
8712   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8713 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8714 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8715   echo $ECHO_N "(cached) $ECHO_C" >&6
8716 else
8717   ac_check_lib_save_LIBS=$LIBS
8718 LIBS="-lsvld  $LIBS"
8719 cat >conftest.$ac_ext <<_ACEOF
8720 /* confdefs.h.  */
8721 _ACEOF
8722 cat confdefs.h >>conftest.$ac_ext
8723 cat >>conftest.$ac_ext <<_ACEOF
8724 /* end confdefs.h.  */
8725
8726 /* Override any gcc2 internal prototype to avoid an error.  */
8727 #ifdef __cplusplus
8728 extern "C"
8729 #endif
8730 /* We use char because int might match the return type of a gcc2
8731    builtin and then its argument prototype would still apply.  */
8732 char dlopen ();
8733 int
8734 main ()
8735 {
8736 dlopen ();
8737   ;
8738   return 0;
8739 }
8740 _ACEOF
8741 rm -f conftest.$ac_objext conftest$ac_exeext
8742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8743   (eval $ac_link) 2>conftest.er1
8744   ac_status=$?
8745   grep -v '^ *+' conftest.er1 >conftest.err
8746   rm -f conftest.er1
8747   cat conftest.err >&5
8748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749   (exit $ac_status); } &&
8750          { ac_try='test -z "$ac_c_werror_flag"
8751                          || test ! -s conftest.err'
8752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753   (eval $ac_try) 2>&5
8754   ac_status=$?
8755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756   (exit $ac_status); }; } &&
8757          { ac_try='test -s conftest$ac_exeext'
8758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759   (eval $ac_try) 2>&5
8760   ac_status=$?
8761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762   (exit $ac_status); }; }; then
8763   ac_cv_lib_svld_dlopen=yes
8764 else
8765   echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8767
8768 ac_cv_lib_svld_dlopen=no
8769 fi
8770 rm -f conftest.err conftest.$ac_objext \
8771       conftest$ac_exeext conftest.$ac_ext
8772 LIBS=$ac_check_lib_save_LIBS
8773 fi
8774 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8775 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8776 if test $ac_cv_lib_svld_dlopen = yes; then
8777   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8778 else
8779   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8780 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8781 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8782   echo $ECHO_N "(cached) $ECHO_C" >&6
8783 else
8784   ac_check_lib_save_LIBS=$LIBS
8785 LIBS="-ldld  $LIBS"
8786 cat >conftest.$ac_ext <<_ACEOF
8787 /* confdefs.h.  */
8788 _ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h.  */
8792
8793 /* Override any gcc2 internal prototype to avoid an error.  */
8794 #ifdef __cplusplus
8795 extern "C"
8796 #endif
8797 /* We use char because int might match the return type of a gcc2
8798    builtin and then its argument prototype would still apply.  */
8799 char dld_link ();
8800 int
8801 main ()
8802 {
8803 dld_link ();
8804   ;
8805   return 0;
8806 }
8807 _ACEOF
8808 rm -f conftest.$ac_objext conftest$ac_exeext
8809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8810   (eval $ac_link) 2>conftest.er1
8811   ac_status=$?
8812   grep -v '^ *+' conftest.er1 >conftest.err
8813   rm -f conftest.er1
8814   cat conftest.err >&5
8815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816   (exit $ac_status); } &&
8817          { ac_try='test -z "$ac_c_werror_flag"
8818                          || test ! -s conftest.err'
8819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8820   (eval $ac_try) 2>&5
8821   ac_status=$?
8822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823   (exit $ac_status); }; } &&
8824          { ac_try='test -s conftest$ac_exeext'
8825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826   (eval $ac_try) 2>&5
8827   ac_status=$?
8828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829   (exit $ac_status); }; }; then
8830   ac_cv_lib_dld_dld_link=yes
8831 else
8832   echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.$ac_ext >&5
8834
8835 ac_cv_lib_dld_dld_link=no
8836 fi
8837 rm -f conftest.err conftest.$ac_objext \
8838       conftest$ac_exeext conftest.$ac_ext
8839 LIBS=$ac_check_lib_save_LIBS
8840 fi
8841 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8842 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8843 if test $ac_cv_lib_dld_dld_link = yes; then
8844   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8845 fi
8846
8847
8848 fi
8849
8850
8851 fi
8852
8853
8854 fi
8855
8856
8857 fi
8858
8859
8860 fi
8861
8862     ;;
8863   esac
8864
8865   if test "x$lt_cv_dlopen" != xno; then
8866     enable_dlopen=yes
8867   else
8868     enable_dlopen=no
8869   fi
8870
8871   case $lt_cv_dlopen in
8872   dlopen)
8873     save_CPPFLAGS="$CPPFLAGS"
8874     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8875
8876     save_LDFLAGS="$LDFLAGS"
8877     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8878
8879     save_LIBS="$LIBS"
8880     LIBS="$lt_cv_dlopen_libs $LIBS"
8881
8882     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8883 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8884 if test "${lt_cv_dlopen_self+set}" = set; then
8885   echo $ECHO_N "(cached) $ECHO_C" >&6
8886 else
8887           if test "$cross_compiling" = yes; then :
8888   lt_cv_dlopen_self=cross
8889 else
8890   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8891   lt_status=$lt_dlunknown
8892   cat > conftest.$ac_ext <<EOF
8893 #line 8893 "configure"
8894 #include "confdefs.h"
8895
8896 #if HAVE_DLFCN_H
8897 #include <dlfcn.h>
8898 #endif
8899
8900 #include <stdio.h>
8901
8902 #ifdef RTLD_GLOBAL
8903 #  define LT_DLGLOBAL           RTLD_GLOBAL
8904 #else
8905 #  ifdef DL_GLOBAL
8906 #    define LT_DLGLOBAL         DL_GLOBAL
8907 #  else
8908 #    define LT_DLGLOBAL         0
8909 #  endif
8910 #endif
8911
8912 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8913    find out it does not work in some platform. */
8914 #ifndef LT_DLLAZY_OR_NOW
8915 #  ifdef RTLD_LAZY
8916 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8917 #  else
8918 #    ifdef DL_LAZY
8919 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8920 #    else
8921 #      ifdef RTLD_NOW
8922 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8923 #      else
8924 #        ifdef DL_NOW
8925 #          define LT_DLLAZY_OR_NOW      DL_NOW
8926 #        else
8927 #          define LT_DLLAZY_OR_NOW      0
8928 #        endif
8929 #      endif
8930 #    endif
8931 #  endif
8932 #endif
8933
8934 #ifdef __cplusplus
8935 extern "C" void exit (int);
8936 #endif
8937
8938 void fnord() { int i=42;}
8939 int main ()
8940 {
8941   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8942   int status = $lt_dlunknown;
8943
8944   if (self)
8945     {
8946       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8947       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8948       /* dlclose (self); */
8949     }
8950
8951     exit (status);
8952 }
8953 EOF
8954   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8955   (eval $ac_link) 2>&5
8956   ac_status=$?
8957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8959     (./conftest; exit; ) 2>/dev/null
8960     lt_status=$?
8961     case x$lt_status in
8962       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8963       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8964       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8965     esac
8966   else :
8967     # compilation failed
8968     lt_cv_dlopen_self=no
8969   fi
8970 fi
8971 rm -fr conftest*
8972
8973
8974 fi
8975 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8976 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8977
8978     if test "x$lt_cv_dlopen_self" = xyes; then
8979       LDFLAGS="$LDFLAGS $link_static_flag"
8980       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8981 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8982 if test "${lt_cv_dlopen_self_static+set}" = set; then
8983   echo $ECHO_N "(cached) $ECHO_C" >&6
8984 else
8985           if test "$cross_compiling" = yes; then :
8986   lt_cv_dlopen_self_static=cross
8987 else
8988   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8989   lt_status=$lt_dlunknown
8990   cat > conftest.$ac_ext <<EOF
8991 #line 8991 "configure"
8992 #include "confdefs.h"
8993
8994 #if HAVE_DLFCN_H
8995 #include <dlfcn.h>
8996 #endif
8997
8998 #include <stdio.h>
8999
9000 #ifdef RTLD_GLOBAL
9001 #  define LT_DLGLOBAL           RTLD_GLOBAL
9002 #else
9003 #  ifdef DL_GLOBAL
9004 #    define LT_DLGLOBAL         DL_GLOBAL
9005 #  else
9006 #    define LT_DLGLOBAL         0
9007 #  endif
9008 #endif
9009
9010 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9011    find out it does not work in some platform. */
9012 #ifndef LT_DLLAZY_OR_NOW
9013 #  ifdef RTLD_LAZY
9014 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9015 #  else
9016 #    ifdef DL_LAZY
9017 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9018 #    else
9019 #      ifdef RTLD_NOW
9020 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9021 #      else
9022 #        ifdef DL_NOW
9023 #          define LT_DLLAZY_OR_NOW      DL_NOW
9024 #        else
9025 #          define LT_DLLAZY_OR_NOW      0
9026 #        endif
9027 #      endif
9028 #    endif
9029 #  endif
9030 #endif
9031
9032 #ifdef __cplusplus
9033 extern "C" void exit (int);
9034 #endif
9035
9036 void fnord() { int i=42;}
9037 int main ()
9038 {
9039   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9040   int status = $lt_dlunknown;
9041
9042   if (self)
9043     {
9044       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9045       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9046       /* dlclose (self); */
9047     }
9048
9049     exit (status);
9050 }
9051 EOF
9052   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9053   (eval $ac_link) 2>&5
9054   ac_status=$?
9055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9057     (./conftest; exit; ) 2>/dev/null
9058     lt_status=$?
9059     case x$lt_status in
9060       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9061       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9062       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9063     esac
9064   else :
9065     # compilation failed
9066     lt_cv_dlopen_self_static=no
9067   fi
9068 fi
9069 rm -fr conftest*
9070
9071
9072 fi
9073 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9074 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9075     fi
9076
9077     CPPFLAGS="$save_CPPFLAGS"
9078     LDFLAGS="$save_LDFLAGS"
9079     LIBS="$save_LIBS"
9080     ;;
9081   esac
9082
9083   case $lt_cv_dlopen_self in
9084   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9085   *) enable_dlopen_self=unknown ;;
9086   esac
9087
9088   case $lt_cv_dlopen_self_static in
9089   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9090   *) enable_dlopen_self_static=unknown ;;
9091   esac
9092 fi
9093
9094
9095 # Report which librarie types wil actually be built
9096 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9097 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9098 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9099 echo "${ECHO_T}$can_build_shared" >&6
9100
9101 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9102 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9103 test "$can_build_shared" = "no" && enable_shared=no
9104
9105 # On AIX, shared libraries and static libraries use the same namespace, and
9106 # are all built from PIC.
9107 case "$host_os" in
9108 aix3*)
9109   test "$enable_shared" = yes && enable_static=no
9110   if test -n "$RANLIB"; then
9111     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9112     postinstall_cmds='$RANLIB $lib'
9113   fi
9114   ;;
9115
9116 aix4* | aix5*)
9117   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9118     test "$enable_shared" = yes && enable_static=no
9119   fi
9120     ;;
9121 esac
9122 echo "$as_me:$LINENO: result: $enable_shared" >&5
9123 echo "${ECHO_T}$enable_shared" >&6
9124
9125 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9126 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9127 # Make sure either enable_shared or enable_static is yes.
9128 test "$enable_shared" = yes || enable_static=yes
9129 echo "$as_me:$LINENO: result: $enable_static" >&5
9130 echo "${ECHO_T}$enable_static" >&6
9131
9132 # The else clause should only fire when bootstrapping the
9133 # libtool distribution, otherwise you forgot to ship ltmain.sh
9134 # with your package, and you will get complaints that there are
9135 # no rules to generate ltmain.sh.
9136 if test -f "$ltmain"; then
9137   # See if we are running on zsh, and set the options which allow our commands through
9138   # without removal of \ escapes.
9139   if test -n "${ZSH_VERSION+set}" ; then
9140     setopt NO_GLOB_SUBST
9141   fi
9142   # Now quote all the things that may contain metacharacters while being
9143   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9144   # variables and quote the copies for generation of the libtool script.
9145   for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
9146     SED SHELL STRIP \
9147     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9148     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9149     deplibs_check_method reload_flag reload_cmds need_locks \
9150     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9151     lt_cv_sys_global_symbol_to_c_name_address \
9152     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9153     old_postinstall_cmds old_postuninstall_cmds \
9154     compiler \
9155     CC \
9156     LD \
9157     lt_prog_compiler_wl \
9158     lt_prog_compiler_pic \
9159     lt_prog_compiler_static \
9160     lt_prog_compiler_no_builtin_flag \
9161     export_dynamic_flag_spec \
9162     thread_safe_flag_spec \
9163     whole_archive_flag_spec \
9164     enable_shared_with_static_runtimes \
9165     old_archive_cmds \
9166     old_archive_from_new_cmds \
9167     predep_objects \
9168     postdep_objects \
9169     predeps \
9170     postdeps \
9171     compiler_lib_search_path \
9172     archive_cmds \
9173     archive_expsym_cmds \
9174     postinstall_cmds \
9175     postuninstall_cmds \
9176     old_archive_from_expsyms_cmds \
9177     allow_undefined_flag \
9178     no_undefined_flag \
9179     export_symbols_cmds \
9180     hardcode_libdir_flag_spec \
9181     hardcode_libdir_flag_spec_ld \
9182     hardcode_libdir_separator \
9183     hardcode_automatic \
9184     module_cmds \
9185     module_expsym_cmds \
9186     lt_cv_prog_compiler_c_o \
9187     exclude_expsyms \
9188     include_expsyms; do
9189
9190     case $var in
9191     old_archive_cmds | \
9192     old_archive_from_new_cmds | \
9193     archive_cmds | \
9194     archive_expsym_cmds | \
9195     module_cmds | \
9196     module_expsym_cmds | \
9197     old_archive_from_expsyms_cmds | \
9198     export_symbols_cmds | \
9199     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9200     postinstall_cmds | postuninstall_cmds | \
9201     old_postinstall_cmds | old_postuninstall_cmds | \
9202     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9203       # Double-quote double-evaled strings.
9204       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9205       ;;
9206     *)
9207       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9208       ;;
9209     esac
9210   done
9211
9212   case $lt_echo in
9213   *'\$0 --fallback-echo"')
9214     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9215     ;;
9216   esac
9217
9218 cfgfile="${ofile}T"
9219   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9220   $rm -f "$cfgfile"
9221   { echo "$as_me:$LINENO: creating $ofile" >&5
9222 echo "$as_me: creating $ofile" >&6;}
9223
9224   cat <<__EOF__ >> "$cfgfile"
9225 #! $SHELL
9226
9227 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9228 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9229 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9230 #
9231 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9232 # Free Software Foundation, Inc.
9233 #
9234 # This file is part of GNU Libtool:
9235 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9236 #
9237 # This program is free software; you can redistribute it and/or modify
9238 # it under the terms of the GNU General Public License as published by
9239 # the Free Software Foundation; either version 2 of the License, or
9240 # (at your option) any later version.
9241 #
9242 # This program is distributed in the hope that it will be useful, but
9243 # WITHOUT ANY WARRANTY; without even the implied warranty of
9244 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9245 # General Public License for more details.
9246 #
9247 # You should have received a copy of the GNU General Public License
9248 # along with this program; if not, write to the Free Software
9249 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9250 #
9251 # As a special exception to the GNU General Public License, if you
9252 # distribute this file as part of a program that contains a
9253 # configuration script generated by Autoconf, you may include it under
9254 # the same distribution terms that you use for the rest of that program.
9255
9256 # A sed program that does not truncate output.
9257 SED=$lt_SED
9258
9259 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9260 Xsed="$SED -e s/^X//"
9261
9262 # The HP-UX ksh and POSIX shell print the target directory to stdout
9263 # if CDPATH is set.
9264 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9265
9266 # The names of the tagged configurations supported by this script.
9267 available_tags=
9268
9269 # ### BEGIN LIBTOOL CONFIG
9270
9271 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9272
9273 # Shell to use when invoking shell scripts.
9274 SHELL=$lt_SHELL
9275
9276 # Whether or not to build shared libraries.
9277 build_libtool_libs=$enable_shared
9278
9279 # Whether or not to build static libraries.
9280 build_old_libs=$enable_static
9281
9282 # Whether or not to add -lc for building shared libraries.
9283 build_libtool_need_lc=$archive_cmds_need_lc
9284
9285 # Whether or not to disallow shared libs when runtime libs are static
9286 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9287
9288 # Whether or not to optimize for fast installation.
9289 fast_install=$enable_fast_install
9290
9291 # The host system.
9292 host_alias=$host_alias
9293 host=$host
9294 host_os=$host_os
9295
9296 # The build system.
9297 build_alias=$build_alias
9298 build=$build
9299 build_os=$build_os
9300
9301 # An echo program that does not interpret backslashes.
9302 echo=$lt_echo
9303
9304 # The archiver.
9305 AR=$lt_AR
9306 AR_FLAGS=$lt_AR_FLAGS
9307
9308 # A C compiler.
9309 LTCC=$lt_LTCC
9310
9311 # A language-specific compiler.
9312 CC=$lt_compiler
9313
9314 # Is the compiler the GNU C compiler?
9315 with_gcc=$GCC
9316
9317 # An ERE matcher.
9318 EGREP=$lt_EGREP
9319
9320 # The linker used to build libraries.
9321 LD=$lt_LD
9322
9323 # Whether we need hard or soft links.
9324 LN_S=$lt_LN_S
9325
9326 # A BSD-compatible nm program.
9327 NM=$lt_NM
9328
9329 # A symbol stripping program
9330 STRIP=$lt_STRIP
9331
9332 # Used to examine libraries when file_magic_cmd begins "file"
9333 MAGIC_CMD=$MAGIC_CMD
9334
9335 # Used on cygwin: DLL creation program.
9336 DLLTOOL="$DLLTOOL"
9337
9338 # Used on cygwin: object dumper.
9339 OBJDUMP="$OBJDUMP"
9340
9341 # Used on cygwin: assembler.
9342 AS=$lt_AS
9343
9344 # The name of the directory that contains temporary libtool files.
9345 objdir=$objdir
9346
9347 # How to create reloadable object files.
9348 reload_flag=$lt_reload_flag
9349 reload_cmds=$lt_reload_cmds
9350
9351 # How to pass a linker flag through the compiler.
9352 wl=$lt_lt_prog_compiler_wl
9353
9354 # Object file suffix (normally "o").
9355 objext="$ac_objext"
9356
9357 # Old archive suffix (normally "a").
9358 libext="$libext"
9359
9360 # Shared library suffix (normally ".so").
9361 shrext_cmds='$shrext_cmds'
9362
9363 # Executable file suffix (normally "").
9364 exeext="$exeext"
9365
9366 # Additional compiler flags for building library objects.
9367 pic_flag=$lt_lt_prog_compiler_pic
9368 pic_mode=$pic_mode
9369
9370 # What is the maximum length of a command?
9371 max_cmd_len=$lt_cv_sys_max_cmd_len
9372
9373 # Does compiler simultaneously support -c and -o options?
9374 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9375
9376 # Must we lock files when doing compilation ?
9377 need_locks=$lt_need_locks
9378
9379 # Do we need the lib prefix for modules?
9380 need_lib_prefix=$need_lib_prefix
9381
9382 # Do we need a version for libraries?
9383 need_version=$need_version
9384
9385 # Whether dlopen is supported.
9386 dlopen_support=$enable_dlopen
9387
9388 # Whether dlopen of programs is supported.
9389 dlopen_self=$enable_dlopen_self
9390
9391 # Whether dlopen of statically linked programs is supported.
9392 dlopen_self_static=$enable_dlopen_self_static
9393
9394 # Compiler flag to prevent dynamic linking.
9395 link_static_flag=$lt_lt_prog_compiler_static
9396
9397 # Compiler flag to turn off builtin functions.
9398 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9399
9400 # Compiler flag to allow reflexive dlopens.
9401 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9402
9403 # Compiler flag to generate shared objects directly from archives.
9404 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9405
9406 # Compiler flag to generate thread-safe objects.
9407 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9408
9409 # Library versioning type.
9410 version_type=$version_type
9411
9412 # Format of library name prefix.
9413 libname_spec=$lt_libname_spec
9414
9415 # List of archive names.  First name is the real one, the rest are links.
9416 # The last name is the one that the linker finds with -lNAME.
9417 library_names_spec=$lt_library_names_spec
9418
9419 # The coded name of the library, if different from the real name.
9420 soname_spec=$lt_soname_spec
9421
9422 # Commands used to build and install an old-style archive.
9423 RANLIB=$lt_RANLIB
9424 old_archive_cmds=$lt_old_archive_cmds
9425 old_postinstall_cmds=$lt_old_postinstall_cmds
9426 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9427
9428 # Create an old-style archive from a shared archive.
9429 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9430
9431 # Create a temporary old-style archive to link instead of a shared archive.
9432 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9433
9434 # Commands used to build and install a shared archive.
9435 archive_cmds=$lt_archive_cmds
9436 archive_expsym_cmds=$lt_archive_expsym_cmds
9437 postinstall_cmds=$lt_postinstall_cmds
9438 postuninstall_cmds=$lt_postuninstall_cmds
9439
9440 # Commands used to build a loadable module (assumed same as above if empty)
9441 module_cmds=$lt_module_cmds
9442 module_expsym_cmds=$lt_module_expsym_cmds
9443
9444 # Commands to strip libraries.
9445 old_striplib=$lt_old_striplib
9446 striplib=$lt_striplib
9447
9448 # Dependencies to place before the objects being linked to create a
9449 # shared library.
9450 predep_objects=$lt_predep_objects
9451
9452 # Dependencies to place after the objects being linked to create a
9453 # shared library.
9454 postdep_objects=$lt_postdep_objects
9455
9456 # Dependencies to place before the objects being linked to create a
9457 # shared library.
9458 predeps=$lt_predeps
9459
9460 # Dependencies to place after the objects being linked to create a
9461 # shared library.
9462 postdeps=$lt_postdeps
9463
9464 # The library search path used internally by the compiler when linking
9465 # a shared library.
9466 compiler_lib_search_path=$lt_compiler_lib_search_path
9467
9468 # Method to check whether dependent libraries are shared objects.
9469 deplibs_check_method=$lt_deplibs_check_method
9470
9471 # Command to use when deplibs_check_method == file_magic.
9472 file_magic_cmd=$lt_file_magic_cmd
9473
9474 # Flag that allows shared libraries with undefined symbols to be built.
9475 allow_undefined_flag=$lt_allow_undefined_flag
9476
9477 # Flag that forces no undefined symbols.
9478 no_undefined_flag=$lt_no_undefined_flag
9479
9480 # Commands used to finish a libtool library installation in a directory.
9481 finish_cmds=$lt_finish_cmds
9482
9483 # Same as above, but a single script fragment to be evaled but not shown.
9484 finish_eval=$lt_finish_eval
9485
9486 # Take the output of nm and produce a listing of raw symbols and C names.
9487 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9488
9489 # Transform the output of nm in a proper C declaration
9490 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9491
9492 # Transform the output of nm in a C name address pair
9493 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9494
9495 # This is the shared library runtime path variable.
9496 runpath_var=$runpath_var
9497
9498 # This is the shared library path variable.
9499 shlibpath_var=$shlibpath_var
9500
9501 # Is shlibpath searched before the hard-coded library search path?
9502 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9503
9504 # How to hardcode a shared library path into an executable.
9505 hardcode_action=$hardcode_action
9506
9507 # Whether we should hardcode library paths into libraries.
9508 hardcode_into_libs=$hardcode_into_libs
9509
9510 # Flag to hardcode \$libdir into a binary during linking.
9511 # This must work even if \$libdir does not exist.
9512 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9513
9514 # If ld is used when linking, flag to hardcode \$libdir into
9515 # a binary during linking. This must work even if \$libdir does
9516 # not exist.
9517 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9518
9519 # Whether we need a single -rpath flag with a separated argument.
9520 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9521
9522 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9523 # resulting binary.
9524 hardcode_direct=$hardcode_direct
9525
9526 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9527 # resulting binary.
9528 hardcode_minus_L=$hardcode_minus_L
9529
9530 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9531 # the resulting binary.
9532 hardcode_shlibpath_var=$hardcode_shlibpath_var
9533
9534 # Set to yes if building a shared library automatically hardcodes DIR into the library
9535 # and all subsequent libraries and executables linked against it.
9536 hardcode_automatic=$hardcode_automatic
9537
9538 # Variables whose values should be saved in libtool wrapper scripts and
9539 # restored at relink time.
9540 variables_saved_for_relink="$variables_saved_for_relink"
9541
9542 # Whether libtool must link a program against all its dependency libraries.
9543 link_all_deplibs=$link_all_deplibs
9544
9545 # Compile-time system search path for libraries
9546 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9547
9548 # Run-time system search path for libraries
9549 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9550
9551 # Fix the shell variable \$srcfile for the compiler.
9552 fix_srcfile_path="$fix_srcfile_path"
9553
9554 # Set to yes if exported symbols are required.
9555 always_export_symbols=$always_export_symbols
9556
9557 # The commands to list exported symbols.
9558 export_symbols_cmds=$lt_export_symbols_cmds
9559
9560 # The commands to extract the exported symbol list from a shared archive.
9561 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9562
9563 # Symbols that should not be listed in the preloaded symbols.
9564 exclude_expsyms=$lt_exclude_expsyms
9565
9566 # Symbols that must always be exported.
9567 include_expsyms=$lt_include_expsyms
9568
9569 # ### END LIBTOOL CONFIG
9570
9571 __EOF__
9572
9573
9574   case $host_os in
9575   aix3*)
9576     cat <<\EOF >> "$cfgfile"
9577
9578 # AIX sometimes has problems with the GCC collect2 program.  For some
9579 # reason, if we set the COLLECT_NAMES environment variable, the problems
9580 # vanish in a puff of smoke.
9581 if test "X${COLLECT_NAMES+set}" != Xset; then
9582   COLLECT_NAMES=
9583   export COLLECT_NAMES
9584 fi
9585 EOF
9586     ;;
9587   esac
9588
9589   # We use sed instead of cat because bash on DJGPP gets confused if
9590   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9591   # text mode, it properly converts lines to CR/LF.  This bash problem
9592   # is reportedly fixed, but why not run on old versions too?
9593   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9594
9595   mv -f "$cfgfile" "$ofile" || \
9596     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9597   chmod +x "$ofile"
9598
9599 else
9600   # If there is no Makefile yet, we rely on a make rule to execute
9601   # `config.status --recheck' to rerun these tests and create the
9602   # libtool script then.
9603   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9604   if test -f "$ltmain_in"; then
9605     test -f Makefile && make "$ltmain"
9606   fi
9607 fi
9608
9609
9610 ac_ext=c
9611 ac_cpp='$CPP $CPPFLAGS'
9612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9615
9616 CC="$lt_save_CC"
9617
9618
9619 # Check whether --with-tags or --without-tags was given.
9620 if test "${with_tags+set}" = set; then
9621   withval="$with_tags"
9622   tagnames="$withval"
9623 fi;
9624
9625 if test -f "$ltmain" && test -n "$tagnames"; then
9626   if test ! -f "${ofile}"; then
9627     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9628 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9629   fi
9630
9631   if test -z "$LTCC"; then
9632     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9633     if test -z "$LTCC"; then
9634       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9635 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9636     else
9637       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9638 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9639     fi
9640   fi
9641
9642   # Extract list of available tagged configurations in $ofile.
9643   # Note that this assumes the entire list is on one line.
9644   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9645
9646   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9647   for tagname in $tagnames; do
9648     IFS="$lt_save_ifs"
9649     # Check whether tagname contains only valid characters
9650     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9651     "") ;;
9652     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9653 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9654    { (exit 1); exit 1; }; }
9655         ;;
9656     esac
9657
9658     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9659     then
9660       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9661 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9662    { (exit 1); exit 1; }; }
9663     fi
9664
9665     # Update the list of available tags.
9666     if test -n "$tagname"; then
9667       echo appending configuration tag \"$tagname\" to $ofile
9668
9669       case $tagname in
9670       CXX)
9671         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9672             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9673             (test "X$CXX" != "Xg++"))) ; then
9674           ac_ext=cc
9675 ac_cpp='$CXXCPP $CPPFLAGS'
9676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9679
9680
9681
9682
9683 archive_cmds_need_lc_CXX=no
9684 allow_undefined_flag_CXX=
9685 always_export_symbols_CXX=no
9686 archive_expsym_cmds_CXX=
9687 export_dynamic_flag_spec_CXX=
9688 hardcode_direct_CXX=no
9689 hardcode_libdir_flag_spec_CXX=
9690 hardcode_libdir_flag_spec_ld_CXX=
9691 hardcode_libdir_separator_CXX=
9692 hardcode_minus_L_CXX=no
9693 hardcode_automatic_CXX=no
9694 module_cmds_CXX=
9695 module_expsym_cmds_CXX=
9696 link_all_deplibs_CXX=unknown
9697 old_archive_cmds_CXX=$old_archive_cmds
9698 no_undefined_flag_CXX=
9699 whole_archive_flag_spec_CXX=
9700 enable_shared_with_static_runtimes_CXX=no
9701
9702 # Dependencies to place before and after the object being linked:
9703 predep_objects_CXX=
9704 postdep_objects_CXX=
9705 predeps_CXX=
9706 postdeps_CXX=
9707 compiler_lib_search_path_CXX=
9708
9709 # Source file extension for C++ test sources.
9710 ac_ext=cc
9711
9712 # Object file extension for compiled C++ test sources.
9713 objext=o
9714 objext_CXX=$objext
9715
9716 # Code to be used in simple compile tests
9717 lt_simple_compile_test_code="int some_variable = 0;\n"
9718
9719 # Code to be used in simple link tests
9720 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9721
9722 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9723
9724 # If no C compiler was specified, use CC.
9725 LTCC=${LTCC-"$CC"}
9726
9727 # Allow CC to be a program name with arguments.
9728 compiler=$CC
9729
9730
9731 # Allow CC to be a program name with arguments.
9732 lt_save_CC=$CC
9733 lt_save_LD=$LD
9734 lt_save_GCC=$GCC
9735 GCC=$GXX
9736 lt_save_with_gnu_ld=$with_gnu_ld
9737 lt_save_path_LD=$lt_cv_path_LD
9738 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9739   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9740 else
9741   unset lt_cv_prog_gnu_ld
9742 fi
9743 if test -n "${lt_cv_path_LDCXX+set}"; then
9744   lt_cv_path_LD=$lt_cv_path_LDCXX
9745 else
9746   unset lt_cv_path_LD
9747 fi
9748 test -z "${LDCXX+set}" || LD=$LDCXX
9749 CC=${CXX-"c++"}
9750 compiler=$CC
9751 compiler_CXX=$CC
9752 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9753
9754 # We don't want -fno-exception wen compiling C++ code, so set the
9755 # no_builtin_flag separately
9756 if test "$GXX" = yes; then
9757   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9758 else
9759   lt_prog_compiler_no_builtin_flag_CXX=
9760 fi
9761
9762 if test "$GXX" = yes; then
9763   # Set up default GNU C++ configuration
9764
9765
9766 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9767 if test "${with_gnu_ld+set}" = set; then
9768   withval="$with_gnu_ld"
9769   test "$withval" = no || with_gnu_ld=yes
9770 else
9771   with_gnu_ld=no
9772 fi;
9773 ac_prog=ld
9774 if test "$GCC" = yes; then
9775   # Check if gcc -print-prog-name=ld gives a path.
9776   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9777 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9778   case $host in
9779   *-*-mingw*)
9780     # gcc leaves a trailing carriage return which upsets mingw
9781     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9782   *)
9783     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9784   esac
9785   case $ac_prog in
9786     # Accept absolute paths.
9787     [\\/]* | ?:[\\/]*)
9788       re_direlt='/[^/][^/]*/\.\./'
9789       # Canonicalize the pathname of ld
9790       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9791       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9792         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9793       done
9794       test -z "$LD" && LD="$ac_prog"
9795       ;;
9796   "")
9797     # If it fails, then pretend we aren't using GCC.
9798     ac_prog=ld
9799     ;;
9800   *)
9801     # If it is relative, then search for the first ld in PATH.
9802     with_gnu_ld=unknown
9803     ;;
9804   esac
9805 elif test "$with_gnu_ld" = yes; then
9806   echo "$as_me:$LINENO: checking for GNU ld" >&5
9807 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9808 else
9809   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9810 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9811 fi
9812 if test "${lt_cv_path_LD+set}" = set; then
9813   echo $ECHO_N "(cached) $ECHO_C" >&6
9814 else
9815   if test -z "$LD"; then
9816   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9817   for ac_dir in $PATH; do
9818     IFS="$lt_save_ifs"
9819     test -z "$ac_dir" && ac_dir=.
9820     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9821       lt_cv_path_LD="$ac_dir/$ac_prog"
9822       # Check to see if the program is GNU ld.  I'd rather use --version,
9823       # but apparently some GNU ld's only accept -v.
9824       # Break only if it was the GNU/non-GNU ld that we prefer.
9825       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9826       *GNU* | *'with BFD'*)
9827         test "$with_gnu_ld" != no && break
9828         ;;
9829       *)
9830         test "$with_gnu_ld" != yes && break
9831         ;;
9832       esac
9833     fi
9834   done
9835   IFS="$lt_save_ifs"
9836 else
9837   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9838 fi
9839 fi
9840
9841 LD="$lt_cv_path_LD"
9842 if test -n "$LD"; then
9843   echo "$as_me:$LINENO: result: $LD" >&5
9844 echo "${ECHO_T}$LD" >&6
9845 else
9846   echo "$as_me:$LINENO: result: no" >&5
9847 echo "${ECHO_T}no" >&6
9848 fi
9849 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9850 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9851    { (exit 1); exit 1; }; }
9852 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9853 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9854 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9855   echo $ECHO_N "(cached) $ECHO_C" >&6
9856 else
9857   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9858 case `$LD -v 2>&1 </dev/null` in
9859 *GNU* | *'with BFD'*)
9860   lt_cv_prog_gnu_ld=yes
9861   ;;
9862 *)
9863   lt_cv_prog_gnu_ld=no
9864   ;;
9865 esac
9866 fi
9867 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9868 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9869 with_gnu_ld=$lt_cv_prog_gnu_ld
9870
9871
9872
9873   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9874   # archiving commands below assume that GNU ld is being used.
9875   if test "$with_gnu_ld" = yes; then
9876     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9877     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'
9878
9879     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9880     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9881
9882     # If archive_cmds runs LD, not CC, wlarc should be empty
9883     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9884     #     investigate it a little bit more. (MM)
9885     wlarc='${wl}'
9886
9887     # ancient GNU ld didn't support --whole-archive et. al.
9888     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9889         grep 'no-whole-archive' > /dev/null; then
9890       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9891     else
9892       whole_archive_flag_spec_CXX=
9893     fi
9894   else
9895     with_gnu_ld=no
9896     wlarc=
9897
9898     # A generic and very simple default shared library creation
9899     # command for GNU C++ for the case where it uses the native
9900     # linker, instead of GNU ld.  If possible, this setting should
9901     # overridden to take advantage of the native linker features on
9902     # the platform it is being used on.
9903     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9904   fi
9905
9906   # Commands to make compiler produce verbose output that lists
9907   # what "hidden" libraries, object files and flags are used when
9908   # linking a shared library.
9909   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9910
9911 else
9912   GXX=no
9913   with_gnu_ld=no
9914   wlarc=
9915 fi
9916
9917 # PORTME: fill in a description of your system's C++ link characteristics
9918 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9919 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9920 ld_shlibs_CXX=yes
9921 case $host_os in
9922   aix3*)
9923     # FIXME: insert proper C++ library support
9924     ld_shlibs_CXX=no
9925     ;;
9926   aix4* | aix5*)
9927     if test "$host_cpu" = ia64; then
9928       # On IA64, the linker does run time linking by default, so we don't
9929       # have to do anything special.
9930       aix_use_runtimelinking=no
9931       exp_sym_flag='-Bexport'
9932       no_entry_flag=""
9933     else
9934       aix_use_runtimelinking=no
9935
9936       # Test if we are trying to use run time linking or normal
9937       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9938       # need to do runtime linking.
9939       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9940         for ld_flag in $LDFLAGS; do
9941           case $ld_flag in
9942           *-brtl*)
9943             aix_use_runtimelinking=yes
9944             break
9945             ;;
9946           esac
9947         done
9948       esac
9949
9950       exp_sym_flag='-bexport'
9951       no_entry_flag='-bnoentry'
9952     fi
9953
9954     # When large executables or shared objects are built, AIX ld can
9955     # have problems creating the table of contents.  If linking a library
9956     # or program results in "error TOC overflow" add -mminimal-toc to
9957     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9958     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9959
9960     archive_cmds_CXX=''
9961     hardcode_direct_CXX=yes
9962     hardcode_libdir_separator_CXX=':'
9963     link_all_deplibs_CXX=yes
9964
9965     if test "$GXX" = yes; then
9966       case $host_os in aix4.[012]|aix4.[012].*)
9967       # We only want to do this on AIX 4.2 and lower, the check
9968       # below for broken collect2 doesn't work under 4.3+
9969         collect2name=`${CC} -print-prog-name=collect2`
9970         if test -f "$collect2name" && \
9971            strings "$collect2name" | grep resolve_lib_name >/dev/null
9972         then
9973           # We have reworked collect2
9974           hardcode_direct_CXX=yes
9975         else
9976           # We have old collect2
9977           hardcode_direct_CXX=unsupported
9978           # It fails to find uninstalled libraries when the uninstalled
9979           # path is not listed in the libpath.  Setting hardcode_minus_L
9980           # to unsupported forces relinking
9981           hardcode_minus_L_CXX=yes
9982           hardcode_libdir_flag_spec_CXX='-L$libdir'
9983           hardcode_libdir_separator_CXX=
9984         fi
9985       esac
9986       shared_flag='-shared'
9987       if test "$aix_use_runtimelinking" = yes; then
9988         shared_flag="$shared_flag "'${wl}-G'
9989       fi
9990     else
9991       # not using gcc
9992       if test "$host_cpu" = ia64; then
9993         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9994         # chokes on -Wl,-G. The following line is correct:
9995         shared_flag='-G'
9996       else
9997         if test "$aix_use_runtimelinking" = yes; then
9998           shared_flag='${wl}-G'
9999         else
10000           shared_flag='${wl}-bM:SRE'
10001         fi
10002       fi
10003     fi
10004
10005     # It seems that -bexpall does not export symbols beginning with
10006     # underscore (_), so it is better to generate a list of symbols to export.
10007     always_export_symbols_CXX=yes
10008     if test "$aix_use_runtimelinking" = yes; then
10009       # Warning - without using the other runtime loading flags (-brtl),
10010       # -berok will link without error, but may produce a broken library.
10011       allow_undefined_flag_CXX='-berok'
10012       # Determine the default libpath from the value encoded in an empty executable.
10013       cat >conftest.$ac_ext <<_ACEOF
10014 /* confdefs.h.  */
10015 _ACEOF
10016 cat confdefs.h >>conftest.$ac_ext
10017 cat >>conftest.$ac_ext <<_ACEOF
10018 /* end confdefs.h.  */
10019
10020 int
10021 main ()
10022 {
10023
10024   ;
10025   return 0;
10026 }
10027 _ACEOF
10028 rm -f conftest.$ac_objext conftest$ac_exeext
10029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10030   (eval $ac_link) 2>conftest.er1
10031   ac_status=$?
10032   grep -v '^ *+' conftest.er1 >conftest.err
10033   rm -f conftest.er1
10034   cat conftest.err >&5
10035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036   (exit $ac_status); } &&
10037          { ac_try='test -z "$ac_cxx_werror_flag"
10038                          || test ! -s conftest.err'
10039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040   (eval $ac_try) 2>&5
10041   ac_status=$?
10042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043   (exit $ac_status); }; } &&
10044          { ac_try='test -s conftest$ac_exeext'
10045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046   (eval $ac_try) 2>&5
10047   ac_status=$?
10048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049   (exit $ac_status); }; }; then
10050
10051 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10052 }'`
10053 # Check for a 64-bit object if we didn't find anything.
10054 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; }
10055 }'`; fi
10056 else
10057   echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.$ac_ext >&5
10059
10060 fi
10061 rm -f conftest.err conftest.$ac_objext \
10062       conftest$ac_exeext conftest.$ac_ext
10063 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10064
10065       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10066
10067       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"
10068      else
10069       if test "$host_cpu" = ia64; then
10070         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10071         allow_undefined_flag_CXX="-z nodefs"
10072         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"
10073       else
10074         # Determine the default libpath from the value encoded in an empty executable.
10075         cat >conftest.$ac_ext <<_ACEOF
10076 /* confdefs.h.  */
10077 _ACEOF
10078 cat confdefs.h >>conftest.$ac_ext
10079 cat >>conftest.$ac_ext <<_ACEOF
10080 /* end confdefs.h.  */
10081
10082 int
10083 main ()
10084 {
10085
10086   ;
10087   return 0;
10088 }
10089 _ACEOF
10090 rm -f conftest.$ac_objext conftest$ac_exeext
10091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10092   (eval $ac_link) 2>conftest.er1
10093   ac_status=$?
10094   grep -v '^ *+' conftest.er1 >conftest.err
10095   rm -f conftest.er1
10096   cat conftest.err >&5
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); } &&
10099          { ac_try='test -z "$ac_cxx_werror_flag"
10100                          || test ! -s conftest.err'
10101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102   (eval $ac_try) 2>&5
10103   ac_status=$?
10104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105   (exit $ac_status); }; } &&
10106          { ac_try='test -s conftest$ac_exeext'
10107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108   (eval $ac_try) 2>&5
10109   ac_status=$?
10110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111   (exit $ac_status); }; }; then
10112
10113 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10114 }'`
10115 # Check for a 64-bit object if we didn't find anything.
10116 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; }
10117 }'`; fi
10118 else
10119   echo "$as_me: failed program was:" >&5
10120 sed 's/^/| /' conftest.$ac_ext >&5
10121
10122 fi
10123 rm -f conftest.err conftest.$ac_objext \
10124       conftest$ac_exeext conftest.$ac_ext
10125 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10126
10127         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10128         # Warning - without using the other run time loading flags,
10129         # -berok will link without error, but may produce a broken library.
10130         no_undefined_flag_CXX=' ${wl}-bernotok'
10131         allow_undefined_flag_CXX=' ${wl}-berok'
10132         # -bexpall does not export symbols beginning with underscore (_)
10133         always_export_symbols_CXX=yes
10134         # Exported symbols can be pulled into shared objects from archives
10135         whole_archive_flag_spec_CXX=' '
10136         archive_cmds_need_lc_CXX=yes
10137         # This is similar to how AIX traditionally builds it's shared libraries.
10138         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'
10139       fi
10140     fi
10141     ;;
10142   chorus*)
10143     case $cc_basename in
10144       *)
10145         # FIXME: insert proper C++ library support
10146         ld_shlibs_CXX=no
10147         ;;
10148     esac
10149     ;;
10150
10151
10152   cygwin* | mingw* | pw32*)
10153     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10154     # as there is no search path for DLLs.
10155     hardcode_libdir_flag_spec_CXX='-L$libdir'
10156     allow_undefined_flag_CXX=unsupported
10157     always_export_symbols_CXX=no
10158     enable_shared_with_static_runtimes_CXX=yes
10159
10160     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10161       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'
10162       # If the export-symbols file already is a .def file (1st line
10163       # is EXPORTS), use it as is; otherwise, prepend...
10164       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10165         cp $export_symbols $output_objdir/$soname.def;
10166       else
10167         echo EXPORTS > $output_objdir/$soname.def;
10168         cat $export_symbols >> $output_objdir/$soname.def;
10169       fi~
10170       $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'
10171     else
10172       ld_shlibs_CXX=no
10173     fi
10174   ;;
10175       darwin* | rhapsody*)
10176         case "$host_os" in
10177         rhapsody* | darwin1.[012])
10178          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10179          ;;
10180        *) # Darwin 1.3 on
10181          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10182            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10183          else
10184            case ${MACOSX_DEPLOYMENT_TARGET} in
10185              10.[012])
10186                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10187                ;;
10188              10.*)
10189                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10190                ;;
10191            esac
10192          fi
10193          ;;
10194         esac
10195       archive_cmds_need_lc_CXX=no
10196       hardcode_direct_CXX=no
10197       hardcode_automatic_CXX=yes
10198       hardcode_shlibpath_var_CXX=unsupported
10199       whole_archive_flag_spec_CXX=''
10200       link_all_deplibs_CXX=yes
10201
10202     if test "$GXX" = yes ; then
10203       lt_int_apple_cc_single_mod=no
10204       output_verbose_link_cmd='echo'
10205       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10206        lt_int_apple_cc_single_mod=yes
10207       fi
10208       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10209        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10210       else
10211           archive_cmds_CXX='$CC -r -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'
10212         fi
10213         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10214         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10215           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10216             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}'
10217           else
10218             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
10219           fi
10220             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10221       else
10222       case "$cc_basename" in
10223         xlc*)
10224          output_verbose_link_cmd='echo'
10225           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10226           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10227           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10228           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10229           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10230           ;;
10231        *)
10232          ld_shlibs_CXX=no
10233           ;;
10234       esac
10235       fi
10236         ;;
10237
10238   dgux*)
10239     case $cc_basename in
10240       ec++)
10241         # FIXME: insert proper C++ library support
10242         ld_shlibs_CXX=no
10243         ;;
10244       ghcx)
10245         # Green Hills C++ Compiler
10246         # FIXME: insert proper C++ library support
10247         ld_shlibs_CXX=no
10248         ;;
10249       *)
10250         # FIXME: insert proper C++ library support
10251         ld_shlibs_CXX=no
10252         ;;
10253     esac
10254     ;;
10255   freebsd[12]*)
10256     # C++ shared libraries reported to be fairly broken before switch to ELF
10257     ld_shlibs_CXX=no
10258     ;;
10259   freebsd-elf*)
10260     archive_cmds_need_lc_CXX=no
10261     ;;
10262   freebsd* | kfreebsd*-gnu | dragonfly*)
10263     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10264     # conventions
10265     ld_shlibs_CXX=yes
10266     ;;
10267   gnu*)
10268     ;;
10269   hpux9*)
10270     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10271     hardcode_libdir_separator_CXX=:
10272     export_dynamic_flag_spec_CXX='${wl}-E'
10273     hardcode_direct_CXX=yes
10274     hardcode_minus_L_CXX=yes # Not in the search PATH,
10275                                 # but as the default
10276                                 # location of the library.
10277
10278     case $cc_basename in
10279     CC)
10280       # FIXME: insert proper C++ library support
10281       ld_shlibs_CXX=no
10282       ;;
10283     aCC)
10284       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'
10285       # Commands to make compiler produce verbose output that lists
10286       # what "hidden" libraries, object files and flags are used when
10287       # linking a shared library.
10288       #
10289       # There doesn't appear to be a way to prevent this compiler from
10290       # explicitly linking system object files so we need to strip them
10291       # from the output so that they don't get included in the library
10292       # dependencies.
10293       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'
10294       ;;
10295     *)
10296       if test "$GXX" = yes; then
10297         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'
10298       else
10299         # FIXME: insert proper C++ library support
10300         ld_shlibs_CXX=no
10301       fi
10302       ;;
10303     esac
10304     ;;
10305   hpux10*|hpux11*)
10306     if test $with_gnu_ld = no; then
10307       case "$host_cpu" in
10308       hppa*64*)
10309         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10310         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10311         hardcode_libdir_separator_CXX=:
10312         ;;
10313       ia64*)
10314         hardcode_libdir_flag_spec_CXX='-L$libdir'
10315         ;;
10316       *)
10317         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10318         hardcode_libdir_separator_CXX=:
10319         export_dynamic_flag_spec_CXX='${wl}-E'
10320         ;;
10321       esac
10322     fi
10323     case "$host_cpu" in
10324     hppa*64*)
10325       hardcode_direct_CXX=no
10326       hardcode_shlibpath_var_CXX=no
10327       ;;
10328     ia64*)
10329       hardcode_direct_CXX=no
10330       hardcode_shlibpath_var_CXX=no
10331       hardcode_minus_L_CXX=yes # Not in the search PATH,
10332                                               # but as the default
10333                                               # location of the library.
10334       ;;
10335     *)
10336       hardcode_direct_CXX=yes
10337       hardcode_minus_L_CXX=yes # Not in the search PATH,
10338                                               # but as the default
10339                                               # location of the library.
10340       ;;
10341     esac
10342
10343     case $cc_basename in
10344       CC)
10345         # FIXME: insert proper C++ library support
10346         ld_shlibs_CXX=no
10347         ;;
10348       aCC)
10349         case "$host_cpu" in
10350         hppa*64*|ia64*)
10351           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10352           ;;
10353         *)
10354           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10355           ;;
10356         esac
10357         # Commands to make compiler produce verbose output that lists
10358         # what "hidden" libraries, object files and flags are used when
10359         # linking a shared library.
10360         #
10361         # There doesn't appear to be a way to prevent this compiler from
10362         # explicitly linking system object files so we need to strip them
10363         # from the output so that they don't get included in the library
10364         # dependencies.
10365         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'
10366         ;;
10367       *)
10368         if test "$GXX" = yes; then
10369           if test $with_gnu_ld = no; then
10370             case "$host_cpu" in
10371             ia64*|hppa*64*)
10372               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10373               ;;
10374             *)
10375               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'
10376               ;;
10377             esac
10378           fi
10379         else
10380           # FIXME: insert proper C++ library support
10381           ld_shlibs_CXX=no
10382         fi
10383         ;;
10384     esac
10385     ;;
10386   irix5* | irix6*)
10387     case $cc_basename in
10388       CC)
10389         # SGI C++
10390         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'
10391
10392         # Archives containing C++ object files must be created using
10393         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10394         # necessary to make sure instantiated templates are included
10395         # in the archive.
10396         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10397         ;;
10398       *)
10399         if test "$GXX" = yes; then
10400           if test "$with_gnu_ld" = no; then
10401             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'
10402           else
10403             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'
10404           fi
10405         fi
10406         link_all_deplibs_CXX=yes
10407         ;;
10408     esac
10409     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10410     hardcode_libdir_separator_CXX=:
10411     ;;
10412   linux*)
10413     case $cc_basename in
10414       KCC)
10415         # Kuck and Associates, Inc. (KAI) C++ Compiler
10416
10417         # KCC will only create a shared library if the output file
10418         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10419         # to its proper name (with version) after linking.
10420         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'
10421         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'
10422         # Commands to make compiler produce verbose output that lists
10423         # what "hidden" libraries, object files and flags are used when
10424         # linking a shared library.
10425         #
10426         # There doesn't appear to be a way to prevent this compiler from
10427         # explicitly linking system object files so we need to strip them
10428         # from the output so that they don't get included in the library
10429         # dependencies.
10430         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'
10431
10432         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10433         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10434
10435         # Archives containing C++ object files must be created using
10436         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10437         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10438         ;;
10439       icpc)
10440         # Intel C++
10441         with_gnu_ld=yes
10442         # version 8.0 and above of icpc choke on multiply defined symbols
10443         # if we add $predep_objects and $postdep_objects, however 7.1 and
10444         # earlier do not add the objects themselves.
10445         case `$CC -V 2>&1` in
10446         *"Version 7."*)
10447           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10448           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'
10449           ;;
10450         *)  # Version 8.0 or newer
10451           tmp_idyn=
10452           case $host_cpu in
10453             ia64*) tmp_idyn=' -i_dynamic';;
10454           esac
10455           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10456           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10457           ;;
10458         esac
10459         archive_cmds_need_lc_CXX=no
10460         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10461         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10462         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10463         ;;
10464       pgCC)
10465         # Portland Group C++ compiler
10466         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10467         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'
10468
10469         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10470         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10471         ;;
10472       cxx)
10473         # Compaq C++
10474         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10475         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'
10476
10477         runpath_var=LD_RUN_PATH
10478         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10479         hardcode_libdir_separator_CXX=:
10480
10481         # Commands to make compiler produce verbose output that lists
10482         # what "hidden" libraries, object files and flags are used when
10483         # linking a shared library.
10484         #
10485         # There doesn't appear to be a way to prevent this compiler from
10486         # explicitly linking system object files so we need to strip them
10487         # from the output so that they don't get included in the library
10488         # dependencies.
10489         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'
10490         ;;
10491     esac
10492     ;;
10493   lynxos*)
10494     # FIXME: insert proper C++ library support
10495     ld_shlibs_CXX=no
10496     ;;
10497   m88k*)
10498     # FIXME: insert proper C++ library support
10499     ld_shlibs_CXX=no
10500     ;;
10501   mvs*)
10502     case $cc_basename in
10503       cxx)
10504         # FIXME: insert proper C++ library support
10505         ld_shlibs_CXX=no
10506         ;;
10507       *)
10508         # FIXME: insert proper C++ library support
10509         ld_shlibs_CXX=no
10510         ;;
10511     esac
10512     ;;
10513   netbsd*)
10514     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10515       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10516       wlarc=
10517       hardcode_libdir_flag_spec_CXX='-R$libdir'
10518       hardcode_direct_CXX=yes
10519       hardcode_shlibpath_var_CXX=no
10520     fi
10521     # Workaround some broken pre-1.5 toolchains
10522     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10523     ;;
10524   openbsd2*)
10525     # C++ shared libraries are fairly broken
10526     ld_shlibs_CXX=no
10527     ;;
10528   openbsd*)
10529     hardcode_direct_CXX=yes
10530     hardcode_shlibpath_var_CXX=no
10531     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10532     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10533     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10534       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10535       export_dynamic_flag_spec_CXX='${wl}-E'
10536       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10537     fi
10538     output_verbose_link_cmd='echo'
10539     ;;
10540   osf3*)
10541     case $cc_basename in
10542       KCC)
10543         # Kuck and Associates, Inc. (KAI) C++ Compiler
10544
10545         # KCC will only create a shared library if the output file
10546         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10547         # to its proper name (with version) after linking.
10548         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'
10549
10550         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10551         hardcode_libdir_separator_CXX=:
10552
10553         # Archives containing C++ object files must be created using
10554         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10555         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10556
10557         ;;
10558       RCC)
10559         # Rational C++ 2.4.1
10560         # FIXME: insert proper C++ library support
10561         ld_shlibs_CXX=no
10562         ;;
10563       cxx)
10564         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10565         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'
10566
10567         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10568         hardcode_libdir_separator_CXX=:
10569
10570         # Commands to make compiler produce verbose output that lists
10571         # what "hidden" libraries, object files and flags are used when
10572         # linking a shared library.
10573         #
10574         # There doesn't appear to be a way to prevent this compiler from
10575         # explicitly linking system object files so we need to strip them
10576         # from the output so that they don't get included in the library
10577         # dependencies.
10578         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'
10579         ;;
10580       *)
10581         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10582           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10583           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'
10584
10585           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10586           hardcode_libdir_separator_CXX=:
10587
10588           # Commands to make compiler produce verbose output that lists
10589           # what "hidden" libraries, object files and flags are used when
10590           # linking a shared library.
10591           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10592
10593         else
10594           # FIXME: insert proper C++ library support
10595           ld_shlibs_CXX=no
10596         fi
10597         ;;
10598     esac
10599     ;;
10600   osf4* | osf5*)
10601     case $cc_basename in
10602       KCC)
10603         # Kuck and Associates, Inc. (KAI) C++ Compiler
10604
10605         # KCC will only create a shared library if the output file
10606         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10607         # to its proper name (with version) after linking.
10608         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'
10609
10610         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10611         hardcode_libdir_separator_CXX=:
10612
10613         # Archives containing C++ object files must be created using
10614         # the KAI C++ compiler.
10615         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10616         ;;
10617       RCC)
10618         # Rational C++ 2.4.1
10619         # FIXME: insert proper C++ library support
10620         ld_shlibs_CXX=no
10621         ;;
10622       cxx)
10623         allow_undefined_flag_CXX=' -expect_unresolved \*'
10624         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'
10625         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10626           echo "-hidden">> $lib.exp~
10627           $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~
10628           $rm $lib.exp'
10629
10630         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10631         hardcode_libdir_separator_CXX=:
10632
10633         # Commands to make compiler produce verbose output that lists
10634         # what "hidden" libraries, object files and flags are used when
10635         # linking a shared library.
10636         #
10637         # There doesn't appear to be a way to prevent this compiler from
10638         # explicitly linking system object files so we need to strip them
10639         # from the output so that they don't get included in the library
10640         # dependencies.
10641         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'
10642         ;;
10643       *)
10644         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10645           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10646          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'
10647
10648           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10649           hardcode_libdir_separator_CXX=:
10650
10651           # Commands to make compiler produce verbose output that lists
10652           # what "hidden" libraries, object files and flags are used when
10653           # linking a shared library.
10654           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10655
10656         else
10657           # FIXME: insert proper C++ library support
10658           ld_shlibs_CXX=no
10659         fi
10660         ;;
10661     esac
10662     ;;
10663   psos*)
10664     # FIXME: insert proper C++ library support
10665     ld_shlibs_CXX=no
10666     ;;
10667   sco*)
10668     archive_cmds_need_lc_CXX=no
10669     case $cc_basename in
10670       CC)
10671         # FIXME: insert proper C++ library support
10672         ld_shlibs_CXX=no
10673         ;;
10674       *)
10675         # FIXME: insert proper C++ library support
10676         ld_shlibs_CXX=no
10677         ;;
10678     esac
10679     ;;
10680   sunos4*)
10681     case $cc_basename in
10682       CC)
10683         # Sun C++ 4.x
10684         # FIXME: insert proper C++ library support
10685         ld_shlibs_CXX=no
10686         ;;
10687       lcc)
10688         # Lucid
10689         # FIXME: insert proper C++ library support
10690         ld_shlibs_CXX=no
10691         ;;
10692       *)
10693         # FIXME: insert proper C++ library support
10694         ld_shlibs_CXX=no
10695         ;;
10696     esac
10697     ;;
10698   solaris*)
10699     case $cc_basename in
10700       CC)
10701         # Sun C++ 4.2, 5.x and Centerline C++
10702         no_undefined_flag_CXX=' -zdefs'
10703         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10704         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10705         $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'
10706
10707         hardcode_libdir_flag_spec_CXX='-R$libdir'
10708         hardcode_shlibpath_var_CXX=no
10709         case $host_os in
10710           solaris2.[0-5] | solaris2.[0-5].*) ;;
10711           *)
10712             # The C++ compiler is used as linker so we must use $wl
10713             # flag to pass the commands to the underlying system
10714             # linker.
10715             # Supported since Solaris 2.6 (maybe 2.5.1?)
10716             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10717             ;;
10718         esac
10719         link_all_deplibs_CXX=yes
10720
10721         # Commands to make compiler produce verbose output that lists
10722         # what "hidden" libraries, object files and flags are used when
10723         # linking a shared library.
10724         #
10725         # There doesn't appear to be a way to prevent this compiler from
10726         # explicitly linking system object files so we need to strip them
10727         # from the output so that they don't get included in the library
10728         # dependencies.
10729         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'
10730
10731         # Archives containing C++ object files must be created using
10732         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10733         # necessary to make sure instantiated templates are included
10734         # in the archive.
10735         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10736         ;;
10737       gcx)
10738         # Green Hills C++ Compiler
10739         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10740
10741         # The C++ compiler must be used to create the archive.
10742         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10743         ;;
10744       *)
10745         # GNU C++ compiler with Solaris linker
10746         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10747           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10748           if $CC --version | grep -v '^2\.7' > /dev/null; then
10749             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10750             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10751                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10752
10753             # Commands to make compiler produce verbose output that lists
10754             # what "hidden" libraries, object files and flags are used when
10755             # linking a shared library.
10756             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10757           else
10758             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10759             # platform.
10760             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10761             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10762                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10763
10764             # Commands to make compiler produce verbose output that lists
10765             # what "hidden" libraries, object files and flags are used when
10766             # linking a shared library.
10767             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10768           fi
10769
10770           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10771         fi
10772         ;;
10773     esac
10774     ;;
10775   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10776     archive_cmds_need_lc_CXX=no
10777     ;;
10778   tandem*)
10779     case $cc_basename in
10780       NCC)
10781         # NonStop-UX NCC 3.20
10782         # FIXME: insert proper C++ library support
10783         ld_shlibs_CXX=no
10784         ;;
10785       *)
10786         # FIXME: insert proper C++ library support
10787         ld_shlibs_CXX=no
10788         ;;
10789     esac
10790     ;;
10791   vxworks*)
10792     # FIXME: insert proper C++ library support
10793     ld_shlibs_CXX=no
10794     ;;
10795   *)
10796     # FIXME: insert proper C++ library support
10797     ld_shlibs_CXX=no
10798     ;;
10799 esac
10800 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10801 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10802 test "$ld_shlibs_CXX" = no && can_build_shared=no
10803
10804 GCC_CXX="$GXX"
10805 LD_CXX="$LD"
10806
10807
10808 cat > conftest.$ac_ext <<EOF
10809 class Foo
10810 {
10811 public:
10812   Foo (void) { a = 0; }
10813 private:
10814   int a;
10815 };
10816 EOF
10817
10818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10819   (eval $ac_compile) 2>&5
10820   ac_status=$?
10821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822   (exit $ac_status); }; then
10823   # Parse the compiler output and extract the necessary
10824   # objects, libraries and library flags.
10825
10826   # Sentinel used to keep track of whether or not we are before
10827   # the conftest object file.
10828   pre_test_object_deps_done=no
10829
10830   # The `*' in the case matches for architectures that use `case' in
10831   # $output_verbose_cmd can trigger glob expansion during the loop
10832   # eval without this substitution.
10833   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10834
10835   for p in `eval $output_verbose_link_cmd`; do
10836     case $p in
10837
10838     -L* | -R* | -l*)
10839        # Some compilers place space between "-{L,R}" and the path.
10840        # Remove the space.
10841        if test $p = "-L" \
10842           || test $p = "-R"; then
10843          prev=$p
10844          continue
10845        else
10846          prev=
10847        fi
10848
10849        if test "$pre_test_object_deps_done" = no; then
10850          case $p in
10851          -L* | -R*)
10852            # Internal compiler library paths should come after those
10853            # provided the user.  The postdeps already come after the
10854            # user supplied libs so there is no need to process them.
10855            if test -z "$compiler_lib_search_path_CXX"; then
10856              compiler_lib_search_path_CXX="${prev}${p}"
10857            else
10858              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10859            fi
10860            ;;
10861          # The "-l" case would never come before the object being
10862          # linked, so don't bother handling this case.
10863          esac
10864        else
10865          if test -z "$postdeps_CXX"; then
10866            postdeps_CXX="${prev}${p}"
10867          else
10868            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10869          fi
10870        fi
10871        ;;
10872
10873     *.$objext)
10874        # This assumes that the test object file only shows up
10875        # once in the compiler output.
10876        if test "$p" = "conftest.$objext"; then
10877          pre_test_object_deps_done=yes
10878          continue
10879        fi
10880
10881        if test "$pre_test_object_deps_done" = no; then
10882          if test -z "$predep_objects_CXX"; then
10883            predep_objects_CXX="$p"
10884          else
10885            predep_objects_CXX="$predep_objects_CXX $p"
10886          fi
10887        else
10888          if test -z "$postdep_objects_CXX"; then
10889            postdep_objects_CXX="$p"
10890          else
10891            postdep_objects_CXX="$postdep_objects_CXX $p"
10892          fi
10893        fi
10894        ;;
10895
10896     *) ;; # Ignore the rest.
10897
10898     esac
10899   done
10900
10901   # Clean up.
10902   rm -f a.out a.exe
10903 else
10904   echo "libtool.m4: error: problem compiling CXX test program"
10905 fi
10906
10907 $rm -f confest.$objext
10908
10909 case " $postdeps_CXX " in
10910 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10911 esac
10912
10913 lt_prog_compiler_wl_CXX=
10914 lt_prog_compiler_pic_CXX=
10915 lt_prog_compiler_static_CXX=
10916
10917 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10918 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10919
10920   # C++ specific cases for pic, static, wl, etc.
10921   if test "$GXX" = yes; then
10922     lt_prog_compiler_wl_CXX='-Wl,'
10923     lt_prog_compiler_static_CXX='-static'
10924
10925     case $host_os in
10926     aix*)
10927       # All AIX code is PIC.
10928       if test "$host_cpu" = ia64; then
10929         # AIX 5 now supports IA64 processor
10930         lt_prog_compiler_static_CXX='-Bstatic'
10931       fi
10932       ;;
10933     amigaos*)
10934       # FIXME: we need at least 68020 code to build shared libraries, but
10935       # adding the `-m68020' flag to GCC prevents building anything better,
10936       # like `-m68040'.
10937       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10938       ;;
10939     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10940       # PIC is the default for these OSes.
10941       ;;
10942     mingw* | os2* | pw32*)
10943       # This hack is so that the source file can tell whether it is being
10944       # built for inclusion in a dll (and should export symbols for example).
10945       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10946       ;;
10947     darwin* | rhapsody*)
10948       # PIC is the default on this platform
10949       # Common symbols not allowed in MH_DYLIB files
10950       lt_prog_compiler_pic_CXX='-fno-common'
10951       ;;
10952     *djgpp*)
10953       # DJGPP does not support shared libraries at all
10954       lt_prog_compiler_pic_CXX=
10955       ;;
10956     sysv4*MP*)
10957       if test -d /usr/nec; then
10958         lt_prog_compiler_pic_CXX=-Kconform_pic
10959       fi
10960       ;;
10961     hpux*)
10962       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10963       # not for PA HP-UX.
10964       case "$host_cpu" in
10965       hppa*64*|ia64*)
10966         ;;
10967       *)
10968         lt_prog_compiler_pic_CXX='-fPIC'
10969         ;;
10970       esac
10971       ;;
10972     *)
10973       lt_prog_compiler_pic_CXX='-fPIC'
10974       ;;
10975     esac
10976   else
10977     case $host_os in
10978       aix4* | aix5*)
10979         # All AIX code is PIC.
10980         if test "$host_cpu" = ia64; then
10981           # AIX 5 now supports IA64 processor
10982           lt_prog_compiler_static_CXX='-Bstatic'
10983         else
10984           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10985         fi
10986         ;;
10987       chorus*)
10988         case $cc_basename in
10989         cxch68)
10990           # Green Hills C++ Compiler
10991           # _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"
10992           ;;
10993         esac
10994         ;;
10995        darwin*)
10996          # PIC is the default on this platform
10997          # Common symbols not allowed in MH_DYLIB files
10998          case "$cc_basename" in
10999            xlc*)
11000            lt_prog_compiler_pic_CXX='-qnocommon'
11001            lt_prog_compiler_wl_CXX='-Wl,'
11002            ;;
11003          esac
11004        ;;
11005       dgux*)
11006         case $cc_basename in
11007           ec++)
11008             lt_prog_compiler_pic_CXX='-KPIC'
11009             ;;
11010           ghcx)
11011             # Green Hills C++ Compiler
11012             lt_prog_compiler_pic_CXX='-pic'
11013             ;;
11014           *)
11015             ;;
11016         esac
11017         ;;
11018       freebsd* | kfreebsd*-gnu | dragonfly*)
11019         # FreeBSD uses GNU C++
11020         ;;
11021       hpux9* | hpux10* | hpux11*)
11022         case $cc_basename in
11023           CC)
11024             lt_prog_compiler_wl_CXX='-Wl,'
11025             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11026             if test "$host_cpu" != ia64; then
11027               lt_prog_compiler_pic_CXX='+Z'
11028             fi
11029             ;;
11030           aCC)
11031             lt_prog_compiler_wl_CXX='-Wl,'
11032             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11033             case "$host_cpu" in
11034             hppa*64*|ia64*)
11035               # +Z the default
11036               ;;
11037             *)
11038               lt_prog_compiler_pic_CXX='+Z'
11039               ;;
11040             esac
11041             ;;
11042           *)
11043             ;;
11044         esac
11045         ;;
11046       irix5* | irix6* | nonstopux*)
11047         case $cc_basename in
11048           CC)
11049             lt_prog_compiler_wl_CXX='-Wl,'
11050             lt_prog_compiler_static_CXX='-non_shared'
11051             # CC pic flag -KPIC is the default.
11052             ;;
11053           *)
11054             ;;
11055         esac
11056         ;;
11057       linux*)
11058         case $cc_basename in
11059           KCC)
11060             # KAI C++ Compiler
11061             lt_prog_compiler_wl_CXX='--backend -Wl,'
11062             lt_prog_compiler_pic_CXX='-fPIC'
11063             ;;
11064           icpc* | ecpc*)
11065             # Intel C++
11066             lt_prog_compiler_wl_CXX='-Wl,'
11067             lt_prog_compiler_pic_CXX='-KPIC'
11068             lt_prog_compiler_static_CXX='-static'
11069             ;;
11070           pgCC)
11071             # Portland Group C++ compiler.
11072             lt_prog_compiler_wl_CXX='-Wl,'
11073             lt_prog_compiler_pic_CXX='-fpic'
11074             lt_prog_compiler_static_CXX='-static'
11075             ;;
11076           cxx)
11077             # Compaq C++
11078             # Make sure the PIC flag is empty.  It appears that all Alpha
11079             # Linux and Compaq Tru64 Unix objects are PIC.
11080             lt_prog_compiler_pic_CXX=
11081             lt_prog_compiler_static_CXX='-non_shared'
11082             ;;
11083           *)
11084             ;;
11085         esac
11086         ;;
11087       lynxos*)
11088         ;;
11089       m88k*)
11090         ;;
11091       mvs*)
11092         case $cc_basename in
11093           cxx)
11094             lt_prog_compiler_pic_CXX='-W c,exportall'
11095             ;;
11096           *)
11097             ;;
11098         esac
11099         ;;
11100       netbsd*)
11101         ;;
11102       osf3* | osf4* | osf5*)
11103         case $cc_basename in
11104           KCC)
11105             lt_prog_compiler_wl_CXX='--backend -Wl,'
11106             ;;
11107           RCC)
11108             # Rational C++ 2.4.1
11109             lt_prog_compiler_pic_CXX='-pic'
11110             ;;
11111           cxx)
11112             # Digital/Compaq C++
11113             lt_prog_compiler_wl_CXX='-Wl,'
11114             # Make sure the PIC flag is empty.  It appears that all Alpha
11115             # Linux and Compaq Tru64 Unix objects are PIC.
11116             lt_prog_compiler_pic_CXX=
11117             lt_prog_compiler_static_CXX='-non_shared'
11118             ;;
11119           *)
11120             ;;
11121         esac
11122         ;;
11123       psos*)
11124         ;;
11125       sco*)
11126         case $cc_basename in
11127           CC)
11128             lt_prog_compiler_pic_CXX='-fPIC'
11129             ;;
11130           *)
11131             ;;
11132         esac
11133         ;;
11134       solaris*)
11135         case $cc_basename in
11136           CC)
11137             # Sun C++ 4.2, 5.x and Centerline C++
11138             lt_prog_compiler_pic_CXX='-KPIC'
11139             lt_prog_compiler_static_CXX='-Bstatic'
11140             lt_prog_compiler_wl_CXX='-Qoption ld '
11141             ;;
11142           gcx)
11143             # Green Hills C++ Compiler
11144             lt_prog_compiler_pic_CXX='-PIC'
11145             ;;
11146           *)
11147             ;;
11148         esac
11149         ;;
11150       sunos4*)
11151         case $cc_basename in
11152           CC)
11153             # Sun C++ 4.x
11154             lt_prog_compiler_pic_CXX='-pic'
11155             lt_prog_compiler_static_CXX='-Bstatic'
11156             ;;
11157           lcc)
11158             # Lucid
11159             lt_prog_compiler_pic_CXX='-pic'
11160             ;;
11161           *)
11162             ;;
11163         esac
11164         ;;
11165       tandem*)
11166         case $cc_basename in
11167           NCC)
11168             # NonStop-UX NCC 3.20
11169             lt_prog_compiler_pic_CXX='-KPIC'
11170             ;;
11171           *)
11172             ;;
11173         esac
11174         ;;
11175       unixware*)
11176         ;;
11177       vxworks*)
11178         ;;
11179       *)
11180         lt_prog_compiler_can_build_shared_CXX=no
11181         ;;
11182     esac
11183   fi
11184
11185 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11186 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11187
11188 #
11189 # Check to make sure the PIC flag actually works.
11190 #
11191 if test -n "$lt_prog_compiler_pic_CXX"; then
11192
11193 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11194 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11195 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11196   echo $ECHO_N "(cached) $ECHO_C" >&6
11197 else
11198   lt_prog_compiler_pic_works_CXX=no
11199   ac_outfile=conftest.$ac_objext
11200    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11201    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11202    # Insert the option either (1) after the last *FLAGS variable, or
11203    # (2) before a word containing "conftest.", or (3) at the end.
11204    # Note that $ac_compile itself does not contain backslashes and begins
11205    # with a dollar sign (not a hyphen), so the echo should work correctly.
11206    # The option is referenced via a variable to avoid confusing sed.
11207    lt_compile=`echo "$ac_compile" | $SED \
11208    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11209    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11210    -e 's:$: $lt_compiler_flag:'`
11211    (eval echo "\"\$as_me:11211: $lt_compile\"" >&5)
11212    (eval "$lt_compile" 2>conftest.err)
11213    ac_status=$?
11214    cat conftest.err >&5
11215    echo "$as_me:11215: \$? = $ac_status" >&5
11216    if (exit $ac_status) && test -s "$ac_outfile"; then
11217      # The compiler can only warn and ignore the option if not recognized
11218      # So say no if there are warnings
11219      if test ! -s conftest.err; then
11220        lt_prog_compiler_pic_works_CXX=yes
11221      fi
11222    fi
11223    $rm conftest*
11224
11225 fi
11226 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11227 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11228
11229 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11230     case $lt_prog_compiler_pic_CXX in
11231      "" | " "*) ;;
11232      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11233      esac
11234 else
11235     lt_prog_compiler_pic_CXX=
11236      lt_prog_compiler_can_build_shared_CXX=no
11237 fi
11238
11239 fi
11240 case "$host_os" in
11241   # For platforms which do not support PIC, -DPIC is meaningless:
11242   *djgpp*)
11243     lt_prog_compiler_pic_CXX=
11244     ;;
11245   *)
11246     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11247     ;;
11248 esac
11249
11250 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11251 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11252 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11253   echo $ECHO_N "(cached) $ECHO_C" >&6
11254 else
11255   lt_cv_prog_compiler_c_o_CXX=no
11256    $rm -r conftest 2>/dev/null
11257    mkdir conftest
11258    cd conftest
11259    mkdir out
11260    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11261
11262    lt_compiler_flag="-o out/conftest2.$ac_objext"
11263    # Insert the option either (1) after the last *FLAGS variable, or
11264    # (2) before a word containing "conftest.", or (3) at the end.
11265    # Note that $ac_compile itself does not contain backslashes and begins
11266    # with a dollar sign (not a hyphen), so the echo should work correctly.
11267    lt_compile=`echo "$ac_compile" | $SED \
11268    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11269    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11270    -e 's:$: $lt_compiler_flag:'`
11271    (eval echo "\"\$as_me:11271: $lt_compile\"" >&5)
11272    (eval "$lt_compile" 2>out/conftest.err)
11273    ac_status=$?
11274    cat out/conftest.err >&5
11275    echo "$as_me:11275: \$? = $ac_status" >&5
11276    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11277    then
11278      # The compiler can only warn and ignore the option if not recognized
11279      # So say no if there are warnings
11280      if test ! -s out/conftest.err; then
11281        lt_cv_prog_compiler_c_o_CXX=yes
11282      fi
11283    fi
11284    chmod u+w .
11285    $rm conftest*
11286    # SGI C++ compiler will create directory out/ii_files/ for
11287    # template instantiation
11288    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11289    $rm out/* && rmdir out
11290    cd ..
11291    rmdir conftest
11292    $rm conftest*
11293
11294 fi
11295 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11296 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11297
11298
11299 hard_links="nottested"
11300 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11301   # do not overwrite the value of need_locks provided by the user
11302   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11303 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11304   hard_links=yes
11305   $rm conftest*
11306   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11307   touch conftest.a
11308   ln conftest.a conftest.b 2>&5 || hard_links=no
11309   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11310   echo "$as_me:$LINENO: result: $hard_links" >&5
11311 echo "${ECHO_T}$hard_links" >&6
11312   if test "$hard_links" = no; then
11313     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11314 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11315     need_locks=warn
11316   fi
11317 else
11318   need_locks=no
11319 fi
11320
11321 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11322 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11323
11324   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11325   case $host_os in
11326   aix4* | aix5*)
11327     # If we're using GNU nm, then we don't want the "-C" option.
11328     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11329     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11330       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'
11331     else
11332       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'
11333     fi
11334     ;;
11335   pw32*)
11336     export_symbols_cmds_CXX="$ltdll_cmds"
11337   ;;
11338   cygwin* | mingw*)
11339     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11340   ;;
11341   *)
11342     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11343   ;;
11344   esac
11345
11346 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11347 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11348 test "$ld_shlibs_CXX" = no && can_build_shared=no
11349
11350 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11351 if test "$GCC" = yes; then
11352   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11353 fi
11354
11355 #
11356 # Do we need to explicitly link libc?
11357 #
11358 case "x$archive_cmds_need_lc_CXX" in
11359 x|xyes)
11360   # Assume -lc should be added
11361   archive_cmds_need_lc_CXX=yes
11362
11363   if test "$enable_shared" = yes && test "$GCC" = yes; then
11364     case $archive_cmds_CXX in
11365     *'~'*)
11366       # FIXME: we may have to deal with multi-command sequences.
11367       ;;
11368     '$CC '*)
11369       # Test whether the compiler implicitly links with -lc since on some
11370       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11371       # to ld, don't add -lc before -lgcc.
11372       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11373 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11374       $rm conftest*
11375       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11376
11377       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11378   (eval $ac_compile) 2>&5
11379   ac_status=$?
11380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381   (exit $ac_status); } 2>conftest.err; then
11382         soname=conftest
11383         lib=conftest
11384         libobjs=conftest.$ac_objext
11385         deplibs=
11386         wl=$lt_prog_compiler_wl_CXX
11387         compiler_flags=-v
11388         linker_flags=-v
11389         verstring=
11390         output_objdir=.
11391         libname=conftest
11392         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11393         allow_undefined_flag_CXX=
11394         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11395   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11396   ac_status=$?
11397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398   (exit $ac_status); }
11399         then
11400           archive_cmds_need_lc_CXX=no
11401         else
11402           archive_cmds_need_lc_CXX=yes
11403         fi
11404         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11405       else
11406         cat conftest.err 1>&5
11407       fi
11408       $rm conftest*
11409       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11410 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11411       ;;
11412     esac
11413   fi
11414   ;;
11415 esac
11416
11417 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11418 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11419 library_names_spec=
11420 libname_spec='lib$name'
11421 soname_spec=
11422 shrext_cmds=".so"
11423 postinstall_cmds=
11424 postuninstall_cmds=
11425 finish_cmds=
11426 finish_eval=
11427 shlibpath_var=
11428 shlibpath_overrides_runpath=unknown
11429 version_type=none
11430 dynamic_linker="$host_os ld.so"
11431 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11432 if test "$GCC" = yes; then
11433   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11434   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11435     # if the path contains ";" then we assume it to be the separator
11436     # otherwise default to the standard path separator (i.e. ":") - it is
11437     # assumed that no part of a normal pathname contains ";" but that should
11438     # okay in the real world where ";" in dirpaths is itself problematic.
11439     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11440   else
11441     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11442   fi
11443 else
11444   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11445 fi
11446 need_lib_prefix=unknown
11447 hardcode_into_libs=no
11448
11449 # when you set need_version to no, make sure it does not cause -set_version
11450 # flags to be left without arguments
11451 need_version=unknown
11452
11453 case $host_os in
11454 aix3*)
11455   version_type=linux
11456   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11457   shlibpath_var=LIBPATH
11458
11459   # AIX 3 has no versioning support, so we append a major version to the name.
11460   soname_spec='${libname}${release}${shared_ext}$major'
11461   ;;
11462
11463 aix4* | aix5*)
11464   version_type=linux
11465   need_lib_prefix=no
11466   need_version=no
11467   hardcode_into_libs=yes
11468   if test "$host_cpu" = ia64; then
11469     # AIX 5 supports IA64
11470     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11471     shlibpath_var=LD_LIBRARY_PATH
11472   else
11473     # With GCC up to 2.95.x, collect2 would create an import file
11474     # for dependence libraries.  The import file would start with
11475     # the line `#! .'.  This would cause the generated library to
11476     # depend on `.', always an invalid library.  This was fixed in
11477     # development snapshots of GCC prior to 3.0.
11478     case $host_os in
11479       aix4 | aix4.[01] | aix4.[01].*)
11480       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11481            echo ' yes '
11482            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11483         :
11484       else
11485         can_build_shared=no
11486       fi
11487       ;;
11488     esac
11489     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11490     # soname into executable. Probably we can add versioning support to
11491     # collect2, so additional links can be useful in future.
11492     if test "$aix_use_runtimelinking" = yes; then
11493       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11494       # instead of lib<name>.a to let people know that these are not
11495       # typical AIX shared libraries.
11496       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11497     else
11498       # We preserve .a as extension for shared libraries through AIX4.2
11499       # and later when we are not doing run time linking.
11500       library_names_spec='${libname}${release}.a $libname.a'
11501       soname_spec='${libname}${release}${shared_ext}$major'
11502     fi
11503     shlibpath_var=LIBPATH
11504   fi
11505   ;;
11506
11507 amigaos*)
11508   library_names_spec='$libname.ixlibrary $libname.a'
11509   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11510   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'
11511   ;;
11512
11513 beos*)
11514   library_names_spec='${libname}${shared_ext}'
11515   dynamic_linker="$host_os ld.so"
11516   shlibpath_var=LIBRARY_PATH
11517   ;;
11518
11519 bsdi[45]*)
11520   version_type=linux
11521   need_version=no
11522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11523   soname_spec='${libname}${release}${shared_ext}$major'
11524   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11525   shlibpath_var=LD_LIBRARY_PATH
11526   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11527   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11528   # the default ld.so.conf also contains /usr/contrib/lib and
11529   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11530   # libtool to hard-code these into programs
11531   ;;
11532
11533 cygwin* | mingw* | pw32*)
11534   version_type=windows
11535   shrext_cmds=".dll"
11536   need_version=no
11537   need_lib_prefix=no
11538
11539   case $GCC,$host_os in
11540   yes,cygwin* | yes,mingw* | yes,pw32*)
11541     library_names_spec='$libname.dll.a'
11542     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11543     postinstall_cmds='base_file=`basename \${file}`~
11544       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11545       dldir=$destdir/`dirname \$dlpath`~
11546       test -d \$dldir || mkdir -p \$dldir~
11547       $install_prog $dir/$dlname \$dldir/$dlname'
11548     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11549       dlpath=$dir/\$dldll~
11550        $rm \$dlpath'
11551     shlibpath_overrides_runpath=yes
11552
11553     case $host_os in
11554     cygwin*)
11555       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11556       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11557       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11558       ;;
11559     mingw*)
11560       # MinGW DLLs use traditional 'lib' prefix
11561       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11562       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11563       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11564         # It is most probably a Windows format PATH printed by
11565         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11566         # path with ; separators, and with drive letters. We can handle the
11567         # drive letters (cygwin fileutils understands them), so leave them,
11568         # especially as we might pass files found there to a mingw objdump,
11569         # which wouldn't understand a cygwinified path. Ahh.
11570         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11571       else
11572         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11573       fi
11574       ;;
11575     pw32*)
11576       # pw32 DLLs use 'pw' prefix rather than 'lib'
11577       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11578       ;;
11579     esac
11580     ;;
11581
11582   *)
11583     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11584     ;;
11585   esac
11586   dynamic_linker='Win32 ld.exe'
11587   # FIXME: first we should search . and the directory the executable is in
11588   shlibpath_var=PATH
11589   ;;
11590
11591 darwin* | rhapsody*)
11592   dynamic_linker="$host_os dyld"
11593   version_type=darwin
11594   need_lib_prefix=no
11595   need_version=no
11596   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11597   soname_spec='${libname}${release}${major}$shared_ext'
11598   shlibpath_overrides_runpath=yes
11599   shlibpath_var=DYLD_LIBRARY_PATH
11600   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11601   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11602   if test "$GCC" = yes; then
11603     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"`
11604   else
11605     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11606   fi
11607   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11608   ;;
11609
11610 dgux*)
11611   version_type=linux
11612   need_lib_prefix=no
11613   need_version=no
11614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11615   soname_spec='${libname}${release}${shared_ext}$major'
11616   shlibpath_var=LD_LIBRARY_PATH
11617   ;;
11618
11619 freebsd1*)
11620   dynamic_linker=no
11621   ;;
11622
11623 kfreebsd*-gnu)
11624   version_type=linux
11625   need_lib_prefix=no
11626   need_version=no
11627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11628   soname_spec='${libname}${release}${shared_ext}$major'
11629   shlibpath_var=LD_LIBRARY_PATH
11630   shlibpath_overrides_runpath=no
11631   hardcode_into_libs=yes
11632   dynamic_linker='GNU ld.so'
11633   ;;
11634
11635 freebsd* | dragonfly*)
11636   # DragonFly does not have aout.  When/if they implement a new
11637   # versioning mechanism, adjust this.
11638   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11639   version_type=freebsd-$objformat
11640   case $version_type in
11641     freebsd-elf*)
11642       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11643       need_version=no
11644       need_lib_prefix=no
11645       ;;
11646     freebsd-*)
11647       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11648       need_version=yes
11649       ;;
11650   esac
11651   shlibpath_var=LD_LIBRARY_PATH
11652   case $host_os in
11653   freebsd2*)
11654     shlibpath_overrides_runpath=yes
11655     ;;
11656   freebsd3.[01]* | freebsdelf3.[01]*)
11657     shlibpath_overrides_runpath=yes
11658     hardcode_into_libs=yes
11659     ;;
11660   *) # from 3.2 on
11661     shlibpath_overrides_runpath=no
11662     hardcode_into_libs=yes
11663     ;;
11664   esac
11665   ;;
11666
11667 gnu*)
11668   version_type=linux
11669   need_lib_prefix=no
11670   need_version=no
11671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11672   soname_spec='${libname}${release}${shared_ext}$major'
11673   shlibpath_var=LD_LIBRARY_PATH
11674   hardcode_into_libs=yes
11675   ;;
11676
11677 hpux9* | hpux10* | hpux11*)
11678   # Give a soname corresponding to the major version so that dld.sl refuses to
11679   # link against other versions.
11680   version_type=sunos
11681   need_lib_prefix=no
11682   need_version=no
11683   case "$host_cpu" in
11684   ia64*)
11685     shrext_cmds='.so'
11686     hardcode_into_libs=yes
11687     dynamic_linker="$host_os dld.so"
11688     shlibpath_var=LD_LIBRARY_PATH
11689     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11690     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11691     soname_spec='${libname}${release}${shared_ext}$major'
11692     if test "X$HPUX_IA64_MODE" = X32; then
11693       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11694     else
11695       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11696     fi
11697     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11698     ;;
11699    hppa*64*)
11700      shrext_cmds='.sl'
11701      hardcode_into_libs=yes
11702      dynamic_linker="$host_os dld.sl"
11703      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11704      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11705      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11706      soname_spec='${libname}${release}${shared_ext}$major'
11707      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11708      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11709      ;;
11710    *)
11711     shrext_cmds='.sl'
11712     dynamic_linker="$host_os dld.sl"
11713     shlibpath_var=SHLIB_PATH
11714     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11715     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11716     soname_spec='${libname}${release}${shared_ext}$major'
11717     ;;
11718   esac
11719   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11720   postinstall_cmds='chmod 555 $lib'
11721   ;;
11722
11723 irix5* | irix6* | nonstopux*)
11724   case $host_os in
11725     nonstopux*) version_type=nonstopux ;;
11726     *)
11727         if test "$lt_cv_prog_gnu_ld" = yes; then
11728                 version_type=linux
11729         else
11730                 version_type=irix
11731         fi ;;
11732   esac
11733   need_lib_prefix=no
11734   need_version=no
11735   soname_spec='${libname}${release}${shared_ext}$major'
11736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11737   case $host_os in
11738   irix5* | nonstopux*)
11739     libsuff= shlibsuff=
11740     ;;
11741   *)
11742     case $LD in # libtool.m4 will add one of these switches to LD
11743     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11744       libsuff= shlibsuff= libmagic=32-bit;;
11745     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11746       libsuff=32 shlibsuff=N32 libmagic=N32;;
11747     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11748       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11749     *) libsuff= shlibsuff= libmagic=never-match;;
11750     esac
11751     ;;
11752   esac
11753   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11754   shlibpath_overrides_runpath=no
11755   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11756   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11757   hardcode_into_libs=yes
11758   ;;
11759
11760 # No shared lib support for Linux oldld, aout, or coff.
11761 linux*oldld* | linux*aout* | linux*coff*)
11762   dynamic_linker=no
11763   ;;
11764
11765 # This must be Linux ELF.
11766 linux*)
11767   version_type=linux
11768   need_lib_prefix=no
11769   need_version=no
11770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11771   soname_spec='${libname}${release}${shared_ext}$major'
11772   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11773   shlibpath_var=LD_LIBRARY_PATH
11774   shlibpath_overrides_runpath=no
11775   # This implies no fast_install, which is unacceptable.
11776   # Some rework will be needed to allow for fast_install
11777   # before this can be enabled.
11778   hardcode_into_libs=yes
11779
11780   # Append ld.so.conf contents to the search path
11781   if test -f /etc/ld.so.conf; then
11782     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11783     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11784   fi
11785
11786   # We used to test for /lib/ld.so.1 and disable shared libraries on
11787   # powerpc, because MkLinux only supported shared libraries with the
11788   # GNU dynamic linker.  Since this was broken with cross compilers,
11789   # most powerpc-linux boxes support dynamic linking these days and
11790   # people can always --disable-shared, the test was removed, and we
11791   # assume the GNU/Linux dynamic linker is in use.
11792   dynamic_linker='GNU/Linux ld.so'
11793   ;;
11794
11795 knetbsd*-gnu)
11796   version_type=linux
11797   need_lib_prefix=no
11798   need_version=no
11799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11800   soname_spec='${libname}${release}${shared_ext}$major'
11801   shlibpath_var=LD_LIBRARY_PATH
11802   shlibpath_overrides_runpath=no
11803   hardcode_into_libs=yes
11804   dynamic_linker='GNU ld.so'
11805   ;;
11806
11807 netbsd*)
11808   version_type=sunos
11809   need_lib_prefix=no
11810   need_version=no
11811   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11812     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11813     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11814     dynamic_linker='NetBSD (a.out) ld.so'
11815   else
11816     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11817     soname_spec='${libname}${release}${shared_ext}$major'
11818     dynamic_linker='NetBSD ld.elf_so'
11819   fi
11820   shlibpath_var=LD_LIBRARY_PATH
11821   shlibpath_overrides_runpath=yes
11822   hardcode_into_libs=yes
11823   ;;
11824
11825 newsos6)
11826   version_type=linux
11827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11828   shlibpath_var=LD_LIBRARY_PATH
11829   shlibpath_overrides_runpath=yes
11830   ;;
11831
11832 nto-qnx*)
11833   version_type=linux
11834   need_lib_prefix=no
11835   need_version=no
11836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11837   soname_spec='${libname}${release}${shared_ext}$major'
11838   shlibpath_var=LD_LIBRARY_PATH
11839   shlibpath_overrides_runpath=yes
11840   ;;
11841
11842 openbsd*)
11843   version_type=sunos
11844   need_lib_prefix=no
11845   need_version=no
11846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11847   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11848   shlibpath_var=LD_LIBRARY_PATH
11849   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11850     case $host_os in
11851       openbsd2.[89] | openbsd2.[89].*)
11852         shlibpath_overrides_runpath=no
11853         ;;
11854       *)
11855         shlibpath_overrides_runpath=yes
11856         ;;
11857       esac
11858   else
11859     shlibpath_overrides_runpath=yes
11860   fi
11861   ;;
11862
11863 os2*)
11864   libname_spec='$name'
11865   shrext_cmds=".dll"
11866   need_lib_prefix=no
11867   library_names_spec='$libname${shared_ext} $libname.a'
11868   dynamic_linker='OS/2 ld.exe'
11869   shlibpath_var=LIBPATH
11870   ;;
11871
11872 osf3* | osf4* | osf5*)
11873   version_type=osf
11874   need_lib_prefix=no
11875   need_version=no
11876   soname_spec='${libname}${release}${shared_ext}$major'
11877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11878   shlibpath_var=LD_LIBRARY_PATH
11879   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11880   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11881   ;;
11882
11883 sco3.2v5*)
11884   version_type=osf
11885   soname_spec='${libname}${release}${shared_ext}$major'
11886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11887   shlibpath_var=LD_LIBRARY_PATH
11888   ;;
11889
11890 solaris*)
11891   version_type=linux
11892   need_lib_prefix=no
11893   need_version=no
11894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11895   soname_spec='${libname}${release}${shared_ext}$major'
11896   shlibpath_var=LD_LIBRARY_PATH
11897   shlibpath_overrides_runpath=yes
11898   hardcode_into_libs=yes
11899   # ldd complains unless libraries are executable
11900   postinstall_cmds='chmod +x $lib'
11901   ;;
11902
11903 sunos4*)
11904   version_type=sunos
11905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11906   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11907   shlibpath_var=LD_LIBRARY_PATH
11908   shlibpath_overrides_runpath=yes
11909   if test "$with_gnu_ld" = yes; then
11910     need_lib_prefix=no
11911   fi
11912   need_version=yes
11913   ;;
11914
11915 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11916   version_type=linux
11917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11918   soname_spec='${libname}${release}${shared_ext}$major'
11919   shlibpath_var=LD_LIBRARY_PATH
11920   case $host_vendor in
11921     sni)
11922       shlibpath_overrides_runpath=no
11923       need_lib_prefix=no
11924       export_dynamic_flag_spec='${wl}-Blargedynsym'
11925       runpath_var=LD_RUN_PATH
11926       ;;
11927     siemens)
11928       need_lib_prefix=no
11929       ;;
11930     motorola)
11931       need_lib_prefix=no
11932       need_version=no
11933       shlibpath_overrides_runpath=no
11934       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11935       ;;
11936   esac
11937   ;;
11938
11939 sysv4*MP*)
11940   if test -d /usr/nec ;then
11941     version_type=linux
11942     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11943     soname_spec='$libname${shared_ext}.$major'
11944     shlibpath_var=LD_LIBRARY_PATH
11945   fi
11946   ;;
11947
11948 uts4*)
11949   version_type=linux
11950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11951   soname_spec='${libname}${release}${shared_ext}$major'
11952   shlibpath_var=LD_LIBRARY_PATH
11953   ;;
11954
11955 *)
11956   dynamic_linker=no
11957   ;;
11958 esac
11959 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11960 echo "${ECHO_T}$dynamic_linker" >&6
11961 test "$dynamic_linker" = no && can_build_shared=no
11962
11963 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11964 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11965 hardcode_action_CXX=
11966 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11967    test -n "$runpath_var_CXX" || \
11968    test "X$hardcode_automatic_CXX" = "Xyes" ; then
11969
11970   # We can hardcode non-existant directories.
11971   if test "$hardcode_direct_CXX" != no &&
11972      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11973      # have to relink, otherwise we might link with an installed library
11974      # when we should be linking with a yet-to-be-installed one
11975      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11976      test "$hardcode_minus_L_CXX" != no; then
11977     # Linking always hardcodes the temporary library directory.
11978     hardcode_action_CXX=relink
11979   else
11980     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11981     hardcode_action_CXX=immediate
11982   fi
11983 else
11984   # We cannot hardcode anything, or else we can only hardcode existing
11985   # directories.
11986   hardcode_action_CXX=unsupported
11987 fi
11988 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11989 echo "${ECHO_T}$hardcode_action_CXX" >&6
11990
11991 if test "$hardcode_action_CXX" = relink; then
11992   # Fast installation is not supported
11993   enable_fast_install=no
11994 elif test "$shlibpath_overrides_runpath" = yes ||
11995      test "$enable_shared" = no; then
11996   # Fast installation is not necessary
11997   enable_fast_install=needless
11998 fi
11999
12000 striplib=
12001 old_striplib=
12002 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12003 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12004 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12005   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12006   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12007   echo "$as_me:$LINENO: result: yes" >&5
12008 echo "${ECHO_T}yes" >&6
12009 else
12010 # FIXME - insert some real tests, host_os isn't really good enough
12011   case $host_os in
12012    darwin*)
12013        if test -n "$STRIP" ; then
12014          striplib="$STRIP -x"
12015          echo "$as_me:$LINENO: result: yes" >&5
12016 echo "${ECHO_T}yes" >&6
12017        else
12018   echo "$as_me:$LINENO: result: no" >&5
12019 echo "${ECHO_T}no" >&6
12020 fi
12021        ;;
12022    *)
12023   echo "$as_me:$LINENO: result: no" >&5
12024 echo "${ECHO_T}no" >&6
12025     ;;
12026   esac
12027 fi
12028
12029 if test "x$enable_dlopen" != xyes; then
12030   enable_dlopen=unknown
12031   enable_dlopen_self=unknown
12032   enable_dlopen_self_static=unknown
12033 else
12034   lt_cv_dlopen=no
12035   lt_cv_dlopen_libs=
12036
12037   case $host_os in
12038   beos*)
12039     lt_cv_dlopen="load_add_on"
12040     lt_cv_dlopen_libs=
12041     lt_cv_dlopen_self=yes
12042     ;;
12043
12044   mingw* | pw32*)
12045     lt_cv_dlopen="LoadLibrary"
12046     lt_cv_dlopen_libs=
12047    ;;
12048
12049   cygwin*)
12050     lt_cv_dlopen="dlopen"
12051     lt_cv_dlopen_libs=
12052    ;;
12053
12054   darwin*)
12055   # if libdl is installed we need to link against it
12056     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12057 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12058 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12059   echo $ECHO_N "(cached) $ECHO_C" >&6
12060 else
12061   ac_check_lib_save_LIBS=$LIBS
12062 LIBS="-ldl  $LIBS"
12063 cat >conftest.$ac_ext <<_ACEOF
12064 /* confdefs.h.  */
12065 _ACEOF
12066 cat confdefs.h >>conftest.$ac_ext
12067 cat >>conftest.$ac_ext <<_ACEOF
12068 /* end confdefs.h.  */
12069
12070 /* Override any gcc2 internal prototype to avoid an error.  */
12071 #ifdef __cplusplus
12072 extern "C"
12073 #endif
12074 /* We use char because int might match the return type of a gcc2
12075    builtin and then its argument prototype would still apply.  */
12076 char dlopen ();
12077 int
12078 main ()
12079 {
12080 dlopen ();
12081   ;
12082   return 0;
12083 }
12084 _ACEOF
12085 rm -f conftest.$ac_objext conftest$ac_exeext
12086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12087   (eval $ac_link) 2>conftest.er1
12088   ac_status=$?
12089   grep -v '^ *+' conftest.er1 >conftest.err
12090   rm -f conftest.er1
12091   cat conftest.err >&5
12092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093   (exit $ac_status); } &&
12094          { ac_try='test -z "$ac_cxx_werror_flag"
12095                          || test ! -s conftest.err'
12096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097   (eval $ac_try) 2>&5
12098   ac_status=$?
12099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100   (exit $ac_status); }; } &&
12101          { ac_try='test -s conftest$ac_exeext'
12102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12103   (eval $ac_try) 2>&5
12104   ac_status=$?
12105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106   (exit $ac_status); }; }; then
12107   ac_cv_lib_dl_dlopen=yes
12108 else
12109   echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.$ac_ext >&5
12111
12112 ac_cv_lib_dl_dlopen=no
12113 fi
12114 rm -f conftest.err conftest.$ac_objext \
12115       conftest$ac_exeext conftest.$ac_ext
12116 LIBS=$ac_check_lib_save_LIBS
12117 fi
12118 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12119 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12120 if test $ac_cv_lib_dl_dlopen = yes; then
12121   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12122 else
12123
12124     lt_cv_dlopen="dyld"
12125     lt_cv_dlopen_libs=
12126     lt_cv_dlopen_self=yes
12127
12128 fi
12129
12130    ;;
12131
12132   *)
12133     echo "$as_me:$LINENO: checking for shl_load" >&5
12134 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12135 if test "${ac_cv_func_shl_load+set}" = set; then
12136   echo $ECHO_N "(cached) $ECHO_C" >&6
12137 else
12138   cat >conftest.$ac_ext <<_ACEOF
12139 /* confdefs.h.  */
12140 _ACEOF
12141 cat confdefs.h >>conftest.$ac_ext
12142 cat >>conftest.$ac_ext <<_ACEOF
12143 /* end confdefs.h.  */
12144 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12145    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12146 #define shl_load innocuous_shl_load
12147
12148 /* System header to define __stub macros and hopefully few prototypes,
12149     which can conflict with char shl_load (); below.
12150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12151     <limits.h> exists even on freestanding compilers.  */
12152
12153 #ifdef __STDC__
12154 # include <limits.h>
12155 #else
12156 # include <assert.h>
12157 #endif
12158
12159 #undef shl_load
12160
12161 /* Override any gcc2 internal prototype to avoid an error.  */
12162 #ifdef __cplusplus
12163 extern "C"
12164 {
12165 #endif
12166 /* We use char because int might match the return type of a gcc2
12167    builtin and then its argument prototype would still apply.  */
12168 char shl_load ();
12169 /* The GNU C library defines this for functions which it implements
12170     to always fail with ENOSYS.  Some functions are actually named
12171     something starting with __ and the normal name is an alias.  */
12172 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12173 choke me
12174 #else
12175 char (*f) () = shl_load;
12176 #endif
12177 #ifdef __cplusplus
12178 }
12179 #endif
12180
12181 int
12182 main ()
12183 {
12184 return f != shl_load;
12185   ;
12186   return 0;
12187 }
12188 _ACEOF
12189 rm -f conftest.$ac_objext conftest$ac_exeext
12190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12191   (eval $ac_link) 2>conftest.er1
12192   ac_status=$?
12193   grep -v '^ *+' conftest.er1 >conftest.err
12194   rm -f conftest.er1
12195   cat conftest.err >&5
12196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197   (exit $ac_status); } &&
12198          { ac_try='test -z "$ac_cxx_werror_flag"
12199                          || test ! -s conftest.err'
12200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201   (eval $ac_try) 2>&5
12202   ac_status=$?
12203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204   (exit $ac_status); }; } &&
12205          { ac_try='test -s conftest$ac_exeext'
12206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207   (eval $ac_try) 2>&5
12208   ac_status=$?
12209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210   (exit $ac_status); }; }; then
12211   ac_cv_func_shl_load=yes
12212 else
12213   echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12215
12216 ac_cv_func_shl_load=no
12217 fi
12218 rm -f conftest.err conftest.$ac_objext \
12219       conftest$ac_exeext conftest.$ac_ext
12220 fi
12221 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12222 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12223 if test $ac_cv_func_shl_load = yes; then
12224   lt_cv_dlopen="shl_load"
12225 else
12226   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12227 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12228 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12229   echo $ECHO_N "(cached) $ECHO_C" >&6
12230 else
12231   ac_check_lib_save_LIBS=$LIBS
12232 LIBS="-ldld  $LIBS"
12233 cat >conftest.$ac_ext <<_ACEOF
12234 /* confdefs.h.  */
12235 _ACEOF
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h.  */
12239
12240 /* Override any gcc2 internal prototype to avoid an error.  */
12241 #ifdef __cplusplus
12242 extern "C"
12243 #endif
12244 /* We use char because int might match the return type of a gcc2
12245    builtin and then its argument prototype would still apply.  */
12246 char shl_load ();
12247 int
12248 main ()
12249 {
12250 shl_load ();
12251   ;
12252   return 0;
12253 }
12254 _ACEOF
12255 rm -f conftest.$ac_objext conftest$ac_exeext
12256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12257   (eval $ac_link) 2>conftest.er1
12258   ac_status=$?
12259   grep -v '^ *+' conftest.er1 >conftest.err
12260   rm -f conftest.er1
12261   cat conftest.err >&5
12262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263   (exit $ac_status); } &&
12264          { ac_try='test -z "$ac_cxx_werror_flag"
12265                          || test ! -s conftest.err'
12266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12267   (eval $ac_try) 2>&5
12268   ac_status=$?
12269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270   (exit $ac_status); }; } &&
12271          { ac_try='test -s conftest$ac_exeext'
12272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273   (eval $ac_try) 2>&5
12274   ac_status=$?
12275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276   (exit $ac_status); }; }; then
12277   ac_cv_lib_dld_shl_load=yes
12278 else
12279   echo "$as_me: failed program was:" >&5
12280 sed 's/^/| /' conftest.$ac_ext >&5
12281
12282 ac_cv_lib_dld_shl_load=no
12283 fi
12284 rm -f conftest.err conftest.$ac_objext \
12285       conftest$ac_exeext conftest.$ac_ext
12286 LIBS=$ac_check_lib_save_LIBS
12287 fi
12288 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12289 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12290 if test $ac_cv_lib_dld_shl_load = yes; then
12291   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12292 else
12293   echo "$as_me:$LINENO: checking for dlopen" >&5
12294 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12295 if test "${ac_cv_func_dlopen+set}" = set; then
12296   echo $ECHO_N "(cached) $ECHO_C" >&6
12297 else
12298   cat >conftest.$ac_ext <<_ACEOF
12299 /* confdefs.h.  */
12300 _ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h.  */
12304 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12305    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12306 #define dlopen innocuous_dlopen
12307
12308 /* System header to define __stub macros and hopefully few prototypes,
12309     which can conflict with char dlopen (); below.
12310     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12311     <limits.h> exists even on freestanding compilers.  */
12312
12313 #ifdef __STDC__
12314 # include <limits.h>
12315 #else
12316 # include <assert.h>
12317 #endif
12318
12319 #undef dlopen
12320
12321 /* Override any gcc2 internal prototype to avoid an error.  */
12322 #ifdef __cplusplus
12323 extern "C"
12324 {
12325 #endif
12326 /* We use char because int might match the return type of a gcc2
12327    builtin and then its argument prototype would still apply.  */
12328 char dlopen ();
12329 /* The GNU C library defines this for functions which it implements
12330     to always fail with ENOSYS.  Some functions are actually named
12331     something starting with __ and the normal name is an alias.  */
12332 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12333 choke me
12334 #else
12335 char (*f) () = dlopen;
12336 #endif
12337 #ifdef __cplusplus
12338 }
12339 #endif
12340
12341 int
12342 main ()
12343 {
12344 return f != dlopen;
12345   ;
12346   return 0;
12347 }
12348 _ACEOF
12349 rm -f conftest.$ac_objext conftest$ac_exeext
12350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12351   (eval $ac_link) 2>conftest.er1
12352   ac_status=$?
12353   grep -v '^ *+' conftest.er1 >conftest.err
12354   rm -f conftest.er1
12355   cat conftest.err >&5
12356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357   (exit $ac_status); } &&
12358          { ac_try='test -z "$ac_cxx_werror_flag"
12359                          || test ! -s conftest.err'
12360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361   (eval $ac_try) 2>&5
12362   ac_status=$?
12363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364   (exit $ac_status); }; } &&
12365          { ac_try='test -s conftest$ac_exeext'
12366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367   (eval $ac_try) 2>&5
12368   ac_status=$?
12369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370   (exit $ac_status); }; }; then
12371   ac_cv_func_dlopen=yes
12372 else
12373   echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12375
12376 ac_cv_func_dlopen=no
12377 fi
12378 rm -f conftest.err conftest.$ac_objext \
12379       conftest$ac_exeext conftest.$ac_ext
12380 fi
12381 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12382 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12383 if test $ac_cv_func_dlopen = yes; then
12384   lt_cv_dlopen="dlopen"
12385 else
12386   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12387 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12388 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12389   echo $ECHO_N "(cached) $ECHO_C" >&6
12390 else
12391   ac_check_lib_save_LIBS=$LIBS
12392 LIBS="-ldl  $LIBS"
12393 cat >conftest.$ac_ext <<_ACEOF
12394 /* confdefs.h.  */
12395 _ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h.  */
12399
12400 /* Override any gcc2 internal prototype to avoid an error.  */
12401 #ifdef __cplusplus
12402 extern "C"
12403 #endif
12404 /* We use char because int might match the return type of a gcc2
12405    builtin and then its argument prototype would still apply.  */
12406 char dlopen ();
12407 int
12408 main ()
12409 {
12410 dlopen ();
12411   ;
12412   return 0;
12413 }
12414 _ACEOF
12415 rm -f conftest.$ac_objext conftest$ac_exeext
12416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12417   (eval $ac_link) 2>conftest.er1
12418   ac_status=$?
12419   grep -v '^ *+' conftest.er1 >conftest.err
12420   rm -f conftest.er1
12421   cat conftest.err >&5
12422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423   (exit $ac_status); } &&
12424          { ac_try='test -z "$ac_cxx_werror_flag"
12425                          || test ! -s conftest.err'
12426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427   (eval $ac_try) 2>&5
12428   ac_status=$?
12429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   (exit $ac_status); }; } &&
12431          { ac_try='test -s conftest$ac_exeext'
12432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433   (eval $ac_try) 2>&5
12434   ac_status=$?
12435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436   (exit $ac_status); }; }; then
12437   ac_cv_lib_dl_dlopen=yes
12438 else
12439   echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12441
12442 ac_cv_lib_dl_dlopen=no
12443 fi
12444 rm -f conftest.err conftest.$ac_objext \
12445       conftest$ac_exeext conftest.$ac_ext
12446 LIBS=$ac_check_lib_save_LIBS
12447 fi
12448 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12449 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12450 if test $ac_cv_lib_dl_dlopen = yes; then
12451   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12452 else
12453   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12454 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12455 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12456   echo $ECHO_N "(cached) $ECHO_C" >&6
12457 else
12458   ac_check_lib_save_LIBS=$LIBS
12459 LIBS="-lsvld  $LIBS"
12460 cat >conftest.$ac_ext <<_ACEOF
12461 /* confdefs.h.  */
12462 _ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h.  */
12466
12467 /* Override any gcc2 internal prototype to avoid an error.  */
12468 #ifdef __cplusplus
12469 extern "C"
12470 #endif
12471 /* We use char because int might match the return type of a gcc2
12472    builtin and then its argument prototype would still apply.  */
12473 char dlopen ();
12474 int
12475 main ()
12476 {
12477 dlopen ();
12478   ;
12479   return 0;
12480 }
12481 _ACEOF
12482 rm -f conftest.$ac_objext conftest$ac_exeext
12483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12484   (eval $ac_link) 2>conftest.er1
12485   ac_status=$?
12486   grep -v '^ *+' conftest.er1 >conftest.err
12487   rm -f conftest.er1
12488   cat conftest.err >&5
12489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490   (exit $ac_status); } &&
12491          { ac_try='test -z "$ac_cxx_werror_flag"
12492                          || test ! -s conftest.err'
12493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494   (eval $ac_try) 2>&5
12495   ac_status=$?
12496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497   (exit $ac_status); }; } &&
12498          { ac_try='test -s conftest$ac_exeext'
12499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500   (eval $ac_try) 2>&5
12501   ac_status=$?
12502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503   (exit $ac_status); }; }; then
12504   ac_cv_lib_svld_dlopen=yes
12505 else
12506   echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12508
12509 ac_cv_lib_svld_dlopen=no
12510 fi
12511 rm -f conftest.err conftest.$ac_objext \
12512       conftest$ac_exeext conftest.$ac_ext
12513 LIBS=$ac_check_lib_save_LIBS
12514 fi
12515 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12516 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12517 if test $ac_cv_lib_svld_dlopen = yes; then
12518   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12519 else
12520   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12521 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12522 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12523   echo $ECHO_N "(cached) $ECHO_C" >&6
12524 else
12525   ac_check_lib_save_LIBS=$LIBS
12526 LIBS="-ldld  $LIBS"
12527 cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h.  */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h.  */
12533
12534 /* Override any gcc2 internal prototype to avoid an error.  */
12535 #ifdef __cplusplus
12536 extern "C"
12537 #endif
12538 /* We use char because int might match the return type of a gcc2
12539    builtin and then its argument prototype would still apply.  */
12540 char dld_link ();
12541 int
12542 main ()
12543 {
12544 dld_link ();
12545   ;
12546   return 0;
12547 }
12548 _ACEOF
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12551   (eval $ac_link) 2>conftest.er1
12552   ac_status=$?
12553   grep -v '^ *+' conftest.er1 >conftest.err
12554   rm -f conftest.er1
12555   cat conftest.err >&5
12556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557   (exit $ac_status); } &&
12558          { ac_try='test -z "$ac_cxx_werror_flag"
12559                          || test ! -s conftest.err'
12560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561   (eval $ac_try) 2>&5
12562   ac_status=$?
12563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564   (exit $ac_status); }; } &&
12565          { ac_try='test -s conftest$ac_exeext'
12566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567   (eval $ac_try) 2>&5
12568   ac_status=$?
12569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570   (exit $ac_status); }; }; then
12571   ac_cv_lib_dld_dld_link=yes
12572 else
12573   echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12575
12576 ac_cv_lib_dld_dld_link=no
12577 fi
12578 rm -f conftest.err conftest.$ac_objext \
12579       conftest$ac_exeext conftest.$ac_ext
12580 LIBS=$ac_check_lib_save_LIBS
12581 fi
12582 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12583 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12584 if test $ac_cv_lib_dld_dld_link = yes; then
12585   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12586 fi
12587
12588
12589 fi
12590
12591
12592 fi
12593
12594
12595 fi
12596
12597
12598 fi
12599
12600
12601 fi
12602
12603     ;;
12604   esac
12605
12606   if test "x$lt_cv_dlopen" != xno; then
12607     enable_dlopen=yes
12608   else
12609     enable_dlopen=no
12610   fi
12611
12612   case $lt_cv_dlopen in
12613   dlopen)
12614     save_CPPFLAGS="$CPPFLAGS"
12615     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12616
12617     save_LDFLAGS="$LDFLAGS"
12618     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12619
12620     save_LIBS="$LIBS"
12621     LIBS="$lt_cv_dlopen_libs $LIBS"
12622
12623     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12624 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12625 if test "${lt_cv_dlopen_self+set}" = set; then
12626   echo $ECHO_N "(cached) $ECHO_C" >&6
12627 else
12628           if test "$cross_compiling" = yes; then :
12629   lt_cv_dlopen_self=cross
12630 else
12631   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12632   lt_status=$lt_dlunknown
12633   cat > conftest.$ac_ext <<EOF
12634 #line 12634 "configure"
12635 #include "confdefs.h"
12636
12637 #if HAVE_DLFCN_H
12638 #include <dlfcn.h>
12639 #endif
12640
12641 #include <stdio.h>
12642
12643 #ifdef RTLD_GLOBAL
12644 #  define LT_DLGLOBAL           RTLD_GLOBAL
12645 #else
12646 #  ifdef DL_GLOBAL
12647 #    define LT_DLGLOBAL         DL_GLOBAL
12648 #  else
12649 #    define LT_DLGLOBAL         0
12650 #  endif
12651 #endif
12652
12653 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12654    find out it does not work in some platform. */
12655 #ifndef LT_DLLAZY_OR_NOW
12656 #  ifdef RTLD_LAZY
12657 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12658 #  else
12659 #    ifdef DL_LAZY
12660 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12661 #    else
12662 #      ifdef RTLD_NOW
12663 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12664 #      else
12665 #        ifdef DL_NOW
12666 #          define LT_DLLAZY_OR_NOW      DL_NOW
12667 #        else
12668 #          define LT_DLLAZY_OR_NOW      0
12669 #        endif
12670 #      endif
12671 #    endif
12672 #  endif
12673 #endif
12674
12675 #ifdef __cplusplus
12676 extern "C" void exit (int);
12677 #endif
12678
12679 void fnord() { int i=42;}
12680 int main ()
12681 {
12682   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12683   int status = $lt_dlunknown;
12684
12685   if (self)
12686     {
12687       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12688       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12689       /* dlclose (self); */
12690     }
12691
12692     exit (status);
12693 }
12694 EOF
12695   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12696   (eval $ac_link) 2>&5
12697   ac_status=$?
12698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12700     (./conftest; exit; ) 2>/dev/null
12701     lt_status=$?
12702     case x$lt_status in
12703       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12704       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12705       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12706     esac
12707   else :
12708     # compilation failed
12709     lt_cv_dlopen_self=no
12710   fi
12711 fi
12712 rm -fr conftest*
12713
12714
12715 fi
12716 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12717 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12718
12719     if test "x$lt_cv_dlopen_self" = xyes; then
12720       LDFLAGS="$LDFLAGS $link_static_flag"
12721       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12722 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12723 if test "${lt_cv_dlopen_self_static+set}" = set; then
12724   echo $ECHO_N "(cached) $ECHO_C" >&6
12725 else
12726           if test "$cross_compiling" = yes; then :
12727   lt_cv_dlopen_self_static=cross
12728 else
12729   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12730   lt_status=$lt_dlunknown
12731   cat > conftest.$ac_ext <<EOF
12732 #line 12732 "configure"
12733 #include "confdefs.h"
12734
12735 #if HAVE_DLFCN_H
12736 #include <dlfcn.h>
12737 #endif
12738
12739 #include <stdio.h>
12740
12741 #ifdef RTLD_GLOBAL
12742 #  define LT_DLGLOBAL           RTLD_GLOBAL
12743 #else
12744 #  ifdef DL_GLOBAL
12745 #    define LT_DLGLOBAL         DL_GLOBAL
12746 #  else
12747 #    define LT_DLGLOBAL         0
12748 #  endif
12749 #endif
12750
12751 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12752    find out it does not work in some platform. */
12753 #ifndef LT_DLLAZY_OR_NOW
12754 #  ifdef RTLD_LAZY
12755 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12756 #  else
12757 #    ifdef DL_LAZY
12758 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12759 #    else
12760 #      ifdef RTLD_NOW
12761 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12762 #      else
12763 #        ifdef DL_NOW
12764 #          define LT_DLLAZY_OR_NOW      DL_NOW
12765 #        else
12766 #          define LT_DLLAZY_OR_NOW      0
12767 #        endif
12768 #      endif
12769 #    endif
12770 #  endif
12771 #endif
12772
12773 #ifdef __cplusplus
12774 extern "C" void exit (int);
12775 #endif
12776
12777 void fnord() { int i=42;}
12778 int main ()
12779 {
12780   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12781   int status = $lt_dlunknown;
12782
12783   if (self)
12784     {
12785       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12786       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12787       /* dlclose (self); */
12788     }
12789
12790     exit (status);
12791 }
12792 EOF
12793   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12794   (eval $ac_link) 2>&5
12795   ac_status=$?
12796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12798     (./conftest; exit; ) 2>/dev/null
12799     lt_status=$?
12800     case x$lt_status in
12801       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12802       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12803       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12804     esac
12805   else :
12806     # compilation failed
12807     lt_cv_dlopen_self_static=no
12808   fi
12809 fi
12810 rm -fr conftest*
12811
12812
12813 fi
12814 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12815 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12816     fi
12817
12818     CPPFLAGS="$save_CPPFLAGS"
12819     LDFLAGS="$save_LDFLAGS"
12820     LIBS="$save_LIBS"
12821     ;;
12822   esac
12823
12824   case $lt_cv_dlopen_self in
12825   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12826   *) enable_dlopen_self=unknown ;;
12827   esac
12828
12829   case $lt_cv_dlopen_self_static in
12830   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12831   *) enable_dlopen_self_static=unknown ;;
12832   esac
12833 fi
12834
12835
12836 # The else clause should only fire when bootstrapping the
12837 # libtool distribution, otherwise you forgot to ship ltmain.sh
12838 # with your package, and you will get complaints that there are
12839 # no rules to generate ltmain.sh.
12840 if test -f "$ltmain"; then
12841   # See if we are running on zsh, and set the options which allow our commands through
12842   # without removal of \ escapes.
12843   if test -n "${ZSH_VERSION+set}" ; then
12844     setopt NO_GLOB_SUBST
12845   fi
12846   # Now quote all the things that may contain metacharacters while being
12847   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12848   # variables and quote the copies for generation of the libtool script.
12849   for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
12850     SED SHELL STRIP \
12851     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12852     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12853     deplibs_check_method reload_flag reload_cmds need_locks \
12854     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12855     lt_cv_sys_global_symbol_to_c_name_address \
12856     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12857     old_postinstall_cmds old_postuninstall_cmds \
12858     compiler_CXX \
12859     CC_CXX \
12860     LD_CXX \
12861     lt_prog_compiler_wl_CXX \
12862     lt_prog_compiler_pic_CXX \
12863     lt_prog_compiler_static_CXX \
12864     lt_prog_compiler_no_builtin_flag_CXX \
12865     export_dynamic_flag_spec_CXX \
12866     thread_safe_flag_spec_CXX \
12867     whole_archive_flag_spec_CXX \
12868     enable_shared_with_static_runtimes_CXX \
12869     old_archive_cmds_CXX \
12870     old_archive_from_new_cmds_CXX \
12871     predep_objects_CXX \
12872     postdep_objects_CXX \
12873     predeps_CXX \
12874     postdeps_CXX \
12875     compiler_lib_search_path_CXX \
12876     archive_cmds_CXX \
12877     archive_expsym_cmds_CXX \
12878     postinstall_cmds_CXX \
12879     postuninstall_cmds_CXX \
12880     old_archive_from_expsyms_cmds_CXX \
12881     allow_undefined_flag_CXX \
12882     no_undefined_flag_CXX \
12883     export_symbols_cmds_CXX \
12884     hardcode_libdir_flag_spec_CXX \
12885     hardcode_libdir_flag_spec_ld_CXX \
12886     hardcode_libdir_separator_CXX \
12887     hardcode_automatic_CXX \
12888     module_cmds_CXX \
12889     module_expsym_cmds_CXX \
12890     lt_cv_prog_compiler_c_o_CXX \
12891     exclude_expsyms_CXX \
12892     include_expsyms_CXX; do
12893
12894     case $var in
12895     old_archive_cmds_CXX | \
12896     old_archive_from_new_cmds_CXX | \
12897     archive_cmds_CXX | \
12898     archive_expsym_cmds_CXX | \
12899     module_cmds_CXX | \
12900     module_expsym_cmds_CXX | \
12901     old_archive_from_expsyms_cmds_CXX | \
12902     export_symbols_cmds_CXX | \
12903     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12904     postinstall_cmds | postuninstall_cmds | \
12905     old_postinstall_cmds | old_postuninstall_cmds | \
12906     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12907       # Double-quote double-evaled strings.
12908       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12909       ;;
12910     *)
12911       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12912       ;;
12913     esac
12914   done
12915
12916   case $lt_echo in
12917   *'\$0 --fallback-echo"')
12918     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12919     ;;
12920   esac
12921
12922 cfgfile="$ofile"
12923
12924   cat <<__EOF__ >> "$cfgfile"
12925 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12926
12927 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12928
12929 # Shell to use when invoking shell scripts.
12930 SHELL=$lt_SHELL
12931
12932 # Whether or not to build shared libraries.
12933 build_libtool_libs=$enable_shared
12934
12935 # Whether or not to build static libraries.
12936 build_old_libs=$enable_static
12937
12938 # Whether or not to add -lc for building shared libraries.
12939 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12940
12941 # Whether or not to disallow shared libs when runtime libs are static
12942 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12943
12944 # Whether or not to optimize for fast installation.
12945 fast_install=$enable_fast_install
12946
12947 # The host system.
12948 host_alias=$host_alias
12949 host=$host
12950 host_os=$host_os
12951
12952 # The build system.
12953 build_alias=$build_alias
12954 build=$build
12955 build_os=$build_os
12956
12957 # An echo program that does not interpret backslashes.
12958 echo=$lt_echo
12959
12960 # The archiver.
12961 AR=$lt_AR
12962 AR_FLAGS=$lt_AR_FLAGS
12963
12964 # A C compiler.
12965 LTCC=$lt_LTCC
12966
12967 # A language-specific compiler.
12968 CC=$lt_compiler_CXX
12969
12970 # Is the compiler the GNU C compiler?
12971 with_gcc=$GCC_CXX
12972
12973 # An ERE matcher.
12974 EGREP=$lt_EGREP
12975
12976 # The linker used to build libraries.
12977 LD=$lt_LD_CXX
12978
12979 # Whether we need hard or soft links.
12980 LN_S=$lt_LN_S
12981
12982 # A BSD-compatible nm program.
12983 NM=$lt_NM
12984
12985 # A symbol stripping program
12986 STRIP=$lt_STRIP
12987
12988 # Used to examine libraries when file_magic_cmd begins "file"
12989 MAGIC_CMD=$MAGIC_CMD
12990
12991 # Used on cygwin: DLL creation program.
12992 DLLTOOL="$DLLTOOL"
12993
12994 # Used on cygwin: object dumper.
12995 OBJDUMP="$OBJDUMP"
12996
12997 # Used on cygwin: assembler.
12998 AS=$lt_AS
12999
13000 # The name of the directory that contains temporary libtool files.
13001 objdir=$objdir
13002
13003 # How to create reloadable object files.
13004 reload_flag=$lt_reload_flag
13005 reload_cmds=$lt_reload_cmds
13006
13007 # How to pass a linker flag through the compiler.
13008 wl=$lt_lt_prog_compiler_wl_CXX
13009
13010 # Object file suffix (normally "o").
13011 objext="$ac_objext"
13012
13013 # Old archive suffix (normally "a").
13014 libext="$libext"
13015
13016 # Shared library suffix (normally ".so").
13017 shrext_cmds='$shrext_cmds'
13018
13019 # Executable file suffix (normally "").
13020 exeext="$exeext"
13021
13022 # Additional compiler flags for building library objects.
13023 pic_flag=$lt_lt_prog_compiler_pic_CXX
13024 pic_mode=$pic_mode
13025
13026 # What is the maximum length of a command?
13027 max_cmd_len=$lt_cv_sys_max_cmd_len
13028
13029 # Does compiler simultaneously support -c and -o options?
13030 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13031
13032 # Must we lock files when doing compilation ?
13033 need_locks=$lt_need_locks
13034
13035 # Do we need the lib prefix for modules?
13036 need_lib_prefix=$need_lib_prefix
13037
13038 # Do we need a version for libraries?
13039 need_version=$need_version
13040
13041 # Whether dlopen is supported.
13042 dlopen_support=$enable_dlopen
13043
13044 # Whether dlopen of programs is supported.
13045 dlopen_self=$enable_dlopen_self
13046
13047 # Whether dlopen of statically linked programs is supported.
13048 dlopen_self_static=$enable_dlopen_self_static
13049
13050 # Compiler flag to prevent dynamic linking.
13051 link_static_flag=$lt_lt_prog_compiler_static_CXX
13052
13053 # Compiler flag to turn off builtin functions.
13054 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13055
13056 # Compiler flag to allow reflexive dlopens.
13057 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13058
13059 # Compiler flag to generate shared objects directly from archives.
13060 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13061
13062 # Compiler flag to generate thread-safe objects.
13063 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13064
13065 # Library versioning type.
13066 version_type=$version_type
13067
13068 # Format of library name prefix.
13069 libname_spec=$lt_libname_spec
13070
13071 # List of archive names.  First name is the real one, the rest are links.
13072 # The last name is the one that the linker finds with -lNAME.
13073 library_names_spec=$lt_library_names_spec
13074
13075 # The coded name of the library, if different from the real name.
13076 soname_spec=$lt_soname_spec
13077
13078 # Commands used to build and install an old-style archive.
13079 RANLIB=$lt_RANLIB
13080 old_archive_cmds=$lt_old_archive_cmds_CXX
13081 old_postinstall_cmds=$lt_old_postinstall_cmds
13082 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13083
13084 # Create an old-style archive from a shared archive.
13085 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13086
13087 # Create a temporary old-style archive to link instead of a shared archive.
13088 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13089
13090 # Commands used to build and install a shared archive.
13091 archive_cmds=$lt_archive_cmds_CXX
13092 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13093 postinstall_cmds=$lt_postinstall_cmds
13094 postuninstall_cmds=$lt_postuninstall_cmds
13095
13096 # Commands used to build a loadable module (assumed same as above if empty)
13097 module_cmds=$lt_module_cmds_CXX
13098 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13099
13100 # Commands to strip libraries.
13101 old_striplib=$lt_old_striplib
13102 striplib=$lt_striplib
13103
13104 # Dependencies to place before the objects being linked to create a
13105 # shared library.
13106 predep_objects=$lt_predep_objects_CXX
13107
13108 # Dependencies to place after the objects being linked to create a
13109 # shared library.
13110 postdep_objects=$lt_postdep_objects_CXX
13111
13112 # Dependencies to place before the objects being linked to create a
13113 # shared library.
13114 predeps=$lt_predeps_CXX
13115
13116 # Dependencies to place after the objects being linked to create a
13117 # shared library.
13118 postdeps=$lt_postdeps_CXX
13119
13120 # The library search path used internally by the compiler when linking
13121 # a shared library.
13122 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13123
13124 # Method to check whether dependent libraries are shared objects.
13125 deplibs_check_method=$lt_deplibs_check_method
13126
13127 # Command to use when deplibs_check_method == file_magic.
13128 file_magic_cmd=$lt_file_magic_cmd
13129
13130 # Flag that allows shared libraries with undefined symbols to be built.
13131 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13132
13133 # Flag that forces no undefined symbols.
13134 no_undefined_flag=$lt_no_undefined_flag_CXX
13135
13136 # Commands used to finish a libtool library installation in a directory.
13137 finish_cmds=$lt_finish_cmds
13138
13139 # Same as above, but a single script fragment to be evaled but not shown.
13140 finish_eval=$lt_finish_eval
13141
13142 # Take the output of nm and produce a listing of raw symbols and C names.
13143 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13144
13145 # Transform the output of nm in a proper C declaration
13146 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13147
13148 # Transform the output of nm in a C name address pair
13149 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13150
13151 # This is the shared library runtime path variable.
13152 runpath_var=$runpath_var
13153
13154 # This is the shared library path variable.
13155 shlibpath_var=$shlibpath_var
13156
13157 # Is shlibpath searched before the hard-coded library search path?
13158 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13159
13160 # How to hardcode a shared library path into an executable.
13161 hardcode_action=$hardcode_action_CXX
13162
13163 # Whether we should hardcode library paths into libraries.
13164 hardcode_into_libs=$hardcode_into_libs
13165
13166 # Flag to hardcode \$libdir into a binary during linking.
13167 # This must work even if \$libdir does not exist.
13168 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13169
13170 # If ld is used when linking, flag to hardcode \$libdir into
13171 # a binary during linking. This must work even if \$libdir does
13172 # not exist.
13173 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13174
13175 # Whether we need a single -rpath flag with a separated argument.
13176 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13177
13178 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13179 # resulting binary.
13180 hardcode_direct=$hardcode_direct_CXX
13181
13182 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13183 # resulting binary.
13184 hardcode_minus_L=$hardcode_minus_L_CXX
13185
13186 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13187 # the resulting binary.
13188 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13189
13190 # Set to yes if building a shared library automatically hardcodes DIR into the library
13191 # and all subsequent libraries and executables linked against it.
13192 hardcode_automatic=$hardcode_automatic_CXX
13193
13194 # Variables whose values should be saved in libtool wrapper scripts and
13195 # restored at relink time.
13196 variables_saved_for_relink="$variables_saved_for_relink"
13197
13198 # Whether libtool must link a program against all its dependency libraries.
13199 link_all_deplibs=$link_all_deplibs_CXX
13200
13201 # Compile-time system search path for libraries
13202 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13203
13204 # Run-time system search path for libraries
13205 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13206
13207 # Fix the shell variable \$srcfile for the compiler.
13208 fix_srcfile_path="$fix_srcfile_path_CXX"
13209
13210 # Set to yes if exported symbols are required.
13211 always_export_symbols=$always_export_symbols_CXX
13212
13213 # The commands to list exported symbols.
13214 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13215
13216 # The commands to extract the exported symbol list from a shared archive.
13217 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13218
13219 # Symbols that should not be listed in the preloaded symbols.
13220 exclude_expsyms=$lt_exclude_expsyms_CXX
13221
13222 # Symbols that must always be exported.
13223 include_expsyms=$lt_include_expsyms_CXX
13224
13225 # ### END LIBTOOL TAG CONFIG: $tagname
13226
13227 __EOF__
13228
13229
13230 else
13231   # If there is no Makefile yet, we rely on a make rule to execute
13232   # `config.status --recheck' to rerun these tests and create the
13233   # libtool script then.
13234   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13235   if test -f "$ltmain_in"; then
13236     test -f Makefile && make "$ltmain"
13237   fi
13238 fi
13239
13240
13241 ac_ext=c
13242 ac_cpp='$CPP $CPPFLAGS'
13243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13246
13247 CC=$lt_save_CC
13248 LDCXX=$LD
13249 LD=$lt_save_LD
13250 GCC=$lt_save_GCC
13251 with_gnu_ldcxx=$with_gnu_ld
13252 with_gnu_ld=$lt_save_with_gnu_ld
13253 lt_cv_path_LDCXX=$lt_cv_path_LD
13254 lt_cv_path_LD=$lt_save_path_LD
13255 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13256 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13257
13258         else
13259           tagname=""
13260         fi
13261         ;;
13262
13263       F77)
13264         if test -n "$F77" && test "X$F77" != "Xno"; then
13265
13266 ac_ext=f
13267 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13268 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13269 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13270
13271
13272 archive_cmds_need_lc_F77=no
13273 allow_undefined_flag_F77=
13274 always_export_symbols_F77=no
13275 archive_expsym_cmds_F77=
13276 export_dynamic_flag_spec_F77=
13277 hardcode_direct_F77=no
13278 hardcode_libdir_flag_spec_F77=
13279 hardcode_libdir_flag_spec_ld_F77=
13280 hardcode_libdir_separator_F77=
13281 hardcode_minus_L_F77=no
13282 hardcode_automatic_F77=no
13283 module_cmds_F77=
13284 module_expsym_cmds_F77=
13285 link_all_deplibs_F77=unknown
13286 old_archive_cmds_F77=$old_archive_cmds
13287 no_undefined_flag_F77=
13288 whole_archive_flag_spec_F77=
13289 enable_shared_with_static_runtimes_F77=no
13290
13291 # Source file extension for f77 test sources.
13292 ac_ext=f
13293
13294 # Object file extension for compiled f77 test sources.
13295 objext=o
13296 objext_F77=$objext
13297
13298 # Code to be used in simple compile tests
13299 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13300
13301 # Code to be used in simple link tests
13302 lt_simple_link_test_code="      program t\n      end\n"
13303
13304 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13305
13306 # If no C compiler was specified, use CC.
13307 LTCC=${LTCC-"$CC"}
13308
13309 # Allow CC to be a program name with arguments.
13310 compiler=$CC
13311
13312
13313 # Allow CC to be a program name with arguments.
13314 lt_save_CC="$CC"
13315 CC=${F77-"f77"}
13316 compiler=$CC
13317 compiler_F77=$CC
13318 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13319
13320 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13321 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13322 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13323 echo "${ECHO_T}$can_build_shared" >&6
13324
13325 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13326 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13327 test "$can_build_shared" = "no" && enable_shared=no
13328
13329 # On AIX, shared libraries and static libraries use the same namespace, and
13330 # are all built from PIC.
13331 case "$host_os" in
13332 aix3*)
13333   test "$enable_shared" = yes && enable_static=no
13334   if test -n "$RANLIB"; then
13335     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13336     postinstall_cmds='$RANLIB $lib'
13337   fi
13338   ;;
13339 aix4* | aix5*)
13340   test "$enable_shared" = yes && enable_static=no
13341   ;;
13342 esac
13343 echo "$as_me:$LINENO: result: $enable_shared" >&5
13344 echo "${ECHO_T}$enable_shared" >&6
13345
13346 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13347 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13348 # Make sure either enable_shared or enable_static is yes.
13349 test "$enable_shared" = yes || enable_static=yes
13350 echo "$as_me:$LINENO: result: $enable_static" >&5
13351 echo "${ECHO_T}$enable_static" >&6
13352
13353 test "$ld_shlibs_F77" = no && can_build_shared=no
13354
13355 GCC_F77="$G77"
13356 LD_F77="$LD"
13357
13358 lt_prog_compiler_wl_F77=
13359 lt_prog_compiler_pic_F77=
13360 lt_prog_compiler_static_F77=
13361
13362 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13363 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13364
13365   if test "$GCC" = yes; then
13366     lt_prog_compiler_wl_F77='-Wl,'
13367     lt_prog_compiler_static_F77='-static'
13368
13369     case $host_os in
13370       aix*)
13371       # All AIX code is PIC.
13372       if test "$host_cpu" = ia64; then
13373         # AIX 5 now supports IA64 processor
13374         lt_prog_compiler_static_F77='-Bstatic'
13375       fi
13376       ;;
13377
13378     amigaos*)
13379       # FIXME: we need at least 68020 code to build shared libraries, but
13380       # adding the `-m68020' flag to GCC prevents building anything better,
13381       # like `-m68040'.
13382       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13383       ;;
13384
13385     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13386       # PIC is the default for these OSes.
13387       ;;
13388
13389     mingw* | pw32* | os2*)
13390       # This hack is so that the source file can tell whether it is being
13391       # built for inclusion in a dll (and should export symbols for example).
13392       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13393       ;;
13394
13395     darwin* | rhapsody*)
13396       # PIC is the default on this platform
13397       # Common symbols not allowed in MH_DYLIB files
13398       lt_prog_compiler_pic_F77='-fno-common'
13399       ;;
13400
13401     msdosdjgpp*)
13402       # Just because we use GCC doesn't mean we suddenly get shared libraries
13403       # on systems that don't support them.
13404       lt_prog_compiler_can_build_shared_F77=no
13405       enable_shared=no
13406       ;;
13407
13408     sysv4*MP*)
13409       if test -d /usr/nec; then
13410         lt_prog_compiler_pic_F77=-Kconform_pic
13411       fi
13412       ;;
13413
13414     hpux*)
13415       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13416       # not for PA HP-UX.
13417       case "$host_cpu" in
13418       hppa*64*|ia64*)
13419         # +Z the default
13420         ;;
13421       *)
13422         lt_prog_compiler_pic_F77='-fPIC'
13423         ;;
13424       esac
13425       ;;
13426
13427     *)
13428       lt_prog_compiler_pic_F77='-fPIC'
13429       ;;
13430     esac
13431   else
13432     # PORTME Check for flag to pass linker flags through the system compiler.
13433     case $host_os in
13434     aix*)
13435       lt_prog_compiler_wl_F77='-Wl,'
13436       if test "$host_cpu" = ia64; then
13437         # AIX 5 now supports IA64 processor
13438         lt_prog_compiler_static_F77='-Bstatic'
13439       else
13440         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13441       fi
13442       ;;
13443       darwin*)
13444         # PIC is the default on this platform
13445         # Common symbols not allowed in MH_DYLIB files
13446        case "$cc_basename" in
13447          xlc*)
13448          lt_prog_compiler_pic_F77='-qnocommon'
13449          lt_prog_compiler_wl_F77='-Wl,'
13450          ;;
13451        esac
13452        ;;
13453
13454     mingw* | pw32* | os2*)
13455       # This hack is so that the source file can tell whether it is being
13456       # built for inclusion in a dll (and should export symbols for example).
13457       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13458       ;;
13459
13460     hpux9* | hpux10* | hpux11*)
13461       lt_prog_compiler_wl_F77='-Wl,'
13462       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13463       # not for PA HP-UX.
13464       case "$host_cpu" in
13465       hppa*64*|ia64*)
13466         # +Z the default
13467         ;;
13468       *)
13469         lt_prog_compiler_pic_F77='+Z'
13470         ;;
13471       esac
13472       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13473       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13474       ;;
13475
13476     irix5* | irix6* | nonstopux*)
13477       lt_prog_compiler_wl_F77='-Wl,'
13478       # PIC (with -KPIC) is the default.
13479       lt_prog_compiler_static_F77='-non_shared'
13480       ;;
13481
13482     newsos6)
13483       lt_prog_compiler_pic_F77='-KPIC'
13484       lt_prog_compiler_static_F77='-Bstatic'
13485       ;;
13486
13487     linux*)
13488       case $cc_basename in
13489       icc* | ecc*)
13490         lt_prog_compiler_wl_F77='-Wl,'
13491         lt_prog_compiler_pic_F77='-KPIC'
13492         lt_prog_compiler_static_F77='-static'
13493         ;;
13494       pgcc | pgf77 | pgf90)
13495         # Portland Group compilers (*not* the Pentium gcc compiler,
13496         # which looks to be a dead project)
13497         lt_prog_compiler_wl_F77='-Wl,'
13498         lt_prog_compiler_pic_F77='-fpic'
13499         lt_prog_compiler_static_F77='-static'
13500         ;;
13501       ccc*)
13502         lt_prog_compiler_wl_F77='-Wl,'
13503         # All Alpha code is PIC.
13504         lt_prog_compiler_static_F77='-non_shared'
13505         ;;
13506       esac
13507       ;;
13508
13509     osf3* | osf4* | osf5*)
13510       lt_prog_compiler_wl_F77='-Wl,'
13511       # All OSF/1 code is PIC.
13512       lt_prog_compiler_static_F77='-non_shared'
13513       ;;
13514
13515     sco3.2v5*)
13516       lt_prog_compiler_pic_F77='-Kpic'
13517       lt_prog_compiler_static_F77='-dn'
13518       ;;
13519
13520     solaris*)
13521       lt_prog_compiler_wl_F77='-Wl,'
13522       lt_prog_compiler_pic_F77='-KPIC'
13523       lt_prog_compiler_static_F77='-Bstatic'
13524       ;;
13525
13526     sunos4*)
13527       lt_prog_compiler_wl_F77='-Qoption ld '
13528       lt_prog_compiler_pic_F77='-PIC'
13529       lt_prog_compiler_static_F77='-Bstatic'
13530       ;;
13531
13532     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13533       lt_prog_compiler_wl_F77='-Wl,'
13534       lt_prog_compiler_pic_F77='-KPIC'
13535       lt_prog_compiler_static_F77='-Bstatic'
13536       ;;
13537
13538     sysv4*MP*)
13539       if test -d /usr/nec ;then
13540         lt_prog_compiler_pic_F77='-Kconform_pic'
13541         lt_prog_compiler_static_F77='-Bstatic'
13542       fi
13543       ;;
13544
13545     unicos*)
13546       lt_prog_compiler_wl_F77='-Wl,'
13547       lt_prog_compiler_can_build_shared_F77=no
13548       ;;
13549
13550     uts4*)
13551       lt_prog_compiler_pic_F77='-pic'
13552       lt_prog_compiler_static_F77='-Bstatic'
13553       ;;
13554
13555     *)
13556       lt_prog_compiler_can_build_shared_F77=no
13557       ;;
13558     esac
13559   fi
13560
13561 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13562 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13563
13564 #
13565 # Check to make sure the PIC flag actually works.
13566 #
13567 if test -n "$lt_prog_compiler_pic_F77"; then
13568
13569 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13570 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13571 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13572   echo $ECHO_N "(cached) $ECHO_C" >&6
13573 else
13574   lt_prog_compiler_pic_works_F77=no
13575   ac_outfile=conftest.$ac_objext
13576    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13577    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13578    # Insert the option either (1) after the last *FLAGS variable, or
13579    # (2) before a word containing "conftest.", or (3) at the end.
13580    # Note that $ac_compile itself does not contain backslashes and begins
13581    # with a dollar sign (not a hyphen), so the echo should work correctly.
13582    # The option is referenced via a variable to avoid confusing sed.
13583    lt_compile=`echo "$ac_compile" | $SED \
13584    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13585    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13586    -e 's:$: $lt_compiler_flag:'`
13587    (eval echo "\"\$as_me:13587: $lt_compile\"" >&5)
13588    (eval "$lt_compile" 2>conftest.err)
13589    ac_status=$?
13590    cat conftest.err >&5
13591    echo "$as_me:13591: \$? = $ac_status" >&5
13592    if (exit $ac_status) && test -s "$ac_outfile"; then
13593      # The compiler can only warn and ignore the option if not recognized
13594      # So say no if there are warnings
13595      if test ! -s conftest.err; then
13596        lt_prog_compiler_pic_works_F77=yes
13597      fi
13598    fi
13599    $rm conftest*
13600
13601 fi
13602 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13603 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13604
13605 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13606     case $lt_prog_compiler_pic_F77 in
13607      "" | " "*) ;;
13608      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13609      esac
13610 else
13611     lt_prog_compiler_pic_F77=
13612      lt_prog_compiler_can_build_shared_F77=no
13613 fi
13614
13615 fi
13616 case "$host_os" in
13617   # For platforms which do not support PIC, -DPIC is meaningless:
13618   *djgpp*)
13619     lt_prog_compiler_pic_F77=
13620     ;;
13621   *)
13622     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13623     ;;
13624 esac
13625
13626 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13627 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13628 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13629   echo $ECHO_N "(cached) $ECHO_C" >&6
13630 else
13631   lt_cv_prog_compiler_c_o_F77=no
13632    $rm -r conftest 2>/dev/null
13633    mkdir conftest
13634    cd conftest
13635    mkdir out
13636    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13637
13638    lt_compiler_flag="-o out/conftest2.$ac_objext"
13639    # Insert the option either (1) after the last *FLAGS variable, or
13640    # (2) before a word containing "conftest.", or (3) at the end.
13641    # Note that $ac_compile itself does not contain backslashes and begins
13642    # with a dollar sign (not a hyphen), so the echo should work correctly.
13643    lt_compile=`echo "$ac_compile" | $SED \
13644    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13645    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13646    -e 's:$: $lt_compiler_flag:'`
13647    (eval echo "\"\$as_me:13647: $lt_compile\"" >&5)
13648    (eval "$lt_compile" 2>out/conftest.err)
13649    ac_status=$?
13650    cat out/conftest.err >&5
13651    echo "$as_me:13651: \$? = $ac_status" >&5
13652    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13653    then
13654      # The compiler can only warn and ignore the option if not recognized
13655      # So say no if there are warnings
13656      if test ! -s out/conftest.err; then
13657        lt_cv_prog_compiler_c_o_F77=yes
13658      fi
13659    fi
13660    chmod u+w .
13661    $rm conftest*
13662    # SGI C++ compiler will create directory out/ii_files/ for
13663    # template instantiation
13664    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13665    $rm out/* && rmdir out
13666    cd ..
13667    rmdir conftest
13668    $rm conftest*
13669
13670 fi
13671 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13672 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13673
13674
13675 hard_links="nottested"
13676 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13677   # do not overwrite the value of need_locks provided by the user
13678   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13679 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13680   hard_links=yes
13681   $rm conftest*
13682   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13683   touch conftest.a
13684   ln conftest.a conftest.b 2>&5 || hard_links=no
13685   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13686   echo "$as_me:$LINENO: result: $hard_links" >&5
13687 echo "${ECHO_T}$hard_links" >&6
13688   if test "$hard_links" = no; then
13689     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13690 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13691     need_locks=warn
13692   fi
13693 else
13694   need_locks=no
13695 fi
13696
13697 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13698 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13699
13700   runpath_var=
13701   allow_undefined_flag_F77=
13702   enable_shared_with_static_runtimes_F77=no
13703   archive_cmds_F77=
13704   archive_expsym_cmds_F77=
13705   old_archive_From_new_cmds_F77=
13706   old_archive_from_expsyms_cmds_F77=
13707   export_dynamic_flag_spec_F77=
13708   whole_archive_flag_spec_F77=
13709   thread_safe_flag_spec_F77=
13710   hardcode_libdir_flag_spec_F77=
13711   hardcode_libdir_flag_spec_ld_F77=
13712   hardcode_libdir_separator_F77=
13713   hardcode_direct_F77=no
13714   hardcode_minus_L_F77=no
13715   hardcode_shlibpath_var_F77=unsupported
13716   link_all_deplibs_F77=unknown
13717   hardcode_automatic_F77=no
13718   module_cmds_F77=
13719   module_expsym_cmds_F77=
13720   always_export_symbols_F77=no
13721   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13722   # include_expsyms should be a list of space-separated symbols to be *always*
13723   # included in the symbol list
13724   include_expsyms_F77=
13725   # exclude_expsyms can be an extended regexp of symbols to exclude
13726   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13727   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13728   # as well as any symbol that contains `d'.
13729   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13730   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13731   # platforms (ab)use it in PIC code, but their linkers get confused if
13732   # the symbol is explicitly referenced.  Since portable code cannot
13733   # rely on this symbol name, it's probably fine to never include it in
13734   # preloaded symbol tables.
13735   extract_expsyms_cmds=
13736
13737   case $host_os in
13738   cygwin* | mingw* | pw32*)
13739     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13740     # When not using gcc, we currently assume that we are using
13741     # Microsoft Visual C++.
13742     if test "$GCC" != yes; then
13743       with_gnu_ld=no
13744     fi
13745     ;;
13746   openbsd*)
13747     with_gnu_ld=no
13748     ;;
13749   esac
13750
13751   ld_shlibs_F77=yes
13752   if test "$with_gnu_ld" = yes; then
13753     # If archive_cmds runs LD, not CC, wlarc should be empty
13754     wlarc='${wl}'
13755
13756     # See if GNU ld supports shared libraries.
13757     case $host_os in
13758     aix3* | aix4* | aix5*)
13759       # On AIX/PPC, the GNU linker is very broken
13760       if test "$host_cpu" != ia64; then
13761         ld_shlibs_F77=no
13762         cat <<EOF 1>&2
13763
13764 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13765 *** to be unable to reliably create shared libraries on AIX.
13766 *** Therefore, libtool is disabling shared libraries support.  If you
13767 *** really care for shared libraries, you may want to modify your PATH
13768 *** so that a non-GNU linker is found, and then restart.
13769
13770 EOF
13771       fi
13772       ;;
13773
13774     amigaos*)
13775       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)'
13776       hardcode_libdir_flag_spec_F77='-L$libdir'
13777       hardcode_minus_L_F77=yes
13778
13779       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13780       # that the semantics of dynamic libraries on AmigaOS, at least up
13781       # to version 4, is to share data among multiple programs linked
13782       # with the same dynamic library.  Since this doesn't match the
13783       # behavior of shared libraries on other platforms, we can't use
13784       # them.
13785       ld_shlibs_F77=no
13786       ;;
13787
13788     beos*)
13789       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13790         allow_undefined_flag_F77=unsupported
13791         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13792         # support --undefined.  This deserves some investigation.  FIXME
13793         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13794       else
13795         ld_shlibs_F77=no
13796       fi
13797       ;;
13798
13799     cygwin* | mingw* | pw32*)
13800       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13801       # as there is no search path for DLLs.
13802       hardcode_libdir_flag_spec_F77='-L$libdir'
13803       allow_undefined_flag_F77=unsupported
13804       always_export_symbols_F77=no
13805       enable_shared_with_static_runtimes_F77=yes
13806       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13807
13808       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13809         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13810         # If the export-symbols file already is a .def file (1st line
13811         # is EXPORTS), use it as is; otherwise, prepend...
13812         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13813           cp $export_symbols $output_objdir/$soname.def;
13814         else
13815           echo EXPORTS > $output_objdir/$soname.def;
13816           cat $export_symbols >> $output_objdir/$soname.def;
13817         fi~
13818         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13819       else
13820         ld_shlibs_F77=no
13821       fi
13822       ;;
13823
13824     netbsd*)
13825       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13826         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13827         wlarc=
13828       else
13829         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13830         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13831       fi
13832       ;;
13833
13834     solaris* | sysv5*)
13835       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13836         ld_shlibs_F77=no
13837         cat <<EOF 1>&2
13838
13839 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13840 *** create shared libraries on Solaris systems.  Therefore, libtool
13841 *** is disabling shared libraries support.  We urge you to upgrade GNU
13842 *** binutils to release 2.9.1 or newer.  Another option is to modify
13843 *** your PATH or compiler configuration so that the native linker is
13844 *** used, and then restart.
13845
13846 EOF
13847       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13848         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13849         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13850       else
13851         ld_shlibs_F77=no
13852       fi
13853       ;;
13854
13855     sunos4*)
13856       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13857       wlarc=
13858       hardcode_direct_F77=yes
13859       hardcode_shlibpath_var_F77=no
13860       ;;
13861
13862   linux*)
13863     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13864       tmp_addflag=
13865       case $CC,$host_cpu in
13866       pgf77* | pgf90* )                 # Portland Group f77 and f90 compilers
13867         tmp_addflag=' -fpic' ;;
13868       ecc*,ia64* | icc*,ia64*)          # Intel C compiler on ia64
13869         tmp_addflag=' -i_dynamic' ;;
13870       efc*,ia64* | ifort*,ia64*)        # Intel Fortran compiler on ia64
13871         tmp_addflag=' -i_dynamic -nofor_main' ;;
13872       ifc* | ifort*)                    # Intel Fortran compiler
13873         tmp_addflag=' -nofor_main' ;;
13874       esac
13875       archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13876       supports_anon_versioning=no
13877       case `$LD -v 2>/dev/null` in
13878         *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13879         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13880         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13881         *\ 2.11.*) ;; # other 2.11 versions
13882         *) supports_anon_versioning=yes ;;
13883       esac
13884       if test $supports_anon_versioning = yes; then
13885         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13886 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13887 $echo "local: *; };" >> $output_objdir/$libname.ver~
13888         $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13889       else
13890         archive_expsym_cmds_F77=$archive_cmds_F77
13891       fi
13892     else
13893       ld_shlibs_F77=no
13894     fi
13895     ;;
13896
13897     *)
13898       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13899         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13900         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13901       else
13902         ld_shlibs_F77=no
13903       fi
13904       ;;
13905     esac
13906
13907     if test "$ld_shlibs_F77" = yes; then
13908       runpath_var=LD_RUN_PATH
13909       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13910       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13911       # ancient GNU ld didn't support --whole-archive et. al.
13912       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13913         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13914       else
13915         whole_archive_flag_spec_F77=
13916       fi
13917     fi
13918   else
13919     # PORTME fill in a description of your system's linker (not GNU ld)
13920     case $host_os in
13921     aix3*)
13922       allow_undefined_flag_F77=unsupported
13923       always_export_symbols_F77=yes
13924       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'
13925       # Note: this linker hardcodes the directories in LIBPATH if there
13926       # are no directories specified by -L.
13927       hardcode_minus_L_F77=yes
13928       if test "$GCC" = yes && test -z "$link_static_flag"; then
13929         # Neither direct hardcoding nor static linking is supported with a
13930         # broken collect2.
13931         hardcode_direct_F77=unsupported
13932       fi
13933       ;;
13934
13935     aix4* | aix5*)
13936       if test "$host_cpu" = ia64; then
13937         # On IA64, the linker does run time linking by default, so we don't
13938         # have to do anything special.
13939         aix_use_runtimelinking=no
13940         exp_sym_flag='-Bexport'
13941         no_entry_flag=""
13942       else
13943         # If we're using GNU nm, then we don't want the "-C" option.
13944         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13945         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13946           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'
13947         else
13948           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'
13949         fi
13950         aix_use_runtimelinking=no
13951
13952         # Test if we are trying to use run time linking or normal
13953         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13954         # need to do runtime linking.
13955         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13956           for ld_flag in $LDFLAGS; do
13957           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13958             aix_use_runtimelinking=yes
13959             break
13960           fi
13961           done
13962         esac
13963
13964         exp_sym_flag='-bexport'
13965         no_entry_flag='-bnoentry'
13966       fi
13967
13968       # When large executables or shared objects are built, AIX ld can
13969       # have problems creating the table of contents.  If linking a library
13970       # or program results in "error TOC overflow" add -mminimal-toc to
13971       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13972       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13973
13974       archive_cmds_F77=''
13975       hardcode_direct_F77=yes
13976       hardcode_libdir_separator_F77=':'
13977       link_all_deplibs_F77=yes
13978
13979       if test "$GCC" = yes; then
13980         case $host_os in aix4.[012]|aix4.[012].*)
13981         # We only want to do this on AIX 4.2 and lower, the check
13982         # below for broken collect2 doesn't work under 4.3+
13983           collect2name=`${CC} -print-prog-name=collect2`
13984           if test -f "$collect2name" && \
13985            strings "$collect2name" | grep resolve_lib_name >/dev/null
13986           then
13987           # We have reworked collect2
13988           hardcode_direct_F77=yes
13989           else
13990           # We have old collect2
13991           hardcode_direct_F77=unsupported
13992           # It fails to find uninstalled libraries when the uninstalled
13993           # path is not listed in the libpath.  Setting hardcode_minus_L
13994           # to unsupported forces relinking
13995           hardcode_minus_L_F77=yes
13996           hardcode_libdir_flag_spec_F77='-L$libdir'
13997           hardcode_libdir_separator_F77=
13998           fi
13999         esac
14000         shared_flag='-shared'
14001         if test "$aix_use_runtimelinking" = yes; then
14002           shared_flag="$shared_flag "'${wl}-G'
14003         fi
14004       else
14005         # not using gcc
14006         if test "$host_cpu" = ia64; then
14007         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14008         # chokes on -Wl,-G. The following line is correct:
14009           shared_flag='-G'
14010         else
14011         if test "$aix_use_runtimelinking" = yes; then
14012             shared_flag='${wl}-G'
14013           else
14014             shared_flag='${wl}-bM:SRE'
14015         fi
14016         fi
14017       fi
14018
14019       # It seems that -bexpall does not export symbols beginning with
14020       # underscore (_), so it is better to generate a list of symbols to export.
14021       always_export_symbols_F77=yes
14022       if test "$aix_use_runtimelinking" = yes; then
14023         # Warning - without using the other runtime loading flags (-brtl),
14024         # -berok will link without error, but may produce a broken library.
14025         allow_undefined_flag_F77='-berok'
14026        # Determine the default libpath from the value encoded in an empty executable.
14027        cat >conftest.$ac_ext <<_ACEOF
14028       program main
14029
14030       end
14031 _ACEOF
14032 rm -f conftest.$ac_objext conftest$ac_exeext
14033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14034   (eval $ac_link) 2>conftest.er1
14035   ac_status=$?
14036   grep -v '^ *+' conftest.er1 >conftest.err
14037   rm -f conftest.er1
14038   cat conftest.err >&5
14039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040   (exit $ac_status); } &&
14041          { ac_try='test -z "$ac_f77_werror_flag"
14042                          || test ! -s conftest.err'
14043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14044   (eval $ac_try) 2>&5
14045   ac_status=$?
14046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047   (exit $ac_status); }; } &&
14048          { ac_try='test -s conftest$ac_exeext'
14049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14050   (eval $ac_try) 2>&5
14051   ac_status=$?
14052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053   (exit $ac_status); }; }; then
14054
14055 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14056 }'`
14057 # Check for a 64-bit object if we didn't find anything.
14058 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; }
14059 }'`; fi
14060 else
14061   echo "$as_me: failed program was:" >&5
14062 sed 's/^/| /' conftest.$ac_ext >&5
14063
14064 fi
14065 rm -f conftest.err conftest.$ac_objext \
14066       conftest$ac_exeext conftest.$ac_ext
14067 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14068
14069        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14070         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"
14071        else
14072         if test "$host_cpu" = ia64; then
14073           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14074           allow_undefined_flag_F77="-z nodefs"
14075           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"
14076         else
14077          # Determine the default libpath from the value encoded in an empty executable.
14078          cat >conftest.$ac_ext <<_ACEOF
14079       program main
14080
14081       end
14082 _ACEOF
14083 rm -f conftest.$ac_objext conftest$ac_exeext
14084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14085   (eval $ac_link) 2>conftest.er1
14086   ac_status=$?
14087   grep -v '^ *+' conftest.er1 >conftest.err
14088   rm -f conftest.er1
14089   cat conftest.err >&5
14090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091   (exit $ac_status); } &&
14092          { ac_try='test -z "$ac_f77_werror_flag"
14093                          || test ! -s conftest.err'
14094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14095   (eval $ac_try) 2>&5
14096   ac_status=$?
14097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098   (exit $ac_status); }; } &&
14099          { ac_try='test -s conftest$ac_exeext'
14100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101   (eval $ac_try) 2>&5
14102   ac_status=$?
14103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104   (exit $ac_status); }; }; then
14105
14106 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14107 }'`
14108 # Check for a 64-bit object if we didn't find anything.
14109 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; }
14110 }'`; fi
14111 else
14112   echo "$as_me: failed program was:" >&5
14113 sed 's/^/| /' conftest.$ac_ext >&5
14114
14115 fi
14116 rm -f conftest.err conftest.$ac_objext \
14117       conftest$ac_exeext conftest.$ac_ext
14118 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14119
14120          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14121           # Warning - without using the other run time loading flags,
14122           # -berok will link without error, but may produce a broken library.
14123           no_undefined_flag_F77=' ${wl}-bernotok'
14124           allow_undefined_flag_F77=' ${wl}-berok'
14125           # -bexpall does not export symbols beginning with underscore (_)
14126           always_export_symbols_F77=yes
14127           # Exported symbols can be pulled into shared objects from archives
14128           whole_archive_flag_spec_F77=' '
14129           archive_cmds_need_lc_F77=yes
14130           # This is similar to how AIX traditionally builds it's shared libraries.
14131           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'
14132         fi
14133       fi
14134       ;;
14135
14136     amigaos*)
14137       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)'
14138       hardcode_libdir_flag_spec_F77='-L$libdir'
14139       hardcode_minus_L_F77=yes
14140       # see comment about different semantics on the GNU ld section
14141       ld_shlibs_F77=no
14142       ;;
14143
14144     bsdi[45]*)
14145       export_dynamic_flag_spec_F77=-rdynamic
14146       ;;
14147
14148     cygwin* | mingw* | pw32*)
14149       # When not using gcc, we currently assume that we are using
14150       # Microsoft Visual C++.
14151       # hardcode_libdir_flag_spec is actually meaningless, as there is
14152       # no search path for DLLs.
14153       hardcode_libdir_flag_spec_F77=' '
14154       allow_undefined_flag_F77=unsupported
14155       # Tell ltmain to make .lib files, not .a files.
14156       libext=lib
14157       # Tell ltmain to make .dll files, not .so files.
14158       shrext_cmds=".dll"
14159       # FIXME: Setting linknames here is a bad hack.
14160       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14161       # The linker will automatically build a .lib file if we build a DLL.
14162       old_archive_From_new_cmds_F77='true'
14163       # FIXME: Should let the user specify the lib program.
14164       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14165       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14166       enable_shared_with_static_runtimes_F77=yes
14167       ;;
14168
14169     darwin* | rhapsody*)
14170       case "$host_os" in
14171         rhapsody* | darwin1.[012])
14172          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14173          ;;
14174        *) # Darwin 1.3 on
14175          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14176            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14177          else
14178            case ${MACOSX_DEPLOYMENT_TARGET} in
14179              10.[012])
14180                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14181                ;;
14182              10.*)
14183                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14184                ;;
14185            esac
14186          fi
14187          ;;
14188       esac
14189       archive_cmds_need_lc_F77=no
14190       hardcode_direct_F77=no
14191       hardcode_automatic_F77=yes
14192       hardcode_shlibpath_var_F77=unsupported
14193       whole_archive_flag_spec_F77=''
14194       link_all_deplibs_F77=yes
14195     if test "$GCC" = yes ; then
14196         output_verbose_link_cmd='echo'
14197         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14198       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14199       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14200       archive_expsym_cmds_F77='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}'
14201       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14202     else
14203       case "$cc_basename" in
14204         xlc*)
14205          output_verbose_link_cmd='echo'
14206          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14207          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14208           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14209          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14210           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14211           ;;
14212        *)
14213          ld_shlibs_F77=no
14214           ;;
14215       esac
14216     fi
14217       ;;
14218
14219     dgux*)
14220       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14221       hardcode_libdir_flag_spec_F77='-L$libdir'
14222       hardcode_shlibpath_var_F77=no
14223       ;;
14224
14225     freebsd1*)
14226       ld_shlibs_F77=no
14227       ;;
14228
14229     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14230     # support.  Future versions do this automatically, but an explicit c++rt0.o
14231     # does not break anything, and helps significantly (at the cost of a little
14232     # extra space).
14233     freebsd2.2*)
14234       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14235       hardcode_libdir_flag_spec_F77='-R$libdir'
14236       hardcode_direct_F77=yes
14237       hardcode_shlibpath_var_F77=no
14238       ;;
14239
14240     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14241     freebsd2*)
14242       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14243       hardcode_direct_F77=yes
14244       hardcode_minus_L_F77=yes
14245       hardcode_shlibpath_var_F77=no
14246       ;;
14247
14248     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14249     freebsd* | kfreebsd*-gnu | dragonfly*)
14250       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14251       hardcode_libdir_flag_spec_F77='-R$libdir'
14252       hardcode_direct_F77=yes
14253       hardcode_shlibpath_var_F77=no
14254       ;;
14255
14256     hpux9*)
14257       if test "$GCC" = yes; then
14258         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'
14259       else
14260         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'
14261       fi
14262       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14263       hardcode_libdir_separator_F77=:
14264       hardcode_direct_F77=yes
14265
14266       # hardcode_minus_L: Not really in the search PATH,
14267       # but as the default location of the library.
14268       hardcode_minus_L_F77=yes
14269       export_dynamic_flag_spec_F77='${wl}-E'
14270       ;;
14271
14272     hpux10* | hpux11*)
14273       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14274         case "$host_cpu" in
14275         hppa*64*|ia64*)
14276           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14277           ;;
14278         *)
14279           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14280           ;;
14281         esac
14282       else
14283         case "$host_cpu" in
14284         hppa*64*|ia64*)
14285           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14286           ;;
14287         *)
14288           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14289           ;;
14290         esac
14291       fi
14292       if test "$with_gnu_ld" = no; then
14293         case "$host_cpu" in
14294         hppa*64*)
14295           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14296           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14297           hardcode_libdir_separator_F77=:
14298           hardcode_direct_F77=no
14299           hardcode_shlibpath_var_F77=no
14300           ;;
14301         ia64*)
14302           hardcode_libdir_flag_spec_F77='-L$libdir'
14303           hardcode_direct_F77=no
14304           hardcode_shlibpath_var_F77=no
14305
14306           # hardcode_minus_L: Not really in the search PATH,
14307           # but as the default location of the library.
14308           hardcode_minus_L_F77=yes
14309           ;;
14310         *)
14311           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14312           hardcode_libdir_separator_F77=:
14313           hardcode_direct_F77=yes
14314           export_dynamic_flag_spec_F77='${wl}-E'
14315
14316           # hardcode_minus_L: Not really in the search PATH,
14317           # but as the default location of the library.
14318           hardcode_minus_L_F77=yes
14319           ;;
14320         esac
14321       fi
14322       ;;
14323
14324     irix5* | irix6* | nonstopux*)
14325       if test "$GCC" = yes; then
14326         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'
14327       else
14328         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'
14329         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14330       fi
14331       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14332       hardcode_libdir_separator_F77=:
14333       link_all_deplibs_F77=yes
14334       ;;
14335
14336     netbsd*)
14337       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14338         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14339       else
14340         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14341       fi
14342       hardcode_libdir_flag_spec_F77='-R$libdir'
14343       hardcode_direct_F77=yes
14344       hardcode_shlibpath_var_F77=no
14345       ;;
14346
14347     newsos6)
14348       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14349       hardcode_direct_F77=yes
14350       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14351       hardcode_libdir_separator_F77=:
14352       hardcode_shlibpath_var_F77=no
14353       ;;
14354
14355     openbsd*)
14356       hardcode_direct_F77=yes
14357       hardcode_shlibpath_var_F77=no
14358       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14359         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14360         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14361         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14362         export_dynamic_flag_spec_F77='${wl}-E'
14363       else
14364        case $host_os in
14365          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14366            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14367            hardcode_libdir_flag_spec_F77='-R$libdir'
14368            ;;
14369          *)
14370            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14371            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14372            ;;
14373        esac
14374       fi
14375       ;;
14376
14377     os2*)
14378       hardcode_libdir_flag_spec_F77='-L$libdir'
14379       hardcode_minus_L_F77=yes
14380       allow_undefined_flag_F77=unsupported
14381       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'
14382       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14383       ;;
14384
14385     osf3*)
14386       if test "$GCC" = yes; then
14387         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14388         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'
14389       else
14390         allow_undefined_flag_F77=' -expect_unresolved \*'
14391         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'
14392       fi
14393       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14394       hardcode_libdir_separator_F77=:
14395       ;;
14396
14397     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14398       if test "$GCC" = yes; then
14399         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14400         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'
14401         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14402       else
14403         allow_undefined_flag_F77=' -expect_unresolved \*'
14404         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'
14405         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~
14406         $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'
14407
14408         # Both c and cxx compiler support -rpath directly
14409         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14410       fi
14411       hardcode_libdir_separator_F77=:
14412       ;;
14413
14414     sco3.2v5*)
14415       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14416       hardcode_shlibpath_var_F77=no
14417       export_dynamic_flag_spec_F77='${wl}-Bexport'
14418       runpath_var=LD_RUN_PATH
14419       hardcode_runpath_var=yes
14420       ;;
14421
14422     solaris*)
14423       no_undefined_flag_F77=' -z text'
14424       if test "$GCC" = yes; then
14425         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14426         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14427           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14428       else
14429         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14430         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14431         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14432       fi
14433       hardcode_libdir_flag_spec_F77='-R$libdir'
14434       hardcode_shlibpath_var_F77=no
14435       case $host_os in
14436       solaris2.[0-5] | solaris2.[0-5].*) ;;
14437       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14438         whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
14439       esac
14440       link_all_deplibs_F77=yes
14441       ;;
14442
14443     sunos4*)
14444       if test "x$host_vendor" = xsequent; then
14445         # Use $CC to link under sequent, because it throws in some extra .o
14446         # files that make .init and .fini sections work.
14447         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14448       else
14449         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14450       fi
14451       hardcode_libdir_flag_spec_F77='-L$libdir'
14452       hardcode_direct_F77=yes
14453       hardcode_minus_L_F77=yes
14454       hardcode_shlibpath_var_F77=no
14455       ;;
14456
14457     sysv4)
14458       case $host_vendor in
14459         sni)
14460           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14461           hardcode_direct_F77=yes # is this really true???
14462         ;;
14463         siemens)
14464           ## LD is ld it makes a PLAMLIB
14465           ## CC just makes a GrossModule.
14466           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14467           reload_cmds_F77='$CC -r -o $output$reload_objs'
14468           hardcode_direct_F77=no
14469         ;;
14470         motorola)
14471           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14472           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14473         ;;
14474       esac
14475       runpath_var='LD_RUN_PATH'
14476       hardcode_shlibpath_var_F77=no
14477       ;;
14478
14479     sysv4.3*)
14480       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14481       hardcode_shlibpath_var_F77=no
14482       export_dynamic_flag_spec_F77='-Bexport'
14483       ;;
14484
14485     sysv4*MP*)
14486       if test -d /usr/nec; then
14487         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14488         hardcode_shlibpath_var_F77=no
14489         runpath_var=LD_RUN_PATH
14490         hardcode_runpath_var=yes
14491         ld_shlibs_F77=yes
14492       fi
14493       ;;
14494
14495     sysv4.2uw2*)
14496       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14497       hardcode_direct_F77=yes
14498       hardcode_minus_L_F77=no
14499       hardcode_shlibpath_var_F77=no
14500       hardcode_runpath_var=yes
14501       runpath_var=LD_RUN_PATH
14502       ;;
14503
14504    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14505       no_undefined_flag_F77='${wl}-z ${wl}text'
14506       if test "$GCC" = yes; then
14507         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14508       else
14509         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14510       fi
14511       runpath_var='LD_RUN_PATH'
14512       hardcode_shlibpath_var_F77=no
14513       ;;
14514
14515     sysv5*)
14516       no_undefined_flag_F77=' -z text'
14517       # $CC -shared without GNU ld will not create a library from C++
14518       # object files and a static libstdc++, better avoid it by now
14519       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14520       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14521                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14522       hardcode_libdir_flag_spec_F77=
14523       hardcode_shlibpath_var_F77=no
14524       runpath_var='LD_RUN_PATH'
14525       ;;
14526
14527     uts4*)
14528       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14529       hardcode_libdir_flag_spec_F77='-L$libdir'
14530       hardcode_shlibpath_var_F77=no
14531       ;;
14532
14533     *)
14534       ld_shlibs_F77=no
14535       ;;
14536     esac
14537   fi
14538
14539 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14540 echo "${ECHO_T}$ld_shlibs_F77" >&6
14541 test "$ld_shlibs_F77" = no && can_build_shared=no
14542
14543 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14544 if test "$GCC" = yes; then
14545   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14546 fi
14547
14548 #
14549 # Do we need to explicitly link libc?
14550 #
14551 case "x$archive_cmds_need_lc_F77" in
14552 x|xyes)
14553   # Assume -lc should be added
14554   archive_cmds_need_lc_F77=yes
14555
14556   if test "$enable_shared" = yes && test "$GCC" = yes; then
14557     case $archive_cmds_F77 in
14558     *'~'*)
14559       # FIXME: we may have to deal with multi-command sequences.
14560       ;;
14561     '$CC '*)
14562       # Test whether the compiler implicitly links with -lc since on some
14563       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14564       # to ld, don't add -lc before -lgcc.
14565       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14566 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14567       $rm conftest*
14568       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14569
14570       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14571   (eval $ac_compile) 2>&5
14572   ac_status=$?
14573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574   (exit $ac_status); } 2>conftest.err; then
14575         soname=conftest
14576         lib=conftest
14577         libobjs=conftest.$ac_objext
14578         deplibs=
14579         wl=$lt_prog_compiler_wl_F77
14580         compiler_flags=-v
14581         linker_flags=-v
14582         verstring=
14583         output_objdir=.
14584         libname=conftest
14585         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14586         allow_undefined_flag_F77=
14587         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14588   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14589   ac_status=$?
14590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591   (exit $ac_status); }
14592         then
14593           archive_cmds_need_lc_F77=no
14594         else
14595           archive_cmds_need_lc_F77=yes
14596         fi
14597         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14598       else
14599         cat conftest.err 1>&5
14600       fi
14601       $rm conftest*
14602       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14603 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14604       ;;
14605     esac
14606   fi
14607   ;;
14608 esac
14609
14610 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14611 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14612 library_names_spec=
14613 libname_spec='lib$name'
14614 soname_spec=
14615 shrext_cmds=".so"
14616 postinstall_cmds=
14617 postuninstall_cmds=
14618 finish_cmds=
14619 finish_eval=
14620 shlibpath_var=
14621 shlibpath_overrides_runpath=unknown
14622 version_type=none
14623 dynamic_linker="$host_os ld.so"
14624 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14625 if test "$GCC" = yes; then
14626   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14627   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14628     # if the path contains ";" then we assume it to be the separator
14629     # otherwise default to the standard path separator (i.e. ":") - it is
14630     # assumed that no part of a normal pathname contains ";" but that should
14631     # okay in the real world where ";" in dirpaths is itself problematic.
14632     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14633   else
14634     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14635   fi
14636 else
14637   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14638 fi
14639 need_lib_prefix=unknown
14640 hardcode_into_libs=no
14641
14642 # when you set need_version to no, make sure it does not cause -set_version
14643 # flags to be left without arguments
14644 need_version=unknown
14645
14646 case $host_os in
14647 aix3*)
14648   version_type=linux
14649   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14650   shlibpath_var=LIBPATH
14651
14652   # AIX 3 has no versioning support, so we append a major version to the name.
14653   soname_spec='${libname}${release}${shared_ext}$major'
14654   ;;
14655
14656 aix4* | aix5*)
14657   version_type=linux
14658   need_lib_prefix=no
14659   need_version=no
14660   hardcode_into_libs=yes
14661   if test "$host_cpu" = ia64; then
14662     # AIX 5 supports IA64
14663     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14664     shlibpath_var=LD_LIBRARY_PATH
14665   else
14666     # With GCC up to 2.95.x, collect2 would create an import file
14667     # for dependence libraries.  The import file would start with
14668     # the line `#! .'.  This would cause the generated library to
14669     # depend on `.', always an invalid library.  This was fixed in
14670     # development snapshots of GCC prior to 3.0.
14671     case $host_os in
14672       aix4 | aix4.[01] | aix4.[01].*)
14673       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14674            echo ' yes '
14675            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14676         :
14677       else
14678         can_build_shared=no
14679       fi
14680       ;;
14681     esac
14682     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14683     # soname into executable. Probably we can add versioning support to
14684     # collect2, so additional links can be useful in future.
14685     if test "$aix_use_runtimelinking" = yes; then
14686       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14687       # instead of lib<name>.a to let people know that these are not
14688       # typical AIX shared libraries.
14689       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14690     else
14691       # We preserve .a as extension for shared libraries through AIX4.2
14692       # and later when we are not doing run time linking.
14693       library_names_spec='${libname}${release}.a $libname.a'
14694       soname_spec='${libname}${release}${shared_ext}$major'
14695     fi
14696     shlibpath_var=LIBPATH
14697   fi
14698   ;;
14699
14700 amigaos*)
14701   library_names_spec='$libname.ixlibrary $libname.a'
14702   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14703   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'
14704   ;;
14705
14706 beos*)
14707   library_names_spec='${libname}${shared_ext}'
14708   dynamic_linker="$host_os ld.so"
14709   shlibpath_var=LIBRARY_PATH
14710   ;;
14711
14712 bsdi[45]*)
14713   version_type=linux
14714   need_version=no
14715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14716   soname_spec='${libname}${release}${shared_ext}$major'
14717   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14718   shlibpath_var=LD_LIBRARY_PATH
14719   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14720   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14721   # the default ld.so.conf also contains /usr/contrib/lib and
14722   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14723   # libtool to hard-code these into programs
14724   ;;
14725
14726 cygwin* | mingw* | pw32*)
14727   version_type=windows
14728   shrext_cmds=".dll"
14729   need_version=no
14730   need_lib_prefix=no
14731
14732   case $GCC,$host_os in
14733   yes,cygwin* | yes,mingw* | yes,pw32*)
14734     library_names_spec='$libname.dll.a'
14735     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14736     postinstall_cmds='base_file=`basename \${file}`~
14737       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14738       dldir=$destdir/`dirname \$dlpath`~
14739       test -d \$dldir || mkdir -p \$dldir~
14740       $install_prog $dir/$dlname \$dldir/$dlname'
14741     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14742       dlpath=$dir/\$dldll~
14743        $rm \$dlpath'
14744     shlibpath_overrides_runpath=yes
14745
14746     case $host_os in
14747     cygwin*)
14748       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14749       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14750       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14751       ;;
14752     mingw*)
14753       # MinGW DLLs use traditional 'lib' prefix
14754       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14755       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14756       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14757         # It is most probably a Windows format PATH printed by
14758         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14759         # path with ; separators, and with drive letters. We can handle the
14760         # drive letters (cygwin fileutils understands them), so leave them,
14761         # especially as we might pass files found there to a mingw objdump,
14762         # which wouldn't understand a cygwinified path. Ahh.
14763         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14764       else
14765         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14766       fi
14767       ;;
14768     pw32*)
14769       # pw32 DLLs use 'pw' prefix rather than 'lib'
14770       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14771       ;;
14772     esac
14773     ;;
14774
14775   *)
14776     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14777     ;;
14778   esac
14779   dynamic_linker='Win32 ld.exe'
14780   # FIXME: first we should search . and the directory the executable is in
14781   shlibpath_var=PATH
14782   ;;
14783
14784 darwin* | rhapsody*)
14785   dynamic_linker="$host_os dyld"
14786   version_type=darwin
14787   need_lib_prefix=no
14788   need_version=no
14789   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14790   soname_spec='${libname}${release}${major}$shared_ext'
14791   shlibpath_overrides_runpath=yes
14792   shlibpath_var=DYLD_LIBRARY_PATH
14793   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14794   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14795   if test "$GCC" = yes; then
14796     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"`
14797   else
14798     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14799   fi
14800   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14801   ;;
14802
14803 dgux*)
14804   version_type=linux
14805   need_lib_prefix=no
14806   need_version=no
14807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14808   soname_spec='${libname}${release}${shared_ext}$major'
14809   shlibpath_var=LD_LIBRARY_PATH
14810   ;;
14811
14812 freebsd1*)
14813   dynamic_linker=no
14814   ;;
14815
14816 kfreebsd*-gnu)
14817   version_type=linux
14818   need_lib_prefix=no
14819   need_version=no
14820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14821   soname_spec='${libname}${release}${shared_ext}$major'
14822   shlibpath_var=LD_LIBRARY_PATH
14823   shlibpath_overrides_runpath=no
14824   hardcode_into_libs=yes
14825   dynamic_linker='GNU ld.so'
14826   ;;
14827
14828 freebsd* | dragonfly*)
14829   # DragonFly does not have aout.  When/if they implement a new
14830   # versioning mechanism, adjust this.
14831   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14832   version_type=freebsd-$objformat
14833   case $version_type in
14834     freebsd-elf*)
14835       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14836       need_version=no
14837       need_lib_prefix=no
14838       ;;
14839     freebsd-*)
14840       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14841       need_version=yes
14842       ;;
14843   esac
14844   shlibpath_var=LD_LIBRARY_PATH
14845   case $host_os in
14846   freebsd2*)
14847     shlibpath_overrides_runpath=yes
14848     ;;
14849   freebsd3.[01]* | freebsdelf3.[01]*)
14850     shlibpath_overrides_runpath=yes
14851     hardcode_into_libs=yes
14852     ;;
14853   *) # from 3.2 on
14854     shlibpath_overrides_runpath=no
14855     hardcode_into_libs=yes
14856     ;;
14857   esac
14858   ;;
14859
14860 gnu*)
14861   version_type=linux
14862   need_lib_prefix=no
14863   need_version=no
14864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14865   soname_spec='${libname}${release}${shared_ext}$major'
14866   shlibpath_var=LD_LIBRARY_PATH
14867   hardcode_into_libs=yes
14868   ;;
14869
14870 hpux9* | hpux10* | hpux11*)
14871   # Give a soname corresponding to the major version so that dld.sl refuses to
14872   # link against other versions.
14873   version_type=sunos
14874   need_lib_prefix=no
14875   need_version=no
14876   case "$host_cpu" in
14877   ia64*)
14878     shrext_cmds='.so'
14879     hardcode_into_libs=yes
14880     dynamic_linker="$host_os dld.so"
14881     shlibpath_var=LD_LIBRARY_PATH
14882     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14883     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14884     soname_spec='${libname}${release}${shared_ext}$major'
14885     if test "X$HPUX_IA64_MODE" = X32; then
14886       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14887     else
14888       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14889     fi
14890     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14891     ;;
14892    hppa*64*)
14893      shrext_cmds='.sl'
14894      hardcode_into_libs=yes
14895      dynamic_linker="$host_os dld.sl"
14896      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14897      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14898      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14899      soname_spec='${libname}${release}${shared_ext}$major'
14900      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14901      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14902      ;;
14903    *)
14904     shrext_cmds='.sl'
14905     dynamic_linker="$host_os dld.sl"
14906     shlibpath_var=SHLIB_PATH
14907     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14908     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14909     soname_spec='${libname}${release}${shared_ext}$major'
14910     ;;
14911   esac
14912   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14913   postinstall_cmds='chmod 555 $lib'
14914   ;;
14915
14916 irix5* | irix6* | nonstopux*)
14917   case $host_os in
14918     nonstopux*) version_type=nonstopux ;;
14919     *)
14920         if test "$lt_cv_prog_gnu_ld" = yes; then
14921                 version_type=linux
14922         else
14923                 version_type=irix
14924         fi ;;
14925   esac
14926   need_lib_prefix=no
14927   need_version=no
14928   soname_spec='${libname}${release}${shared_ext}$major'
14929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14930   case $host_os in
14931   irix5* | nonstopux*)
14932     libsuff= shlibsuff=
14933     ;;
14934   *)
14935     case $LD in # libtool.m4 will add one of these switches to LD
14936     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14937       libsuff= shlibsuff= libmagic=32-bit;;
14938     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14939       libsuff=32 shlibsuff=N32 libmagic=N32;;
14940     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14941       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14942     *) libsuff= shlibsuff= libmagic=never-match;;
14943     esac
14944     ;;
14945   esac
14946   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14947   shlibpath_overrides_runpath=no
14948   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14949   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14950   hardcode_into_libs=yes
14951   ;;
14952
14953 # No shared lib support for Linux oldld, aout, or coff.
14954 linux*oldld* | linux*aout* | linux*coff*)
14955   dynamic_linker=no
14956   ;;
14957
14958 # This must be Linux ELF.
14959 linux*)
14960   version_type=linux
14961   need_lib_prefix=no
14962   need_version=no
14963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14964   soname_spec='${libname}${release}${shared_ext}$major'
14965   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14966   shlibpath_var=LD_LIBRARY_PATH
14967   shlibpath_overrides_runpath=no
14968   # This implies no fast_install, which is unacceptable.
14969   # Some rework will be needed to allow for fast_install
14970   # before this can be enabled.
14971   hardcode_into_libs=yes
14972
14973   # Append ld.so.conf contents to the search path
14974   if test -f /etc/ld.so.conf; then
14975     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14976     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14977   fi
14978
14979   # We used to test for /lib/ld.so.1 and disable shared libraries on
14980   # powerpc, because MkLinux only supported shared libraries with the
14981   # GNU dynamic linker.  Since this was broken with cross compilers,
14982   # most powerpc-linux boxes support dynamic linking these days and
14983   # people can always --disable-shared, the test was removed, and we
14984   # assume the GNU/Linux dynamic linker is in use.
14985   dynamic_linker='GNU/Linux ld.so'
14986   ;;
14987
14988 knetbsd*-gnu)
14989   version_type=linux
14990   need_lib_prefix=no
14991   need_version=no
14992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14993   soname_spec='${libname}${release}${shared_ext}$major'
14994   shlibpath_var=LD_LIBRARY_PATH
14995   shlibpath_overrides_runpath=no
14996   hardcode_into_libs=yes
14997   dynamic_linker='GNU ld.so'
14998   ;;
14999
15000 netbsd*)
15001   version_type=sunos
15002   need_lib_prefix=no
15003   need_version=no
15004   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15005     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15006     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15007     dynamic_linker='NetBSD (a.out) ld.so'
15008   else
15009     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15010     soname_spec='${libname}${release}${shared_ext}$major'
15011     dynamic_linker='NetBSD ld.elf_so'
15012   fi
15013   shlibpath_var=LD_LIBRARY_PATH
15014   shlibpath_overrides_runpath=yes
15015   hardcode_into_libs=yes
15016   ;;
15017
15018 newsos6)
15019   version_type=linux
15020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15021   shlibpath_var=LD_LIBRARY_PATH
15022   shlibpath_overrides_runpath=yes
15023   ;;
15024
15025 nto-qnx*)
15026   version_type=linux
15027   need_lib_prefix=no
15028   need_version=no
15029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15030   soname_spec='${libname}${release}${shared_ext}$major'
15031   shlibpath_var=LD_LIBRARY_PATH
15032   shlibpath_overrides_runpath=yes
15033   ;;
15034
15035 openbsd*)
15036   version_type=sunos
15037   need_lib_prefix=no
15038   need_version=no
15039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15040   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15041   shlibpath_var=LD_LIBRARY_PATH
15042   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15043     case $host_os in
15044       openbsd2.[89] | openbsd2.[89].*)
15045         shlibpath_overrides_runpath=no
15046         ;;
15047       *)
15048         shlibpath_overrides_runpath=yes
15049         ;;
15050       esac
15051   else
15052     shlibpath_overrides_runpath=yes
15053   fi
15054   ;;
15055
15056 os2*)
15057   libname_spec='$name'
15058   shrext_cmds=".dll"
15059   need_lib_prefix=no
15060   library_names_spec='$libname${shared_ext} $libname.a'
15061   dynamic_linker='OS/2 ld.exe'
15062   shlibpath_var=LIBPATH
15063   ;;
15064
15065 osf3* | osf4* | osf5*)
15066   version_type=osf
15067   need_lib_prefix=no
15068   need_version=no
15069   soname_spec='${libname}${release}${shared_ext}$major'
15070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15071   shlibpath_var=LD_LIBRARY_PATH
15072   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15073   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15074   ;;
15075
15076 sco3.2v5*)
15077   version_type=osf
15078   soname_spec='${libname}${release}${shared_ext}$major'
15079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15080   shlibpath_var=LD_LIBRARY_PATH
15081   ;;
15082
15083 solaris*)
15084   version_type=linux
15085   need_lib_prefix=no
15086   need_version=no
15087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15088   soname_spec='${libname}${release}${shared_ext}$major'
15089   shlibpath_var=LD_LIBRARY_PATH
15090   shlibpath_overrides_runpath=yes
15091   hardcode_into_libs=yes
15092   # ldd complains unless libraries are executable
15093   postinstall_cmds='chmod +x $lib'
15094   ;;
15095
15096 sunos4*)
15097   version_type=sunos
15098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15099   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15100   shlibpath_var=LD_LIBRARY_PATH
15101   shlibpath_overrides_runpath=yes
15102   if test "$with_gnu_ld" = yes; then
15103     need_lib_prefix=no
15104   fi
15105   need_version=yes
15106   ;;
15107
15108 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15109   version_type=linux
15110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15111   soname_spec='${libname}${release}${shared_ext}$major'
15112   shlibpath_var=LD_LIBRARY_PATH
15113   case $host_vendor in
15114     sni)
15115       shlibpath_overrides_runpath=no
15116       need_lib_prefix=no
15117       export_dynamic_flag_spec='${wl}-Blargedynsym'
15118       runpath_var=LD_RUN_PATH
15119       ;;
15120     siemens)
15121       need_lib_prefix=no
15122       ;;
15123     motorola)
15124       need_lib_prefix=no
15125       need_version=no
15126       shlibpath_overrides_runpath=no
15127       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15128       ;;
15129   esac
15130   ;;
15131
15132 sysv4*MP*)
15133   if test -d /usr/nec ;then
15134     version_type=linux
15135     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15136     soname_spec='$libname${shared_ext}.$major'
15137     shlibpath_var=LD_LIBRARY_PATH
15138   fi
15139   ;;
15140
15141 uts4*)
15142   version_type=linux
15143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15144   soname_spec='${libname}${release}${shared_ext}$major'
15145   shlibpath_var=LD_LIBRARY_PATH
15146   ;;
15147
15148 *)
15149   dynamic_linker=no
15150   ;;
15151 esac
15152 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15153 echo "${ECHO_T}$dynamic_linker" >&6
15154 test "$dynamic_linker" = no && can_build_shared=no
15155
15156 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15157 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15158 hardcode_action_F77=
15159 if test -n "$hardcode_libdir_flag_spec_F77" || \
15160    test -n "$runpath_var_F77" || \
15161    test "X$hardcode_automatic_F77" = "Xyes" ; then
15162
15163   # We can hardcode non-existant directories.
15164   if test "$hardcode_direct_F77" != no &&
15165      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15166      # have to relink, otherwise we might link with an installed library
15167      # when we should be linking with a yet-to-be-installed one
15168      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15169      test "$hardcode_minus_L_F77" != no; then
15170     # Linking always hardcodes the temporary library directory.
15171     hardcode_action_F77=relink
15172   else
15173     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15174     hardcode_action_F77=immediate
15175   fi
15176 else
15177   # We cannot hardcode anything, or else we can only hardcode existing
15178   # directories.
15179   hardcode_action_F77=unsupported
15180 fi
15181 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15182 echo "${ECHO_T}$hardcode_action_F77" >&6
15183
15184 if test "$hardcode_action_F77" = relink; then
15185   # Fast installation is not supported
15186   enable_fast_install=no
15187 elif test "$shlibpath_overrides_runpath" = yes ||
15188      test "$enable_shared" = no; then
15189   # Fast installation is not necessary
15190   enable_fast_install=needless
15191 fi
15192
15193 striplib=
15194 old_striplib=
15195 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15196 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15197 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15198   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15199   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15200   echo "$as_me:$LINENO: result: yes" >&5
15201 echo "${ECHO_T}yes" >&6
15202 else
15203 # FIXME - insert some real tests, host_os isn't really good enough
15204   case $host_os in
15205    darwin*)
15206        if test -n "$STRIP" ; then
15207          striplib="$STRIP -x"
15208          echo "$as_me:$LINENO: result: yes" >&5
15209 echo "${ECHO_T}yes" >&6
15210        else
15211   echo "$as_me:$LINENO: result: no" >&5
15212 echo "${ECHO_T}no" >&6
15213 fi
15214        ;;
15215    *)
15216   echo "$as_me:$LINENO: result: no" >&5
15217 echo "${ECHO_T}no" >&6
15218     ;;
15219   esac
15220 fi
15221
15222
15223
15224 # The else clause should only fire when bootstrapping the
15225 # libtool distribution, otherwise you forgot to ship ltmain.sh
15226 # with your package, and you will get complaints that there are
15227 # no rules to generate ltmain.sh.
15228 if test -f "$ltmain"; then
15229   # See if we are running on zsh, and set the options which allow our commands through
15230   # without removal of \ escapes.
15231   if test -n "${ZSH_VERSION+set}" ; then
15232     setopt NO_GLOB_SUBST
15233   fi
15234   # Now quote all the things that may contain metacharacters while being
15235   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15236   # variables and quote the copies for generation of the libtool script.
15237   for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
15238     SED SHELL STRIP \
15239     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15240     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15241     deplibs_check_method reload_flag reload_cmds need_locks \
15242     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15243     lt_cv_sys_global_symbol_to_c_name_address \
15244     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15245     old_postinstall_cmds old_postuninstall_cmds \
15246     compiler_F77 \
15247     CC_F77 \
15248     LD_F77 \
15249     lt_prog_compiler_wl_F77 \
15250     lt_prog_compiler_pic_F77 \
15251     lt_prog_compiler_static_F77 \
15252     lt_prog_compiler_no_builtin_flag_F77 \
15253     export_dynamic_flag_spec_F77 \
15254     thread_safe_flag_spec_F77 \
15255     whole_archive_flag_spec_F77 \
15256     enable_shared_with_static_runtimes_F77 \
15257     old_archive_cmds_F77 \
15258     old_archive_from_new_cmds_F77 \
15259     predep_objects_F77 \
15260     postdep_objects_F77 \
15261     predeps_F77 \
15262     postdeps_F77 \
15263     compiler_lib_search_path_F77 \
15264     archive_cmds_F77 \
15265     archive_expsym_cmds_F77 \
15266     postinstall_cmds_F77 \
15267     postuninstall_cmds_F77 \
15268     old_archive_from_expsyms_cmds_F77 \
15269     allow_undefined_flag_F77 \
15270     no_undefined_flag_F77 \
15271     export_symbols_cmds_F77 \
15272     hardcode_libdir_flag_spec_F77 \
15273     hardcode_libdir_flag_spec_ld_F77 \
15274     hardcode_libdir_separator_F77 \
15275     hardcode_automatic_F77 \
15276     module_cmds_F77 \
15277     module_expsym_cmds_F77 \
15278     lt_cv_prog_compiler_c_o_F77 \
15279     exclude_expsyms_F77 \
15280     include_expsyms_F77; do
15281
15282     case $var in
15283     old_archive_cmds_F77 | \
15284     old_archive_from_new_cmds_F77 | \
15285     archive_cmds_F77 | \
15286     archive_expsym_cmds_F77 | \
15287     module_cmds_F77 | \
15288     module_expsym_cmds_F77 | \
15289     old_archive_from_expsyms_cmds_F77 | \
15290     export_symbols_cmds_F77 | \
15291     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15292     postinstall_cmds | postuninstall_cmds | \
15293     old_postinstall_cmds | old_postuninstall_cmds | \
15294     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15295       # Double-quote double-evaled strings.
15296       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15297       ;;
15298     *)
15299       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15300       ;;
15301     esac
15302   done
15303
15304   case $lt_echo in
15305   *'\$0 --fallback-echo"')
15306     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15307     ;;
15308   esac
15309
15310 cfgfile="$ofile"
15311
15312   cat <<__EOF__ >> "$cfgfile"
15313 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15314
15315 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15316
15317 # Shell to use when invoking shell scripts.
15318 SHELL=$lt_SHELL
15319
15320 # Whether or not to build shared libraries.
15321 build_libtool_libs=$enable_shared
15322
15323 # Whether or not to build static libraries.
15324 build_old_libs=$enable_static
15325
15326 # Whether or not to add -lc for building shared libraries.
15327 build_libtool_need_lc=$archive_cmds_need_lc_F77
15328
15329 # Whether or not to disallow shared libs when runtime libs are static
15330 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15331
15332 # Whether or not to optimize for fast installation.
15333 fast_install=$enable_fast_install
15334
15335 # The host system.
15336 host_alias=$host_alias
15337 host=$host
15338 host_os=$host_os
15339
15340 # The build system.
15341 build_alias=$build_alias
15342 build=$build
15343 build_os=$build_os
15344
15345 # An echo program that does not interpret backslashes.
15346 echo=$lt_echo
15347
15348 # The archiver.
15349 AR=$lt_AR
15350 AR_FLAGS=$lt_AR_FLAGS
15351
15352 # A C compiler.
15353 LTCC=$lt_LTCC
15354
15355 # A language-specific compiler.
15356 CC=$lt_compiler_F77
15357
15358 # Is the compiler the GNU C compiler?
15359 with_gcc=$GCC_F77
15360
15361 # An ERE matcher.
15362 EGREP=$lt_EGREP
15363
15364 # The linker used to build libraries.
15365 LD=$lt_LD_F77
15366
15367 # Whether we need hard or soft links.
15368 LN_S=$lt_LN_S
15369
15370 # A BSD-compatible nm program.
15371 NM=$lt_NM
15372
15373 # A symbol stripping program
15374 STRIP=$lt_STRIP
15375
15376 # Used to examine libraries when file_magic_cmd begins "file"
15377 MAGIC_CMD=$MAGIC_CMD
15378
15379 # Used on cygwin: DLL creation program.
15380 DLLTOOL="$DLLTOOL"
15381
15382 # Used on cygwin: object dumper.
15383 OBJDUMP="$OBJDUMP"
15384
15385 # Used on cygwin: assembler.
15386 AS=$lt_AS
15387
15388 # The name of the directory that contains temporary libtool files.
15389 objdir=$objdir
15390
15391 # How to create reloadable object files.
15392 reload_flag=$lt_reload_flag
15393 reload_cmds=$lt_reload_cmds
15394
15395 # How to pass a linker flag through the compiler.
15396 wl=$lt_lt_prog_compiler_wl_F77
15397
15398 # Object file suffix (normally "o").
15399 objext="$ac_objext"
15400
15401 # Old archive suffix (normally "a").
15402 libext="$libext"
15403
15404 # Shared library suffix (normally ".so").
15405 shrext_cmds='$shrext_cmds'
15406
15407 # Executable file suffix (normally "").
15408 exeext="$exeext"
15409
15410 # Additional compiler flags for building library objects.
15411 pic_flag=$lt_lt_prog_compiler_pic_F77
15412 pic_mode=$pic_mode
15413
15414 # What is the maximum length of a command?
15415 max_cmd_len=$lt_cv_sys_max_cmd_len
15416
15417 # Does compiler simultaneously support -c and -o options?
15418 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15419
15420 # Must we lock files when doing compilation ?
15421 need_locks=$lt_need_locks
15422
15423 # Do we need the lib prefix for modules?
15424 need_lib_prefix=$need_lib_prefix
15425
15426 # Do we need a version for libraries?
15427 need_version=$need_version
15428
15429 # Whether dlopen is supported.
15430 dlopen_support=$enable_dlopen
15431
15432 # Whether dlopen of programs is supported.
15433 dlopen_self=$enable_dlopen_self
15434
15435 # Whether dlopen of statically linked programs is supported.
15436 dlopen_self_static=$enable_dlopen_self_static
15437
15438 # Compiler flag to prevent dynamic linking.
15439 link_static_flag=$lt_lt_prog_compiler_static_F77
15440
15441 # Compiler flag to turn off builtin functions.
15442 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15443
15444 # Compiler flag to allow reflexive dlopens.
15445 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15446
15447 # Compiler flag to generate shared objects directly from archives.
15448 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15449
15450 # Compiler flag to generate thread-safe objects.
15451 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15452
15453 # Library versioning type.
15454 version_type=$version_type
15455
15456 # Format of library name prefix.
15457 libname_spec=$lt_libname_spec
15458
15459 # List of archive names.  First name is the real one, the rest are links.
15460 # The last name is the one that the linker finds with -lNAME.
15461 library_names_spec=$lt_library_names_spec
15462
15463 # The coded name of the library, if different from the real name.
15464 soname_spec=$lt_soname_spec
15465
15466 # Commands used to build and install an old-style archive.
15467 RANLIB=$lt_RANLIB
15468 old_archive_cmds=$lt_old_archive_cmds_F77
15469 old_postinstall_cmds=$lt_old_postinstall_cmds
15470 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15471
15472 # Create an old-style archive from a shared archive.
15473 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15474
15475 # Create a temporary old-style archive to link instead of a shared archive.
15476 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15477
15478 # Commands used to build and install a shared archive.
15479 archive_cmds=$lt_archive_cmds_F77
15480 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15481 postinstall_cmds=$lt_postinstall_cmds
15482 postuninstall_cmds=$lt_postuninstall_cmds
15483
15484 # Commands used to build a loadable module (assumed same as above if empty)
15485 module_cmds=$lt_module_cmds_F77
15486 module_expsym_cmds=$lt_module_expsym_cmds_F77
15487
15488 # Commands to strip libraries.
15489 old_striplib=$lt_old_striplib
15490 striplib=$lt_striplib
15491
15492 # Dependencies to place before the objects being linked to create a
15493 # shared library.
15494 predep_objects=$lt_predep_objects_F77
15495
15496 # Dependencies to place after the objects being linked to create a
15497 # shared library.
15498 postdep_objects=$lt_postdep_objects_F77
15499
15500 # Dependencies to place before the objects being linked to create a
15501 # shared library.
15502 predeps=$lt_predeps_F77
15503
15504 # Dependencies to place after the objects being linked to create a
15505 # shared library.
15506 postdeps=$lt_postdeps_F77
15507
15508 # The library search path used internally by the compiler when linking
15509 # a shared library.
15510 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15511
15512 # Method to check whether dependent libraries are shared objects.
15513 deplibs_check_method=$lt_deplibs_check_method
15514
15515 # Command to use when deplibs_check_method == file_magic.
15516 file_magic_cmd=$lt_file_magic_cmd
15517
15518 # Flag that allows shared libraries with undefined symbols to be built.
15519 allow_undefined_flag=$lt_allow_undefined_flag_F77
15520
15521 # Flag that forces no undefined symbols.
15522 no_undefined_flag=$lt_no_undefined_flag_F77
15523
15524 # Commands used to finish a libtool library installation in a directory.
15525 finish_cmds=$lt_finish_cmds
15526
15527 # Same as above, but a single script fragment to be evaled but not shown.
15528 finish_eval=$lt_finish_eval
15529
15530 # Take the output of nm and produce a listing of raw symbols and C names.
15531 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15532
15533 # Transform the output of nm in a proper C declaration
15534 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15535
15536 # Transform the output of nm in a C name address pair
15537 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15538
15539 # This is the shared library runtime path variable.
15540 runpath_var=$runpath_var
15541
15542 # This is the shared library path variable.
15543 shlibpath_var=$shlibpath_var
15544
15545 # Is shlibpath searched before the hard-coded library search path?
15546 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15547
15548 # How to hardcode a shared library path into an executable.
15549 hardcode_action=$hardcode_action_F77
15550
15551 # Whether we should hardcode library paths into libraries.
15552 hardcode_into_libs=$hardcode_into_libs
15553
15554 # Flag to hardcode \$libdir into a binary during linking.
15555 # This must work even if \$libdir does not exist.
15556 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15557
15558 # If ld is used when linking, flag to hardcode \$libdir into
15559 # a binary during linking. This must work even if \$libdir does
15560 # not exist.
15561 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15562
15563 # Whether we need a single -rpath flag with a separated argument.
15564 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15565
15566 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15567 # resulting binary.
15568 hardcode_direct=$hardcode_direct_F77
15569
15570 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15571 # resulting binary.
15572 hardcode_minus_L=$hardcode_minus_L_F77
15573
15574 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15575 # the resulting binary.
15576 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15577
15578 # Set to yes if building a shared library automatically hardcodes DIR into the library
15579 # and all subsequent libraries and executables linked against it.
15580 hardcode_automatic=$hardcode_automatic_F77
15581
15582 # Variables whose values should be saved in libtool wrapper scripts and
15583 # restored at relink time.
15584 variables_saved_for_relink="$variables_saved_for_relink"
15585
15586 # Whether libtool must link a program against all its dependency libraries.
15587 link_all_deplibs=$link_all_deplibs_F77
15588
15589 # Compile-time system search path for libraries
15590 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15591
15592 # Run-time system search path for libraries
15593 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15594
15595 # Fix the shell variable \$srcfile for the compiler.
15596 fix_srcfile_path="$fix_srcfile_path_F77"
15597
15598 # Set to yes if exported symbols are required.
15599 always_export_symbols=$always_export_symbols_F77
15600
15601 # The commands to list exported symbols.
15602 export_symbols_cmds=$lt_export_symbols_cmds_F77
15603
15604 # The commands to extract the exported symbol list from a shared archive.
15605 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15606
15607 # Symbols that should not be listed in the preloaded symbols.
15608 exclude_expsyms=$lt_exclude_expsyms_F77
15609
15610 # Symbols that must always be exported.
15611 include_expsyms=$lt_include_expsyms_F77
15612
15613 # ### END LIBTOOL TAG CONFIG: $tagname
15614
15615 __EOF__
15616
15617
15618 else
15619   # If there is no Makefile yet, we rely on a make rule to execute
15620   # `config.status --recheck' to rerun these tests and create the
15621   # libtool script then.
15622   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15623   if test -f "$ltmain_in"; then
15624     test -f Makefile && make "$ltmain"
15625   fi
15626 fi
15627
15628
15629 ac_ext=c
15630 ac_cpp='$CPP $CPPFLAGS'
15631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15634
15635 CC="$lt_save_CC"
15636
15637         else
15638           tagname=""
15639         fi
15640         ;;
15641
15642       GCJ)
15643         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15644
15645
15646
15647 # Source file extension for Java test sources.
15648 ac_ext=java
15649
15650 # Object file extension for compiled Java test sources.
15651 objext=o
15652 objext_GCJ=$objext
15653
15654 # Code to be used in simple compile tests
15655 lt_simple_compile_test_code="class foo {}\n"
15656
15657 # Code to be used in simple link tests
15658 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15659
15660 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15661
15662 # If no C compiler was specified, use CC.
15663 LTCC=${LTCC-"$CC"}
15664
15665 # Allow CC to be a program name with arguments.
15666 compiler=$CC
15667
15668
15669 # Allow CC to be a program name with arguments.
15670 lt_save_CC="$CC"
15671 CC=${GCJ-"gcj"}
15672 compiler=$CC
15673 compiler_GCJ=$CC
15674
15675 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15676 archive_cmds_need_lc_GCJ=no
15677
15678
15679 lt_prog_compiler_no_builtin_flag_GCJ=
15680
15681 if test "$GCC" = yes; then
15682   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15683
15684
15685 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15686 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15687 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15688   echo $ECHO_N "(cached) $ECHO_C" >&6
15689 else
15690   lt_cv_prog_compiler_rtti_exceptions=no
15691   ac_outfile=conftest.$ac_objext
15692    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15693    lt_compiler_flag="-fno-rtti -fno-exceptions"
15694    # Insert the option either (1) after the last *FLAGS variable, or
15695    # (2) before a word containing "conftest.", or (3) at the end.
15696    # Note that $ac_compile itself does not contain backslashes and begins
15697    # with a dollar sign (not a hyphen), so the echo should work correctly.
15698    # The option is referenced via a variable to avoid confusing sed.
15699    lt_compile=`echo "$ac_compile" | $SED \
15700    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15701    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15702    -e 's:$: $lt_compiler_flag:'`
15703    (eval echo "\"\$as_me:15703: $lt_compile\"" >&5)
15704    (eval "$lt_compile" 2>conftest.err)
15705    ac_status=$?
15706    cat conftest.err >&5
15707    echo "$as_me:15707: \$? = $ac_status" >&5
15708    if (exit $ac_status) && test -s "$ac_outfile"; then
15709      # The compiler can only warn and ignore the option if not recognized
15710      # So say no if there are warnings
15711      if test ! -s conftest.err; then
15712        lt_cv_prog_compiler_rtti_exceptions=yes
15713      fi
15714    fi
15715    $rm conftest*
15716
15717 fi
15718 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15719 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15720
15721 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15722     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15723 else
15724     :
15725 fi
15726
15727 fi
15728
15729 lt_prog_compiler_wl_GCJ=
15730 lt_prog_compiler_pic_GCJ=
15731 lt_prog_compiler_static_GCJ=
15732
15733 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15734 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15735
15736   if test "$GCC" = yes; then
15737     lt_prog_compiler_wl_GCJ='-Wl,'
15738     lt_prog_compiler_static_GCJ='-static'
15739
15740     case $host_os in
15741       aix*)
15742       # All AIX code is PIC.
15743       if test "$host_cpu" = ia64; then
15744         # AIX 5 now supports IA64 processor
15745         lt_prog_compiler_static_GCJ='-Bstatic'
15746       fi
15747       ;;
15748
15749     amigaos*)
15750       # FIXME: we need at least 68020 code to build shared libraries, but
15751       # adding the `-m68020' flag to GCC prevents building anything better,
15752       # like `-m68040'.
15753       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15754       ;;
15755
15756     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15757       # PIC is the default for these OSes.
15758       ;;
15759
15760     mingw* | pw32* | os2*)
15761       # This hack is so that the source file can tell whether it is being
15762       # built for inclusion in a dll (and should export symbols for example).
15763       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15764       ;;
15765
15766     darwin* | rhapsody*)
15767       # PIC is the default on this platform
15768       # Common symbols not allowed in MH_DYLIB files
15769       lt_prog_compiler_pic_GCJ='-fno-common'
15770       ;;
15771
15772     msdosdjgpp*)
15773       # Just because we use GCC doesn't mean we suddenly get shared libraries
15774       # on systems that don't support them.
15775       lt_prog_compiler_can_build_shared_GCJ=no
15776       enable_shared=no
15777       ;;
15778
15779     sysv4*MP*)
15780       if test -d /usr/nec; then
15781         lt_prog_compiler_pic_GCJ=-Kconform_pic
15782       fi
15783       ;;
15784
15785     hpux*)
15786       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15787       # not for PA HP-UX.
15788       case "$host_cpu" in
15789       hppa*64*|ia64*)
15790         # +Z the default
15791         ;;
15792       *)
15793         lt_prog_compiler_pic_GCJ='-fPIC'
15794         ;;
15795       esac
15796       ;;
15797
15798     *)
15799       lt_prog_compiler_pic_GCJ='-fPIC'
15800       ;;
15801     esac
15802   else
15803     # PORTME Check for flag to pass linker flags through the system compiler.
15804     case $host_os in
15805     aix*)
15806       lt_prog_compiler_wl_GCJ='-Wl,'
15807       if test "$host_cpu" = ia64; then
15808         # AIX 5 now supports IA64 processor
15809         lt_prog_compiler_static_GCJ='-Bstatic'
15810       else
15811         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15812       fi
15813       ;;
15814       darwin*)
15815         # PIC is the default on this platform
15816         # Common symbols not allowed in MH_DYLIB files
15817        case "$cc_basename" in
15818          xlc*)
15819          lt_prog_compiler_pic_GCJ='-qnocommon'
15820          lt_prog_compiler_wl_GCJ='-Wl,'
15821          ;;
15822        esac
15823        ;;
15824
15825     mingw* | pw32* | os2*)
15826       # This hack is so that the source file can tell whether it is being
15827       # built for inclusion in a dll (and should export symbols for example).
15828       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15829       ;;
15830
15831     hpux9* | hpux10* | hpux11*)
15832       lt_prog_compiler_wl_GCJ='-Wl,'
15833       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15834       # not for PA HP-UX.
15835       case "$host_cpu" in
15836       hppa*64*|ia64*)
15837         # +Z the default
15838         ;;
15839       *)
15840         lt_prog_compiler_pic_GCJ='+Z'
15841         ;;
15842       esac
15843       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15844       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15845       ;;
15846
15847     irix5* | irix6* | nonstopux*)
15848       lt_prog_compiler_wl_GCJ='-Wl,'
15849       # PIC (with -KPIC) is the default.
15850       lt_prog_compiler_static_GCJ='-non_shared'
15851       ;;
15852
15853     newsos6)
15854       lt_prog_compiler_pic_GCJ='-KPIC'
15855       lt_prog_compiler_static_GCJ='-Bstatic'
15856       ;;
15857
15858     linux*)
15859       case $cc_basename in
15860       icc* | ecc*)
15861         lt_prog_compiler_wl_GCJ='-Wl,'
15862         lt_prog_compiler_pic_GCJ='-KPIC'
15863         lt_prog_compiler_static_GCJ='-static'
15864         ;;
15865       pgcc | pgf77 | pgf90)
15866         # Portland Group compilers (*not* the Pentium gcc compiler,
15867         # which looks to be a dead project)
15868         lt_prog_compiler_wl_GCJ='-Wl,'
15869         lt_prog_compiler_pic_GCJ='-fpic'
15870         lt_prog_compiler_static_GCJ='-static'
15871         ;;
15872       ccc*)
15873         lt_prog_compiler_wl_GCJ='-Wl,'
15874         # All Alpha code is PIC.
15875         lt_prog_compiler_static_GCJ='-non_shared'
15876         ;;
15877       esac
15878       ;;
15879
15880     osf3* | osf4* | osf5*)
15881       lt_prog_compiler_wl_GCJ='-Wl,'
15882       # All OSF/1 code is PIC.
15883       lt_prog_compiler_static_GCJ='-non_shared'
15884       ;;
15885
15886     sco3.2v5*)
15887       lt_prog_compiler_pic_GCJ='-Kpic'
15888       lt_prog_compiler_static_GCJ='-dn'
15889       ;;
15890
15891     solaris*)
15892       lt_prog_compiler_wl_GCJ='-Wl,'
15893       lt_prog_compiler_pic_GCJ='-KPIC'
15894       lt_prog_compiler_static_GCJ='-Bstatic'
15895       ;;
15896
15897     sunos4*)
15898       lt_prog_compiler_wl_GCJ='-Qoption ld '
15899       lt_prog_compiler_pic_GCJ='-PIC'
15900       lt_prog_compiler_static_GCJ='-Bstatic'
15901       ;;
15902
15903     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15904       lt_prog_compiler_wl_GCJ='-Wl,'
15905       lt_prog_compiler_pic_GCJ='-KPIC'
15906       lt_prog_compiler_static_GCJ='-Bstatic'
15907       ;;
15908
15909     sysv4*MP*)
15910       if test -d /usr/nec ;then
15911         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15912         lt_prog_compiler_static_GCJ='-Bstatic'
15913       fi
15914       ;;
15915
15916     unicos*)
15917       lt_prog_compiler_wl_GCJ='-Wl,'
15918       lt_prog_compiler_can_build_shared_GCJ=no
15919       ;;
15920
15921     uts4*)
15922       lt_prog_compiler_pic_GCJ='-pic'
15923       lt_prog_compiler_static_GCJ='-Bstatic'
15924       ;;
15925
15926     *)
15927       lt_prog_compiler_can_build_shared_GCJ=no
15928       ;;
15929     esac
15930   fi
15931
15932 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15933 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15934
15935 #
15936 # Check to make sure the PIC flag actually works.
15937 #
15938 if test -n "$lt_prog_compiler_pic_GCJ"; then
15939
15940 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15941 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15942 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15943   echo $ECHO_N "(cached) $ECHO_C" >&6
15944 else
15945   lt_prog_compiler_pic_works_GCJ=no
15946   ac_outfile=conftest.$ac_objext
15947    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15948    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15949    # Insert the option either (1) after the last *FLAGS variable, or
15950    # (2) before a word containing "conftest.", or (3) at the end.
15951    # Note that $ac_compile itself does not contain backslashes and begins
15952    # with a dollar sign (not a hyphen), so the echo should work correctly.
15953    # The option is referenced via a variable to avoid confusing sed.
15954    lt_compile=`echo "$ac_compile" | $SED \
15955    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15956    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15957    -e 's:$: $lt_compiler_flag:'`
15958    (eval echo "\"\$as_me:15958: $lt_compile\"" >&5)
15959    (eval "$lt_compile" 2>conftest.err)
15960    ac_status=$?
15961    cat conftest.err >&5
15962    echo "$as_me:15962: \$? = $ac_status" >&5
15963    if (exit $ac_status) && test -s "$ac_outfile"; then
15964      # The compiler can only warn and ignore the option if not recognized
15965      # So say no if there are warnings
15966      if test ! -s conftest.err; then
15967        lt_prog_compiler_pic_works_GCJ=yes
15968      fi
15969    fi
15970    $rm conftest*
15971
15972 fi
15973 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15974 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15975
15976 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15977     case $lt_prog_compiler_pic_GCJ in
15978      "" | " "*) ;;
15979      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15980      esac
15981 else
15982     lt_prog_compiler_pic_GCJ=
15983      lt_prog_compiler_can_build_shared_GCJ=no
15984 fi
15985
15986 fi
15987 case "$host_os" in
15988   # For platforms which do not support PIC, -DPIC is meaningless:
15989   *djgpp*)
15990     lt_prog_compiler_pic_GCJ=
15991     ;;
15992   *)
15993     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15994     ;;
15995 esac
15996
15997 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15998 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15999 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16000   echo $ECHO_N "(cached) $ECHO_C" >&6
16001 else
16002   lt_cv_prog_compiler_c_o_GCJ=no
16003    $rm -r conftest 2>/dev/null
16004    mkdir conftest
16005    cd conftest
16006    mkdir out
16007    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16008
16009    lt_compiler_flag="-o out/conftest2.$ac_objext"
16010    # Insert the option either (1) after the last *FLAGS variable, or
16011    # (2) before a word containing "conftest.", or (3) at the end.
16012    # Note that $ac_compile itself does not contain backslashes and begins
16013    # with a dollar sign (not a hyphen), so the echo should work correctly.
16014    lt_compile=`echo "$ac_compile" | $SED \
16015    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16016    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16017    -e 's:$: $lt_compiler_flag:'`
16018    (eval echo "\"\$as_me:16018: $lt_compile\"" >&5)
16019    (eval "$lt_compile" 2>out/conftest.err)
16020    ac_status=$?
16021    cat out/conftest.err >&5
16022    echo "$as_me:16022: \$? = $ac_status" >&5
16023    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16024    then
16025      # The compiler can only warn and ignore the option if not recognized
16026      # So say no if there are warnings
16027      if test ! -s out/conftest.err; then
16028        lt_cv_prog_compiler_c_o_GCJ=yes
16029      fi
16030    fi
16031    chmod u+w .
16032    $rm conftest*
16033    # SGI C++ compiler will create directory out/ii_files/ for
16034    # template instantiation
16035    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16036    $rm out/* && rmdir out
16037    cd ..
16038    rmdir conftest
16039    $rm conftest*
16040
16041 fi
16042 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16043 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16044
16045
16046 hard_links="nottested"
16047 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16048   # do not overwrite the value of need_locks provided by the user
16049   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16050 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16051   hard_links=yes
16052   $rm conftest*
16053   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16054   touch conftest.a
16055   ln conftest.a conftest.b 2>&5 || hard_links=no
16056   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16057   echo "$as_me:$LINENO: result: $hard_links" >&5
16058 echo "${ECHO_T}$hard_links" >&6
16059   if test "$hard_links" = no; then
16060     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16061 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16062     need_locks=warn
16063   fi
16064 else
16065   need_locks=no
16066 fi
16067
16068 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16069 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16070
16071   runpath_var=
16072   allow_undefined_flag_GCJ=
16073   enable_shared_with_static_runtimes_GCJ=no
16074   archive_cmds_GCJ=
16075   archive_expsym_cmds_GCJ=
16076   old_archive_From_new_cmds_GCJ=
16077   old_archive_from_expsyms_cmds_GCJ=
16078   export_dynamic_flag_spec_GCJ=
16079   whole_archive_flag_spec_GCJ=
16080   thread_safe_flag_spec_GCJ=
16081   hardcode_libdir_flag_spec_GCJ=
16082   hardcode_libdir_flag_spec_ld_GCJ=
16083   hardcode_libdir_separator_GCJ=
16084   hardcode_direct_GCJ=no
16085   hardcode_minus_L_GCJ=no
16086   hardcode_shlibpath_var_GCJ=unsupported
16087   link_all_deplibs_GCJ=unknown
16088   hardcode_automatic_GCJ=no
16089   module_cmds_GCJ=
16090   module_expsym_cmds_GCJ=
16091   always_export_symbols_GCJ=no
16092   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16093   # include_expsyms should be a list of space-separated symbols to be *always*
16094   # included in the symbol list
16095   include_expsyms_GCJ=
16096   # exclude_expsyms can be an extended regexp of symbols to exclude
16097   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16098   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16099   # as well as any symbol that contains `d'.
16100   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16101   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16102   # platforms (ab)use it in PIC code, but their linkers get confused if
16103   # the symbol is explicitly referenced.  Since portable code cannot
16104   # rely on this symbol name, it's probably fine to never include it in
16105   # preloaded symbol tables.
16106   extract_expsyms_cmds=
16107
16108   case $host_os in
16109   cygwin* | mingw* | pw32*)
16110     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16111     # When not using gcc, we currently assume that we are using
16112     # Microsoft Visual C++.
16113     if test "$GCC" != yes; then
16114       with_gnu_ld=no
16115     fi
16116     ;;
16117   openbsd*)
16118     with_gnu_ld=no
16119     ;;
16120   esac
16121
16122   ld_shlibs_GCJ=yes
16123   if test "$with_gnu_ld" = yes; then
16124     # If archive_cmds runs LD, not CC, wlarc should be empty
16125     wlarc='${wl}'
16126
16127     # See if GNU ld supports shared libraries.
16128     case $host_os in
16129     aix3* | aix4* | aix5*)
16130       # On AIX/PPC, the GNU linker is very broken
16131       if test "$host_cpu" != ia64; then
16132         ld_shlibs_GCJ=no
16133         cat <<EOF 1>&2
16134
16135 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16136 *** to be unable to reliably create shared libraries on AIX.
16137 *** Therefore, libtool is disabling shared libraries support.  If you
16138 *** really care for shared libraries, you may want to modify your PATH
16139 *** so that a non-GNU linker is found, and then restart.
16140
16141 EOF
16142       fi
16143       ;;
16144
16145     amigaos*)
16146       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)'
16147       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16148       hardcode_minus_L_GCJ=yes
16149
16150       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16151       # that the semantics of dynamic libraries on AmigaOS, at least up
16152       # to version 4, is to share data among multiple programs linked
16153       # with the same dynamic library.  Since this doesn't match the
16154       # behavior of shared libraries on other platforms, we can't use
16155       # them.
16156       ld_shlibs_GCJ=no
16157       ;;
16158
16159     beos*)
16160       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16161         allow_undefined_flag_GCJ=unsupported
16162         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16163         # support --undefined.  This deserves some investigation.  FIXME
16164         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16165       else
16166         ld_shlibs_GCJ=no
16167       fi
16168       ;;
16169
16170     cygwin* | mingw* | pw32*)
16171       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16172       # as there is no search path for DLLs.
16173       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16174       allow_undefined_flag_GCJ=unsupported
16175       always_export_symbols_GCJ=no
16176       enable_shared_with_static_runtimes_GCJ=yes
16177       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16178
16179       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16180         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16181         # If the export-symbols file already is a .def file (1st line
16182         # is EXPORTS), use it as is; otherwise, prepend...
16183         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16184           cp $export_symbols $output_objdir/$soname.def;
16185         else
16186           echo EXPORTS > $output_objdir/$soname.def;
16187           cat $export_symbols >> $output_objdir/$soname.def;
16188         fi~
16189         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16190       else
16191         ld_shlibs_GCJ=no
16192       fi
16193       ;;
16194
16195     netbsd*)
16196       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16197         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16198         wlarc=
16199       else
16200         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16201         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16202       fi
16203       ;;
16204
16205     solaris* | sysv5*)
16206       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16207         ld_shlibs_GCJ=no
16208         cat <<EOF 1>&2
16209
16210 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16211 *** create shared libraries on Solaris systems.  Therefore, libtool
16212 *** is disabling shared libraries support.  We urge you to upgrade GNU
16213 *** binutils to release 2.9.1 or newer.  Another option is to modify
16214 *** your PATH or compiler configuration so that the native linker is
16215 *** used, and then restart.
16216
16217 EOF
16218       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16219         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16220         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16221       else
16222         ld_shlibs_GCJ=no
16223       fi
16224       ;;
16225
16226     sunos4*)
16227       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16228       wlarc=
16229       hardcode_direct_GCJ=yes
16230       hardcode_shlibpath_var_GCJ=no
16231       ;;
16232
16233   linux*)
16234     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16235       tmp_addflag=
16236       case $CC,$host_cpu in
16237       pgf77* | pgf90* )                 # Portland Group f77 and f90 compilers
16238         tmp_addflag=' -fpic' ;;
16239       ecc*,ia64* | icc*,ia64*)          # Intel C compiler on ia64
16240         tmp_addflag=' -i_dynamic' ;;
16241       efc*,ia64* | ifort*,ia64*)        # Intel Fortran compiler on ia64
16242         tmp_addflag=' -i_dynamic -nofor_main' ;;
16243       ifc* | ifort*)                    # Intel Fortran compiler
16244         tmp_addflag=' -nofor_main' ;;
16245       esac
16246       archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16247       supports_anon_versioning=no
16248       case `$LD -v 2>/dev/null` in
16249         *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16250         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16251         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16252         *\ 2.11.*) ;; # other 2.11 versions
16253         *) supports_anon_versioning=yes ;;
16254       esac
16255       if test $supports_anon_versioning = yes; then
16256         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16257 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16258 $echo "local: *; };" >> $output_objdir/$libname.ver~
16259         $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16260       else
16261         archive_expsym_cmds_GCJ=$archive_cmds_GCJ
16262       fi
16263     else
16264       ld_shlibs_GCJ=no
16265     fi
16266     ;;
16267
16268     *)
16269       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16270         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16271         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16272       else
16273         ld_shlibs_GCJ=no
16274       fi
16275       ;;
16276     esac
16277
16278     if test "$ld_shlibs_GCJ" = yes; then
16279       runpath_var=LD_RUN_PATH
16280       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16281       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16282       # ancient GNU ld didn't support --whole-archive et. al.
16283       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16284         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16285       else
16286         whole_archive_flag_spec_GCJ=
16287       fi
16288     fi
16289   else
16290     # PORTME fill in a description of your system's linker (not GNU ld)
16291     case $host_os in
16292     aix3*)
16293       allow_undefined_flag_GCJ=unsupported
16294       always_export_symbols_GCJ=yes
16295       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'
16296       # Note: this linker hardcodes the directories in LIBPATH if there
16297       # are no directories specified by -L.
16298       hardcode_minus_L_GCJ=yes
16299       if test "$GCC" = yes && test -z "$link_static_flag"; then
16300         # Neither direct hardcoding nor static linking is supported with a
16301         # broken collect2.
16302         hardcode_direct_GCJ=unsupported
16303       fi
16304       ;;
16305
16306     aix4* | aix5*)
16307       if test "$host_cpu" = ia64; then
16308         # On IA64, the linker does run time linking by default, so we don't
16309         # have to do anything special.
16310         aix_use_runtimelinking=no
16311         exp_sym_flag='-Bexport'
16312         no_entry_flag=""
16313       else
16314         # If we're using GNU nm, then we don't want the "-C" option.
16315         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16316         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16317           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'
16318         else
16319           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'
16320         fi
16321         aix_use_runtimelinking=no
16322
16323         # Test if we are trying to use run time linking or normal
16324         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16325         # need to do runtime linking.
16326         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16327           for ld_flag in $LDFLAGS; do
16328           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16329             aix_use_runtimelinking=yes
16330             break
16331           fi
16332           done
16333         esac
16334
16335         exp_sym_flag='-bexport'
16336         no_entry_flag='-bnoentry'
16337       fi
16338
16339       # When large executables or shared objects are built, AIX ld can
16340       # have problems creating the table of contents.  If linking a library
16341       # or program results in "error TOC overflow" add -mminimal-toc to
16342       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16343       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16344
16345       archive_cmds_GCJ=''
16346       hardcode_direct_GCJ=yes
16347       hardcode_libdir_separator_GCJ=':'
16348       link_all_deplibs_GCJ=yes
16349
16350       if test "$GCC" = yes; then
16351         case $host_os in aix4.[012]|aix4.[012].*)
16352         # We only want to do this on AIX 4.2 and lower, the check
16353         # below for broken collect2 doesn't work under 4.3+
16354           collect2name=`${CC} -print-prog-name=collect2`
16355           if test -f "$collect2name" && \
16356            strings "$collect2name" | grep resolve_lib_name >/dev/null
16357           then
16358           # We have reworked collect2
16359           hardcode_direct_GCJ=yes
16360           else
16361           # We have old collect2
16362           hardcode_direct_GCJ=unsupported
16363           # It fails to find uninstalled libraries when the uninstalled
16364           # path is not listed in the libpath.  Setting hardcode_minus_L
16365           # to unsupported forces relinking
16366           hardcode_minus_L_GCJ=yes
16367           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16368           hardcode_libdir_separator_GCJ=
16369           fi
16370         esac
16371         shared_flag='-shared'
16372         if test "$aix_use_runtimelinking" = yes; then
16373           shared_flag="$shared_flag "'${wl}-G'
16374         fi
16375       else
16376         # not using gcc
16377         if test "$host_cpu" = ia64; then
16378         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16379         # chokes on -Wl,-G. The following line is correct:
16380           shared_flag='-G'
16381         else
16382         if test "$aix_use_runtimelinking" = yes; then
16383             shared_flag='${wl}-G'
16384           else
16385             shared_flag='${wl}-bM:SRE'
16386         fi
16387         fi
16388       fi
16389
16390       # It seems that -bexpall does not export symbols beginning with
16391       # underscore (_), so it is better to generate a list of symbols to export.
16392       always_export_symbols_GCJ=yes
16393       if test "$aix_use_runtimelinking" = yes; then
16394         # Warning - without using the other runtime loading flags (-brtl),
16395         # -berok will link without error, but may produce a broken library.
16396         allow_undefined_flag_GCJ='-berok'
16397        # Determine the default libpath from the value encoded in an empty executable.
16398        cat >conftest.$ac_ext <<_ACEOF
16399 /* confdefs.h.  */
16400 _ACEOF
16401 cat confdefs.h >>conftest.$ac_ext
16402 cat >>conftest.$ac_ext <<_ACEOF
16403 /* end confdefs.h.  */
16404
16405 int
16406 main ()
16407 {
16408
16409   ;
16410   return 0;
16411 }
16412 _ACEOF
16413 rm -f conftest.$ac_objext conftest$ac_exeext
16414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16415   (eval $ac_link) 2>conftest.er1
16416   ac_status=$?
16417   grep -v '^ *+' conftest.er1 >conftest.err
16418   rm -f conftest.er1
16419   cat conftest.err >&5
16420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421   (exit $ac_status); } &&
16422          { ac_try='test -z "$ac_c_werror_flag"
16423                          || test ! -s conftest.err'
16424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16425   (eval $ac_try) 2>&5
16426   ac_status=$?
16427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428   (exit $ac_status); }; } &&
16429          { ac_try='test -s conftest$ac_exeext'
16430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16431   (eval $ac_try) 2>&5
16432   ac_status=$?
16433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434   (exit $ac_status); }; }; then
16435
16436 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16437 }'`
16438 # Check for a 64-bit object if we didn't find anything.
16439 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; }
16440 }'`; fi
16441 else
16442   echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.$ac_ext >&5
16444
16445 fi
16446 rm -f conftest.err conftest.$ac_objext \
16447       conftest$ac_exeext conftest.$ac_ext
16448 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16449
16450        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16451         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"
16452        else
16453         if test "$host_cpu" = ia64; then
16454           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16455           allow_undefined_flag_GCJ="-z nodefs"
16456           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"
16457         else
16458          # Determine the default libpath from the value encoded in an empty executable.
16459          cat >conftest.$ac_ext <<_ACEOF
16460 /* confdefs.h.  */
16461 _ACEOF
16462 cat confdefs.h >>conftest.$ac_ext
16463 cat >>conftest.$ac_ext <<_ACEOF
16464 /* end confdefs.h.  */
16465
16466 int
16467 main ()
16468 {
16469
16470   ;
16471   return 0;
16472 }
16473 _ACEOF
16474 rm -f conftest.$ac_objext conftest$ac_exeext
16475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16476   (eval $ac_link) 2>conftest.er1
16477   ac_status=$?
16478   grep -v '^ *+' conftest.er1 >conftest.err
16479   rm -f conftest.er1
16480   cat conftest.err >&5
16481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482   (exit $ac_status); } &&
16483          { ac_try='test -z "$ac_c_werror_flag"
16484                          || test ! -s conftest.err'
16485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16486   (eval $ac_try) 2>&5
16487   ac_status=$?
16488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489   (exit $ac_status); }; } &&
16490          { ac_try='test -s conftest$ac_exeext'
16491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16492   (eval $ac_try) 2>&5
16493   ac_status=$?
16494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495   (exit $ac_status); }; }; then
16496
16497 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16498 }'`
16499 # Check for a 64-bit object if we didn't find anything.
16500 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; }
16501 }'`; fi
16502 else
16503   echo "$as_me: failed program was:" >&5
16504 sed 's/^/| /' conftest.$ac_ext >&5
16505
16506 fi
16507 rm -f conftest.err conftest.$ac_objext \
16508       conftest$ac_exeext conftest.$ac_ext
16509 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16510
16511          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16512           # Warning - without using the other run time loading flags,
16513           # -berok will link without error, but may produce a broken library.
16514           no_undefined_flag_GCJ=' ${wl}-bernotok'
16515           allow_undefined_flag_GCJ=' ${wl}-berok'
16516           # -bexpall does not export symbols beginning with underscore (_)
16517           always_export_symbols_GCJ=yes
16518           # Exported symbols can be pulled into shared objects from archives
16519           whole_archive_flag_spec_GCJ=' '
16520           archive_cmds_need_lc_GCJ=yes
16521           # This is similar to how AIX traditionally builds it's shared libraries.
16522           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'
16523         fi
16524       fi
16525       ;;
16526
16527     amigaos*)
16528       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)'
16529       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16530       hardcode_minus_L_GCJ=yes
16531       # see comment about different semantics on the GNU ld section
16532       ld_shlibs_GCJ=no
16533       ;;
16534
16535     bsdi[45]*)
16536       export_dynamic_flag_spec_GCJ=-rdynamic
16537       ;;
16538
16539     cygwin* | mingw* | pw32*)
16540       # When not using gcc, we currently assume that we are using
16541       # Microsoft Visual C++.
16542       # hardcode_libdir_flag_spec is actually meaningless, as there is
16543       # no search path for DLLs.
16544       hardcode_libdir_flag_spec_GCJ=' '
16545       allow_undefined_flag_GCJ=unsupported
16546       # Tell ltmain to make .lib files, not .a files.
16547       libext=lib
16548       # Tell ltmain to make .dll files, not .so files.
16549       shrext_cmds=".dll"
16550       # FIXME: Setting linknames here is a bad hack.
16551       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16552       # The linker will automatically build a .lib file if we build a DLL.
16553       old_archive_From_new_cmds_GCJ='true'
16554       # FIXME: Should let the user specify the lib program.
16555       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16556       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16557       enable_shared_with_static_runtimes_GCJ=yes
16558       ;;
16559
16560     darwin* | rhapsody*)
16561       case "$host_os" in
16562         rhapsody* | darwin1.[012])
16563          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16564          ;;
16565        *) # Darwin 1.3 on
16566          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16567            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16568          else
16569            case ${MACOSX_DEPLOYMENT_TARGET} in
16570              10.[012])
16571                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16572                ;;
16573              10.*)
16574                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16575                ;;
16576            esac
16577          fi
16578          ;;
16579       esac
16580       archive_cmds_need_lc_GCJ=no
16581       hardcode_direct_GCJ=no
16582       hardcode_automatic_GCJ=yes
16583       hardcode_shlibpath_var_GCJ=unsupported
16584       whole_archive_flag_spec_GCJ=''
16585       link_all_deplibs_GCJ=yes
16586     if test "$GCC" = yes ; then
16587         output_verbose_link_cmd='echo'
16588         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16589       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16590       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16591       archive_expsym_cmds_GCJ='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}'
16592       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16593     else
16594       case "$cc_basename" in
16595         xlc*)
16596          output_verbose_link_cmd='echo'
16597          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16598          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16599           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16600          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16601           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16602           ;;
16603        *)
16604          ld_shlibs_GCJ=no
16605           ;;
16606       esac
16607     fi
16608       ;;
16609
16610     dgux*)
16611       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16612       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16613       hardcode_shlibpath_var_GCJ=no
16614       ;;
16615
16616     freebsd1*)
16617       ld_shlibs_GCJ=no
16618       ;;
16619
16620     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16621     # support.  Future versions do this automatically, but an explicit c++rt0.o
16622     # does not break anything, and helps significantly (at the cost of a little
16623     # extra space).
16624     freebsd2.2*)
16625       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16626       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16627       hardcode_direct_GCJ=yes
16628       hardcode_shlibpath_var_GCJ=no
16629       ;;
16630
16631     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16632     freebsd2*)
16633       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16634       hardcode_direct_GCJ=yes
16635       hardcode_minus_L_GCJ=yes
16636       hardcode_shlibpath_var_GCJ=no
16637       ;;
16638
16639     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16640     freebsd* | kfreebsd*-gnu | dragonfly*)
16641       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16642       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16643       hardcode_direct_GCJ=yes
16644       hardcode_shlibpath_var_GCJ=no
16645       ;;
16646
16647     hpux9*)
16648       if test "$GCC" = yes; then
16649         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'
16650       else
16651         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'
16652       fi
16653       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16654       hardcode_libdir_separator_GCJ=:
16655       hardcode_direct_GCJ=yes
16656
16657       # hardcode_minus_L: Not really in the search PATH,
16658       # but as the default location of the library.
16659       hardcode_minus_L_GCJ=yes
16660       export_dynamic_flag_spec_GCJ='${wl}-E'
16661       ;;
16662
16663     hpux10* | hpux11*)
16664       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16665         case "$host_cpu" in
16666         hppa*64*|ia64*)
16667           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16668           ;;
16669         *)
16670           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16671           ;;
16672         esac
16673       else
16674         case "$host_cpu" in
16675         hppa*64*|ia64*)
16676           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16677           ;;
16678         *)
16679           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16680           ;;
16681         esac
16682       fi
16683       if test "$with_gnu_ld" = no; then
16684         case "$host_cpu" in
16685         hppa*64*)
16686           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16687           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16688           hardcode_libdir_separator_GCJ=:
16689           hardcode_direct_GCJ=no
16690           hardcode_shlibpath_var_GCJ=no
16691           ;;
16692         ia64*)
16693           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16694           hardcode_direct_GCJ=no
16695           hardcode_shlibpath_var_GCJ=no
16696
16697           # hardcode_minus_L: Not really in the search PATH,
16698           # but as the default location of the library.
16699           hardcode_minus_L_GCJ=yes
16700           ;;
16701         *)
16702           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16703           hardcode_libdir_separator_GCJ=:
16704           hardcode_direct_GCJ=yes
16705           export_dynamic_flag_spec_GCJ='${wl}-E'
16706
16707           # hardcode_minus_L: Not really in the search PATH,
16708           # but as the default location of the library.
16709           hardcode_minus_L_GCJ=yes
16710           ;;
16711         esac
16712       fi
16713       ;;
16714
16715     irix5* | irix6* | nonstopux*)
16716       if test "$GCC" = yes; then
16717         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'
16718       else
16719         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'
16720         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16721       fi
16722       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16723       hardcode_libdir_separator_GCJ=:
16724       link_all_deplibs_GCJ=yes
16725       ;;
16726
16727     netbsd*)
16728       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16729         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16730       else
16731         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16732       fi
16733       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16734       hardcode_direct_GCJ=yes
16735       hardcode_shlibpath_var_GCJ=no
16736       ;;
16737
16738     newsos6)
16739       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16740       hardcode_direct_GCJ=yes
16741       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16742       hardcode_libdir_separator_GCJ=:
16743       hardcode_shlibpath_var_GCJ=no
16744       ;;
16745
16746     openbsd*)
16747       hardcode_direct_GCJ=yes
16748       hardcode_shlibpath_var_GCJ=no
16749       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16750         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16751         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16752         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16753         export_dynamic_flag_spec_GCJ='${wl}-E'
16754       else
16755        case $host_os in
16756          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16757            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16758            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16759            ;;
16760          *)
16761            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16762            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16763            ;;
16764        esac
16765       fi
16766       ;;
16767
16768     os2*)
16769       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16770       hardcode_minus_L_GCJ=yes
16771       allow_undefined_flag_GCJ=unsupported
16772       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'
16773       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16774       ;;
16775
16776     osf3*)
16777       if test "$GCC" = yes; then
16778         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16779         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'
16780       else
16781         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16782         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'
16783       fi
16784       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16785       hardcode_libdir_separator_GCJ=:
16786       ;;
16787
16788     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16789       if test "$GCC" = yes; then
16790         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16791         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'
16792         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16793       else
16794         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16795         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'
16796         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~
16797         $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'
16798
16799         # Both c and cxx compiler support -rpath directly
16800         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16801       fi
16802       hardcode_libdir_separator_GCJ=:
16803       ;;
16804
16805     sco3.2v5*)
16806       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16807       hardcode_shlibpath_var_GCJ=no
16808       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16809       runpath_var=LD_RUN_PATH
16810       hardcode_runpath_var=yes
16811       ;;
16812
16813     solaris*)
16814       no_undefined_flag_GCJ=' -z text'
16815       if test "$GCC" = yes; then
16816         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16817         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16818           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16819       else
16820         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16821         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16822         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16823       fi
16824       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16825       hardcode_shlibpath_var_GCJ=no
16826       case $host_os in
16827       solaris2.[0-5] | solaris2.[0-5].*) ;;
16828       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16829         whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
16830       esac
16831       link_all_deplibs_GCJ=yes
16832       ;;
16833
16834     sunos4*)
16835       if test "x$host_vendor" = xsequent; then
16836         # Use $CC to link under sequent, because it throws in some extra .o
16837         # files that make .init and .fini sections work.
16838         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16839       else
16840         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16841       fi
16842       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16843       hardcode_direct_GCJ=yes
16844       hardcode_minus_L_GCJ=yes
16845       hardcode_shlibpath_var_GCJ=no
16846       ;;
16847
16848     sysv4)
16849       case $host_vendor in
16850         sni)
16851           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16852           hardcode_direct_GCJ=yes # is this really true???
16853         ;;
16854         siemens)
16855           ## LD is ld it makes a PLAMLIB
16856           ## CC just makes a GrossModule.
16857           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16858           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16859           hardcode_direct_GCJ=no
16860         ;;
16861         motorola)
16862           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16863           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16864         ;;
16865       esac
16866       runpath_var='LD_RUN_PATH'
16867       hardcode_shlibpath_var_GCJ=no
16868       ;;
16869
16870     sysv4.3*)
16871       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16872       hardcode_shlibpath_var_GCJ=no
16873       export_dynamic_flag_spec_GCJ='-Bexport'
16874       ;;
16875
16876     sysv4*MP*)
16877       if test -d /usr/nec; then
16878         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16879         hardcode_shlibpath_var_GCJ=no
16880         runpath_var=LD_RUN_PATH
16881         hardcode_runpath_var=yes
16882         ld_shlibs_GCJ=yes
16883       fi
16884       ;;
16885
16886     sysv4.2uw2*)
16887       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16888       hardcode_direct_GCJ=yes
16889       hardcode_minus_L_GCJ=no
16890       hardcode_shlibpath_var_GCJ=no
16891       hardcode_runpath_var=yes
16892       runpath_var=LD_RUN_PATH
16893       ;;
16894
16895    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16896       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16897       if test "$GCC" = yes; then
16898         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16899       else
16900         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16901       fi
16902       runpath_var='LD_RUN_PATH'
16903       hardcode_shlibpath_var_GCJ=no
16904       ;;
16905
16906     sysv5*)
16907       no_undefined_flag_GCJ=' -z text'
16908       # $CC -shared without GNU ld will not create a library from C++
16909       # object files and a static libstdc++, better avoid it by now
16910       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16911       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16912                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16913       hardcode_libdir_flag_spec_GCJ=
16914       hardcode_shlibpath_var_GCJ=no
16915       runpath_var='LD_RUN_PATH'
16916       ;;
16917
16918     uts4*)
16919       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16920       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16921       hardcode_shlibpath_var_GCJ=no
16922       ;;
16923
16924     *)
16925       ld_shlibs_GCJ=no
16926       ;;
16927     esac
16928   fi
16929
16930 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16931 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16932 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16933
16934 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16935 if test "$GCC" = yes; then
16936   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16937 fi
16938
16939 #
16940 # Do we need to explicitly link libc?
16941 #
16942 case "x$archive_cmds_need_lc_GCJ" in
16943 x|xyes)
16944   # Assume -lc should be added
16945   archive_cmds_need_lc_GCJ=yes
16946
16947   if test "$enable_shared" = yes && test "$GCC" = yes; then
16948     case $archive_cmds_GCJ in
16949     *'~'*)
16950       # FIXME: we may have to deal with multi-command sequences.
16951       ;;
16952     '$CC '*)
16953       # Test whether the compiler implicitly links with -lc since on some
16954       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16955       # to ld, don't add -lc before -lgcc.
16956       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16957 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16958       $rm conftest*
16959       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16960
16961       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16962   (eval $ac_compile) 2>&5
16963   ac_status=$?
16964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965   (exit $ac_status); } 2>conftest.err; then
16966         soname=conftest
16967         lib=conftest
16968         libobjs=conftest.$ac_objext
16969         deplibs=
16970         wl=$lt_prog_compiler_wl_GCJ
16971         compiler_flags=-v
16972         linker_flags=-v
16973         verstring=
16974         output_objdir=.
16975         libname=conftest
16976         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16977         allow_undefined_flag_GCJ=
16978         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16979   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16980   ac_status=$?
16981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982   (exit $ac_status); }
16983         then
16984           archive_cmds_need_lc_GCJ=no
16985         else
16986           archive_cmds_need_lc_GCJ=yes
16987         fi
16988         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16989       else
16990         cat conftest.err 1>&5
16991       fi
16992       $rm conftest*
16993       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16994 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16995       ;;
16996     esac
16997   fi
16998   ;;
16999 esac
17000
17001 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17002 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17003 library_names_spec=
17004 libname_spec='lib$name'
17005 soname_spec=
17006 shrext_cmds=".so"
17007 postinstall_cmds=
17008 postuninstall_cmds=
17009 finish_cmds=
17010 finish_eval=
17011 shlibpath_var=
17012 shlibpath_overrides_runpath=unknown
17013 version_type=none
17014 dynamic_linker="$host_os ld.so"
17015 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17016 if test "$GCC" = yes; then
17017   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17018   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17019     # if the path contains ";" then we assume it to be the separator
17020     # otherwise default to the standard path separator (i.e. ":") - it is
17021     # assumed that no part of a normal pathname contains ";" but that should
17022     # okay in the real world where ";" in dirpaths is itself problematic.
17023     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17024   else
17025     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17026   fi
17027 else
17028   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17029 fi
17030 need_lib_prefix=unknown
17031 hardcode_into_libs=no
17032
17033 # when you set need_version to no, make sure it does not cause -set_version
17034 # flags to be left without arguments
17035 need_version=unknown
17036
17037 case $host_os in
17038 aix3*)
17039   version_type=linux
17040   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17041   shlibpath_var=LIBPATH
17042
17043   # AIX 3 has no versioning support, so we append a major version to the name.
17044   soname_spec='${libname}${release}${shared_ext}$major'
17045   ;;
17046
17047 aix4* | aix5*)
17048   version_type=linux
17049   need_lib_prefix=no
17050   need_version=no
17051   hardcode_into_libs=yes
17052   if test "$host_cpu" = ia64; then
17053     # AIX 5 supports IA64
17054     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17055     shlibpath_var=LD_LIBRARY_PATH
17056   else
17057     # With GCC up to 2.95.x, collect2 would create an import file
17058     # for dependence libraries.  The import file would start with
17059     # the line `#! .'.  This would cause the generated library to
17060     # depend on `.', always an invalid library.  This was fixed in
17061     # development snapshots of GCC prior to 3.0.
17062     case $host_os in
17063       aix4 | aix4.[01] | aix4.[01].*)
17064       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17065            echo ' yes '
17066            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17067         :
17068       else
17069         can_build_shared=no
17070       fi
17071       ;;
17072     esac
17073     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17074     # soname into executable. Probably we can add versioning support to
17075     # collect2, so additional links can be useful in future.
17076     if test "$aix_use_runtimelinking" = yes; then
17077       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17078       # instead of lib<name>.a to let people know that these are not
17079       # typical AIX shared libraries.
17080       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17081     else
17082       # We preserve .a as extension for shared libraries through AIX4.2
17083       # and later when we are not doing run time linking.
17084       library_names_spec='${libname}${release}.a $libname.a'
17085       soname_spec='${libname}${release}${shared_ext}$major'
17086     fi
17087     shlibpath_var=LIBPATH
17088   fi
17089   ;;
17090
17091 amigaos*)
17092   library_names_spec='$libname.ixlibrary $libname.a'
17093   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17094   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'
17095   ;;
17096
17097 beos*)
17098   library_names_spec='${libname}${shared_ext}'
17099   dynamic_linker="$host_os ld.so"
17100   shlibpath_var=LIBRARY_PATH
17101   ;;
17102
17103 bsdi[45]*)
17104   version_type=linux
17105   need_version=no
17106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17107   soname_spec='${libname}${release}${shared_ext}$major'
17108   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17109   shlibpath_var=LD_LIBRARY_PATH
17110   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17111   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17112   # the default ld.so.conf also contains /usr/contrib/lib and
17113   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17114   # libtool to hard-code these into programs
17115   ;;
17116
17117 cygwin* | mingw* | pw32*)
17118   version_type=windows
17119   shrext_cmds=".dll"
17120   need_version=no
17121   need_lib_prefix=no
17122
17123   case $GCC,$host_os in
17124   yes,cygwin* | yes,mingw* | yes,pw32*)
17125     library_names_spec='$libname.dll.a'
17126     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17127     postinstall_cmds='base_file=`basename \${file}`~
17128       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17129       dldir=$destdir/`dirname \$dlpath`~
17130       test -d \$dldir || mkdir -p \$dldir~
17131       $install_prog $dir/$dlname \$dldir/$dlname'
17132     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17133       dlpath=$dir/\$dldll~
17134        $rm \$dlpath'
17135     shlibpath_overrides_runpath=yes
17136
17137     case $host_os in
17138     cygwin*)
17139       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17140       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17141       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17142       ;;
17143     mingw*)
17144       # MinGW DLLs use traditional 'lib' prefix
17145       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17146       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17147       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17148         # It is most probably a Windows format PATH printed by
17149         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17150         # path with ; separators, and with drive letters. We can handle the
17151         # drive letters (cygwin fileutils understands them), so leave them,
17152         # especially as we might pass files found there to a mingw objdump,
17153         # which wouldn't understand a cygwinified path. Ahh.
17154         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17155       else
17156         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17157       fi
17158       ;;
17159     pw32*)
17160       # pw32 DLLs use 'pw' prefix rather than 'lib'
17161       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17162       ;;
17163     esac
17164     ;;
17165
17166   *)
17167     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17168     ;;
17169   esac
17170   dynamic_linker='Win32 ld.exe'
17171   # FIXME: first we should search . and the directory the executable is in
17172   shlibpath_var=PATH
17173   ;;
17174
17175 darwin* | rhapsody*)
17176   dynamic_linker="$host_os dyld"
17177   version_type=darwin
17178   need_lib_prefix=no
17179   need_version=no
17180   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17181   soname_spec='${libname}${release}${major}$shared_ext'
17182   shlibpath_overrides_runpath=yes
17183   shlibpath_var=DYLD_LIBRARY_PATH
17184   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17185   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17186   if test "$GCC" = yes; then
17187     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"`
17188   else
17189     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17190   fi
17191   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17192   ;;
17193
17194 dgux*)
17195   version_type=linux
17196   need_lib_prefix=no
17197   need_version=no
17198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17199   soname_spec='${libname}${release}${shared_ext}$major'
17200   shlibpath_var=LD_LIBRARY_PATH
17201   ;;
17202
17203 freebsd1*)
17204   dynamic_linker=no
17205   ;;
17206
17207 kfreebsd*-gnu)
17208   version_type=linux
17209   need_lib_prefix=no
17210   need_version=no
17211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17212   soname_spec='${libname}${release}${shared_ext}$major'
17213   shlibpath_var=LD_LIBRARY_PATH
17214   shlibpath_overrides_runpath=no
17215   hardcode_into_libs=yes
17216   dynamic_linker='GNU ld.so'
17217   ;;
17218
17219 freebsd* | dragonfly*)
17220   # DragonFly does not have aout.  When/if they implement a new
17221   # versioning mechanism, adjust this.
17222   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17223   version_type=freebsd-$objformat
17224   case $version_type in
17225     freebsd-elf*)
17226       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17227       need_version=no
17228       need_lib_prefix=no
17229       ;;
17230     freebsd-*)
17231       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17232       need_version=yes
17233       ;;
17234   esac
17235   shlibpath_var=LD_LIBRARY_PATH
17236   case $host_os in
17237   freebsd2*)
17238     shlibpath_overrides_runpath=yes
17239     ;;
17240   freebsd3.[01]* | freebsdelf3.[01]*)
17241     shlibpath_overrides_runpath=yes
17242     hardcode_into_libs=yes
17243     ;;
17244   *) # from 3.2 on
17245     shlibpath_overrides_runpath=no
17246     hardcode_into_libs=yes
17247     ;;
17248   esac
17249   ;;
17250
17251 gnu*)
17252   version_type=linux
17253   need_lib_prefix=no
17254   need_version=no
17255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17256   soname_spec='${libname}${release}${shared_ext}$major'
17257   shlibpath_var=LD_LIBRARY_PATH
17258   hardcode_into_libs=yes
17259   ;;
17260
17261 hpux9* | hpux10* | hpux11*)
17262   # Give a soname corresponding to the major version so that dld.sl refuses to
17263   # link against other versions.
17264   version_type=sunos
17265   need_lib_prefix=no
17266   need_version=no
17267   case "$host_cpu" in
17268   ia64*)
17269     shrext_cmds='.so'
17270     hardcode_into_libs=yes
17271     dynamic_linker="$host_os dld.so"
17272     shlibpath_var=LD_LIBRARY_PATH
17273     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17274     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17275     soname_spec='${libname}${release}${shared_ext}$major'
17276     if test "X$HPUX_IA64_MODE" = X32; then
17277       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17278     else
17279       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17280     fi
17281     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17282     ;;
17283    hppa*64*)
17284      shrext_cmds='.sl'
17285      hardcode_into_libs=yes
17286      dynamic_linker="$host_os dld.sl"
17287      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17288      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17289      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17290      soname_spec='${libname}${release}${shared_ext}$major'
17291      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17292      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17293      ;;
17294    *)
17295     shrext_cmds='.sl'
17296     dynamic_linker="$host_os dld.sl"
17297     shlibpath_var=SHLIB_PATH
17298     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17299     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17300     soname_spec='${libname}${release}${shared_ext}$major'
17301     ;;
17302   esac
17303   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17304   postinstall_cmds='chmod 555 $lib'
17305   ;;
17306
17307 irix5* | irix6* | nonstopux*)
17308   case $host_os in
17309     nonstopux*) version_type=nonstopux ;;
17310     *)
17311         if test "$lt_cv_prog_gnu_ld" = yes; then
17312                 version_type=linux
17313         else
17314                 version_type=irix
17315         fi ;;
17316   esac
17317   need_lib_prefix=no
17318   need_version=no
17319   soname_spec='${libname}${release}${shared_ext}$major'
17320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17321   case $host_os in
17322   irix5* | nonstopux*)
17323     libsuff= shlibsuff=
17324     ;;
17325   *)
17326     case $LD in # libtool.m4 will add one of these switches to LD
17327     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17328       libsuff= shlibsuff= libmagic=32-bit;;
17329     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17330       libsuff=32 shlibsuff=N32 libmagic=N32;;
17331     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17332       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17333     *) libsuff= shlibsuff= libmagic=never-match;;
17334     esac
17335     ;;
17336   esac
17337   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17338   shlibpath_overrides_runpath=no
17339   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17340   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17341   hardcode_into_libs=yes
17342   ;;
17343
17344 # No shared lib support for Linux oldld, aout, or coff.
17345 linux*oldld* | linux*aout* | linux*coff*)
17346   dynamic_linker=no
17347   ;;
17348
17349 # This must be Linux ELF.
17350 linux*)
17351   version_type=linux
17352   need_lib_prefix=no
17353   need_version=no
17354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17355   soname_spec='${libname}${release}${shared_ext}$major'
17356   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17357   shlibpath_var=LD_LIBRARY_PATH
17358   shlibpath_overrides_runpath=no
17359   # This implies no fast_install, which is unacceptable.
17360   # Some rework will be needed to allow for fast_install
17361   # before this can be enabled.
17362   hardcode_into_libs=yes
17363
17364   # Append ld.so.conf contents to the search path
17365   if test -f /etc/ld.so.conf; then
17366     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17367     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17368   fi
17369
17370   # We used to test for /lib/ld.so.1 and disable shared libraries on
17371   # powerpc, because MkLinux only supported shared libraries with the
17372   # GNU dynamic linker.  Since this was broken with cross compilers,
17373   # most powerpc-linux boxes support dynamic linking these days and
17374   # people can always --disable-shared, the test was removed, and we
17375   # assume the GNU/Linux dynamic linker is in use.
17376   dynamic_linker='GNU/Linux ld.so'
17377   ;;
17378
17379 knetbsd*-gnu)
17380   version_type=linux
17381   need_lib_prefix=no
17382   need_version=no
17383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17384   soname_spec='${libname}${release}${shared_ext}$major'
17385   shlibpath_var=LD_LIBRARY_PATH
17386   shlibpath_overrides_runpath=no
17387   hardcode_into_libs=yes
17388   dynamic_linker='GNU ld.so'
17389   ;;
17390
17391 netbsd*)
17392   version_type=sunos
17393   need_lib_prefix=no
17394   need_version=no
17395   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17396     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17397     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17398     dynamic_linker='NetBSD (a.out) ld.so'
17399   else
17400     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17401     soname_spec='${libname}${release}${shared_ext}$major'
17402     dynamic_linker='NetBSD ld.elf_so'
17403   fi
17404   shlibpath_var=LD_LIBRARY_PATH
17405   shlibpath_overrides_runpath=yes
17406   hardcode_into_libs=yes
17407   ;;
17408
17409 newsos6)
17410   version_type=linux
17411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17412   shlibpath_var=LD_LIBRARY_PATH
17413   shlibpath_overrides_runpath=yes
17414   ;;
17415
17416 nto-qnx*)
17417   version_type=linux
17418   need_lib_prefix=no
17419   need_version=no
17420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17421   soname_spec='${libname}${release}${shared_ext}$major'
17422   shlibpath_var=LD_LIBRARY_PATH
17423   shlibpath_overrides_runpath=yes
17424   ;;
17425
17426 openbsd*)
17427   version_type=sunos
17428   need_lib_prefix=no
17429   need_version=no
17430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17431   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17432   shlibpath_var=LD_LIBRARY_PATH
17433   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17434     case $host_os in
17435       openbsd2.[89] | openbsd2.[89].*)
17436         shlibpath_overrides_runpath=no
17437         ;;
17438       *)
17439         shlibpath_overrides_runpath=yes
17440         ;;
17441       esac
17442   else
17443     shlibpath_overrides_runpath=yes
17444   fi
17445   ;;
17446
17447 os2*)
17448   libname_spec='$name'
17449   shrext_cmds=".dll"
17450   need_lib_prefix=no
17451   library_names_spec='$libname${shared_ext} $libname.a'
17452   dynamic_linker='OS/2 ld.exe'
17453   shlibpath_var=LIBPATH
17454   ;;
17455
17456 osf3* | osf4* | osf5*)
17457   version_type=osf
17458   need_lib_prefix=no
17459   need_version=no
17460   soname_spec='${libname}${release}${shared_ext}$major'
17461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17462   shlibpath_var=LD_LIBRARY_PATH
17463   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17464   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17465   ;;
17466
17467 sco3.2v5*)
17468   version_type=osf
17469   soname_spec='${libname}${release}${shared_ext}$major'
17470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17471   shlibpath_var=LD_LIBRARY_PATH
17472   ;;
17473
17474 solaris*)
17475   version_type=linux
17476   need_lib_prefix=no
17477   need_version=no
17478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17479   soname_spec='${libname}${release}${shared_ext}$major'
17480   shlibpath_var=LD_LIBRARY_PATH
17481   shlibpath_overrides_runpath=yes
17482   hardcode_into_libs=yes
17483   # ldd complains unless libraries are executable
17484   postinstall_cmds='chmod +x $lib'
17485   ;;
17486
17487 sunos4*)
17488   version_type=sunos
17489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17490   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17491   shlibpath_var=LD_LIBRARY_PATH
17492   shlibpath_overrides_runpath=yes
17493   if test "$with_gnu_ld" = yes; then
17494     need_lib_prefix=no
17495   fi
17496   need_version=yes
17497   ;;
17498
17499 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17500   version_type=linux
17501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17502   soname_spec='${libname}${release}${shared_ext}$major'
17503   shlibpath_var=LD_LIBRARY_PATH
17504   case $host_vendor in
17505     sni)
17506       shlibpath_overrides_runpath=no
17507       need_lib_prefix=no
17508       export_dynamic_flag_spec='${wl}-Blargedynsym'
17509       runpath_var=LD_RUN_PATH
17510       ;;
17511     siemens)
17512       need_lib_prefix=no
17513       ;;
17514     motorola)
17515       need_lib_prefix=no
17516       need_version=no
17517       shlibpath_overrides_runpath=no
17518       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17519       ;;
17520   esac
17521   ;;
17522
17523 sysv4*MP*)
17524   if test -d /usr/nec ;then
17525     version_type=linux
17526     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17527     soname_spec='$libname${shared_ext}.$major'
17528     shlibpath_var=LD_LIBRARY_PATH
17529   fi
17530   ;;
17531
17532 uts4*)
17533   version_type=linux
17534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17535   soname_spec='${libname}${release}${shared_ext}$major'
17536   shlibpath_var=LD_LIBRARY_PATH
17537   ;;
17538
17539 *)
17540   dynamic_linker=no
17541   ;;
17542 esac
17543 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17544 echo "${ECHO_T}$dynamic_linker" >&6
17545 test "$dynamic_linker" = no && can_build_shared=no
17546
17547 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17548 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17549 hardcode_action_GCJ=
17550 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17551    test -n "$runpath_var_GCJ" || \
17552    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17553
17554   # We can hardcode non-existant directories.
17555   if test "$hardcode_direct_GCJ" != no &&
17556      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17557      # have to relink, otherwise we might link with an installed library
17558      # when we should be linking with a yet-to-be-installed one
17559      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17560      test "$hardcode_minus_L_GCJ" != no; then
17561     # Linking always hardcodes the temporary library directory.
17562     hardcode_action_GCJ=relink
17563   else
17564     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17565     hardcode_action_GCJ=immediate
17566   fi
17567 else
17568   # We cannot hardcode anything, or else we can only hardcode existing
17569   # directories.
17570   hardcode_action_GCJ=unsupported
17571 fi
17572 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17573 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17574
17575 if test "$hardcode_action_GCJ" = relink; then
17576   # Fast installation is not supported
17577   enable_fast_install=no
17578 elif test "$shlibpath_overrides_runpath" = yes ||
17579      test "$enable_shared" = no; then
17580   # Fast installation is not necessary
17581   enable_fast_install=needless
17582 fi
17583
17584 striplib=
17585 old_striplib=
17586 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17587 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17588 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17589   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17590   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17591   echo "$as_me:$LINENO: result: yes" >&5
17592 echo "${ECHO_T}yes" >&6
17593 else
17594 # FIXME - insert some real tests, host_os isn't really good enough
17595   case $host_os in
17596    darwin*)
17597        if test -n "$STRIP" ; then
17598          striplib="$STRIP -x"
17599          echo "$as_me:$LINENO: result: yes" >&5
17600 echo "${ECHO_T}yes" >&6
17601        else
17602   echo "$as_me:$LINENO: result: no" >&5
17603 echo "${ECHO_T}no" >&6
17604 fi
17605        ;;
17606    *)
17607   echo "$as_me:$LINENO: result: no" >&5
17608 echo "${ECHO_T}no" >&6
17609     ;;
17610   esac
17611 fi
17612
17613 if test "x$enable_dlopen" != xyes; then
17614   enable_dlopen=unknown
17615   enable_dlopen_self=unknown
17616   enable_dlopen_self_static=unknown
17617 else
17618   lt_cv_dlopen=no
17619   lt_cv_dlopen_libs=
17620
17621   case $host_os in
17622   beos*)
17623     lt_cv_dlopen="load_add_on"
17624     lt_cv_dlopen_libs=
17625     lt_cv_dlopen_self=yes
17626     ;;
17627
17628   mingw* | pw32*)
17629     lt_cv_dlopen="LoadLibrary"
17630     lt_cv_dlopen_libs=
17631    ;;
17632
17633   cygwin*)
17634     lt_cv_dlopen="dlopen"
17635     lt_cv_dlopen_libs=
17636    ;;
17637
17638   darwin*)
17639   # if libdl is installed we need to link against it
17640     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17641 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17642 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17643   echo $ECHO_N "(cached) $ECHO_C" >&6
17644 else
17645   ac_check_lib_save_LIBS=$LIBS
17646 LIBS="-ldl  $LIBS"
17647 cat >conftest.$ac_ext <<_ACEOF
17648 /* confdefs.h.  */
17649 _ACEOF
17650 cat confdefs.h >>conftest.$ac_ext
17651 cat >>conftest.$ac_ext <<_ACEOF
17652 /* end confdefs.h.  */
17653
17654 /* Override any gcc2 internal prototype to avoid an error.  */
17655 #ifdef __cplusplus
17656 extern "C"
17657 #endif
17658 /* We use char because int might match the return type of a gcc2
17659    builtin and then its argument prototype would still apply.  */
17660 char dlopen ();
17661 int
17662 main ()
17663 {
17664 dlopen ();
17665   ;
17666   return 0;
17667 }
17668 _ACEOF
17669 rm -f conftest.$ac_objext conftest$ac_exeext
17670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17671   (eval $ac_link) 2>conftest.er1
17672   ac_status=$?
17673   grep -v '^ *+' conftest.er1 >conftest.err
17674   rm -f conftest.er1
17675   cat conftest.err >&5
17676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677   (exit $ac_status); } &&
17678          { ac_try='test -z "$ac_c_werror_flag"
17679                          || test ! -s conftest.err'
17680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17681   (eval $ac_try) 2>&5
17682   ac_status=$?
17683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684   (exit $ac_status); }; } &&
17685          { ac_try='test -s conftest$ac_exeext'
17686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17687   (eval $ac_try) 2>&5
17688   ac_status=$?
17689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690   (exit $ac_status); }; }; then
17691   ac_cv_lib_dl_dlopen=yes
17692 else
17693   echo "$as_me: failed program was:" >&5
17694 sed 's/^/| /' conftest.$ac_ext >&5
17695
17696 ac_cv_lib_dl_dlopen=no
17697 fi
17698 rm -f conftest.err conftest.$ac_objext \
17699       conftest$ac_exeext conftest.$ac_ext
17700 LIBS=$ac_check_lib_save_LIBS
17701 fi
17702 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17703 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17704 if test $ac_cv_lib_dl_dlopen = yes; then
17705   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17706 else
17707
17708     lt_cv_dlopen="dyld"
17709     lt_cv_dlopen_libs=
17710     lt_cv_dlopen_self=yes
17711
17712 fi
17713
17714    ;;
17715
17716   *)
17717     echo "$as_me:$LINENO: checking for shl_load" >&5
17718 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17719 if test "${ac_cv_func_shl_load+set}" = set; then
17720   echo $ECHO_N "(cached) $ECHO_C" >&6
17721 else
17722   cat >conftest.$ac_ext <<_ACEOF
17723 /* confdefs.h.  */
17724 _ACEOF
17725 cat confdefs.h >>conftest.$ac_ext
17726 cat >>conftest.$ac_ext <<_ACEOF
17727 /* end confdefs.h.  */
17728 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17729    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17730 #define shl_load innocuous_shl_load
17731
17732 /* System header to define __stub macros and hopefully few prototypes,
17733     which can conflict with char shl_load (); below.
17734     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17735     <limits.h> exists even on freestanding compilers.  */
17736
17737 #ifdef __STDC__
17738 # include <limits.h>
17739 #else
17740 # include <assert.h>
17741 #endif
17742
17743 #undef shl_load
17744
17745 /* Override any gcc2 internal prototype to avoid an error.  */
17746 #ifdef __cplusplus
17747 extern "C"
17748 {
17749 #endif
17750 /* We use char because int might match the return type of a gcc2
17751    builtin and then its argument prototype would still apply.  */
17752 char shl_load ();
17753 /* The GNU C library defines this for functions which it implements
17754     to always fail with ENOSYS.  Some functions are actually named
17755     something starting with __ and the normal name is an alias.  */
17756 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17757 choke me
17758 #else
17759 char (*f) () = shl_load;
17760 #endif
17761 #ifdef __cplusplus
17762 }
17763 #endif
17764
17765 int
17766 main ()
17767 {
17768 return f != shl_load;
17769   ;
17770   return 0;
17771 }
17772 _ACEOF
17773 rm -f conftest.$ac_objext conftest$ac_exeext
17774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17775   (eval $ac_link) 2>conftest.er1
17776   ac_status=$?
17777   grep -v '^ *+' conftest.er1 >conftest.err
17778   rm -f conftest.er1
17779   cat conftest.err >&5
17780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781   (exit $ac_status); } &&
17782          { ac_try='test -z "$ac_c_werror_flag"
17783                          || test ! -s conftest.err'
17784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785   (eval $ac_try) 2>&5
17786   ac_status=$?
17787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788   (exit $ac_status); }; } &&
17789          { ac_try='test -s conftest$ac_exeext'
17790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17791   (eval $ac_try) 2>&5
17792   ac_status=$?
17793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794   (exit $ac_status); }; }; then
17795   ac_cv_func_shl_load=yes
17796 else
17797   echo "$as_me: failed program was:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17799
17800 ac_cv_func_shl_load=no
17801 fi
17802 rm -f conftest.err conftest.$ac_objext \
17803       conftest$ac_exeext conftest.$ac_ext
17804 fi
17805 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17806 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17807 if test $ac_cv_func_shl_load = yes; then
17808   lt_cv_dlopen="shl_load"
17809 else
17810   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17811 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17812 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17813   echo $ECHO_N "(cached) $ECHO_C" >&6
17814 else
17815   ac_check_lib_save_LIBS=$LIBS
17816 LIBS="-ldld  $LIBS"
17817 cat >conftest.$ac_ext <<_ACEOF
17818 /* confdefs.h.  */
17819 _ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h.  */
17823
17824 /* Override any gcc2 internal prototype to avoid an error.  */
17825 #ifdef __cplusplus
17826 extern "C"
17827 #endif
17828 /* We use char because int might match the return type of a gcc2
17829    builtin and then its argument prototype would still apply.  */
17830 char shl_load ();
17831 int
17832 main ()
17833 {
17834 shl_load ();
17835   ;
17836   return 0;
17837 }
17838 _ACEOF
17839 rm -f conftest.$ac_objext conftest$ac_exeext
17840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17841   (eval $ac_link) 2>conftest.er1
17842   ac_status=$?
17843   grep -v '^ *+' conftest.er1 >conftest.err
17844   rm -f conftest.er1
17845   cat conftest.err >&5
17846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847   (exit $ac_status); } &&
17848          { ac_try='test -z "$ac_c_werror_flag"
17849                          || test ! -s conftest.err'
17850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851   (eval $ac_try) 2>&5
17852   ac_status=$?
17853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854   (exit $ac_status); }; } &&
17855          { ac_try='test -s conftest$ac_exeext'
17856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857   (eval $ac_try) 2>&5
17858   ac_status=$?
17859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860   (exit $ac_status); }; }; then
17861   ac_cv_lib_dld_shl_load=yes
17862 else
17863   echo "$as_me: failed program was:" >&5
17864 sed 's/^/| /' conftest.$ac_ext >&5
17865
17866 ac_cv_lib_dld_shl_load=no
17867 fi
17868 rm -f conftest.err conftest.$ac_objext \
17869       conftest$ac_exeext conftest.$ac_ext
17870 LIBS=$ac_check_lib_save_LIBS
17871 fi
17872 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17873 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17874 if test $ac_cv_lib_dld_shl_load = yes; then
17875   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17876 else
17877   echo "$as_me:$LINENO: checking for dlopen" >&5
17878 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17879 if test "${ac_cv_func_dlopen+set}" = set; then
17880   echo $ECHO_N "(cached) $ECHO_C" >&6
17881 else
17882   cat >conftest.$ac_ext <<_ACEOF
17883 /* confdefs.h.  */
17884 _ACEOF
17885 cat confdefs.h >>conftest.$ac_ext
17886 cat >>conftest.$ac_ext <<_ACEOF
17887 /* end confdefs.h.  */
17888 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17889    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17890 #define dlopen innocuous_dlopen
17891
17892 /* System header to define __stub macros and hopefully few prototypes,
17893     which can conflict with char dlopen (); below.
17894     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17895     <limits.h> exists even on freestanding compilers.  */
17896
17897 #ifdef __STDC__
17898 # include <limits.h>
17899 #else
17900 # include <assert.h>
17901 #endif
17902
17903 #undef dlopen
17904
17905 /* Override any gcc2 internal prototype to avoid an error.  */
17906 #ifdef __cplusplus
17907 extern "C"
17908 {
17909 #endif
17910 /* We use char because int might match the return type of a gcc2
17911    builtin and then its argument prototype would still apply.  */
17912 char dlopen ();
17913 /* The GNU C library defines this for functions which it implements
17914     to always fail with ENOSYS.  Some functions are actually named
17915     something starting with __ and the normal name is an alias.  */
17916 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17917 choke me
17918 #else
17919 char (*f) () = dlopen;
17920 #endif
17921 #ifdef __cplusplus
17922 }
17923 #endif
17924
17925 int
17926 main ()
17927 {
17928 return f != dlopen;
17929   ;
17930   return 0;
17931 }
17932 _ACEOF
17933 rm -f conftest.$ac_objext conftest$ac_exeext
17934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17935   (eval $ac_link) 2>conftest.er1
17936   ac_status=$?
17937   grep -v '^ *+' conftest.er1 >conftest.err
17938   rm -f conftest.er1
17939   cat conftest.err >&5
17940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941   (exit $ac_status); } &&
17942          { ac_try='test -z "$ac_c_werror_flag"
17943                          || test ! -s conftest.err'
17944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17945   (eval $ac_try) 2>&5
17946   ac_status=$?
17947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948   (exit $ac_status); }; } &&
17949          { ac_try='test -s conftest$ac_exeext'
17950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17951   (eval $ac_try) 2>&5
17952   ac_status=$?
17953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954   (exit $ac_status); }; }; then
17955   ac_cv_func_dlopen=yes
17956 else
17957   echo "$as_me: failed program was:" >&5
17958 sed 's/^/| /' conftest.$ac_ext >&5
17959
17960 ac_cv_func_dlopen=no
17961 fi
17962 rm -f conftest.err conftest.$ac_objext \
17963       conftest$ac_exeext conftest.$ac_ext
17964 fi
17965 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17966 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17967 if test $ac_cv_func_dlopen = yes; then
17968   lt_cv_dlopen="dlopen"
17969 else
17970   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17971 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17972 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17973   echo $ECHO_N "(cached) $ECHO_C" >&6
17974 else
17975   ac_check_lib_save_LIBS=$LIBS
17976 LIBS="-ldl  $LIBS"
17977 cat >conftest.$ac_ext <<_ACEOF
17978 /* confdefs.h.  */
17979 _ACEOF
17980 cat confdefs.h >>conftest.$ac_ext
17981 cat >>conftest.$ac_ext <<_ACEOF
17982 /* end confdefs.h.  */
17983
17984 /* Override any gcc2 internal prototype to avoid an error.  */
17985 #ifdef __cplusplus
17986 extern "C"
17987 #endif
17988 /* We use char because int might match the return type of a gcc2
17989    builtin and then its argument prototype would still apply.  */
17990 char dlopen ();
17991 int
17992 main ()
17993 {
17994 dlopen ();
17995   ;
17996   return 0;
17997 }
17998 _ACEOF
17999 rm -f conftest.$ac_objext conftest$ac_exeext
18000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18001   (eval $ac_link) 2>conftest.er1
18002   ac_status=$?
18003   grep -v '^ *+' conftest.er1 >conftest.err
18004   rm -f conftest.er1
18005   cat conftest.err >&5
18006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007   (exit $ac_status); } &&
18008          { ac_try='test -z "$ac_c_werror_flag"
18009                          || test ! -s conftest.err'
18010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011   (eval $ac_try) 2>&5
18012   ac_status=$?
18013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014   (exit $ac_status); }; } &&
18015          { ac_try='test -s conftest$ac_exeext'
18016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18017   (eval $ac_try) 2>&5
18018   ac_status=$?
18019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020   (exit $ac_status); }; }; then
18021   ac_cv_lib_dl_dlopen=yes
18022 else
18023   echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18025
18026 ac_cv_lib_dl_dlopen=no
18027 fi
18028 rm -f conftest.err conftest.$ac_objext \
18029       conftest$ac_exeext conftest.$ac_ext
18030 LIBS=$ac_check_lib_save_LIBS
18031 fi
18032 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18033 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18034 if test $ac_cv_lib_dl_dlopen = yes; then
18035   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18036 else
18037   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18038 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18039 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18040   echo $ECHO_N "(cached) $ECHO_C" >&6
18041 else
18042   ac_check_lib_save_LIBS=$LIBS
18043 LIBS="-lsvld  $LIBS"
18044 cat >conftest.$ac_ext <<_ACEOF
18045 /* confdefs.h.  */
18046 _ACEOF
18047 cat confdefs.h >>conftest.$ac_ext
18048 cat >>conftest.$ac_ext <<_ACEOF
18049 /* end confdefs.h.  */
18050
18051 /* Override any gcc2 internal prototype to avoid an error.  */
18052 #ifdef __cplusplus
18053 extern "C"
18054 #endif
18055 /* We use char because int might match the return type of a gcc2
18056    builtin and then its argument prototype would still apply.  */
18057 char dlopen ();
18058 int
18059 main ()
18060 {
18061 dlopen ();
18062   ;
18063   return 0;
18064 }
18065 _ACEOF
18066 rm -f conftest.$ac_objext conftest$ac_exeext
18067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18068   (eval $ac_link) 2>conftest.er1
18069   ac_status=$?
18070   grep -v '^ *+' conftest.er1 >conftest.err
18071   rm -f conftest.er1
18072   cat conftest.err >&5
18073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074   (exit $ac_status); } &&
18075          { ac_try='test -z "$ac_c_werror_flag"
18076                          || test ! -s conftest.err'
18077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18078   (eval $ac_try) 2>&5
18079   ac_status=$?
18080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081   (exit $ac_status); }; } &&
18082          { ac_try='test -s conftest$ac_exeext'
18083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18084   (eval $ac_try) 2>&5
18085   ac_status=$?
18086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087   (exit $ac_status); }; }; then
18088   ac_cv_lib_svld_dlopen=yes
18089 else
18090   echo "$as_me: failed program was:" >&5
18091 sed 's/^/| /' conftest.$ac_ext >&5
18092
18093 ac_cv_lib_svld_dlopen=no
18094 fi
18095 rm -f conftest.err conftest.$ac_objext \
18096       conftest$ac_exeext conftest.$ac_ext
18097 LIBS=$ac_check_lib_save_LIBS
18098 fi
18099 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18100 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18101 if test $ac_cv_lib_svld_dlopen = yes; then
18102   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18103 else
18104   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18105 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18106 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18107   echo $ECHO_N "(cached) $ECHO_C" >&6
18108 else
18109   ac_check_lib_save_LIBS=$LIBS
18110 LIBS="-ldld  $LIBS"
18111 cat >conftest.$ac_ext <<_ACEOF
18112 /* confdefs.h.  */
18113 _ACEOF
18114 cat confdefs.h >>conftest.$ac_ext
18115 cat >>conftest.$ac_ext <<_ACEOF
18116 /* end confdefs.h.  */
18117
18118 /* Override any gcc2 internal prototype to avoid an error.  */
18119 #ifdef __cplusplus
18120 extern "C"
18121 #endif
18122 /* We use char because int might match the return type of a gcc2
18123    builtin and then its argument prototype would still apply.  */
18124 char dld_link ();
18125 int
18126 main ()
18127 {
18128 dld_link ();
18129   ;
18130   return 0;
18131 }
18132 _ACEOF
18133 rm -f conftest.$ac_objext conftest$ac_exeext
18134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18135   (eval $ac_link) 2>conftest.er1
18136   ac_status=$?
18137   grep -v '^ *+' conftest.er1 >conftest.err
18138   rm -f conftest.er1
18139   cat conftest.err >&5
18140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141   (exit $ac_status); } &&
18142          { ac_try='test -z "$ac_c_werror_flag"
18143                          || test ! -s conftest.err'
18144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18145   (eval $ac_try) 2>&5
18146   ac_status=$?
18147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148   (exit $ac_status); }; } &&
18149          { ac_try='test -s conftest$ac_exeext'
18150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18151   (eval $ac_try) 2>&5
18152   ac_status=$?
18153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154   (exit $ac_status); }; }; then
18155   ac_cv_lib_dld_dld_link=yes
18156 else
18157   echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.$ac_ext >&5
18159
18160 ac_cv_lib_dld_dld_link=no
18161 fi
18162 rm -f conftest.err conftest.$ac_objext \
18163       conftest$ac_exeext conftest.$ac_ext
18164 LIBS=$ac_check_lib_save_LIBS
18165 fi
18166 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18167 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18168 if test $ac_cv_lib_dld_dld_link = yes; then
18169   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18170 fi
18171
18172
18173 fi
18174
18175
18176 fi
18177
18178
18179 fi
18180
18181
18182 fi
18183
18184
18185 fi
18186
18187     ;;
18188   esac
18189
18190   if test "x$lt_cv_dlopen" != xno; then
18191     enable_dlopen=yes
18192   else
18193     enable_dlopen=no
18194   fi
18195
18196   case $lt_cv_dlopen in
18197   dlopen)
18198     save_CPPFLAGS="$CPPFLAGS"
18199     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18200
18201     save_LDFLAGS="$LDFLAGS"
18202     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18203
18204     save_LIBS="$LIBS"
18205     LIBS="$lt_cv_dlopen_libs $LIBS"
18206
18207     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18208 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18209 if test "${lt_cv_dlopen_self+set}" = set; then
18210   echo $ECHO_N "(cached) $ECHO_C" >&6
18211 else
18212           if test "$cross_compiling" = yes; then :
18213   lt_cv_dlopen_self=cross
18214 else
18215   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18216   lt_status=$lt_dlunknown
18217   cat > conftest.$ac_ext <<EOF
18218 #line 18218 "configure"
18219 #include "confdefs.h"
18220
18221 #if HAVE_DLFCN_H
18222 #include <dlfcn.h>
18223 #endif
18224
18225 #include <stdio.h>
18226
18227 #ifdef RTLD_GLOBAL
18228 #  define LT_DLGLOBAL           RTLD_GLOBAL
18229 #else
18230 #  ifdef DL_GLOBAL
18231 #    define LT_DLGLOBAL         DL_GLOBAL
18232 #  else
18233 #    define LT_DLGLOBAL         0
18234 #  endif
18235 #endif
18236
18237 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18238    find out it does not work in some platform. */
18239 #ifndef LT_DLLAZY_OR_NOW
18240 #  ifdef RTLD_LAZY
18241 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18242 #  else
18243 #    ifdef DL_LAZY
18244 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18245 #    else
18246 #      ifdef RTLD_NOW
18247 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18248 #      else
18249 #        ifdef DL_NOW
18250 #          define LT_DLLAZY_OR_NOW      DL_NOW
18251 #        else
18252 #          define LT_DLLAZY_OR_NOW      0
18253 #        endif
18254 #      endif
18255 #    endif
18256 #  endif
18257 #endif
18258
18259 #ifdef __cplusplus
18260 extern "C" void exit (int);
18261 #endif
18262
18263 void fnord() { int i=42;}
18264 int main ()
18265 {
18266   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18267   int status = $lt_dlunknown;
18268
18269   if (self)
18270     {
18271       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18272       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18273       /* dlclose (self); */
18274     }
18275
18276     exit (status);
18277 }
18278 EOF
18279   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18280   (eval $ac_link) 2>&5
18281   ac_status=$?
18282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18284     (./conftest; exit; ) 2>/dev/null
18285     lt_status=$?
18286     case x$lt_status in
18287       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18288       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18289       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18290     esac
18291   else :
18292     # compilation failed
18293     lt_cv_dlopen_self=no
18294   fi
18295 fi
18296 rm -fr conftest*
18297
18298
18299 fi
18300 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18301 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18302
18303     if test "x$lt_cv_dlopen_self" = xyes; then
18304       LDFLAGS="$LDFLAGS $link_static_flag"
18305       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18306 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18307 if test "${lt_cv_dlopen_self_static+set}" = set; then
18308   echo $ECHO_N "(cached) $ECHO_C" >&6
18309 else
18310           if test "$cross_compiling" = yes; then :
18311   lt_cv_dlopen_self_static=cross
18312 else
18313   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18314   lt_status=$lt_dlunknown
18315   cat > conftest.$ac_ext <<EOF
18316 #line 18316 "configure"
18317 #include "confdefs.h"
18318
18319 #if HAVE_DLFCN_H
18320 #include <dlfcn.h>
18321 #endif
18322
18323 #include <stdio.h>
18324
18325 #ifdef RTLD_GLOBAL
18326 #  define LT_DLGLOBAL           RTLD_GLOBAL
18327 #else
18328 #  ifdef DL_GLOBAL
18329 #    define LT_DLGLOBAL         DL_GLOBAL
18330 #  else
18331 #    define LT_DLGLOBAL         0
18332 #  endif
18333 #endif
18334
18335 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18336    find out it does not work in some platform. */
18337 #ifndef LT_DLLAZY_OR_NOW
18338 #  ifdef RTLD_LAZY
18339 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18340 #  else
18341 #    ifdef DL_LAZY
18342 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18343 #    else
18344 #      ifdef RTLD_NOW
18345 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18346 #      else
18347 #        ifdef DL_NOW
18348 #          define LT_DLLAZY_OR_NOW      DL_NOW
18349 #        else
18350 #          define LT_DLLAZY_OR_NOW      0
18351 #        endif
18352 #      endif
18353 #    endif
18354 #  endif
18355 #endif
18356
18357 #ifdef __cplusplus
18358 extern "C" void exit (int);
18359 #endif
18360
18361 void fnord() { int i=42;}
18362 int main ()
18363 {
18364   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18365   int status = $lt_dlunknown;
18366
18367   if (self)
18368     {
18369       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18370       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18371       /* dlclose (self); */
18372     }
18373
18374     exit (status);
18375 }
18376 EOF
18377   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18378   (eval $ac_link) 2>&5
18379   ac_status=$?
18380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18382     (./conftest; exit; ) 2>/dev/null
18383     lt_status=$?
18384     case x$lt_status in
18385       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18386       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18387       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18388     esac
18389   else :
18390     # compilation failed
18391     lt_cv_dlopen_self_static=no
18392   fi
18393 fi
18394 rm -fr conftest*
18395
18396
18397 fi
18398 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18399 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18400     fi
18401
18402     CPPFLAGS="$save_CPPFLAGS"
18403     LDFLAGS="$save_LDFLAGS"
18404     LIBS="$save_LIBS"
18405     ;;
18406   esac
18407
18408   case $lt_cv_dlopen_self in
18409   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18410   *) enable_dlopen_self=unknown ;;
18411   esac
18412
18413   case $lt_cv_dlopen_self_static in
18414   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18415   *) enable_dlopen_self_static=unknown ;;
18416   esac
18417 fi
18418
18419
18420 # The else clause should only fire when bootstrapping the
18421 # libtool distribution, otherwise you forgot to ship ltmain.sh
18422 # with your package, and you will get complaints that there are
18423 # no rules to generate ltmain.sh.
18424 if test -f "$ltmain"; then
18425   # See if we are running on zsh, and set the options which allow our commands through
18426   # without removal of \ escapes.
18427   if test -n "${ZSH_VERSION+set}" ; then
18428     setopt NO_GLOB_SUBST
18429   fi
18430   # Now quote all the things that may contain metacharacters while being
18431   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18432   # variables and quote the copies for generation of the libtool script.
18433   for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
18434     SED SHELL STRIP \
18435     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18436     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18437     deplibs_check_method reload_flag reload_cmds need_locks \
18438     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18439     lt_cv_sys_global_symbol_to_c_name_address \
18440     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18441     old_postinstall_cmds old_postuninstall_cmds \
18442     compiler_GCJ \
18443     CC_GCJ \
18444     LD_GCJ \
18445     lt_prog_compiler_wl_GCJ \
18446     lt_prog_compiler_pic_GCJ \
18447     lt_prog_compiler_static_GCJ \
18448     lt_prog_compiler_no_builtin_flag_GCJ \
18449     export_dynamic_flag_spec_GCJ \
18450     thread_safe_flag_spec_GCJ \
18451     whole_archive_flag_spec_GCJ \
18452     enable_shared_with_static_runtimes_GCJ \
18453     old_archive_cmds_GCJ \
18454     old_archive_from_new_cmds_GCJ \
18455     predep_objects_GCJ \
18456     postdep_objects_GCJ \
18457     predeps_GCJ \
18458     postdeps_GCJ \
18459     compiler_lib_search_path_GCJ \
18460     archive_cmds_GCJ \
18461     archive_expsym_cmds_GCJ \
18462     postinstall_cmds_GCJ \
18463     postuninstall_cmds_GCJ \
18464     old_archive_from_expsyms_cmds_GCJ \
18465     allow_undefined_flag_GCJ \
18466     no_undefined_flag_GCJ \
18467     export_symbols_cmds_GCJ \
18468     hardcode_libdir_flag_spec_GCJ \
18469     hardcode_libdir_flag_spec_ld_GCJ \
18470     hardcode_libdir_separator_GCJ \
18471     hardcode_automatic_GCJ \
18472     module_cmds_GCJ \
18473     module_expsym_cmds_GCJ \
18474     lt_cv_prog_compiler_c_o_GCJ \
18475     exclude_expsyms_GCJ \
18476     include_expsyms_GCJ; do
18477
18478     case $var in
18479     old_archive_cmds_GCJ | \
18480     old_archive_from_new_cmds_GCJ | \
18481     archive_cmds_GCJ | \
18482     archive_expsym_cmds_GCJ | \
18483     module_cmds_GCJ | \
18484     module_expsym_cmds_GCJ | \
18485     old_archive_from_expsyms_cmds_GCJ | \
18486     export_symbols_cmds_GCJ | \
18487     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18488     postinstall_cmds | postuninstall_cmds | \
18489     old_postinstall_cmds | old_postuninstall_cmds | \
18490     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18491       # Double-quote double-evaled strings.
18492       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18493       ;;
18494     *)
18495       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18496       ;;
18497     esac
18498   done
18499
18500   case $lt_echo in
18501   *'\$0 --fallback-echo"')
18502     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18503     ;;
18504   esac
18505
18506 cfgfile="$ofile"
18507
18508   cat <<__EOF__ >> "$cfgfile"
18509 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18510
18511 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18512
18513 # Shell to use when invoking shell scripts.
18514 SHELL=$lt_SHELL
18515
18516 # Whether or not to build shared libraries.
18517 build_libtool_libs=$enable_shared
18518
18519 # Whether or not to build static libraries.
18520 build_old_libs=$enable_static
18521
18522 # Whether or not to add -lc for building shared libraries.
18523 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18524
18525 # Whether or not to disallow shared libs when runtime libs are static
18526 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18527
18528 # Whether or not to optimize for fast installation.
18529 fast_install=$enable_fast_install
18530
18531 # The host system.
18532 host_alias=$host_alias
18533 host=$host
18534 host_os=$host_os
18535
18536 # The build system.
18537 build_alias=$build_alias
18538 build=$build
18539 build_os=$build_os
18540
18541 # An echo program that does not interpret backslashes.
18542 echo=$lt_echo
18543
18544 # The archiver.
18545 AR=$lt_AR
18546 AR_FLAGS=$lt_AR_FLAGS
18547
18548 # A C compiler.
18549 LTCC=$lt_LTCC
18550
18551 # A language-specific compiler.
18552 CC=$lt_compiler_GCJ
18553
18554 # Is the compiler the GNU C compiler?
18555 with_gcc=$GCC_GCJ
18556
18557 # An ERE matcher.
18558 EGREP=$lt_EGREP
18559
18560 # The linker used to build libraries.
18561 LD=$lt_LD_GCJ
18562
18563 # Whether we need hard or soft links.
18564 LN_S=$lt_LN_S
18565
18566 # A BSD-compatible nm program.
18567 NM=$lt_NM
18568
18569 # A symbol stripping program
18570 STRIP=$lt_STRIP
18571
18572 # Used to examine libraries when file_magic_cmd begins "file"
18573 MAGIC_CMD=$MAGIC_CMD
18574
18575 # Used on cygwin: DLL creation program.
18576 DLLTOOL="$DLLTOOL"
18577
18578 # Used on cygwin: object dumper.
18579 OBJDUMP="$OBJDUMP"
18580
18581 # Used on cygwin: assembler.
18582 AS=$lt_AS
18583
18584 # The name of the directory that contains temporary libtool files.
18585 objdir=$objdir
18586
18587 # How to create reloadable object files.
18588 reload_flag=$lt_reload_flag
18589 reload_cmds=$lt_reload_cmds
18590
18591 # How to pass a linker flag through the compiler.
18592 wl=$lt_lt_prog_compiler_wl_GCJ
18593
18594 # Object file suffix (normally "o").
18595 objext="$ac_objext"
18596
18597 # Old archive suffix (normally "a").
18598 libext="$libext"
18599
18600 # Shared library suffix (normally ".so").
18601 shrext_cmds='$shrext_cmds'
18602
18603 # Executable file suffix (normally "").
18604 exeext="$exeext"
18605
18606 # Additional compiler flags for building library objects.
18607 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18608 pic_mode=$pic_mode
18609
18610 # What is the maximum length of a command?
18611 max_cmd_len=$lt_cv_sys_max_cmd_len
18612
18613 # Does compiler simultaneously support -c and -o options?
18614 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18615
18616 # Must we lock files when doing compilation ?
18617 need_locks=$lt_need_locks
18618
18619 # Do we need the lib prefix for modules?
18620 need_lib_prefix=$need_lib_prefix
18621
18622 # Do we need a version for libraries?
18623 need_version=$need_version
18624
18625 # Whether dlopen is supported.
18626 dlopen_support=$enable_dlopen
18627
18628 # Whether dlopen of programs is supported.
18629 dlopen_self=$enable_dlopen_self
18630
18631 # Whether dlopen of statically linked programs is supported.
18632 dlopen_self_static=$enable_dlopen_self_static
18633
18634 # Compiler flag to prevent dynamic linking.
18635 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18636
18637 # Compiler flag to turn off builtin functions.
18638 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18639
18640 # Compiler flag to allow reflexive dlopens.
18641 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18642
18643 # Compiler flag to generate shared objects directly from archives.
18644 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18645
18646 # Compiler flag to generate thread-safe objects.
18647 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18648
18649 # Library versioning type.
18650 version_type=$version_type
18651
18652 # Format of library name prefix.
18653 libname_spec=$lt_libname_spec
18654
18655 # List of archive names.  First name is the real one, the rest are links.
18656 # The last name is the one that the linker finds with -lNAME.
18657 library_names_spec=$lt_library_names_spec
18658
18659 # The coded name of the library, if different from the real name.
18660 soname_spec=$lt_soname_spec
18661
18662 # Commands used to build and install an old-style archive.
18663 RANLIB=$lt_RANLIB
18664 old_archive_cmds=$lt_old_archive_cmds_GCJ
18665 old_postinstall_cmds=$lt_old_postinstall_cmds
18666 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18667
18668 # Create an old-style archive from a shared archive.
18669 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18670
18671 # Create a temporary old-style archive to link instead of a shared archive.
18672 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18673
18674 # Commands used to build and install a shared archive.
18675 archive_cmds=$lt_archive_cmds_GCJ
18676 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18677 postinstall_cmds=$lt_postinstall_cmds
18678 postuninstall_cmds=$lt_postuninstall_cmds
18679
18680 # Commands used to build a loadable module (assumed same as above if empty)
18681 module_cmds=$lt_module_cmds_GCJ
18682 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18683
18684 # Commands to strip libraries.
18685 old_striplib=$lt_old_striplib
18686 striplib=$lt_striplib
18687
18688 # Dependencies to place before the objects being linked to create a
18689 # shared library.
18690 predep_objects=$lt_predep_objects_GCJ
18691
18692 # Dependencies to place after the objects being linked to create a
18693 # shared library.
18694 postdep_objects=$lt_postdep_objects_GCJ
18695
18696 # Dependencies to place before the objects being linked to create a
18697 # shared library.
18698 predeps=$lt_predeps_GCJ
18699
18700 # Dependencies to place after the objects being linked to create a
18701 # shared library.
18702 postdeps=$lt_postdeps_GCJ
18703
18704 # The library search path used internally by the compiler when linking
18705 # a shared library.
18706 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18707
18708 # Method to check whether dependent libraries are shared objects.
18709 deplibs_check_method=$lt_deplibs_check_method
18710
18711 # Command to use when deplibs_check_method == file_magic.
18712 file_magic_cmd=$lt_file_magic_cmd
18713
18714 # Flag that allows shared libraries with undefined symbols to be built.
18715 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18716
18717 # Flag that forces no undefined symbols.
18718 no_undefined_flag=$lt_no_undefined_flag_GCJ
18719
18720 # Commands used to finish a libtool library installation in a directory.
18721 finish_cmds=$lt_finish_cmds
18722
18723 # Same as above, but a single script fragment to be evaled but not shown.
18724 finish_eval=$lt_finish_eval
18725
18726 # Take the output of nm and produce a listing of raw symbols and C names.
18727 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18728
18729 # Transform the output of nm in a proper C declaration
18730 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18731
18732 # Transform the output of nm in a C name address pair
18733 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18734
18735 # This is the shared library runtime path variable.
18736 runpath_var=$runpath_var
18737
18738 # This is the shared library path variable.
18739 shlibpath_var=$shlibpath_var
18740
18741 # Is shlibpath searched before the hard-coded library search path?
18742 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18743
18744 # How to hardcode a shared library path into an executable.
18745 hardcode_action=$hardcode_action_GCJ
18746
18747 # Whether we should hardcode library paths into libraries.
18748 hardcode_into_libs=$hardcode_into_libs
18749
18750 # Flag to hardcode \$libdir into a binary during linking.
18751 # This must work even if \$libdir does not exist.
18752 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18753
18754 # If ld is used when linking, flag to hardcode \$libdir into
18755 # a binary during linking. This must work even if \$libdir does
18756 # not exist.
18757 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18758
18759 # Whether we need a single -rpath flag with a separated argument.
18760 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18761
18762 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18763 # resulting binary.
18764 hardcode_direct=$hardcode_direct_GCJ
18765
18766 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18767 # resulting binary.
18768 hardcode_minus_L=$hardcode_minus_L_GCJ
18769
18770 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18771 # the resulting binary.
18772 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18773
18774 # Set to yes if building a shared library automatically hardcodes DIR into the library
18775 # and all subsequent libraries and executables linked against it.
18776 hardcode_automatic=$hardcode_automatic_GCJ
18777
18778 # Variables whose values should be saved in libtool wrapper scripts and
18779 # restored at relink time.
18780 variables_saved_for_relink="$variables_saved_for_relink"
18781
18782 # Whether libtool must link a program against all its dependency libraries.
18783 link_all_deplibs=$link_all_deplibs_GCJ
18784
18785 # Compile-time system search path for libraries
18786 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18787
18788 # Run-time system search path for libraries
18789 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18790
18791 # Fix the shell variable \$srcfile for the compiler.
18792 fix_srcfile_path="$fix_srcfile_path_GCJ"
18793
18794 # Set to yes if exported symbols are required.
18795 always_export_symbols=$always_export_symbols_GCJ
18796
18797 # The commands to list exported symbols.
18798 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18799
18800 # The commands to extract the exported symbol list from a shared archive.
18801 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18802
18803 # Symbols that should not be listed in the preloaded symbols.
18804 exclude_expsyms=$lt_exclude_expsyms_GCJ
18805
18806 # Symbols that must always be exported.
18807 include_expsyms=$lt_include_expsyms_GCJ
18808
18809 # ### END LIBTOOL TAG CONFIG: $tagname
18810
18811 __EOF__
18812
18813
18814 else
18815   # If there is no Makefile yet, we rely on a make rule to execute
18816   # `config.status --recheck' to rerun these tests and create the
18817   # libtool script then.
18818   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18819   if test -f "$ltmain_in"; then
18820     test -f Makefile && make "$ltmain"
18821   fi
18822 fi
18823
18824
18825 ac_ext=c
18826 ac_cpp='$CPP $CPPFLAGS'
18827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18830
18831 CC="$lt_save_CC"
18832
18833         else
18834           tagname=""
18835         fi
18836         ;;
18837
18838       RC)
18839
18840
18841
18842 # Source file extension for RC test sources.
18843 ac_ext=rc
18844
18845 # Object file extension for compiled RC test sources.
18846 objext=o
18847 objext_RC=$objext
18848
18849 # Code to be used in simple compile tests
18850 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18851
18852 # Code to be used in simple link tests
18853 lt_simple_link_test_code="$lt_simple_compile_test_code"
18854
18855 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18856
18857 # If no C compiler was specified, use CC.
18858 LTCC=${LTCC-"$CC"}
18859
18860 # Allow CC to be a program name with arguments.
18861 compiler=$CC
18862
18863
18864 # Allow CC to be a program name with arguments.
18865 lt_save_CC="$CC"
18866 CC=${RC-"windres"}
18867 compiler=$CC
18868 compiler_RC=$CC
18869 lt_cv_prog_compiler_c_o_RC=yes
18870
18871 # The else clause should only fire when bootstrapping the
18872 # libtool distribution, otherwise you forgot to ship ltmain.sh
18873 # with your package, and you will get complaints that there are
18874 # no rules to generate ltmain.sh.
18875 if test -f "$ltmain"; then
18876   # See if we are running on zsh, and set the options which allow our commands through
18877   # without removal of \ escapes.
18878   if test -n "${ZSH_VERSION+set}" ; then
18879     setopt NO_GLOB_SUBST
18880   fi
18881   # Now quote all the things that may contain metacharacters while being
18882   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18883   # variables and quote the copies for generation of the libtool script.
18884   for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
18885     SED SHELL STRIP \
18886     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18887     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18888     deplibs_check_method reload_flag reload_cmds need_locks \
18889     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18890     lt_cv_sys_global_symbol_to_c_name_address \
18891     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18892     old_postinstall_cmds old_postuninstall_cmds \
18893     compiler_RC \
18894     CC_RC \
18895     LD_RC \
18896     lt_prog_compiler_wl_RC \
18897     lt_prog_compiler_pic_RC \
18898     lt_prog_compiler_static_RC \
18899     lt_prog_compiler_no_builtin_flag_RC \
18900     export_dynamic_flag_spec_RC \
18901     thread_safe_flag_spec_RC \
18902     whole_archive_flag_spec_RC \
18903     enable_shared_with_static_runtimes_RC \
18904     old_archive_cmds_RC \
18905     old_archive_from_new_cmds_RC \
18906     predep_objects_RC \
18907     postdep_objects_RC \
18908     predeps_RC \
18909     postdeps_RC \
18910     compiler_lib_search_path_RC \
18911     archive_cmds_RC \
18912     archive_expsym_cmds_RC \
18913     postinstall_cmds_RC \
18914     postuninstall_cmds_RC \
18915     old_archive_from_expsyms_cmds_RC \
18916     allow_undefined_flag_RC \
18917     no_undefined_flag_RC \
18918     export_symbols_cmds_RC \
18919     hardcode_libdir_flag_spec_RC \
18920     hardcode_libdir_flag_spec_ld_RC \
18921     hardcode_libdir_separator_RC \
18922     hardcode_automatic_RC \
18923     module_cmds_RC \
18924     module_expsym_cmds_RC \
18925     lt_cv_prog_compiler_c_o_RC \
18926     exclude_expsyms_RC \
18927     include_expsyms_RC; do
18928
18929     case $var in
18930     old_archive_cmds_RC | \
18931     old_archive_from_new_cmds_RC | \
18932     archive_cmds_RC | \
18933     archive_expsym_cmds_RC | \
18934     module_cmds_RC | \
18935     module_expsym_cmds_RC | \
18936     old_archive_from_expsyms_cmds_RC | \
18937     export_symbols_cmds_RC | \
18938     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18939     postinstall_cmds | postuninstall_cmds | \
18940     old_postinstall_cmds | old_postuninstall_cmds | \
18941     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18942       # Double-quote double-evaled strings.
18943       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18944       ;;
18945     *)
18946       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18947       ;;
18948     esac
18949   done
18950
18951   case $lt_echo in
18952   *'\$0 --fallback-echo"')
18953     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18954     ;;
18955   esac
18956
18957 cfgfile="$ofile"
18958
18959   cat <<__EOF__ >> "$cfgfile"
18960 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18961
18962 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18963
18964 # Shell to use when invoking shell scripts.
18965 SHELL=$lt_SHELL
18966
18967 # Whether or not to build shared libraries.
18968 build_libtool_libs=$enable_shared
18969
18970 # Whether or not to build static libraries.
18971 build_old_libs=$enable_static
18972
18973 # Whether or not to add -lc for building shared libraries.
18974 build_libtool_need_lc=$archive_cmds_need_lc_RC
18975
18976 # Whether or not to disallow shared libs when runtime libs are static
18977 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18978
18979 # Whether or not to optimize for fast installation.
18980 fast_install=$enable_fast_install
18981
18982 # The host system.
18983 host_alias=$host_alias
18984 host=$host
18985 host_os=$host_os
18986
18987 # The build system.
18988 build_alias=$build_alias
18989 build=$build
18990 build_os=$build_os
18991
18992 # An echo program that does not interpret backslashes.
18993 echo=$lt_echo
18994
18995 # The archiver.
18996 AR=$lt_AR
18997 AR_FLAGS=$lt_AR_FLAGS
18998
18999 # A C compiler.
19000 LTCC=$lt_LTCC
19001
19002 # A language-specific compiler.
19003 CC=$lt_compiler_RC
19004
19005 # Is the compiler the GNU C compiler?
19006 with_gcc=$GCC_RC
19007
19008 # An ERE matcher.
19009 EGREP=$lt_EGREP
19010
19011 # The linker used to build libraries.
19012 LD=$lt_LD_RC
19013
19014 # Whether we need hard or soft links.
19015 LN_S=$lt_LN_S
19016
19017 # A BSD-compatible nm program.
19018 NM=$lt_NM
19019
19020 # A symbol stripping program
19021 STRIP=$lt_STRIP
19022
19023 # Used to examine libraries when file_magic_cmd begins "file"
19024 MAGIC_CMD=$MAGIC_CMD
19025
19026 # Used on cygwin: DLL creation program.
19027 DLLTOOL="$DLLTOOL"
19028
19029 # Used on cygwin: object dumper.
19030 OBJDUMP="$OBJDUMP"
19031
19032 # Used on cygwin: assembler.
19033 AS=$lt_AS
19034
19035 # The name of the directory that contains temporary libtool files.
19036 objdir=$objdir
19037
19038 # How to create reloadable object files.
19039 reload_flag=$lt_reload_flag
19040 reload_cmds=$lt_reload_cmds
19041
19042 # How to pass a linker flag through the compiler.
19043 wl=$lt_lt_prog_compiler_wl_RC
19044
19045 # Object file suffix (normally "o").
19046 objext="$ac_objext"
19047
19048 # Old archive suffix (normally "a").
19049 libext="$libext"
19050
19051 # Shared library suffix (normally ".so").
19052 shrext_cmds='$shrext_cmds'
19053
19054 # Executable file suffix (normally "").
19055 exeext="$exeext"
19056
19057 # Additional compiler flags for building library objects.
19058 pic_flag=$lt_lt_prog_compiler_pic_RC
19059 pic_mode=$pic_mode
19060
19061 # What is the maximum length of a command?
19062 max_cmd_len=$lt_cv_sys_max_cmd_len
19063
19064 # Does compiler simultaneously support -c and -o options?
19065 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19066
19067 # Must we lock files when doing compilation ?
19068 need_locks=$lt_need_locks
19069
19070 # Do we need the lib prefix for modules?
19071 need_lib_prefix=$need_lib_prefix
19072
19073 # Do we need a version for libraries?
19074 need_version=$need_version
19075
19076 # Whether dlopen is supported.
19077 dlopen_support=$enable_dlopen
19078
19079 # Whether dlopen of programs is supported.
19080 dlopen_self=$enable_dlopen_self
19081
19082 # Whether dlopen of statically linked programs is supported.
19083 dlopen_self_static=$enable_dlopen_self_static
19084
19085 # Compiler flag to prevent dynamic linking.
19086 link_static_flag=$lt_lt_prog_compiler_static_RC
19087
19088 # Compiler flag to turn off builtin functions.
19089 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19090
19091 # Compiler flag to allow reflexive dlopens.
19092 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19093
19094 # Compiler flag to generate shared objects directly from archives.
19095 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19096
19097 # Compiler flag to generate thread-safe objects.
19098 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19099
19100 # Library versioning type.
19101 version_type=$version_type
19102
19103 # Format of library name prefix.
19104 libname_spec=$lt_libname_spec
19105
19106 # List of archive names.  First name is the real one, the rest are links.
19107 # The last name is the one that the linker finds with -lNAME.
19108 library_names_spec=$lt_library_names_spec
19109
19110 # The coded name of the library, if different from the real name.
19111 soname_spec=$lt_soname_spec
19112
19113 # Commands used to build and install an old-style archive.
19114 RANLIB=$lt_RANLIB
19115 old_archive_cmds=$lt_old_archive_cmds_RC
19116 old_postinstall_cmds=$lt_old_postinstall_cmds
19117 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19118
19119 # Create an old-style archive from a shared archive.
19120 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19121
19122 # Create a temporary old-style archive to link instead of a shared archive.
19123 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19124
19125 # Commands used to build and install a shared archive.
19126 archive_cmds=$lt_archive_cmds_RC
19127 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19128 postinstall_cmds=$lt_postinstall_cmds
19129 postuninstall_cmds=$lt_postuninstall_cmds
19130
19131 # Commands used to build a loadable module (assumed same as above if empty)
19132 module_cmds=$lt_module_cmds_RC
19133 module_expsym_cmds=$lt_module_expsym_cmds_RC
19134
19135 # Commands to strip libraries.
19136 old_striplib=$lt_old_striplib
19137 striplib=$lt_striplib
19138
19139 # Dependencies to place before the objects being linked to create a
19140 # shared library.
19141 predep_objects=$lt_predep_objects_RC
19142
19143 # Dependencies to place after the objects being linked to create a
19144 # shared library.
19145 postdep_objects=$lt_postdep_objects_RC
19146
19147 # Dependencies to place before the objects being linked to create a
19148 # shared library.
19149 predeps=$lt_predeps_RC
19150
19151 # Dependencies to place after the objects being linked to create a
19152 # shared library.
19153 postdeps=$lt_postdeps_RC
19154
19155 # The library search path used internally by the compiler when linking
19156 # a shared library.
19157 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19158
19159 # Method to check whether dependent libraries are shared objects.
19160 deplibs_check_method=$lt_deplibs_check_method
19161
19162 # Command to use when deplibs_check_method == file_magic.
19163 file_magic_cmd=$lt_file_magic_cmd
19164
19165 # Flag that allows shared libraries with undefined symbols to be built.
19166 allow_undefined_flag=$lt_allow_undefined_flag_RC
19167
19168 # Flag that forces no undefined symbols.
19169 no_undefined_flag=$lt_no_undefined_flag_RC
19170
19171 # Commands used to finish a libtool library installation in a directory.
19172 finish_cmds=$lt_finish_cmds
19173
19174 # Same as above, but a single script fragment to be evaled but not shown.
19175 finish_eval=$lt_finish_eval
19176
19177 # Take the output of nm and produce a listing of raw symbols and C names.
19178 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19179
19180 # Transform the output of nm in a proper C declaration
19181 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19182
19183 # Transform the output of nm in a C name address pair
19184 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19185
19186 # This is the shared library runtime path variable.
19187 runpath_var=$runpath_var
19188
19189 # This is the shared library path variable.
19190 shlibpath_var=$shlibpath_var
19191
19192 # Is shlibpath searched before the hard-coded library search path?
19193 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19194
19195 # How to hardcode a shared library path into an executable.
19196 hardcode_action=$hardcode_action_RC
19197
19198 # Whether we should hardcode library paths into libraries.
19199 hardcode_into_libs=$hardcode_into_libs
19200
19201 # Flag to hardcode \$libdir into a binary during linking.
19202 # This must work even if \$libdir does not exist.
19203 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19204
19205 # If ld is used when linking, flag to hardcode \$libdir into
19206 # a binary during linking. This must work even if \$libdir does
19207 # not exist.
19208 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19209
19210 # Whether we need a single -rpath flag with a separated argument.
19211 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19212
19213 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19214 # resulting binary.
19215 hardcode_direct=$hardcode_direct_RC
19216
19217 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19218 # resulting binary.
19219 hardcode_minus_L=$hardcode_minus_L_RC
19220
19221 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19222 # the resulting binary.
19223 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19224
19225 # Set to yes if building a shared library automatically hardcodes DIR into the library
19226 # and all subsequent libraries and executables linked against it.
19227 hardcode_automatic=$hardcode_automatic_RC
19228
19229 # Variables whose values should be saved in libtool wrapper scripts and
19230 # restored at relink time.
19231 variables_saved_for_relink="$variables_saved_for_relink"
19232
19233 # Whether libtool must link a program against all its dependency libraries.
19234 link_all_deplibs=$link_all_deplibs_RC
19235
19236 # Compile-time system search path for libraries
19237 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19238
19239 # Run-time system search path for libraries
19240 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19241
19242 # Fix the shell variable \$srcfile for the compiler.
19243 fix_srcfile_path="$fix_srcfile_path_RC"
19244
19245 # Set to yes if exported symbols are required.
19246 always_export_symbols=$always_export_symbols_RC
19247
19248 # The commands to list exported symbols.
19249 export_symbols_cmds=$lt_export_symbols_cmds_RC
19250
19251 # The commands to extract the exported symbol list from a shared archive.
19252 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19253
19254 # Symbols that should not be listed in the preloaded symbols.
19255 exclude_expsyms=$lt_exclude_expsyms_RC
19256
19257 # Symbols that must always be exported.
19258 include_expsyms=$lt_include_expsyms_RC
19259
19260 # ### END LIBTOOL TAG CONFIG: $tagname
19261
19262 __EOF__
19263
19264
19265 else
19266   # If there is no Makefile yet, we rely on a make rule to execute
19267   # `config.status --recheck' to rerun these tests and create the
19268   # libtool script then.
19269   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19270   if test -f "$ltmain_in"; then
19271     test -f Makefile && make "$ltmain"
19272   fi
19273 fi
19274
19275
19276 ac_ext=c
19277 ac_cpp='$CPP $CPPFLAGS'
19278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19281
19282 CC="$lt_save_CC"
19283
19284         ;;
19285
19286       *)
19287         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19288 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19289    { (exit 1); exit 1; }; }
19290         ;;
19291       esac
19292
19293       # Append the new tag name to the list of available tags.
19294       if test -n "$tagname" ; then
19295       available_tags="$available_tags $tagname"
19296     fi
19297     fi
19298   done
19299   IFS="$lt_save_ifs"
19300
19301   # Now substitute the updated list of available tags.
19302   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19303     mv "${ofile}T" "$ofile"
19304     chmod +x "$ofile"
19305   else
19306     rm -f "${ofile}T"
19307     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19308 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19309    { (exit 1); exit 1; }; }
19310   fi
19311 fi
19312
19313
19314
19315 # This can be used to rebuild libtool when needed
19316 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19317
19318 # Always use our own libtool.
19319 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19320
19321 # Prevent multiple expansion
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342 # Check whether --enable-debug or --disable-debug was given.
19343 if test "${enable_debug+set}" = set; then
19344   enableval="$enable_debug"
19345
19346         CXXFLAGS="-g -O0 -Wall"
19347     cat >>confdefs.h <<\_ACEOF
19348 #define WITH_DEBUG 1
19349 _ACEOF
19350
19351
19352 else
19353
19354         CXXFLAGS="-O0"
19355
19356
19357 fi;
19358
19359
19360 # Check whether --with-libldap or --without-libldap was given.
19361 if test "${with_libldap+set}" = set; then
19362   withval="$with_libldap"
19363
19364         LIBS="-L$with_libldap $LIBS "
19365
19366 else
19367
19368         LIBS="-L/usr/local/lib $LIBS "
19369
19370
19371 fi;
19372
19373
19374 # Check whether --with-ldap-includes or --without-ldap-includes was given.
19375 if test "${with_ldap_includes+set}" = set; then
19376   withval="$with_ldap_includes"
19377
19378         CPPFLAGS="-I$with_ldap_includes $CPPFLAGS "
19379
19380 else
19381
19382         CPPFLAGS="-I/usr/local/include $CPPFLAGS "
19383
19384
19385 fi;
19386
19387 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
19388 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
19389 if test "${ac_cv_lib_resolv_main+set}" = set; then
19390   echo $ECHO_N "(cached) $ECHO_C" >&6
19391 else
19392   ac_check_lib_save_LIBS=$LIBS
19393 LIBS="-lresolv  $LIBS"
19394 cat >conftest.$ac_ext <<_ACEOF
19395 /* confdefs.h.  */
19396 _ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h.  */
19400
19401
19402 int
19403 main ()
19404 {
19405 main ();
19406   ;
19407   return 0;
19408 }
19409 _ACEOF
19410 rm -f conftest.$ac_objext conftest$ac_exeext
19411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19412   (eval $ac_link) 2>conftest.er1
19413   ac_status=$?
19414   grep -v '^ *+' conftest.er1 >conftest.err
19415   rm -f conftest.er1
19416   cat conftest.err >&5
19417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418   (exit $ac_status); } &&
19419          { ac_try='test -z "$ac_c_werror_flag"
19420                          || test ! -s conftest.err'
19421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19422   (eval $ac_try) 2>&5
19423   ac_status=$?
19424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425   (exit $ac_status); }; } &&
19426          { ac_try='test -s conftest$ac_exeext'
19427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428   (eval $ac_try) 2>&5
19429   ac_status=$?
19430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); }; }; then
19432   ac_cv_lib_resolv_main=yes
19433 else
19434   echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19436
19437 ac_cv_lib_resolv_main=no
19438 fi
19439 rm -f conftest.err conftest.$ac_objext \
19440       conftest$ac_exeext conftest.$ac_ext
19441 LIBS=$ac_check_lib_save_LIBS
19442 fi
19443 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
19444 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
19445 if test $ac_cv_lib_resolv_main = yes; then
19446   cat >>confdefs.h <<_ACEOF
19447 #define HAVE_LIBRESOLV 1
19448 _ACEOF
19449
19450   LIBS="-lresolv $LIBS"
19451
19452 fi
19453
19454 echo "$as_me:$LINENO: checking for ber_strdup in -llber" >&5
19455 echo $ECHO_N "checking for ber_strdup in -llber... $ECHO_C" >&6
19456 if test "${ac_cv_lib_lber_ber_strdup+set}" = set; then
19457   echo $ECHO_N "(cached) $ECHO_C" >&6
19458 else
19459   ac_check_lib_save_LIBS=$LIBS
19460 LIBS="-llber  $LIBS"
19461 cat >conftest.$ac_ext <<_ACEOF
19462 /* confdefs.h.  */
19463 _ACEOF
19464 cat confdefs.h >>conftest.$ac_ext
19465 cat >>conftest.$ac_ext <<_ACEOF
19466 /* end confdefs.h.  */
19467
19468 /* Override any gcc2 internal prototype to avoid an error.  */
19469 #ifdef __cplusplus
19470 extern "C"
19471 #endif
19472 /* We use char because int might match the return type of a gcc2
19473    builtin and then its argument prototype would still apply.  */
19474 char ber_strdup ();
19475 int
19476 main ()
19477 {
19478 ber_strdup ();
19479   ;
19480   return 0;
19481 }
19482 _ACEOF
19483 rm -f conftest.$ac_objext conftest$ac_exeext
19484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19485   (eval $ac_link) 2>conftest.er1
19486   ac_status=$?
19487   grep -v '^ *+' conftest.er1 >conftest.err
19488   rm -f conftest.er1
19489   cat conftest.err >&5
19490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491   (exit $ac_status); } &&
19492          { ac_try='test -z "$ac_c_werror_flag"
19493                          || test ! -s conftest.err'
19494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19495   (eval $ac_try) 2>&5
19496   ac_status=$?
19497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498   (exit $ac_status); }; } &&
19499          { ac_try='test -s conftest$ac_exeext'
19500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19501   (eval $ac_try) 2>&5
19502   ac_status=$?
19503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504   (exit $ac_status); }; }; then
19505   ac_cv_lib_lber_ber_strdup=yes
19506 else
19507   echo "$as_me: failed program was:" >&5
19508 sed 's/^/| /' conftest.$ac_ext >&5
19509
19510 ac_cv_lib_lber_ber_strdup=no
19511 fi
19512 rm -f conftest.err conftest.$ac_objext \
19513       conftest$ac_exeext conftest.$ac_ext
19514 LIBS=$ac_check_lib_save_LIBS
19515 fi
19516 echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_strdup" >&5
19517 echo "${ECHO_T}$ac_cv_lib_lber_ber_strdup" >&6
19518 if test $ac_cv_lib_lber_ber_strdup = yes; then
19519
19520         :
19521
19522 else
19523
19524         echo "        didn't find ber_strdup in liblber !";
19525         echo "        Check for the right version (>= 2.0) of the OpenLDAP libraries";
19526         echo "        or try the --with-libldap option.";
19527         exit
19528
19529 fi
19530
19531 echo "$as_me:$LINENO: checking for ldap_add_ext in -lldap" >&5
19532 echo $ECHO_N "checking for ldap_add_ext in -lldap... $ECHO_C" >&6
19533 if test "${ac_cv_lib_ldap_ldap_add_ext+set}" = set; then
19534   echo $ECHO_N "(cached) $ECHO_C" >&6
19535 else
19536   ac_check_lib_save_LIBS=$LIBS
19537 LIBS="-lldap
19538     -llber
19539      $LIBS"
19540 cat >conftest.$ac_ext <<_ACEOF
19541 /* confdefs.h.  */
19542 _ACEOF
19543 cat confdefs.h >>conftest.$ac_ext
19544 cat >>conftest.$ac_ext <<_ACEOF
19545 /* end confdefs.h.  */
19546
19547 /* Override any gcc2 internal prototype to avoid an error.  */
19548 #ifdef __cplusplus
19549 extern "C"
19550 #endif
19551 /* We use char because int might match the return type of a gcc2
19552    builtin and then its argument prototype would still apply.  */
19553 char ldap_add_ext ();
19554 int
19555 main ()
19556 {
19557 ldap_add_ext ();
19558   ;
19559   return 0;
19560 }
19561 _ACEOF
19562 rm -f conftest.$ac_objext conftest$ac_exeext
19563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19564   (eval $ac_link) 2>conftest.er1
19565   ac_status=$?
19566   grep -v '^ *+' conftest.er1 >conftest.err
19567   rm -f conftest.er1
19568   cat conftest.err >&5
19569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570   (exit $ac_status); } &&
19571          { ac_try='test -z "$ac_c_werror_flag"
19572                          || test ! -s conftest.err'
19573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574   (eval $ac_try) 2>&5
19575   ac_status=$?
19576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577   (exit $ac_status); }; } &&
19578          { ac_try='test -s conftest$ac_exeext'
19579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580   (eval $ac_try) 2>&5
19581   ac_status=$?
19582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583   (exit $ac_status); }; }; then
19584   ac_cv_lib_ldap_ldap_add_ext=yes
19585 else
19586   echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19588
19589 ac_cv_lib_ldap_ldap_add_ext=no
19590 fi
19591 rm -f conftest.err conftest.$ac_objext \
19592       conftest$ac_exeext conftest.$ac_ext
19593 LIBS=$ac_check_lib_save_LIBS
19594 fi
19595 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_add_ext" >&5
19596 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_add_ext" >&6
19597 if test $ac_cv_lib_ldap_ldap_add_ext = yes; then
19598
19599         :
19600
19601 else
19602
19603         echo "        didn't find ldap_add_ext in libldap !";
19604         echo "        Check for the right version (>= 2.0) of the OpenLDAP libraries";
19605         echo "        or try the --with-libldap option.";
19606         exit
19607
19608 fi
19609
19610 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19611 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19612 if test "${ac_cv_header_time+set}" = set; then
19613   echo $ECHO_N "(cached) $ECHO_C" >&6
19614 else
19615   cat >conftest.$ac_ext <<_ACEOF
19616 /* confdefs.h.  */
19617 _ACEOF
19618 cat confdefs.h >>conftest.$ac_ext
19619 cat >>conftest.$ac_ext <<_ACEOF
19620 /* end confdefs.h.  */
19621 #include <sys/types.h>
19622 #include <sys/time.h>
19623 #include <time.h>
19624
19625 int
19626 main ()
19627 {
19628 if ((struct tm *) 0)
19629 return 0;
19630   ;
19631   return 0;
19632 }
19633 _ACEOF
19634 rm -f conftest.$ac_objext
19635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19636   (eval $ac_compile) 2>conftest.er1
19637   ac_status=$?
19638   grep -v '^ *+' conftest.er1 >conftest.err
19639   rm -f conftest.er1
19640   cat conftest.err >&5
19641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642   (exit $ac_status); } &&
19643          { ac_try='test -z "$ac_c_werror_flag"
19644                          || test ! -s conftest.err'
19645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19646   (eval $ac_try) 2>&5
19647   ac_status=$?
19648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649   (exit $ac_status); }; } &&
19650          { ac_try='test -s conftest.$ac_objext'
19651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19652   (eval $ac_try) 2>&5
19653   ac_status=$?
19654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655   (exit $ac_status); }; }; then
19656   ac_cv_header_time=yes
19657 else
19658   echo "$as_me: failed program was:" >&5
19659 sed 's/^/| /' conftest.$ac_ext >&5
19660
19661 ac_cv_header_time=no
19662 fi
19663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19664 fi
19665 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19666 echo "${ECHO_T}$ac_cv_header_time" >&6
19667 if test $ac_cv_header_time = yes; then
19668
19669 cat >>confdefs.h <<\_ACEOF
19670 #define TIME_WITH_SYS_TIME 1
19671 _ACEOF
19672
19673 fi
19674
19675 if test "${ac_cv_header_ldap_h+set}" = set; then
19676   echo "$as_me:$LINENO: checking for ldap.h" >&5
19677 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
19678 if test "${ac_cv_header_ldap_h+set}" = set; then
19679   echo $ECHO_N "(cached) $ECHO_C" >&6
19680 fi
19681 echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
19682 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
19683 else
19684   # Is the header compilable?
19685 echo "$as_me:$LINENO: checking ldap.h usability" >&5
19686 echo $ECHO_N "checking ldap.h usability... $ECHO_C" >&6
19687 cat >conftest.$ac_ext <<_ACEOF
19688 /* confdefs.h.  */
19689 _ACEOF
19690 cat confdefs.h >>conftest.$ac_ext
19691 cat >>conftest.$ac_ext <<_ACEOF
19692 /* end confdefs.h.  */
19693 $ac_includes_default
19694 #include <ldap.h>
19695 _ACEOF
19696 rm -f conftest.$ac_objext
19697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19698   (eval $ac_compile) 2>conftest.er1
19699   ac_status=$?
19700   grep -v '^ *+' conftest.er1 >conftest.err
19701   rm -f conftest.er1
19702   cat conftest.err >&5
19703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704   (exit $ac_status); } &&
19705          { ac_try='test -z "$ac_c_werror_flag"
19706                          || test ! -s conftest.err'
19707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19708   (eval $ac_try) 2>&5
19709   ac_status=$?
19710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711   (exit $ac_status); }; } &&
19712          { ac_try='test -s conftest.$ac_objext'
19713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19714   (eval $ac_try) 2>&5
19715   ac_status=$?
19716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717   (exit $ac_status); }; }; then
19718   ac_header_compiler=yes
19719 else
19720   echo "$as_me: failed program was:" >&5
19721 sed 's/^/| /' conftest.$ac_ext >&5
19722
19723 ac_header_compiler=no
19724 fi
19725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19726 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19727 echo "${ECHO_T}$ac_header_compiler" >&6
19728
19729 # Is the header present?
19730 echo "$as_me:$LINENO: checking ldap.h presence" >&5
19731 echo $ECHO_N "checking ldap.h presence... $ECHO_C" >&6
19732 cat >conftest.$ac_ext <<_ACEOF
19733 /* confdefs.h.  */
19734 _ACEOF
19735 cat confdefs.h >>conftest.$ac_ext
19736 cat >>conftest.$ac_ext <<_ACEOF
19737 /* end confdefs.h.  */
19738 #include <ldap.h>
19739 _ACEOF
19740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19741   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19742   ac_status=$?
19743   grep -v '^ *+' conftest.er1 >conftest.err
19744   rm -f conftest.er1
19745   cat conftest.err >&5
19746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747   (exit $ac_status); } >/dev/null; then
19748   if test -s conftest.err; then
19749     ac_cpp_err=$ac_c_preproc_warn_flag
19750     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19751   else
19752     ac_cpp_err=
19753   fi
19754 else
19755   ac_cpp_err=yes
19756 fi
19757 if test -z "$ac_cpp_err"; then
19758   ac_header_preproc=yes
19759 else
19760   echo "$as_me: failed program was:" >&5
19761 sed 's/^/| /' conftest.$ac_ext >&5
19762
19763   ac_header_preproc=no
19764 fi
19765 rm -f conftest.err conftest.$ac_ext
19766 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19767 echo "${ECHO_T}$ac_header_preproc" >&6
19768
19769 # So?  What about this header?
19770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19771   yes:no: )
19772     { echo "$as_me:$LINENO: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&5
19773 echo "$as_me: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19774     { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the compiler's result" >&5
19775 echo "$as_me: WARNING: ldap.h: proceeding with the compiler's result" >&2;}
19776     ac_header_preproc=yes
19777     ;;
19778   no:yes:* )
19779     { echo "$as_me:$LINENO: WARNING: ldap.h: present but cannot be compiled" >&5
19780 echo "$as_me: WARNING: ldap.h: present but cannot be compiled" >&2;}
19781     { echo "$as_me:$LINENO: WARNING: ldap.h:     check for missing prerequisite headers?" >&5
19782 echo "$as_me: WARNING: ldap.h:     check for missing prerequisite headers?" >&2;}
19783     { echo "$as_me:$LINENO: WARNING: ldap.h: see the Autoconf documentation" >&5
19784 echo "$as_me: WARNING: ldap.h: see the Autoconf documentation" >&2;}
19785     { echo "$as_me:$LINENO: WARNING: ldap.h:     section \"Present But Cannot Be Compiled\"" >&5
19786 echo "$as_me: WARNING: ldap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19787     { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the preprocessor's result" >&5
19788 echo "$as_me: WARNING: ldap.h: proceeding with the preprocessor's result" >&2;}
19789     { echo "$as_me:$LINENO: WARNING: ldap.h: in the future, the compiler will take precedence" >&5
19790 echo "$as_me: WARNING: ldap.h: in the future, the compiler will take precedence" >&2;}
19791     (
19792       cat <<\_ASBOX
19793 ## ------------------------------------------ ##
19794 ## Report this to the AC_PACKAGE_NAME lists.  ##
19795 ## ------------------------------------------ ##
19796 _ASBOX
19797     ) |
19798       sed "s/^/$as_me: WARNING:     /" >&2
19799     ;;
19800 esac
19801 echo "$as_me:$LINENO: checking for ldap.h" >&5
19802 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
19803 if test "${ac_cv_header_ldap_h+set}" = set; then
19804   echo $ECHO_N "(cached) $ECHO_C" >&6
19805 else
19806   ac_cv_header_ldap_h=$ac_header_preproc
19807 fi
19808 echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
19809 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
19810
19811 fi
19812
19813
19814 cat >conftest.$ac_ext <<_ACEOF
19815 /* confdefs.h.  */
19816 _ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h.  */
19820 #include <ldap.h>
19821
19822 _ACEOF
19823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19824   $EGREP "ldap_add_ext" >/dev/null 2>&1; then
19825
19826         :
19827
19828 else
19829
19830         echo "        didn't find ldap_add_ext in ldap.h!";
19831         echo "        Check for the right version (>= 2.0) of the OpenLDAP includes";
19832         echo "        or try --with-ldap-includes option.";
19833         exit
19834
19835 fi
19836 rm -f conftest*
19837
19838 if test "${ac_cv_header_lber_h+set}" = set; then
19839   echo "$as_me:$LINENO: checking for lber.h" >&5
19840 echo $ECHO_N "checking for lber.h... $ECHO_C" >&6
19841 if test "${ac_cv_header_lber_h+set}" = set; then
19842   echo $ECHO_N "(cached) $ECHO_C" >&6
19843 fi
19844 echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
19845 echo "${ECHO_T}$ac_cv_header_lber_h" >&6
19846 else
19847   # Is the header compilable?
19848 echo "$as_me:$LINENO: checking lber.h usability" >&5
19849 echo $ECHO_N "checking lber.h usability... $ECHO_C" >&6
19850 cat >conftest.$ac_ext <<_ACEOF
19851 /* confdefs.h.  */
19852 _ACEOF
19853 cat confdefs.h >>conftest.$ac_ext
19854 cat >>conftest.$ac_ext <<_ACEOF
19855 /* end confdefs.h.  */
19856 $ac_includes_default
19857 #include <lber.h>
19858 _ACEOF
19859 rm -f conftest.$ac_objext
19860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19861   (eval $ac_compile) 2>conftest.er1
19862   ac_status=$?
19863   grep -v '^ *+' conftest.er1 >conftest.err
19864   rm -f conftest.er1
19865   cat conftest.err >&5
19866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867   (exit $ac_status); } &&
19868          { ac_try='test -z "$ac_c_werror_flag"
19869                          || test ! -s conftest.err'
19870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19871   (eval $ac_try) 2>&5
19872   ac_status=$?
19873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874   (exit $ac_status); }; } &&
19875          { ac_try='test -s conftest.$ac_objext'
19876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19877   (eval $ac_try) 2>&5
19878   ac_status=$?
19879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880   (exit $ac_status); }; }; then
19881   ac_header_compiler=yes
19882 else
19883   echo "$as_me: failed program was:" >&5
19884 sed 's/^/| /' conftest.$ac_ext >&5
19885
19886 ac_header_compiler=no
19887 fi
19888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19889 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19890 echo "${ECHO_T}$ac_header_compiler" >&6
19891
19892 # Is the header present?
19893 echo "$as_me:$LINENO: checking lber.h presence" >&5
19894 echo $ECHO_N "checking lber.h presence... $ECHO_C" >&6
19895 cat >conftest.$ac_ext <<_ACEOF
19896 /* confdefs.h.  */
19897 _ACEOF
19898 cat confdefs.h >>conftest.$ac_ext
19899 cat >>conftest.$ac_ext <<_ACEOF
19900 /* end confdefs.h.  */
19901 #include <lber.h>
19902 _ACEOF
19903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19904   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19905   ac_status=$?
19906   grep -v '^ *+' conftest.er1 >conftest.err
19907   rm -f conftest.er1
19908   cat conftest.err >&5
19909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910   (exit $ac_status); } >/dev/null; then
19911   if test -s conftest.err; then
19912     ac_cpp_err=$ac_c_preproc_warn_flag
19913     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19914   else
19915     ac_cpp_err=
19916   fi
19917 else
19918   ac_cpp_err=yes
19919 fi
19920 if test -z "$ac_cpp_err"; then
19921   ac_header_preproc=yes
19922 else
19923   echo "$as_me: failed program was:" >&5
19924 sed 's/^/| /' conftest.$ac_ext >&5
19925
19926   ac_header_preproc=no
19927 fi
19928 rm -f conftest.err conftest.$ac_ext
19929 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19930 echo "${ECHO_T}$ac_header_preproc" >&6
19931
19932 # So?  What about this header?
19933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19934   yes:no: )
19935     { echo "$as_me:$LINENO: WARNING: lber.h: accepted by the compiler, rejected by the preprocessor!" >&5
19936 echo "$as_me: WARNING: lber.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19937     { echo "$as_me:$LINENO: WARNING: lber.h: proceeding with the compiler's result" >&5
19938 echo "$as_me: WARNING: lber.h: proceeding with the compiler's result" >&2;}
19939     ac_header_preproc=yes
19940     ;;
19941   no:yes:* )
19942     { echo "$as_me:$LINENO: WARNING: lber.h: present but cannot be compiled" >&5
19943 echo "$as_me: WARNING: lber.h: present but cannot be compiled" >&2;}
19944     { echo "$as_me:$LINENO: WARNING: lber.h:     check for missing prerequisite headers?" >&5
19945 echo "$as_me: WARNING: lber.h:     check for missing prerequisite headers?" >&2;}
19946     { echo "$as_me:$LINENO: WARNING: lber.h: see the Autoconf documentation" >&5
19947 echo "$as_me: WARNING: lber.h: see the Autoconf documentation" >&2;}
19948     { echo "$as_me:$LINENO: WARNING: lber.h:     section \"Present But Cannot Be Compiled\"" >&5
19949 echo "$as_me: WARNING: lber.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19950     { echo "$as_me:$LINENO: WARNING: lber.h: proceeding with the preprocessor's result" >&5
19951 echo "$as_me: WARNING: lber.h: proceeding with the preprocessor's result" >&2;}
19952     { echo "$as_me:$LINENO: WARNING: lber.h: in the future, the compiler will take precedence" >&5
19953 echo "$as_me: WARNING: lber.h: in the future, the compiler will take precedence" >&2;}
19954     (
19955       cat <<\_ASBOX
19956 ## ------------------------------------------ ##
19957 ## Report this to the AC_PACKAGE_NAME lists.  ##
19958 ## ------------------------------------------ ##
19959 _ASBOX
19960     ) |
19961       sed "s/^/$as_me: WARNING:     /" >&2
19962     ;;
19963 esac
19964 echo "$as_me:$LINENO: checking for lber.h" >&5
19965 echo $ECHO_N "checking for lber.h... $ECHO_C" >&6
19966 if test "${ac_cv_header_lber_h+set}" = set; then
19967   echo $ECHO_N "(cached) $ECHO_C" >&6
19968 else
19969   ac_cv_header_lber_h=$ac_header_preproc
19970 fi
19971 echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
19972 echo "${ECHO_T}$ac_cv_header_lber_h" >&6
19973
19974 fi
19975
19976
19977 cat >conftest.$ac_ext <<_ACEOF
19978 /* confdefs.h.  */
19979 _ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h.  */
19983 #include <lber.h>
19984
19985 _ACEOF
19986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19987   $EGREP "ber_strdup" >/dev/null 2>&1; then
19988
19989         :
19990
19991 else
19992
19993         echo "        didn't find ber_strdup in lber.h!";
19994         echo "        Check for the right version (>= 2.0) of the OpenLDAP includes";
19995         echo "        or try --with-ldap-includes option.";
19996         exit
19997
19998 fi
19999 rm -f conftest*
20000
20001
20002
20003
20004                               ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile"
20005 cat >confcache <<\_ACEOF
20006 # This file is a shell script that caches the results of configure
20007 # tests run on this system so they can be shared between configure
20008 # scripts and configure runs, see configure's option --config-cache.
20009 # It is not useful on other systems.  If it contains results you don't
20010 # want to keep, you may remove or edit it.
20011 #
20012 # config.status only pays attention to the cache file if you give it
20013 # the --recheck option to rerun configure.
20014 #
20015 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20016 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20017 # following values.
20018
20019 _ACEOF
20020
20021 # The following way of writing the cache mishandles newlines in values,
20022 # but we know of no workaround that is simple, portable, and efficient.
20023 # So, don't put newlines in cache variables' values.
20024 # Ultrix sh set writes to stderr and can't be redirected directly,
20025 # and sets the high bit in the cache file unless we assign to the vars.
20026 {
20027   (set) 2>&1 |
20028     case `(ac_space=' '; set | grep ac_space) 2>&1` in
20029     *ac_space=\ *)
20030       # `set' does not quote correctly, so add quotes (double-quote
20031       # substitution turns \\\\ into \\, and sed turns \\ into \).
20032       sed -n \
20033         "s/'/'\\\\''/g;
20034           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20035       ;;
20036     *)
20037       # `set' quotes correctly as required by POSIX, so do not add quotes.
20038       sed -n \
20039         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20040       ;;
20041     esac;
20042 } |
20043   sed '
20044      t clear
20045      : clear
20046      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20047      t end
20048      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20049      : end' >>confcache
20050 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20051   if test -w $cache_file; then
20052     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20053     cat confcache >$cache_file
20054   else
20055     echo "not updating unwritable cache $cache_file"
20056   fi
20057 fi
20058 rm -f confcache
20059
20060 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20061 # Let make expand exec_prefix.
20062 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20063
20064 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20065 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20066 # trailing colons and then remove the whole line if VPATH becomes empty
20067 # (actually we leave an empty line to preserve line numbers).
20068 if test "x$srcdir" = x.; then
20069   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20070 s/:*\$(srcdir):*/:/;
20071 s/:*\${srcdir}:*/:/;
20072 s/:*@srcdir@:*/:/;
20073 s/^\([^=]*=[     ]*\):*/\1/;
20074 s/:*$//;
20075 s/^[^=]*=[       ]*$//;
20076 }'
20077 fi
20078
20079 DEFS=-DHAVE_CONFIG_H
20080
20081 ac_libobjs=
20082 ac_ltlibobjs=
20083 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20084   # 1. Remove the extension, and $U if already installed.
20085   ac_i=`echo "$ac_i" |
20086          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20087   # 2. Add them.
20088   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20089   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20090 done
20091 LIBOBJS=$ac_libobjs
20092
20093 LTLIBOBJS=$ac_ltlibobjs
20094
20095
20096 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20097   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20098 Usually this means the macro was only invoked conditionally." >&5
20099 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20100 Usually this means the macro was only invoked conditionally." >&2;}
20101    { (exit 1); exit 1; }; }
20102 fi
20103 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20104   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20105 Usually this means the macro was only invoked conditionally." >&5
20106 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20107 Usually this means the macro was only invoked conditionally." >&2;}
20108    { (exit 1); exit 1; }; }
20109 fi
20110 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20111   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20112 Usually this means the macro was only invoked conditionally." >&5
20113 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20114 Usually this means the macro was only invoked conditionally." >&2;}
20115    { (exit 1); exit 1; }; }
20116 fi
20117
20118 : ${CONFIG_STATUS=./config.status}
20119 ac_clean_files_save=$ac_clean_files
20120 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20121 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20122 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20123 cat >$CONFIG_STATUS <<_ACEOF
20124 #! $SHELL
20125 # Generated by $as_me.
20126 # Run this file to recreate the current configuration.
20127 # Compiler output produced by configure, useful for debugging
20128 # configure, is in config.log if it exists.
20129
20130 debug=false
20131 ac_cs_recheck=false
20132 ac_cs_silent=false
20133 SHELL=\${CONFIG_SHELL-$SHELL}
20134 _ACEOF
20135
20136 cat >>$CONFIG_STATUS <<\_ACEOF
20137 ## --------------------- ##
20138 ## M4sh Initialization.  ##
20139 ## --------------------- ##
20140
20141 # Be Bourne compatible
20142 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20143   emulate sh
20144   NULLCMD=:
20145   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20146   # is contrary to our usage.  Disable this feature.
20147   alias -g '${1+"$@"}'='"$@"'
20148 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20149   set -o posix
20150 fi
20151 DUALCASE=1; export DUALCASE # for MKS sh
20152
20153 # Support unset when possible.
20154 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20155   as_unset=unset
20156 else
20157   as_unset=false
20158 fi
20159
20160
20161 # Work around bugs in pre-3.0 UWIN ksh.
20162 $as_unset ENV MAIL MAILPATH
20163 PS1='$ '
20164 PS2='> '
20165 PS4='+ '
20166
20167 # NLS nuisances.
20168 for as_var in \
20169   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20170   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20171   LC_TELEPHONE LC_TIME
20172 do
20173   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20174     eval $as_var=C; export $as_var
20175   else
20176     $as_unset $as_var
20177   fi
20178 done
20179
20180 # Required to use basename.
20181 if expr a : '\(a\)' >/dev/null 2>&1; then
20182   as_expr=expr
20183 else
20184   as_expr=false
20185 fi
20186
20187 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20188   as_basename=basename
20189 else
20190   as_basename=false
20191 fi
20192
20193
20194 # Name of the executable.
20195 as_me=`$as_basename "$0" ||
20196 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20197          X"$0" : 'X\(//\)$' \| \
20198          X"$0" : 'X\(/\)$' \| \
20199          .     : '\(.\)' 2>/dev/null ||
20200 echo X/"$0" |
20201     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20202           /^X\/\(\/\/\)$/{ s//\1/; q; }
20203           /^X\/\(\/\).*/{ s//\1/; q; }
20204           s/.*/./; q'`
20205
20206
20207 # PATH needs CR, and LINENO needs CR and PATH.
20208 # Avoid depending upon Character Ranges.
20209 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20210 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20211 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20212 as_cr_digits='0123456789'
20213 as_cr_alnum=$as_cr_Letters$as_cr_digits
20214
20215 # The user is always right.
20216 if test "${PATH_SEPARATOR+set}" != set; then
20217   echo "#! /bin/sh" >conf$$.sh
20218   echo  "exit 0"   >>conf$$.sh
20219   chmod +x conf$$.sh
20220   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20221     PATH_SEPARATOR=';'
20222   else
20223     PATH_SEPARATOR=:
20224   fi
20225   rm -f conf$$.sh
20226 fi
20227
20228
20229   as_lineno_1=$LINENO
20230   as_lineno_2=$LINENO
20231   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20232   test "x$as_lineno_1" != "x$as_lineno_2" &&
20233   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20234   # Find who we are.  Look in the path if we contain no path at all
20235   # relative or not.
20236   case $0 in
20237     *[\\/]* ) as_myself=$0 ;;
20238     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20239 for as_dir in $PATH
20240 do
20241   IFS=$as_save_IFS
20242   test -z "$as_dir" && as_dir=.
20243   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20244 done
20245
20246        ;;
20247   esac
20248   # We did not find ourselves, most probably we were run as `sh COMMAND'
20249   # in which case we are not to be found in the path.
20250   if test "x$as_myself" = x; then
20251     as_myself=$0
20252   fi
20253   if test ! -f "$as_myself"; then
20254     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20255 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20256    { (exit 1); exit 1; }; }
20257   fi
20258   case $CONFIG_SHELL in
20259   '')
20260     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20261 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20262 do
20263   IFS=$as_save_IFS
20264   test -z "$as_dir" && as_dir=.
20265   for as_base in sh bash ksh sh5; do
20266          case $as_dir in
20267          /*)
20268            if ("$as_dir/$as_base" -c '
20269   as_lineno_1=$LINENO
20270   as_lineno_2=$LINENO
20271   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20272   test "x$as_lineno_1" != "x$as_lineno_2" &&
20273   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20274              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20275              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20276              CONFIG_SHELL=$as_dir/$as_base
20277              export CONFIG_SHELL
20278              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20279            fi;;
20280          esac
20281        done
20282 done
20283 ;;
20284   esac
20285
20286   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20287   # uniformly replaced by the line number.  The first 'sed' inserts a
20288   # line-number line before each line; the second 'sed' does the real
20289   # work.  The second script uses 'N' to pair each line-number line
20290   # with the numbered line, and appends trailing '-' during
20291   # substitution so that $LINENO is not a special case at line end.
20292   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20293   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20294   sed '=' <$as_myself |
20295     sed '
20296       N
20297       s,$,-,
20298       : loop
20299       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20300       t loop
20301       s,-$,,
20302       s,^['$as_cr_digits']*\n,,
20303     ' >$as_me.lineno &&
20304   chmod +x $as_me.lineno ||
20305     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20306 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20307    { (exit 1); exit 1; }; }
20308
20309   # Don't try to exec as it changes $[0], causing all sort of problems
20310   # (the dirname of $[0] is not the place where we might find the
20311   # original and so on.  Autoconf is especially sensible to this).
20312   . ./$as_me.lineno
20313   # Exit status is that of the last command.
20314   exit
20315 }
20316
20317
20318 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20319   *c*,-n*) ECHO_N= ECHO_C='
20320 ' ECHO_T='      ' ;;
20321   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20322   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20323 esac
20324
20325 if expr a : '\(a\)' >/dev/null 2>&1; then
20326   as_expr=expr
20327 else
20328   as_expr=false
20329 fi
20330
20331 rm -f conf$$ conf$$.exe conf$$.file
20332 echo >conf$$.file
20333 if ln -s conf$$.file conf$$ 2>/dev/null; then
20334   # We could just check for DJGPP; but this test a) works b) is more generic
20335   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20336   if test -f conf$$.exe; then
20337     # Don't use ln at all; we don't have any links
20338     as_ln_s='cp -p'
20339   else
20340     as_ln_s='ln -s'
20341   fi
20342 elif ln conf$$.file conf$$ 2>/dev/null; then
20343   as_ln_s=ln
20344 else
20345   as_ln_s='cp -p'
20346 fi
20347 rm -f conf$$ conf$$.exe conf$$.file
20348
20349 if mkdir -p . 2>/dev/null; then
20350   as_mkdir_p=:
20351 else
20352   test -d ./-p && rmdir ./-p
20353   as_mkdir_p=false
20354 fi
20355
20356 as_executable_p="test -f"
20357
20358 # Sed expression to map a string onto a valid CPP name.
20359 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20360
20361 # Sed expression to map a string onto a valid variable name.
20362 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20363
20364
20365 # IFS
20366 # We need space, tab and new line, in precisely that order.
20367 as_nl='
20368 '
20369 IFS="   $as_nl"
20370
20371 # CDPATH.
20372 $as_unset CDPATH
20373
20374 exec 6>&1
20375
20376 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20377 # report actual input values of CONFIG_FILES etc. instead of their
20378 # values after options handling.  Logging --version etc. is OK.
20379 exec 5>>config.log
20380 {
20381   echo
20382   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20383 ## Running $as_me. ##
20384 _ASBOX
20385 } >&5
20386 cat >&5 <<_CSEOF
20387
20388 This file was extended by $as_me, which was
20389 generated by GNU Autoconf 2.59.  Invocation command line was
20390
20391   CONFIG_FILES    = $CONFIG_FILES
20392   CONFIG_HEADERS  = $CONFIG_HEADERS
20393   CONFIG_LINKS    = $CONFIG_LINKS
20394   CONFIG_COMMANDS = $CONFIG_COMMANDS
20395   $ $0 $@
20396
20397 _CSEOF
20398 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20399 echo >&5
20400 _ACEOF
20401
20402 # Files that config.status was made for.
20403 if test -n "$ac_config_files"; then
20404   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20405 fi
20406
20407 if test -n "$ac_config_headers"; then
20408   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20409 fi
20410
20411 if test -n "$ac_config_links"; then
20412   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20413 fi
20414
20415 if test -n "$ac_config_commands"; then
20416   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20417 fi
20418
20419 cat >>$CONFIG_STATUS <<\_ACEOF
20420
20421 ac_cs_usage="\
20422 \`$as_me' instantiates files from templates according to the
20423 current configuration.
20424
20425 Usage: $0 [OPTIONS] [FILE]...
20426
20427   -h, --help       print this help, then exit
20428   -V, --version    print version number, then exit
20429   -q, --quiet      do not print progress messages
20430   -d, --debug      don't remove temporary files
20431       --recheck    update $as_me by reconfiguring in the same conditions
20432   --file=FILE[:TEMPLATE]
20433                    instantiate the configuration file FILE
20434   --header=FILE[:TEMPLATE]
20435                    instantiate the configuration header FILE
20436
20437 Configuration files:
20438 $config_files
20439
20440 Configuration headers:
20441 $config_headers
20442
20443 Configuration commands:
20444 $config_commands
20445
20446 Report bugs to <bug-autoconf@gnu.org>."
20447 _ACEOF
20448
20449 cat >>$CONFIG_STATUS <<_ACEOF
20450 ac_cs_version="\\
20451 config.status
20452 configured by $0, generated by GNU Autoconf 2.59,
20453   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20454
20455 Copyright (C) 2003 Free Software Foundation, Inc.
20456 This config.status script is free software; the Free Software Foundation
20457 gives unlimited permission to copy, distribute and modify it."
20458 srcdir=$srcdir
20459 INSTALL="$INSTALL"
20460 _ACEOF
20461
20462 cat >>$CONFIG_STATUS <<\_ACEOF
20463 # If no file are specified by the user, then we need to provide default
20464 # value.  By we need to know if files were specified by the user.
20465 ac_need_defaults=:
20466 while test $# != 0
20467 do
20468   case $1 in
20469   --*=*)
20470     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20471     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20472     ac_shift=:
20473     ;;
20474   -*)
20475     ac_option=$1
20476     ac_optarg=$2
20477     ac_shift=shift
20478     ;;
20479   *) # This is not an option, so the user has probably given explicit
20480      # arguments.
20481      ac_option=$1
20482      ac_need_defaults=false;;
20483   esac
20484
20485   case $ac_option in
20486   # Handling of the options.
20487 _ACEOF
20488 cat >>$CONFIG_STATUS <<\_ACEOF
20489   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20490     ac_cs_recheck=: ;;
20491   --version | --vers* | -V )
20492     echo "$ac_cs_version"; exit 0 ;;
20493   --he | --h)
20494     # Conflict between --help and --header
20495     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20496 Try \`$0 --help' for more information." >&5
20497 echo "$as_me: error: ambiguous option: $1
20498 Try \`$0 --help' for more information." >&2;}
20499    { (exit 1); exit 1; }; };;
20500   --help | --hel | -h )
20501     echo "$ac_cs_usage"; exit 0 ;;
20502   --debug | --d* | -d )
20503     debug=: ;;
20504   --file | --fil | --fi | --f )
20505     $ac_shift
20506     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20507     ac_need_defaults=false;;
20508   --header | --heade | --head | --hea )
20509     $ac_shift
20510     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20511     ac_need_defaults=false;;
20512   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20513   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20514     ac_cs_silent=: ;;
20515
20516   # This is an error.
20517   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20518 Try \`$0 --help' for more information." >&5
20519 echo "$as_me: error: unrecognized option: $1
20520 Try \`$0 --help' for more information." >&2;}
20521    { (exit 1); exit 1; }; } ;;
20522
20523   *) ac_config_targets="$ac_config_targets $1" ;;
20524
20525   esac
20526   shift
20527 done
20528
20529 ac_configure_extra_args=
20530
20531 if $ac_cs_silent; then
20532   exec 6>/dev/null
20533   ac_configure_extra_args="$ac_configure_extra_args --silent"
20534 fi
20535
20536 _ACEOF
20537 cat >>$CONFIG_STATUS <<_ACEOF
20538 if \$ac_cs_recheck; then
20539   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20540   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20541 fi
20542
20543 _ACEOF
20544
20545 cat >>$CONFIG_STATUS <<_ACEOF
20546 #
20547 # INIT-COMMANDS section.
20548 #
20549
20550 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20551
20552 _ACEOF
20553
20554
20555
20556 cat >>$CONFIG_STATUS <<\_ACEOF
20557 for ac_config_target in $ac_config_targets
20558 do
20559   case "$ac_config_target" in
20560   # Handling of arguments.
20561   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20562   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20563   "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
20564   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20565   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
20566   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20567 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20568    { (exit 1); exit 1; }; };;
20569   esac
20570 done
20571
20572 # If the user did not use the arguments to specify the items to instantiate,
20573 # then the envvar interface is used.  Set only those that are not.
20574 # We use the long form for the default assignment because of an extremely
20575 # bizarre bug on SunOS 4.1.3.
20576 if $ac_need_defaults; then
20577   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20578   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20579   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20580 fi
20581
20582 # Have a temporary directory for convenience.  Make it in the build tree
20583 # simply because there is no reason to put it here, and in addition,
20584 # creating and moving files from /tmp can sometimes cause problems.
20585 # Create a temporary directory, and hook for its removal unless debugging.
20586 $debug ||
20587 {
20588   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20589   trap '{ (exit 1); exit 1; }' 1 2 13 15
20590 }
20591
20592 # Create a (secure) tmp directory for tmp files.
20593
20594 {
20595   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20596   test -n "$tmp" && test -d "$tmp"
20597 }  ||
20598 {
20599   tmp=./confstat$$-$RANDOM
20600   (umask 077 && mkdir $tmp)
20601 } ||
20602 {
20603    echo "$me: cannot create a temporary directory in ." >&2
20604    { (exit 1); exit 1; }
20605 }
20606
20607 _ACEOF
20608
20609 cat >>$CONFIG_STATUS <<_ACEOF
20610
20611 #
20612 # CONFIG_FILES section.
20613 #
20614
20615 # No need to generate the scripts if there are no CONFIG_FILES.
20616 # This happens for instance when ./config.status config.h
20617 if test -n "\$CONFIG_FILES"; then
20618   # Protect against being on the right side of a sed subst in config.status.
20619   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20620    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20621 s,@SHELL@,$SHELL,;t t
20622 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20623 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20624 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20625 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20626 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20627 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20628 s,@exec_prefix@,$exec_prefix,;t t
20629 s,@prefix@,$prefix,;t t
20630 s,@program_transform_name@,$program_transform_name,;t t
20631 s,@bindir@,$bindir,;t t
20632 s,@sbindir@,$sbindir,;t t
20633 s,@libexecdir@,$libexecdir,;t t
20634 s,@datadir@,$datadir,;t t
20635 s,@sysconfdir@,$sysconfdir,;t t
20636 s,@sharedstatedir@,$sharedstatedir,;t t
20637 s,@localstatedir@,$localstatedir,;t t
20638 s,@libdir@,$libdir,;t t
20639 s,@includedir@,$includedir,;t t
20640 s,@oldincludedir@,$oldincludedir,;t t
20641 s,@infodir@,$infodir,;t t
20642 s,@mandir@,$mandir,;t t
20643 s,@build_alias@,$build_alias,;t t
20644 s,@host_alias@,$host_alias,;t t
20645 s,@target_alias@,$target_alias,;t t
20646 s,@DEFS@,$DEFS,;t t
20647 s,@ECHO_C@,$ECHO_C,;t t
20648 s,@ECHO_N@,$ECHO_N,;t t
20649 s,@ECHO_T@,$ECHO_T,;t t
20650 s,@LIBS@,$LIBS,;t t
20651 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20652 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20653 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20654 s,@CYGPATH_W@,$CYGPATH_W,;t t
20655 s,@PACKAGE@,$PACKAGE,;t t
20656 s,@VERSION@,$VERSION,;t t
20657 s,@ACLOCAL@,$ACLOCAL,;t t
20658 s,@AUTOCONF@,$AUTOCONF,;t t
20659 s,@AUTOMAKE@,$AUTOMAKE,;t t
20660 s,@AUTOHEADER@,$AUTOHEADER,;t t
20661 s,@MAKEINFO@,$MAKEINFO,;t t
20662 s,@install_sh@,$install_sh,;t t
20663 s,@STRIP@,$STRIP,;t t
20664 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20665 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20666 s,@mkdir_p@,$mkdir_p,;t t
20667 s,@AWK@,$AWK,;t t
20668 s,@SET_MAKE@,$SET_MAKE,;t t
20669 s,@am__leading_dot@,$am__leading_dot,;t t
20670 s,@AMTAR@,$AMTAR,;t t
20671 s,@am__tar@,$am__tar,;t t
20672 s,@am__untar@,$am__untar,;t t
20673 s,@CXX@,$CXX,;t t
20674 s,@CXXFLAGS@,$CXXFLAGS,;t t
20675 s,@LDFLAGS@,$LDFLAGS,;t t
20676 s,@CPPFLAGS@,$CPPFLAGS,;t t
20677 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20678 s,@EXEEXT@,$EXEEXT,;t t
20679 s,@OBJEXT@,$OBJEXT,;t t
20680 s,@DEPDIR@,$DEPDIR,;t t
20681 s,@am__include@,$am__include,;t t
20682 s,@am__quote@,$am__quote,;t t
20683 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20684 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20685 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20686 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20687 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20688 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20689 s,@build@,$build,;t t
20690 s,@build_cpu@,$build_cpu,;t t
20691 s,@build_vendor@,$build_vendor,;t t
20692 s,@build_os@,$build_os,;t t
20693 s,@host@,$host,;t t
20694 s,@host_cpu@,$host_cpu,;t t
20695 s,@host_vendor@,$host_vendor,;t t
20696 s,@host_os@,$host_os,;t t
20697 s,@CC@,$CC,;t t
20698 s,@CFLAGS@,$CFLAGS,;t t
20699 s,@ac_ct_CC@,$ac_ct_CC,;t t
20700 s,@CCDEPMODE@,$CCDEPMODE,;t t
20701 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20702 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20703 s,@EGREP@,$EGREP,;t t
20704 s,@LN_S@,$LN_S,;t t
20705 s,@ECHO@,$ECHO,;t t
20706 s,@AR@,$AR,;t t
20707 s,@ac_ct_AR@,$ac_ct_AR,;t t
20708 s,@RANLIB@,$RANLIB,;t t
20709 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20710 s,@CPP@,$CPP,;t t
20711 s,@CXXCPP@,$CXXCPP,;t t
20712 s,@F77@,$F77,;t t
20713 s,@FFLAGS@,$FFLAGS,;t t
20714 s,@ac_ct_F77@,$ac_ct_F77,;t t
20715 s,@LIBTOOL@,$LIBTOOL,;t t
20716 s,@LIBOBJS@,$LIBOBJS,;t t
20717 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20718 CEOF
20719
20720 _ACEOF
20721
20722   cat >>$CONFIG_STATUS <<\_ACEOF
20723   # Split the substitutions into bite-sized pieces for seds with
20724   # small command number limits, like on Digital OSF/1 and HP-UX.
20725   ac_max_sed_lines=48
20726   ac_sed_frag=1 # Number of current file.
20727   ac_beg=1 # First line for current file.
20728   ac_end=$ac_max_sed_lines # Line after last line for current file.
20729   ac_more_lines=:
20730   ac_sed_cmds=
20731   while $ac_more_lines; do
20732     if test $ac_beg -gt 1; then
20733       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20734     else
20735       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20736     fi
20737     if test ! -s $tmp/subs.frag; then
20738       ac_more_lines=false
20739     else
20740       # The purpose of the label and of the branching condition is to
20741       # speed up the sed processing (if there are no `@' at all, there
20742       # is no need to browse any of the substitutions).
20743       # These are the two extra sed commands mentioned above.
20744       (echo ':t
20745   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20746       if test -z "$ac_sed_cmds"; then
20747         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20748       else
20749         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20750       fi
20751       ac_sed_frag=`expr $ac_sed_frag + 1`
20752       ac_beg=$ac_end
20753       ac_end=`expr $ac_end + $ac_max_sed_lines`
20754     fi
20755   done
20756   if test -z "$ac_sed_cmds"; then
20757     ac_sed_cmds=cat
20758   fi
20759 fi # test -n "$CONFIG_FILES"
20760
20761 _ACEOF
20762 cat >>$CONFIG_STATUS <<\_ACEOF
20763 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20764   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20765   case $ac_file in
20766   - | *:- | *:-:* ) # input from stdin
20767         cat >$tmp/stdin
20768         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20769         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20770   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20771         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20772   * )   ac_file_in=$ac_file.in ;;
20773   esac
20774
20775   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20776   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20777 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20778          X"$ac_file" : 'X\(//\)[^/]' \| \
20779          X"$ac_file" : 'X\(//\)$' \| \
20780          X"$ac_file" : 'X\(/\)' \| \
20781          .     : '\(.\)' 2>/dev/null ||
20782 echo X"$ac_file" |
20783     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20784           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20785           /^X\(\/\/\)$/{ s//\1/; q; }
20786           /^X\(\/\).*/{ s//\1/; q; }
20787           s/.*/./; q'`
20788   { if $as_mkdir_p; then
20789     mkdir -p "$ac_dir"
20790   else
20791     as_dir="$ac_dir"
20792     as_dirs=
20793     while test ! -d "$as_dir"; do
20794       as_dirs="$as_dir $as_dirs"
20795       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20796 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20797          X"$as_dir" : 'X\(//\)[^/]' \| \
20798          X"$as_dir" : 'X\(//\)$' \| \
20799          X"$as_dir" : 'X\(/\)' \| \
20800          .     : '\(.\)' 2>/dev/null ||
20801 echo X"$as_dir" |
20802     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20803           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20804           /^X\(\/\/\)$/{ s//\1/; q; }
20805           /^X\(\/\).*/{ s//\1/; q; }
20806           s/.*/./; q'`
20807     done
20808     test ! -n "$as_dirs" || mkdir $as_dirs
20809   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20810 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20811    { (exit 1); exit 1; }; }; }
20812
20813   ac_builddir=.
20814
20815 if test "$ac_dir" != .; then
20816   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20817   # A "../" for each directory in $ac_dir_suffix.
20818   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20819 else
20820   ac_dir_suffix= ac_top_builddir=
20821 fi
20822
20823 case $srcdir in
20824   .)  # No --srcdir option.  We are building in place.
20825     ac_srcdir=.
20826     if test -z "$ac_top_builddir"; then
20827        ac_top_srcdir=.
20828     else
20829        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20830     fi ;;
20831   [\\/]* | ?:[\\/]* )  # Absolute path.
20832     ac_srcdir=$srcdir$ac_dir_suffix;
20833     ac_top_srcdir=$srcdir ;;
20834   *) # Relative path.
20835     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20836     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20837 esac
20838
20839 # Do not use `cd foo && pwd` to compute absolute paths, because
20840 # the directories may not exist.
20841 case `pwd` in
20842 .) ac_abs_builddir="$ac_dir";;
20843 *)
20844   case "$ac_dir" in
20845   .) ac_abs_builddir=`pwd`;;
20846   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20847   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20848   esac;;
20849 esac
20850 case $ac_abs_builddir in
20851 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20852 *)
20853   case ${ac_top_builddir}. in
20854   .) ac_abs_top_builddir=$ac_abs_builddir;;
20855   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20856   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20857   esac;;
20858 esac
20859 case $ac_abs_builddir in
20860 .) ac_abs_srcdir=$ac_srcdir;;
20861 *)
20862   case $ac_srcdir in
20863   .) ac_abs_srcdir=$ac_abs_builddir;;
20864   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20865   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20866   esac;;
20867 esac
20868 case $ac_abs_builddir in
20869 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20870 *)
20871   case $ac_top_srcdir in
20872   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20873   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20874   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20875   esac;;
20876 esac
20877
20878
20879   case $INSTALL in
20880   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20881   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20882   esac
20883
20884   if test x"$ac_file" != x-; then
20885     { echo "$as_me:$LINENO: creating $ac_file" >&5
20886 echo "$as_me: creating $ac_file" >&6;}
20887     rm -f "$ac_file"
20888   fi
20889   # Let's still pretend it is `configure' which instantiates (i.e., don't
20890   # use $as_me), people would be surprised to read:
20891   #    /* config.h.  Generated by config.status.  */
20892   if test x"$ac_file" = x-; then
20893     configure_input=
20894   else
20895     configure_input="$ac_file.  "
20896   fi
20897   configure_input=$configure_input"Generated from `echo $ac_file_in |
20898                                      sed 's,.*/,,'` by configure."
20899
20900   # First look for the input files in the build tree, otherwise in the
20901   # src tree.
20902   ac_file_inputs=`IFS=:
20903     for f in $ac_file_in; do
20904       case $f in
20905       -) echo $tmp/stdin ;;
20906       [\\/$]*)
20907          # Absolute (can't be DOS-style, as IFS=:)
20908          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20909 echo "$as_me: error: cannot find input file: $f" >&2;}
20910    { (exit 1); exit 1; }; }
20911          echo "$f";;
20912       *) # Relative
20913          if test -f "$f"; then
20914            # Build tree
20915            echo "$f"
20916          elif test -f "$srcdir/$f"; then
20917            # Source tree
20918            echo "$srcdir/$f"
20919          else
20920            # /dev/null tree
20921            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20922 echo "$as_me: error: cannot find input file: $f" >&2;}
20923    { (exit 1); exit 1; }; }
20924          fi;;
20925       esac
20926     done` || { (exit 1); exit 1; }
20927 _ACEOF
20928 cat >>$CONFIG_STATUS <<_ACEOF
20929   sed "$ac_vpsub
20930 $extrasub
20931 _ACEOF
20932 cat >>$CONFIG_STATUS <<\_ACEOF
20933 :t
20934 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20935 s,@configure_input@,$configure_input,;t t
20936 s,@srcdir@,$ac_srcdir,;t t
20937 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20938 s,@top_srcdir@,$ac_top_srcdir,;t t
20939 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20940 s,@builddir@,$ac_builddir,;t t
20941 s,@abs_builddir@,$ac_abs_builddir,;t t
20942 s,@top_builddir@,$ac_top_builddir,;t t
20943 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20944 s,@INSTALL@,$ac_INSTALL,;t t
20945 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20946   rm -f $tmp/stdin
20947   if test x"$ac_file" != x-; then
20948     mv $tmp/out $ac_file
20949   else
20950     cat $tmp/out
20951     rm -f $tmp/out
20952   fi
20953
20954 done
20955 _ACEOF
20956 cat >>$CONFIG_STATUS <<\_ACEOF
20957
20958 #
20959 # CONFIG_HEADER section.
20960 #
20961
20962 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20963 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20964 #
20965 # ac_d sets the value in "#define NAME VALUE" lines.
20966 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
20967 ac_dB='[         ].*$,\1#\2'
20968 ac_dC=' '
20969 ac_dD=',;t'
20970 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20971 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20972 ac_uB='$,\1#\2define\3'
20973 ac_uC=' '
20974 ac_uD=',;t'
20975
20976 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20977   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20978   case $ac_file in
20979   - | *:- | *:-:* ) # input from stdin
20980         cat >$tmp/stdin
20981         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20982         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20983   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20984         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20985   * )   ac_file_in=$ac_file.in ;;
20986   esac
20987
20988   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20989 echo "$as_me: creating $ac_file" >&6;}
20990
20991   # First look for the input files in the build tree, otherwise in the
20992   # src tree.
20993   ac_file_inputs=`IFS=:
20994     for f in $ac_file_in; do
20995       case $f in
20996       -) echo $tmp/stdin ;;
20997       [\\/$]*)
20998          # Absolute (can't be DOS-style, as IFS=:)
20999          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21000 echo "$as_me: error: cannot find input file: $f" >&2;}
21001    { (exit 1); exit 1; }; }
21002          # Do quote $f, to prevent DOS paths from being IFS'd.
21003          echo "$f";;
21004       *) # Relative
21005          if test -f "$f"; then
21006            # Build tree
21007            echo "$f"
21008          elif test -f "$srcdir/$f"; then
21009            # Source tree
21010            echo "$srcdir/$f"
21011          else
21012            # /dev/null tree
21013            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21014 echo "$as_me: error: cannot find input file: $f" >&2;}
21015    { (exit 1); exit 1; }; }
21016          fi;;
21017       esac
21018     done` || { (exit 1); exit 1; }
21019   # Remove the trailing spaces.
21020   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
21021
21022 _ACEOF
21023
21024 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21025 # `conftest.undefs', that substitutes the proper values into
21026 # config.h.in to produce config.h.  The first handles `#define'
21027 # templates, and the second `#undef' templates.
21028 # And first: Protect against being on the right side of a sed subst in
21029 # config.status.  Protect against being in an unquoted here document
21030 # in config.status.
21031 rm -f conftest.defines conftest.undefs
21032 # Using a here document instead of a string reduces the quoting nightmare.
21033 # Putting comments in sed scripts is not portable.
21034 #
21035 # `end' is used to avoid that the second main sed command (meant for
21036 # 0-ary CPP macros) applies to n-ary macro definitions.
21037 # See the Autoconf documentation for `clear'.
21038 cat >confdef2sed.sed <<\_ACEOF
21039 s/[\\&,]/\\&/g
21040 s,[\\$`],\\&,g
21041 t clear
21042 : clear
21043 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21044 t end
21045 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21046 : end
21047 _ACEOF
21048 # If some macros were called several times there might be several times
21049 # the same #defines, which is useless.  Nevertheless, we may not want to
21050 # sort them, since we want the *last* AC-DEFINE to be honored.
21051 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21052 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21053 rm -f confdef2sed.sed
21054
21055 # This sed command replaces #undef with comments.  This is necessary, for
21056 # example, in the case of _POSIX_SOURCE, which is predefined and required
21057 # on some systems where configure will not decide to define it.
21058 cat >>conftest.undefs <<\_ACEOF
21059 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21060 _ACEOF
21061
21062 # Break up conftest.defines because some shells have a limit on the size
21063 # of here documents, and old seds have small limits too (100 cmds).
21064 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21065 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21066 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21067 echo '  :' >>$CONFIG_STATUS
21068 rm -f conftest.tail
21069 while grep . conftest.defines >/dev/null
21070 do
21071   # Write a limited-size here document to $tmp/defines.sed.
21072   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21073   # Speed up: don't consider the non `#define' lines.
21074   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
21075   # Work around the forget-to-reset-the-flag bug.
21076   echo 't clr' >>$CONFIG_STATUS
21077   echo ': clr' >>$CONFIG_STATUS
21078   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21079   echo 'CEOF
21080   sed -f $tmp/defines.sed $tmp/in >$tmp/out
21081   rm -f $tmp/in
21082   mv $tmp/out $tmp/in
21083 ' >>$CONFIG_STATUS
21084   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21085   rm -f conftest.defines
21086   mv conftest.tail conftest.defines
21087 done
21088 rm -f conftest.defines
21089 echo '  fi # grep' >>$CONFIG_STATUS
21090 echo >>$CONFIG_STATUS
21091
21092 # Break up conftest.undefs because some shells have a limit on the size
21093 # of here documents, and old seds have small limits too (100 cmds).
21094 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21095 rm -f conftest.tail
21096 while grep . conftest.undefs >/dev/null
21097 do
21098   # Write a limited-size here document to $tmp/undefs.sed.
21099   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21100   # Speed up: don't consider the non `#undef'
21101   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21102   # Work around the forget-to-reset-the-flag bug.
21103   echo 't clr' >>$CONFIG_STATUS
21104   echo ': clr' >>$CONFIG_STATUS
21105   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21106   echo 'CEOF
21107   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21108   rm -f $tmp/in
21109   mv $tmp/out $tmp/in
21110 ' >>$CONFIG_STATUS
21111   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21112   rm -f conftest.undefs
21113   mv conftest.tail conftest.undefs
21114 done
21115 rm -f conftest.undefs
21116
21117 cat >>$CONFIG_STATUS <<\_ACEOF
21118   # Let's still pretend it is `configure' which instantiates (i.e., don't
21119   # use $as_me), people would be surprised to read:
21120   #    /* config.h.  Generated by config.status.  */
21121   if test x"$ac_file" = x-; then
21122     echo "/* Generated by configure.  */" >$tmp/config.h
21123   else
21124     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21125   fi
21126   cat $tmp/in >>$tmp/config.h
21127   rm -f $tmp/in
21128   if test x"$ac_file" != x-; then
21129     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21130       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21131 echo "$as_me: $ac_file is unchanged" >&6;}
21132     else
21133       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21134 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21135          X"$ac_file" : 'X\(//\)[^/]' \| \
21136          X"$ac_file" : 'X\(//\)$' \| \
21137          X"$ac_file" : 'X\(/\)' \| \
21138          .     : '\(.\)' 2>/dev/null ||
21139 echo X"$ac_file" |
21140     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21141           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21142           /^X\(\/\/\)$/{ s//\1/; q; }
21143           /^X\(\/\).*/{ s//\1/; q; }
21144           s/.*/./; q'`
21145       { if $as_mkdir_p; then
21146     mkdir -p "$ac_dir"
21147   else
21148     as_dir="$ac_dir"
21149     as_dirs=
21150     while test ! -d "$as_dir"; do
21151       as_dirs="$as_dir $as_dirs"
21152       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21153 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21154          X"$as_dir" : 'X\(//\)[^/]' \| \
21155          X"$as_dir" : 'X\(//\)$' \| \
21156          X"$as_dir" : 'X\(/\)' \| \
21157          .     : '\(.\)' 2>/dev/null ||
21158 echo X"$as_dir" |
21159     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21160           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21161           /^X\(\/\/\)$/{ s//\1/; q; }
21162           /^X\(\/\).*/{ s//\1/; q; }
21163           s/.*/./; q'`
21164     done
21165     test ! -n "$as_dirs" || mkdir $as_dirs
21166   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21167 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21168    { (exit 1); exit 1; }; }; }
21169
21170       rm -f $ac_file
21171       mv $tmp/config.h $ac_file
21172     fi
21173   else
21174     cat $tmp/config.h
21175     rm -f $tmp/config.h
21176   fi
21177 # Compute $ac_file's index in $config_headers.
21178 _am_stamp_count=1
21179 for _am_header in $config_headers :; do
21180   case $_am_header in
21181     $ac_file | $ac_file:* )
21182       break ;;
21183     * )
21184       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21185   esac
21186 done
21187 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21188 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21189          X$ac_file : 'X\(//\)[^/]' \| \
21190          X$ac_file : 'X\(//\)$' \| \
21191          X$ac_file : 'X\(/\)' \| \
21192          .     : '\(.\)' 2>/dev/null ||
21193 echo X$ac_file |
21194     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21195           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21196           /^X\(\/\/\)$/{ s//\1/; q; }
21197           /^X\(\/\).*/{ s//\1/; q; }
21198           s/.*/./; q'`/stamp-h$_am_stamp_count
21199 done
21200 _ACEOF
21201 cat >>$CONFIG_STATUS <<\_ACEOF
21202
21203 #
21204 # CONFIG_COMMANDS section.
21205 #
21206 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21207   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21208   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21209   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21210 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21211          X"$ac_dest" : 'X\(//\)[^/]' \| \
21212          X"$ac_dest" : 'X\(//\)$' \| \
21213          X"$ac_dest" : 'X\(/\)' \| \
21214          .     : '\(.\)' 2>/dev/null ||
21215 echo X"$ac_dest" |
21216     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21217           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21218           /^X\(\/\/\)$/{ s//\1/; q; }
21219           /^X\(\/\).*/{ s//\1/; q; }
21220           s/.*/./; q'`
21221   { if $as_mkdir_p; then
21222     mkdir -p "$ac_dir"
21223   else
21224     as_dir="$ac_dir"
21225     as_dirs=
21226     while test ! -d "$as_dir"; do
21227       as_dirs="$as_dir $as_dirs"
21228       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21229 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21230          X"$as_dir" : 'X\(//\)[^/]' \| \
21231          X"$as_dir" : 'X\(//\)$' \| \
21232          X"$as_dir" : 'X\(/\)' \| \
21233          .     : '\(.\)' 2>/dev/null ||
21234 echo X"$as_dir" |
21235     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21236           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21237           /^X\(\/\/\)$/{ s//\1/; q; }
21238           /^X\(\/\).*/{ s//\1/; q; }
21239           s/.*/./; q'`
21240     done
21241     test ! -n "$as_dirs" || mkdir $as_dirs
21242   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21243 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21244    { (exit 1); exit 1; }; }; }
21245
21246   ac_builddir=.
21247
21248 if test "$ac_dir" != .; then
21249   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21250   # A "../" for each directory in $ac_dir_suffix.
21251   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21252 else
21253   ac_dir_suffix= ac_top_builddir=
21254 fi
21255
21256 case $srcdir in
21257   .)  # No --srcdir option.  We are building in place.
21258     ac_srcdir=.
21259     if test -z "$ac_top_builddir"; then
21260        ac_top_srcdir=.
21261     else
21262        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21263     fi ;;
21264   [\\/]* | ?:[\\/]* )  # Absolute path.
21265     ac_srcdir=$srcdir$ac_dir_suffix;
21266     ac_top_srcdir=$srcdir ;;
21267   *) # Relative path.
21268     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21269     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21270 esac
21271
21272 # Do not use `cd foo && pwd` to compute absolute paths, because
21273 # the directories may not exist.
21274 case `pwd` in
21275 .) ac_abs_builddir="$ac_dir";;
21276 *)
21277   case "$ac_dir" in
21278   .) ac_abs_builddir=`pwd`;;
21279   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21280   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21281   esac;;
21282 esac
21283 case $ac_abs_builddir in
21284 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21285 *)
21286   case ${ac_top_builddir}. in
21287   .) ac_abs_top_builddir=$ac_abs_builddir;;
21288   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21289   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21290   esac;;
21291 esac
21292 case $ac_abs_builddir in
21293 .) ac_abs_srcdir=$ac_srcdir;;
21294 *)
21295   case $ac_srcdir in
21296   .) ac_abs_srcdir=$ac_abs_builddir;;
21297   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21298   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21299   esac;;
21300 esac
21301 case $ac_abs_builddir in
21302 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21303 *)
21304   case $ac_top_srcdir in
21305   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21306   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21307   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21308   esac;;
21309 esac
21310
21311
21312   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21313 echo "$as_me: executing $ac_dest commands" >&6;}
21314   case $ac_dest in
21315     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21316   # Strip MF so we end up with the name of the file.
21317   mf=`echo "$mf" | sed -e 's/:.*$//'`
21318   # Check whether this is an Automake generated Makefile or not.
21319   # We used to match only the files named `Makefile.in', but
21320   # some people rename them; so instead we look at the file content.
21321   # Grep'ing the first line is not enough: some people post-process
21322   # each Makefile.in and add a new line on top of each file to say so.
21323   # So let's grep whole file.
21324   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21325     dirpart=`(dirname "$mf") 2>/dev/null ||
21326 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21327          X"$mf" : 'X\(//\)[^/]' \| \
21328          X"$mf" : 'X\(//\)$' \| \
21329          X"$mf" : 'X\(/\)' \| \
21330          .     : '\(.\)' 2>/dev/null ||
21331 echo X"$mf" |
21332     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21333           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21334           /^X\(\/\/\)$/{ s//\1/; q; }
21335           /^X\(\/\).*/{ s//\1/; q; }
21336           s/.*/./; q'`
21337   else
21338     continue
21339   fi
21340   # Extract the definition of DEPDIR, am__include, and am__quote
21341   # from the Makefile without running `make'.
21342   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21343   test -z "$DEPDIR" && continue
21344   am__include=`sed -n 's/^am__include = //p' < "$mf"`
21345   test -z "am__include" && continue
21346   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21347   # When using ansi2knr, U may be empty or an underscore; expand it
21348   U=`sed -n 's/^U = //p' < "$mf"`
21349   # Find all dependency output files, they are included files with
21350   # $(DEPDIR) in their names.  We invoke sed twice because it is the
21351   # simplest approach to changing $(DEPDIR) to its actual value in the
21352   # expansion.
21353   for file in `sed -n "
21354     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21355        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21356     # Make sure the directory exists.
21357     test -f "$dirpart/$file" && continue
21358     fdir=`(dirname "$file") 2>/dev/null ||
21359 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21360          X"$file" : 'X\(//\)[^/]' \| \
21361          X"$file" : 'X\(//\)$' \| \
21362          X"$file" : 'X\(/\)' \| \
21363          .     : '\(.\)' 2>/dev/null ||
21364 echo X"$file" |
21365     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21366           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21367           /^X\(\/\/\)$/{ s//\1/; q; }
21368           /^X\(\/\).*/{ s//\1/; q; }
21369           s/.*/./; q'`
21370     { if $as_mkdir_p; then
21371     mkdir -p $dirpart/$fdir
21372   else
21373     as_dir=$dirpart/$fdir
21374     as_dirs=
21375     while test ! -d "$as_dir"; do
21376       as_dirs="$as_dir $as_dirs"
21377       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21378 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21379          X"$as_dir" : 'X\(//\)[^/]' \| \
21380          X"$as_dir" : 'X\(//\)$' \| \
21381          X"$as_dir" : 'X\(/\)' \| \
21382          .     : '\(.\)' 2>/dev/null ||
21383 echo X"$as_dir" |
21384     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21385           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21386           /^X\(\/\/\)$/{ s//\1/; q; }
21387           /^X\(\/\).*/{ s//\1/; q; }
21388           s/.*/./; q'`
21389     done
21390     test ! -n "$as_dirs" || mkdir $as_dirs
21391   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21392 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21393    { (exit 1); exit 1; }; }; }
21394
21395     # echo "creating $dirpart/$file"
21396     echo '# dummy' > "$dirpart/$file"
21397   done
21398 done
21399  ;;
21400   esac
21401 done
21402 _ACEOF
21403
21404 cat >>$CONFIG_STATUS <<\_ACEOF
21405
21406 { (exit 0); exit 0; }
21407 _ACEOF
21408 chmod +x $CONFIG_STATUS
21409 ac_clean_files=$ac_clean_files_save
21410
21411
21412 # configure is writing to config.log, and then calls config.status.
21413 # config.status does its own redirection, appending to config.log.
21414 # Unfortunately, on DOS this fails, as config.log is still kept open
21415 # by configure, so config.status won't be able to write to it; its
21416 # output is simply discarded.  So we exec the FD to /dev/null,
21417 # effectively closing config.log, so it can be properly (re)opened and
21418 # appended to by config.status.  When coming back to configure, we
21419 # need to make the FD available again.
21420 if test "$no_create" != yes; then
21421   ac_cs_success=:
21422   ac_config_status_args=
21423   test "$silent" = yes &&
21424     ac_config_status_args="$ac_config_status_args --quiet"
21425   exec 5>/dev/null
21426   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21427   exec 5>>config.log
21428   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21429   # would make configure fail if this is the last instruction.
21430   $ac_cs_success || { (exit 1); exit 1; }
21431 fi
21432