]> git.sur5r.net Git - openldap/blob - contrib/ldapc++/configure
Formatting fix (documentation)
[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     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5511     ;;
5512   osf*)
5513     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5514     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5515     # nice to cause kernel panics so lets avoid the loop below.
5516     # First set a reasonable default.
5517     lt_cv_sys_max_cmd_len=16384
5518     #
5519     if test -x /sbin/sysconfig; then
5520       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5521         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5522       esac
5523     fi
5524     ;;
5525   *)
5526     # If test is not a shell built-in, we'll probably end up computing a
5527     # maximum length that is only half of the actual maximum length, but
5528     # we can't tell.
5529     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5530     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5531                = "XX$teststring") >/dev/null 2>&1 &&
5532             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5533             lt_cv_sys_max_cmd_len=$new_result &&
5534             test $i != 17 # 1/2 MB should be enough
5535     do
5536       i=`expr $i + 1`
5537       teststring=$teststring$teststring
5538     done
5539     teststring=
5540     # Add a significant safety factor because C++ compilers can tack on massive
5541     # amounts of additional arguments before passing them to the linker.
5542     # It appears as though 1/2 is a usable value.
5543     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5544     ;;
5545   esac
5546
5547 fi
5548
5549 if test -n $lt_cv_sys_max_cmd_len ; then
5550   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5551 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5552 else
5553   echo "$as_me:$LINENO: result: none" >&5
5554 echo "${ECHO_T}none" >&6
5555 fi
5556
5557
5558
5559
5560 # Check for command to grab the raw symbol name followed by C symbol from nm.
5561 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5562 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5563 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5564   echo $ECHO_N "(cached) $ECHO_C" >&6
5565 else
5566
5567 # These are sane defaults that work on at least a few old systems.
5568 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5569
5570 # Character class describing NM global symbol codes.
5571 symcode='[BCDEGRST]'
5572
5573 # Regexp to match symbols that can be accessed directly from C.
5574 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5575
5576 # Transform an extracted symbol line into a proper C declaration
5577 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5578
5579 # Transform an extracted symbol line into symbol name and symbol address
5580 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'"
5581
5582 # Define system-specific variables.
5583 case $host_os in
5584 aix*)
5585   symcode='[BCDT]'
5586   ;;
5587 cygwin* | mingw* | pw32*)
5588   symcode='[ABCDGISTW]'
5589   ;;
5590 hpux*) # Its linker distinguishes data from code symbols
5591   if test "$host_cpu" = ia64; then
5592     symcode='[ABCDEGRST]'
5593   fi
5594   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5595   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'"
5596   ;;
5597 linux*)
5598   if test "$host_cpu" = ia64; then
5599     symcode='[ABCDGIRSTW]'
5600     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5601     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'"
5602   fi
5603   ;;
5604 irix* | nonstopux*)
5605   symcode='[BCDEGRST]'
5606   ;;
5607 osf*)
5608   symcode='[BCDEGQRST]'
5609   ;;
5610 solaris* | sysv5*)
5611   symcode='[BDRT]'
5612   ;;
5613 sysv4)
5614   symcode='[DFNSTU]'
5615   ;;
5616 esac
5617
5618 # Handle CRLF in mingw tool chain
5619 opt_cr=
5620 case $build_os in
5621 mingw*)
5622   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5623   ;;
5624 esac
5625
5626 # If we're using GNU nm, then use its standard symbol codes.
5627 case `$NM -V 2>&1` in
5628 *GNU* | *'with BFD'*)
5629   symcode='[ABCDGIRSTW]' ;;
5630 esac
5631
5632 # Try without a prefix undercore, then with it.
5633 for ac_symprfx in "" "_"; do
5634
5635   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5636   symxfrm="\\1 $ac_symprfx\\2 \\2"
5637
5638   # Write the raw and C identifiers.
5639   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5640
5641   # Check to see that the pipe works correctly.
5642   pipe_works=no
5643
5644   rm -f conftest*
5645   cat > conftest.$ac_ext <<EOF
5646 #ifdef __cplusplus
5647 extern "C" {
5648 #endif
5649 char nm_test_var;
5650 void nm_test_func(){}
5651 #ifdef __cplusplus
5652 }
5653 #endif
5654 int main(){nm_test_var='a';nm_test_func();return(0);}
5655 EOF
5656
5657   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5658   (eval $ac_compile) 2>&5
5659   ac_status=$?
5660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661   (exit $ac_status); }; then
5662     # Now try to grab the symbols.
5663     nlist=conftest.nm
5664     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5665   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5666   ac_status=$?
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); } && test -s "$nlist"; then
5669       # Try sorting and uniquifying the output.
5670       if sort "$nlist" | uniq > "$nlist"T; then
5671         mv -f "$nlist"T "$nlist"
5672       else
5673         rm -f "$nlist"T
5674       fi
5675
5676       # Make sure that we snagged all the symbols we need.
5677       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5678         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5679           cat <<EOF > conftest.$ac_ext
5680 #ifdef __cplusplus
5681 extern "C" {
5682 #endif
5683
5684 EOF
5685           # Now generate the symbol file.
5686           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5687
5688           cat <<EOF >> conftest.$ac_ext
5689 #if defined (__STDC__) && __STDC__
5690 # define lt_ptr_t void *
5691 #else
5692 # define lt_ptr_t char *
5693 # define const
5694 #endif
5695
5696 /* The mapping between symbol names and symbols. */
5697 const struct {
5698   const char *name;
5699   lt_ptr_t address;
5700 }
5701 lt_preloaded_symbols[] =
5702 {
5703 EOF
5704           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5705           cat <<\EOF >> conftest.$ac_ext
5706   {0, (lt_ptr_t) 0}
5707 };
5708
5709 #ifdef __cplusplus
5710 }
5711 #endif
5712 EOF
5713           # Now try linking the two files.
5714           mv conftest.$ac_objext conftstm.$ac_objext
5715           lt_save_LIBS="$LIBS"
5716           lt_save_CFLAGS="$CFLAGS"
5717           LIBS="conftstm.$ac_objext"
5718           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5719           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5720   (eval $ac_link) 2>&5
5721   ac_status=$?
5722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5724             pipe_works=yes
5725           fi
5726           LIBS="$lt_save_LIBS"
5727           CFLAGS="$lt_save_CFLAGS"
5728         else
5729           echo "cannot find nm_test_func in $nlist" >&5
5730         fi
5731       else
5732         echo "cannot find nm_test_var in $nlist" >&5
5733       fi
5734     else
5735       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5736     fi
5737   else
5738     echo "$progname: failed program was:" >&5
5739     cat conftest.$ac_ext >&5
5740   fi
5741   rm -f conftest* conftst*
5742
5743   # Do not use the global_symbol_pipe unless it works.
5744   if test "$pipe_works" = yes; then
5745     break
5746   else
5747     lt_cv_sys_global_symbol_pipe=
5748   fi
5749 done
5750
5751 fi
5752
5753 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5754   lt_cv_sys_global_symbol_to_cdecl=
5755 fi
5756 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5757   echo "$as_me:$LINENO: result: failed" >&5
5758 echo "${ECHO_T}failed" >&6
5759 else
5760   echo "$as_me:$LINENO: result: ok" >&5
5761 echo "${ECHO_T}ok" >&6
5762 fi
5763
5764 echo "$as_me:$LINENO: checking for objdir" >&5
5765 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5766 if test "${lt_cv_objdir+set}" = set; then
5767   echo $ECHO_N "(cached) $ECHO_C" >&6
5768 else
5769   rm -f .libs 2>/dev/null
5770 mkdir .libs 2>/dev/null
5771 if test -d .libs; then
5772   lt_cv_objdir=.libs
5773 else
5774   # MS-DOS does not allow filenames that begin with a dot.
5775   lt_cv_objdir=_libs
5776 fi
5777 rmdir .libs 2>/dev/null
5778 fi
5779 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5780 echo "${ECHO_T}$lt_cv_objdir" >&6
5781 objdir=$lt_cv_objdir
5782
5783
5784
5785
5786
5787 case $host_os in
5788 aix3*)
5789   # AIX sometimes has problems with the GCC collect2 program.  For some
5790   # reason, if we set the COLLECT_NAMES environment variable, the problems
5791   # vanish in a puff of smoke.
5792   if test "X${COLLECT_NAMES+set}" != Xset; then
5793     COLLECT_NAMES=
5794     export COLLECT_NAMES
5795   fi
5796   ;;
5797 esac
5798
5799 # Sed substitution that helps us do robust quoting.  It backslashifies
5800 # metacharacters that are still active within double-quoted strings.
5801 Xsed='sed -e 1s/^X//'
5802 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5803
5804 # Same as above, but do not quote variable references.
5805 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5806
5807 # Sed substitution to delay expansion of an escaped shell variable in a
5808 # double_quote_subst'ed string.
5809 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5810
5811 # Sed substitution to avoid accidental globbing in evaled expressions
5812 no_glob_subst='s/\*/\\\*/g'
5813
5814 # Constants:
5815 rm="rm -f"
5816
5817 # Global variables:
5818 default_ofile=libtool
5819 can_build_shared=yes
5820
5821 # All known linkers require a `.a' archive for static linking (except M$VC,
5822 # which needs '.lib').
5823 libext=a
5824 ltmain="$ac_aux_dir/ltmain.sh"
5825 ofile="$default_ofile"
5826 with_gnu_ld="$lt_cv_prog_gnu_ld"
5827
5828 if test -n "$ac_tool_prefix"; then
5829   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5830 set dummy ${ac_tool_prefix}ar; ac_word=$2
5831 echo "$as_me:$LINENO: checking for $ac_word" >&5
5832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5833 if test "${ac_cv_prog_AR+set}" = set; then
5834   echo $ECHO_N "(cached) $ECHO_C" >&6
5835 else
5836   if test -n "$AR"; then
5837   ac_cv_prog_AR="$AR" # Let the user override the test.
5838 else
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH
5841 do
5842   IFS=$as_save_IFS
5843   test -z "$as_dir" && as_dir=.
5844   for ac_exec_ext in '' $ac_executable_extensions; do
5845   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5846     ac_cv_prog_AR="${ac_tool_prefix}ar"
5847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5848     break 2
5849   fi
5850 done
5851 done
5852
5853 fi
5854 fi
5855 AR=$ac_cv_prog_AR
5856 if test -n "$AR"; then
5857   echo "$as_me:$LINENO: result: $AR" >&5
5858 echo "${ECHO_T}$AR" >&6
5859 else
5860   echo "$as_me:$LINENO: result: no" >&5
5861 echo "${ECHO_T}no" >&6
5862 fi
5863
5864 fi
5865 if test -z "$ac_cv_prog_AR"; then
5866   ac_ct_AR=$AR
5867   # Extract the first word of "ar", so it can be a program name with args.
5868 set dummy ar; ac_word=$2
5869 echo "$as_me:$LINENO: checking for $ac_word" >&5
5870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5871 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5872   echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874   if test -n "$ac_ct_AR"; then
5875   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5876 else
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 for as_dir in $PATH
5879 do
5880   IFS=$as_save_IFS
5881   test -z "$as_dir" && as_dir=.
5882   for ac_exec_ext in '' $ac_executable_extensions; do
5883   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5884     ac_cv_prog_ac_ct_AR="ar"
5885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886     break 2
5887   fi
5888 done
5889 done
5890
5891   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5892 fi
5893 fi
5894 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5895 if test -n "$ac_ct_AR"; then
5896   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5897 echo "${ECHO_T}$ac_ct_AR" >&6
5898 else
5899   echo "$as_me:$LINENO: result: no" >&5
5900 echo "${ECHO_T}no" >&6
5901 fi
5902
5903   AR=$ac_ct_AR
5904 else
5905   AR="$ac_cv_prog_AR"
5906 fi
5907
5908 if test -n "$ac_tool_prefix"; then
5909   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5910 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5911 echo "$as_me:$LINENO: checking for $ac_word" >&5
5912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5913 if test "${ac_cv_prog_RANLIB+set}" = set; then
5914   echo $ECHO_N "(cached) $ECHO_C" >&6
5915 else
5916   if test -n "$RANLIB"; then
5917   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5918 else
5919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920 for as_dir in $PATH
5921 do
5922   IFS=$as_save_IFS
5923   test -z "$as_dir" && as_dir=.
5924   for ac_exec_ext in '' $ac_executable_extensions; do
5925   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5926     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5928     break 2
5929   fi
5930 done
5931 done
5932
5933 fi
5934 fi
5935 RANLIB=$ac_cv_prog_RANLIB
5936 if test -n "$RANLIB"; then
5937   echo "$as_me:$LINENO: result: $RANLIB" >&5
5938 echo "${ECHO_T}$RANLIB" >&6
5939 else
5940   echo "$as_me:$LINENO: result: no" >&5
5941 echo "${ECHO_T}no" >&6
5942 fi
5943
5944 fi
5945 if test -z "$ac_cv_prog_RANLIB"; then
5946   ac_ct_RANLIB=$RANLIB
5947   # Extract the first word of "ranlib", so it can be a program name with args.
5948 set dummy ranlib; ac_word=$2
5949 echo "$as_me:$LINENO: checking for $ac_word" >&5
5950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5951 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5952   echo $ECHO_N "(cached) $ECHO_C" >&6
5953 else
5954   if test -n "$ac_ct_RANLIB"; then
5955   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5956 else
5957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958 for as_dir in $PATH
5959 do
5960   IFS=$as_save_IFS
5961   test -z "$as_dir" && as_dir=.
5962   for ac_exec_ext in '' $ac_executable_extensions; do
5963   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5964     ac_cv_prog_ac_ct_RANLIB="ranlib"
5965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5966     break 2
5967   fi
5968 done
5969 done
5970
5971   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5972 fi
5973 fi
5974 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5975 if test -n "$ac_ct_RANLIB"; then
5976   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5977 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5978 else
5979   echo "$as_me:$LINENO: result: no" >&5
5980 echo "${ECHO_T}no" >&6
5981 fi
5982
5983   RANLIB=$ac_ct_RANLIB
5984 else
5985   RANLIB="$ac_cv_prog_RANLIB"
5986 fi
5987
5988 if test -n "$ac_tool_prefix"; then
5989   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5990 set dummy ${ac_tool_prefix}strip; ac_word=$2
5991 echo "$as_me:$LINENO: checking for $ac_word" >&5
5992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5993 if test "${ac_cv_prog_STRIP+set}" = set; then
5994   echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996   if test -n "$STRIP"; then
5997   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5998 else
5999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 for as_dir in $PATH
6001 do
6002   IFS=$as_save_IFS
6003   test -z "$as_dir" && as_dir=.
6004   for ac_exec_ext in '' $ac_executable_extensions; do
6005   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6006     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6008     break 2
6009   fi
6010 done
6011 done
6012
6013 fi
6014 fi
6015 STRIP=$ac_cv_prog_STRIP
6016 if test -n "$STRIP"; then
6017   echo "$as_me:$LINENO: result: $STRIP" >&5
6018 echo "${ECHO_T}$STRIP" >&6
6019 else
6020   echo "$as_me:$LINENO: result: no" >&5
6021 echo "${ECHO_T}no" >&6
6022 fi
6023
6024 fi
6025 if test -z "$ac_cv_prog_STRIP"; then
6026   ac_ct_STRIP=$STRIP
6027   # Extract the first word of "strip", so it can be a program name with args.
6028 set dummy strip; ac_word=$2
6029 echo "$as_me:$LINENO: checking for $ac_word" >&5
6030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6031 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6032   echo $ECHO_N "(cached) $ECHO_C" >&6
6033 else
6034   if test -n "$ac_ct_STRIP"; then
6035   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6036 else
6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 for as_dir in $PATH
6039 do
6040   IFS=$as_save_IFS
6041   test -z "$as_dir" && as_dir=.
6042   for ac_exec_ext in '' $ac_executable_extensions; do
6043   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6044     ac_cv_prog_ac_ct_STRIP="strip"
6045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6046     break 2
6047   fi
6048 done
6049 done
6050
6051   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6052 fi
6053 fi
6054 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6055 if test -n "$ac_ct_STRIP"; then
6056   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6057 echo "${ECHO_T}$ac_ct_STRIP" >&6
6058 else
6059   echo "$as_me:$LINENO: result: no" >&5
6060 echo "${ECHO_T}no" >&6
6061 fi
6062
6063   STRIP=$ac_ct_STRIP
6064 else
6065   STRIP="$ac_cv_prog_STRIP"
6066 fi
6067
6068
6069 old_CC="$CC"
6070 old_CFLAGS="$CFLAGS"
6071
6072 # Set sane defaults for various variables
6073 test -z "$AR" && AR=ar
6074 test -z "$AR_FLAGS" && AR_FLAGS=cru
6075 test -z "$AS" && AS=as
6076 test -z "$CC" && CC=cc
6077 test -z "$LTCC" && LTCC=$CC
6078 test -z "$DLLTOOL" && DLLTOOL=dlltool
6079 test -z "$LD" && LD=ld
6080 test -z "$LN_S" && LN_S="ln -s"
6081 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6082 test -z "$NM" && NM=nm
6083 test -z "$SED" && SED=sed
6084 test -z "$OBJDUMP" && OBJDUMP=objdump
6085 test -z "$RANLIB" && RANLIB=:
6086 test -z "$STRIP" && STRIP=:
6087 test -z "$ac_objext" && ac_objext=o
6088
6089 # Determine commands to create old-style static archives.
6090 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6091 old_postinstall_cmds='chmod 644 $oldlib'
6092 old_postuninstall_cmds=
6093
6094 if test -n "$RANLIB"; then
6095   case $host_os in
6096   openbsd*)
6097     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6098     ;;
6099   *)
6100     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6101     ;;
6102   esac
6103   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6104 fi
6105
6106 for cc_temp in $compiler""; do
6107   case $cc_temp in
6108     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6109     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6110     \-*) ;;
6111     *) break;;
6112   esac
6113 done
6114 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6115
6116
6117 # Only perform the check for file, if the check method requires it
6118 case $deplibs_check_method in
6119 file_magic*)
6120   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6121     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6122 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6123 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6124   echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126   case $MAGIC_CMD in
6127 [\\/*] |  ?:[\\/]*)
6128   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6129   ;;
6130 *)
6131   lt_save_MAGIC_CMD="$MAGIC_CMD"
6132   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6133   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6134   for ac_dir in $ac_dummy; do
6135     IFS="$lt_save_ifs"
6136     test -z "$ac_dir" && ac_dir=.
6137     if test -f $ac_dir/${ac_tool_prefix}file; then
6138       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6139       if test -n "$file_magic_test_file"; then
6140         case $deplibs_check_method in
6141         "file_magic "*)
6142           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6143           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6144           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6145             $EGREP "$file_magic_regex" > /dev/null; then
6146             :
6147           else
6148             cat <<EOF 1>&2
6149
6150 *** Warning: the command libtool uses to detect shared libraries,
6151 *** $file_magic_cmd, produces output that libtool cannot recognize.
6152 *** The result is that libtool may fail to recognize shared libraries
6153 *** as such.  This will affect the creation of libtool libraries that
6154 *** depend on shared libraries, but programs linked with such libtool
6155 *** libraries will work regardless of this problem.  Nevertheless, you
6156 *** may want to report the problem to your system manager and/or to
6157 *** bug-libtool@gnu.org
6158
6159 EOF
6160           fi ;;
6161         esac
6162       fi
6163       break
6164     fi
6165   done
6166   IFS="$lt_save_ifs"
6167   MAGIC_CMD="$lt_save_MAGIC_CMD"
6168   ;;
6169 esac
6170 fi
6171
6172 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6173 if test -n "$MAGIC_CMD"; then
6174   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6175 echo "${ECHO_T}$MAGIC_CMD" >&6
6176 else
6177   echo "$as_me:$LINENO: result: no" >&5
6178 echo "${ECHO_T}no" >&6
6179 fi
6180
6181 if test -z "$lt_cv_path_MAGIC_CMD"; then
6182   if test -n "$ac_tool_prefix"; then
6183     echo "$as_me:$LINENO: checking for file" >&5
6184 echo $ECHO_N "checking for file... $ECHO_C" >&6
6185 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6186   echo $ECHO_N "(cached) $ECHO_C" >&6
6187 else
6188   case $MAGIC_CMD in
6189 [\\/*] |  ?:[\\/]*)
6190   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6191   ;;
6192 *)
6193   lt_save_MAGIC_CMD="$MAGIC_CMD"
6194   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6195   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6196   for ac_dir in $ac_dummy; do
6197     IFS="$lt_save_ifs"
6198     test -z "$ac_dir" && ac_dir=.
6199     if test -f $ac_dir/file; then
6200       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6201       if test -n "$file_magic_test_file"; then
6202         case $deplibs_check_method in
6203         "file_magic "*)
6204           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6205           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6206           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6207             $EGREP "$file_magic_regex" > /dev/null; then
6208             :
6209           else
6210             cat <<EOF 1>&2
6211
6212 *** Warning: the command libtool uses to detect shared libraries,
6213 *** $file_magic_cmd, produces output that libtool cannot recognize.
6214 *** The result is that libtool may fail to recognize shared libraries
6215 *** as such.  This will affect the creation of libtool libraries that
6216 *** depend on shared libraries, but programs linked with such libtool
6217 *** libraries will work regardless of this problem.  Nevertheless, you
6218 *** may want to report the problem to your system manager and/or to
6219 *** bug-libtool@gnu.org
6220
6221 EOF
6222           fi ;;
6223         esac
6224       fi
6225       break
6226     fi
6227   done
6228   IFS="$lt_save_ifs"
6229   MAGIC_CMD="$lt_save_MAGIC_CMD"
6230   ;;
6231 esac
6232 fi
6233
6234 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6235 if test -n "$MAGIC_CMD"; then
6236   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6237 echo "${ECHO_T}$MAGIC_CMD" >&6
6238 else
6239   echo "$as_me:$LINENO: result: no" >&5
6240 echo "${ECHO_T}no" >&6
6241 fi
6242
6243   else
6244     MAGIC_CMD=:
6245   fi
6246 fi
6247
6248   fi
6249   ;;
6250 esac
6251
6252 enable_dlopen=no
6253 enable_win32_dll=no
6254
6255 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6256 if test "${enable_libtool_lock+set}" = set; then
6257   enableval="$enable_libtool_lock"
6258
6259 fi;
6260 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6261
6262
6263 # Check whether --with-pic or --without-pic was given.
6264 if test "${with_pic+set}" = set; then
6265   withval="$with_pic"
6266   pic_mode="$withval"
6267 else
6268   pic_mode=default
6269 fi;
6270 test -z "$pic_mode" && pic_mode=default
6271
6272 # Use C for the default configuration in the libtool script
6273 tagname=
6274 lt_save_CC="$CC"
6275 ac_ext=c
6276 ac_cpp='$CPP $CPPFLAGS'
6277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6280
6281
6282 # Source file extension for C test sources.
6283 ac_ext=c
6284
6285 # Object file extension for compiled C test sources.
6286 objext=o
6287 objext=$objext
6288
6289 # Code to be used in simple compile tests
6290 lt_simple_compile_test_code="int some_variable = 0;\n"
6291
6292 # Code to be used in simple link tests
6293 lt_simple_link_test_code='int main(){return(0);}\n'
6294
6295
6296 # If no C compiler was specified, use CC.
6297 LTCC=${LTCC-"$CC"}
6298
6299 # Allow CC to be a program name with arguments.
6300 compiler=$CC
6301
6302
6303 # save warnings/boilerplate of simple test code
6304 ac_outfile=conftest.$ac_objext
6305 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6306 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6307 _lt_compiler_boilerplate=`cat conftest.err`
6308 $rm conftest*
6309
6310 ac_outfile=conftest.$ac_objext
6311 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6312 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6313 _lt_linker_boilerplate=`cat conftest.err`
6314 $rm conftest*
6315
6316
6317 #
6318 # Check for any special shared library compilation flags.
6319 #
6320 lt_prog_cc_shlib=
6321 if test "$GCC" = no; then
6322   case $host_os in
6323   sco3.2v5*)
6324     lt_prog_cc_shlib='-belf'
6325     ;;
6326   esac
6327 fi
6328 if test -n "$lt_prog_cc_shlib"; then
6329   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6330 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6331   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6332   else
6333     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6334 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6335     lt_cv_prog_cc_can_build_shared=no
6336   fi
6337 fi
6338
6339
6340 #
6341 # Check to make sure the static flag actually works.
6342 #
6343 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6344 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6345 if test "${lt_prog_compiler_static_works+set}" = set; then
6346   echo $ECHO_N "(cached) $ECHO_C" >&6
6347 else
6348   lt_prog_compiler_static_works=no
6349    save_LDFLAGS="$LDFLAGS"
6350    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6351    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6352    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6353      # The compiler can only warn and ignore the option if not recognized
6354      # So say no if there are warnings
6355      if test -s conftest.err; then
6356        # Append any errors to the config.log.
6357        cat conftest.err 1>&5
6358        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6359        $SED '/^$/d' conftest.err >conftest.er2
6360        if diff conftest.exp conftest.er2 >/dev/null; then
6361          lt_prog_compiler_static_works=yes
6362        fi
6363      else
6364        lt_prog_compiler_static_works=yes
6365      fi
6366    fi
6367    $rm conftest*
6368    LDFLAGS="$save_LDFLAGS"
6369
6370 fi
6371 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6372 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6373
6374 if test x"$lt_prog_compiler_static_works" = xyes; then
6375     :
6376 else
6377     lt_prog_compiler_static=
6378 fi
6379
6380
6381
6382
6383 lt_prog_compiler_no_builtin_flag=
6384
6385 if test "$GCC" = yes; then
6386   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6387
6388
6389 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6390 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6391 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6392   echo $ECHO_N "(cached) $ECHO_C" >&6
6393 else
6394   lt_cv_prog_compiler_rtti_exceptions=no
6395   ac_outfile=conftest.$ac_objext
6396    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6397    lt_compiler_flag="-fno-rtti -fno-exceptions"
6398    # Insert the option either (1) after the last *FLAGS variable, or
6399    # (2) before a word containing "conftest.", or (3) at the end.
6400    # Note that $ac_compile itself does not contain backslashes and begins
6401    # with a dollar sign (not a hyphen), so the echo should work correctly.
6402    # The option is referenced via a variable to avoid confusing sed.
6403    lt_compile=`echo "$ac_compile" | $SED \
6404    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6405    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6406    -e 's:$: $lt_compiler_flag:'`
6407    (eval echo "\"\$as_me:6407: $lt_compile\"" >&5)
6408    (eval "$lt_compile" 2>conftest.err)
6409    ac_status=$?
6410    cat conftest.err >&5
6411    echo "$as_me:6411: \$? = $ac_status" >&5
6412    if (exit $ac_status) && test -s "$ac_outfile"; then
6413      # The compiler can only warn and ignore the option if not recognized
6414      # So say no if there are warnings other than the usual output.
6415      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6416      $SED '/^$/d' conftest.err >conftest.er2
6417      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6418        lt_cv_prog_compiler_rtti_exceptions=yes
6419      fi
6420    fi
6421    $rm conftest*
6422
6423 fi
6424 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6425 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6426
6427 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6428     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6429 else
6430     :
6431 fi
6432
6433 fi
6434
6435 lt_prog_compiler_wl=
6436 lt_prog_compiler_pic=
6437 lt_prog_compiler_static=
6438
6439 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6440 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6441
6442   if test "$GCC" = yes; then
6443     lt_prog_compiler_wl='-Wl,'
6444     lt_prog_compiler_static='-static'
6445
6446     case $host_os in
6447       aix*)
6448       # All AIX code is PIC.
6449       if test "$host_cpu" = ia64; then
6450         # AIX 5 now supports IA64 processor
6451         lt_prog_compiler_static='-Bstatic'
6452       fi
6453       ;;
6454
6455     amigaos*)
6456       # FIXME: we need at least 68020 code to build shared libraries, but
6457       # adding the `-m68020' flag to GCC prevents building anything better,
6458       # like `-m68040'.
6459       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6460       ;;
6461
6462     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6463       # PIC is the default for these OSes.
6464       ;;
6465
6466     mingw* | pw32* | os2*)
6467       # This hack is so that the source file can tell whether it is being
6468       # built for inclusion in a dll (and should export symbols for example).
6469       lt_prog_compiler_pic='-DDLL_EXPORT'
6470       ;;
6471
6472     darwin* | rhapsody*)
6473       # PIC is the default on this platform
6474       # Common symbols not allowed in MH_DYLIB files
6475       lt_prog_compiler_pic='-fno-common'
6476       ;;
6477
6478     msdosdjgpp*)
6479       # Just because we use GCC doesn't mean we suddenly get shared libraries
6480       # on systems that don't support them.
6481       lt_prog_compiler_can_build_shared=no
6482       enable_shared=no
6483       ;;
6484
6485     sysv4*MP*)
6486       if test -d /usr/nec; then
6487         lt_prog_compiler_pic=-Kconform_pic
6488       fi
6489       ;;
6490
6491     hpux*)
6492       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6493       # not for PA HP-UX.
6494       case "$host_cpu" in
6495       hppa*64*|ia64*)
6496         # +Z the default
6497         ;;
6498       *)
6499         lt_prog_compiler_pic='-fPIC'
6500         ;;
6501       esac
6502       ;;
6503
6504     *)
6505       lt_prog_compiler_pic='-fPIC'
6506       ;;
6507     esac
6508   else
6509     # PORTME Check for flag to pass linker flags through the system compiler.
6510     case $host_os in
6511     aix*)
6512       lt_prog_compiler_wl='-Wl,'
6513       if test "$host_cpu" = ia64; then
6514         # AIX 5 now supports IA64 processor
6515         lt_prog_compiler_static='-Bstatic'
6516       else
6517         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6518       fi
6519       ;;
6520       darwin*)
6521         # PIC is the default on this platform
6522         # Common symbols not allowed in MH_DYLIB files
6523        case $cc_basename in
6524          xlc*)
6525          lt_prog_compiler_pic='-qnocommon'
6526          lt_prog_compiler_wl='-Wl,'
6527          ;;
6528        esac
6529        ;;
6530
6531     mingw* | pw32* | os2*)
6532       # This hack is so that the source file can tell whether it is being
6533       # built for inclusion in a dll (and should export symbols for example).
6534       lt_prog_compiler_pic='-DDLL_EXPORT'
6535       ;;
6536
6537     hpux9* | hpux10* | hpux11*)
6538       lt_prog_compiler_wl='-Wl,'
6539       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6540       # not for PA HP-UX.
6541       case "$host_cpu" in
6542       hppa*64*|ia64*)
6543         # +Z the default
6544         ;;
6545       *)
6546         lt_prog_compiler_pic='+Z'
6547         ;;
6548       esac
6549       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6550       lt_prog_compiler_static='${wl}-a ${wl}archive'
6551       ;;
6552
6553     irix5* | irix6* | nonstopux*)
6554       lt_prog_compiler_wl='-Wl,'
6555       # PIC (with -KPIC) is the default.
6556       lt_prog_compiler_static='-non_shared'
6557       ;;
6558
6559     newsos6)
6560       lt_prog_compiler_pic='-KPIC'
6561       lt_prog_compiler_static='-Bstatic'
6562       ;;
6563
6564     linux*)
6565       case $cc_basename in
6566       icc* | ecc*)
6567         lt_prog_compiler_wl='-Wl,'
6568         lt_prog_compiler_pic='-KPIC'
6569         lt_prog_compiler_static='-static'
6570         ;;
6571       pgcc* | pgf77* | pgf90*)
6572         # Portland Group compilers (*not* the Pentium gcc compiler,
6573         # which looks to be a dead project)
6574         lt_prog_compiler_wl='-Wl,'
6575         lt_prog_compiler_pic='-fpic'
6576         lt_prog_compiler_static='-static'
6577         ;;
6578       ccc*)
6579         lt_prog_compiler_wl='-Wl,'
6580         # All Alpha code is PIC.
6581         lt_prog_compiler_static='-non_shared'
6582         ;;
6583       esac
6584       ;;
6585
6586     osf3* | osf4* | osf5*)
6587       lt_prog_compiler_wl='-Wl,'
6588       # All OSF/1 code is PIC.
6589       lt_prog_compiler_static='-non_shared'
6590       ;;
6591
6592     sco3.2v5*)
6593       lt_prog_compiler_pic='-Kpic'
6594       lt_prog_compiler_static='-dn'
6595       ;;
6596
6597     solaris*)
6598       lt_prog_compiler_pic='-KPIC'
6599       lt_prog_compiler_static='-Bstatic'
6600       case $cc_basename in
6601       f77* | f90* | f95*)
6602         lt_prog_compiler_wl='-Qoption ld ';;
6603       *)
6604         lt_prog_compiler_wl='-Wl,';;
6605       esac
6606       ;;
6607
6608     sunos4*)
6609       lt_prog_compiler_wl='-Qoption ld '
6610       lt_prog_compiler_pic='-PIC'
6611       lt_prog_compiler_static='-Bstatic'
6612       ;;
6613
6614     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6615       lt_prog_compiler_wl='-Wl,'
6616       lt_prog_compiler_pic='-KPIC'
6617       lt_prog_compiler_static='-Bstatic'
6618       ;;
6619
6620     sysv4*MP*)
6621       if test -d /usr/nec ;then
6622         lt_prog_compiler_pic='-Kconform_pic'
6623         lt_prog_compiler_static='-Bstatic'
6624       fi
6625       ;;
6626
6627     unicos*)
6628       lt_prog_compiler_wl='-Wl,'
6629       lt_prog_compiler_can_build_shared=no
6630       ;;
6631
6632     uts4*)
6633       lt_prog_compiler_pic='-pic'
6634       lt_prog_compiler_static='-Bstatic'
6635       ;;
6636
6637     *)
6638       lt_prog_compiler_can_build_shared=no
6639       ;;
6640     esac
6641   fi
6642
6643 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6644 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6645
6646 #
6647 # Check to make sure the PIC flag actually works.
6648 #
6649 if test -n "$lt_prog_compiler_pic"; then
6650
6651 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6652 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6653 if test "${lt_prog_compiler_pic_works+set}" = set; then
6654   echo $ECHO_N "(cached) $ECHO_C" >&6
6655 else
6656   lt_prog_compiler_pic_works=no
6657   ac_outfile=conftest.$ac_objext
6658    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6659    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6660    # Insert the option either (1) after the last *FLAGS variable, or
6661    # (2) before a word containing "conftest.", or (3) at the end.
6662    # Note that $ac_compile itself does not contain backslashes and begins
6663    # with a dollar sign (not a hyphen), so the echo should work correctly.
6664    # The option is referenced via a variable to avoid confusing sed.
6665    lt_compile=`echo "$ac_compile" | $SED \
6666    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6667    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6668    -e 's:$: $lt_compiler_flag:'`
6669    (eval echo "\"\$as_me:6669: $lt_compile\"" >&5)
6670    (eval "$lt_compile" 2>conftest.err)
6671    ac_status=$?
6672    cat conftest.err >&5
6673    echo "$as_me:6673: \$? = $ac_status" >&5
6674    if (exit $ac_status) && test -s "$ac_outfile"; then
6675      # The compiler can only warn and ignore the option if not recognized
6676      # So say no if there are warnings other than the usual output.
6677      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6678      $SED '/^$/d' conftest.err >conftest.er2
6679      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6680        lt_prog_compiler_pic_works=yes
6681      fi
6682    fi
6683    $rm conftest*
6684
6685 fi
6686 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6687 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6688
6689 if test x"$lt_prog_compiler_pic_works" = xyes; then
6690     case $lt_prog_compiler_pic in
6691      "" | " "*) ;;
6692      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6693      esac
6694 else
6695     lt_prog_compiler_pic=
6696      lt_prog_compiler_can_build_shared=no
6697 fi
6698
6699 fi
6700 case "$host_os" in
6701   # For platforms which do not support PIC, -DPIC is meaningless:
6702   *djgpp*)
6703     lt_prog_compiler_pic=
6704     ;;
6705   *)
6706     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6707     ;;
6708 esac
6709
6710 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6711 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6712 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6713   echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715   lt_cv_prog_compiler_c_o=no
6716    $rm -r conftest 2>/dev/null
6717    mkdir conftest
6718    cd conftest
6719    mkdir out
6720    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6721
6722    lt_compiler_flag="-o out/conftest2.$ac_objext"
6723    # Insert the option either (1) after the last *FLAGS variable, or
6724    # (2) before a word containing "conftest.", or (3) at the end.
6725    # Note that $ac_compile itself does not contain backslashes and begins
6726    # with a dollar sign (not a hyphen), so the echo should work correctly.
6727    lt_compile=`echo "$ac_compile" | $SED \
6728    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6729    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6730    -e 's:$: $lt_compiler_flag:'`
6731    (eval echo "\"\$as_me:6731: $lt_compile\"" >&5)
6732    (eval "$lt_compile" 2>out/conftest.err)
6733    ac_status=$?
6734    cat out/conftest.err >&5
6735    echo "$as_me:6735: \$? = $ac_status" >&5
6736    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6737    then
6738      # The compiler can only warn and ignore the option if not recognized
6739      # So say no if there are warnings
6740      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6741      $SED '/^$/d' out/conftest.err >out/conftest.er2
6742      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6743        lt_cv_prog_compiler_c_o=yes
6744      fi
6745    fi
6746    chmod u+w .
6747    $rm conftest*
6748    # SGI C++ compiler will create directory out/ii_files/ for
6749    # template instantiation
6750    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6751    $rm out/* && rmdir out
6752    cd ..
6753    rmdir conftest
6754    $rm conftest*
6755
6756 fi
6757 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6758 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6759
6760
6761 hard_links="nottested"
6762 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6763   # do not overwrite the value of need_locks provided by the user
6764   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6765 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6766   hard_links=yes
6767   $rm conftest*
6768   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6769   touch conftest.a
6770   ln conftest.a conftest.b 2>&5 || hard_links=no
6771   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6772   echo "$as_me:$LINENO: result: $hard_links" >&5
6773 echo "${ECHO_T}$hard_links" >&6
6774   if test "$hard_links" = no; then
6775     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6776 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6777     need_locks=warn
6778   fi
6779 else
6780   need_locks=no
6781 fi
6782
6783 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6784 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6785
6786   runpath_var=
6787   allow_undefined_flag=
6788   enable_shared_with_static_runtimes=no
6789   archive_cmds=
6790   archive_expsym_cmds=
6791   old_archive_From_new_cmds=
6792   old_archive_from_expsyms_cmds=
6793   export_dynamic_flag_spec=
6794   whole_archive_flag_spec=
6795   thread_safe_flag_spec=
6796   hardcode_libdir_flag_spec=
6797   hardcode_libdir_flag_spec_ld=
6798   hardcode_libdir_separator=
6799   hardcode_direct=no
6800   hardcode_minus_L=no
6801   hardcode_shlibpath_var=unsupported
6802   link_all_deplibs=unknown
6803   hardcode_automatic=no
6804   module_cmds=
6805   module_expsym_cmds=
6806   always_export_symbols=no
6807   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6808   # include_expsyms should be a list of space-separated symbols to be *always*
6809   # included in the symbol list
6810   include_expsyms=
6811   # exclude_expsyms can be an extended regexp of symbols to exclude
6812   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6813   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6814   # as well as any symbol that contains `d'.
6815   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6816   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6817   # platforms (ab)use it in PIC code, but their linkers get confused if
6818   # the symbol is explicitly referenced.  Since portable code cannot
6819   # rely on this symbol name, it's probably fine to never include it in
6820   # preloaded symbol tables.
6821   extract_expsyms_cmds=
6822   # Just being paranoid about ensuring that cc_basename is set.
6823   for cc_temp in $compiler""; do
6824   case $cc_temp in
6825     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6826     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6827     \-*) ;;
6828     *) break;;
6829   esac
6830 done
6831 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6832
6833   case $host_os in
6834   cygwin* | mingw* | pw32*)
6835     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6836     # When not using gcc, we currently assume that we are using
6837     # Microsoft Visual C++.
6838     if test "$GCC" != yes; then
6839       with_gnu_ld=no
6840     fi
6841     ;;
6842   openbsd*)
6843     with_gnu_ld=no
6844     ;;
6845   esac
6846
6847   ld_shlibs=yes
6848   if test "$with_gnu_ld" = yes; then
6849     # If archive_cmds runs LD, not CC, wlarc should be empty
6850     wlarc='${wl}'
6851
6852     # Set some defaults for GNU ld with shared library support. These
6853     # are reset later if shared libraries are not supported. Putting them
6854     # here allows them to be overridden if necessary.
6855     runpath_var=LD_RUN_PATH
6856     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6857     export_dynamic_flag_spec='${wl}--export-dynamic'
6858     # ancient GNU ld didn't support --whole-archive et. al.
6859     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6860         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6861       else
6862         whole_archive_flag_spec=
6863     fi
6864     supports_anon_versioning=no
6865     case `$LD -v 2>/dev/null` in
6866       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6867       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6868       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6869       *\ 2.11.*) ;; # other 2.11 versions
6870       *) supports_anon_versioning=yes ;;
6871     esac
6872
6873     # See if GNU ld supports shared libraries.
6874     case $host_os in
6875     aix3* | aix4* | aix5*)
6876       # On AIX/PPC, the GNU linker is very broken
6877       if test "$host_cpu" != ia64; then
6878         ld_shlibs=no
6879         cat <<EOF 1>&2
6880
6881 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6882 *** to be unable to reliably create shared libraries on AIX.
6883 *** Therefore, libtool is disabling shared libraries support.  If you
6884 *** really care for shared libraries, you may want to modify your PATH
6885 *** so that a non-GNU linker is found, and then restart.
6886
6887 EOF
6888       fi
6889       ;;
6890
6891     amigaos*)
6892       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)'
6893       hardcode_libdir_flag_spec='-L$libdir'
6894       hardcode_minus_L=yes
6895
6896       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6897       # that the semantics of dynamic libraries on AmigaOS, at least up
6898       # to version 4, is to share data among multiple programs linked
6899       # with the same dynamic library.  Since this doesn't match the
6900       # behavior of shared libraries on other platforms, we can't use
6901       # them.
6902       ld_shlibs=no
6903       ;;
6904
6905     beos*)
6906       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6907         allow_undefined_flag=unsupported
6908         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6909         # support --undefined.  This deserves some investigation.  FIXME
6910         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6911       else
6912         ld_shlibs=no
6913       fi
6914       ;;
6915
6916     cygwin* | mingw* | pw32*)
6917       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6918       # as there is no search path for DLLs.
6919       hardcode_libdir_flag_spec='-L$libdir'
6920       allow_undefined_flag=unsupported
6921       always_export_symbols=no
6922       enable_shared_with_static_runtimes=yes
6923       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6924
6925       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6926         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6927         # If the export-symbols file already is a .def file (1st line
6928         # is EXPORTS), use it as is; otherwise, prepend...
6929         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6930           cp $export_symbols $output_objdir/$soname.def;
6931         else
6932           echo EXPORTS > $output_objdir/$soname.def;
6933           cat $export_symbols >> $output_objdir/$soname.def;
6934         fi~
6935         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6936       else
6937         ld_shlibs=no
6938       fi
6939       ;;
6940
6941     linux*)
6942       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6943         tmp_addflag=
6944         case $cc_basename,$host_cpu in
6945         pgcc*)                          # Portland Group C compiler
6946           whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6947           tmp_addflag=' $pic_flag'
6948           ;;
6949         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
6950           whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6951           tmp_addflag=' $pic_flag -Mnomain' ;;
6952         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
6953           tmp_addflag=' -i_dynamic' ;;
6954         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6955           tmp_addflag=' -i_dynamic -nofor_main' ;;
6956         ifc* | ifort*)                  # Intel Fortran compiler
6957           tmp_addflag=' -nofor_main' ;;
6958         esac
6959         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6960
6961         if test $supports_anon_versioning = yes; then
6962           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6963   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6964   $echo "local: *; };" >> $output_objdir/$libname.ver~
6965           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6966         fi
6967       else
6968         ld_shlibs=no
6969       fi
6970       ;;
6971
6972     netbsd*)
6973       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6974         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6975         wlarc=
6976       else
6977         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6978         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6979       fi
6980       ;;
6981
6982     solaris* | sysv5*)
6983       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6984         ld_shlibs=no
6985         cat <<EOF 1>&2
6986
6987 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6988 *** create shared libraries on Solaris systems.  Therefore, libtool
6989 *** is disabling shared libraries support.  We urge you to upgrade GNU
6990 *** binutils to release 2.9.1 or newer.  Another option is to modify
6991 *** your PATH or compiler configuration so that the native linker is
6992 *** used, and then restart.
6993
6994 EOF
6995       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6996         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6997         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6998       else
6999         ld_shlibs=no
7000       fi
7001       ;;
7002
7003     sunos4*)
7004       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7005       wlarc=
7006       hardcode_direct=yes
7007       hardcode_shlibpath_var=no
7008       ;;
7009
7010     *)
7011       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7012         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7013         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7014       else
7015         ld_shlibs=no
7016       fi
7017       ;;
7018     esac
7019
7020     if test "$ld_shlibs" = no; then
7021       runpath_var=
7022       hardcode_libdir_flag_spec=
7023       export_dynamic_flag_spec=
7024       whole_archive_flag_spec=
7025     fi
7026   else
7027     # PORTME fill in a description of your system's linker (not GNU ld)
7028     case $host_os in
7029     aix3*)
7030       allow_undefined_flag=unsupported
7031       always_export_symbols=yes
7032       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'
7033       # Note: this linker hardcodes the directories in LIBPATH if there
7034       # are no directories specified by -L.
7035       hardcode_minus_L=yes
7036       if test "$GCC" = yes && test -z "$link_static_flag"; then
7037         # Neither direct hardcoding nor static linking is supported with a
7038         # broken collect2.
7039         hardcode_direct=unsupported
7040       fi
7041       ;;
7042
7043     aix4* | aix5*)
7044       if test "$host_cpu" = ia64; then
7045         # On IA64, the linker does run time linking by default, so we don't
7046         # have to do anything special.
7047         aix_use_runtimelinking=no
7048         exp_sym_flag='-Bexport'
7049         no_entry_flag=""
7050       else
7051         # If we're using GNU nm, then we don't want the "-C" option.
7052         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7053         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7054           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'
7055         else
7056           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'
7057         fi
7058         aix_use_runtimelinking=no
7059
7060         # Test if we are trying to use run time linking or normal
7061         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7062         # need to do runtime linking.
7063         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7064           for ld_flag in $LDFLAGS; do
7065           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7066             aix_use_runtimelinking=yes
7067             break
7068           fi
7069           done
7070         esac
7071
7072         exp_sym_flag='-bexport'
7073         no_entry_flag='-bnoentry'
7074       fi
7075
7076       # When large executables or shared objects are built, AIX ld can
7077       # have problems creating the table of contents.  If linking a library
7078       # or program results in "error TOC overflow" add -mminimal-toc to
7079       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7080       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7081
7082       archive_cmds=''
7083       hardcode_direct=yes
7084       hardcode_libdir_separator=':'
7085       link_all_deplibs=yes
7086
7087       if test "$GCC" = yes; then
7088         case $host_os in aix4.[012]|aix4.[012].*)
7089         # We only want to do this on AIX 4.2 and lower, the check
7090         # below for broken collect2 doesn't work under 4.3+
7091           collect2name=`${CC} -print-prog-name=collect2`
7092           if test -f "$collect2name" && \
7093            strings "$collect2name" | grep resolve_lib_name >/dev/null
7094           then
7095           # We have reworked collect2
7096           hardcode_direct=yes
7097           else
7098           # We have old collect2
7099           hardcode_direct=unsupported
7100           # It fails to find uninstalled libraries when the uninstalled
7101           # path is not listed in the libpath.  Setting hardcode_minus_L
7102           # to unsupported forces relinking
7103           hardcode_minus_L=yes
7104           hardcode_libdir_flag_spec='-L$libdir'
7105           hardcode_libdir_separator=
7106           fi
7107         esac
7108         shared_flag='-shared'
7109         if test "$aix_use_runtimelinking" = yes; then
7110           shared_flag="$shared_flag "'${wl}-G'
7111         fi
7112       else
7113         # not using gcc
7114         if test "$host_cpu" = ia64; then
7115         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7116         # chokes on -Wl,-G. The following line is correct:
7117           shared_flag='-G'
7118         else
7119         if test "$aix_use_runtimelinking" = yes; then
7120             shared_flag='${wl}-G'
7121           else
7122             shared_flag='${wl}-bM:SRE'
7123         fi
7124         fi
7125       fi
7126
7127       # It seems that -bexpall does not export symbols beginning with
7128       # underscore (_), so it is better to generate a list of symbols to export.
7129       always_export_symbols=yes
7130       if test "$aix_use_runtimelinking" = yes; then
7131         # Warning - without using the other runtime loading flags (-brtl),
7132         # -berok will link without error, but may produce a broken library.
7133         allow_undefined_flag='-berok'
7134        # Determine the default libpath from the value encoded in an empty executable.
7135        cat >conftest.$ac_ext <<_ACEOF
7136 /* confdefs.h.  */
7137 _ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h.  */
7141
7142 int
7143 main ()
7144 {
7145
7146   ;
7147   return 0;
7148 }
7149 _ACEOF
7150 rm -f conftest.$ac_objext conftest$ac_exeext
7151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7152   (eval $ac_link) 2>conftest.er1
7153   ac_status=$?
7154   grep -v '^ *+' conftest.er1 >conftest.err
7155   rm -f conftest.er1
7156   cat conftest.err >&5
7157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158   (exit $ac_status); } &&
7159          { ac_try='test -z "$ac_c_werror_flag"
7160                          || test ! -s conftest.err'
7161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162   (eval $ac_try) 2>&5
7163   ac_status=$?
7164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165   (exit $ac_status); }; } &&
7166          { ac_try='test -s conftest$ac_exeext'
7167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168   (eval $ac_try) 2>&5
7169   ac_status=$?
7170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171   (exit $ac_status); }; }; then
7172
7173 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7174 }'`
7175 # Check for a 64-bit object if we didn't find anything.
7176 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; }
7177 }'`; fi
7178 else
7179   echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7181
7182 fi
7183 rm -f conftest.err conftest.$ac_objext \
7184       conftest$ac_exeext conftest.$ac_ext
7185 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7186
7187        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7188         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"
7189        else
7190         if test "$host_cpu" = ia64; then
7191           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7192           allow_undefined_flag="-z nodefs"
7193           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"
7194         else
7195          # Determine the default libpath from the value encoded in an empty executable.
7196          cat >conftest.$ac_ext <<_ACEOF
7197 /* confdefs.h.  */
7198 _ACEOF
7199 cat confdefs.h >>conftest.$ac_ext
7200 cat >>conftest.$ac_ext <<_ACEOF
7201 /* end confdefs.h.  */
7202
7203 int
7204 main ()
7205 {
7206
7207   ;
7208   return 0;
7209 }
7210 _ACEOF
7211 rm -f conftest.$ac_objext conftest$ac_exeext
7212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7213   (eval $ac_link) 2>conftest.er1
7214   ac_status=$?
7215   grep -v '^ *+' conftest.er1 >conftest.err
7216   rm -f conftest.er1
7217   cat conftest.err >&5
7218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219   (exit $ac_status); } &&
7220          { ac_try='test -z "$ac_c_werror_flag"
7221                          || test ! -s conftest.err'
7222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223   (eval $ac_try) 2>&5
7224   ac_status=$?
7225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226   (exit $ac_status); }; } &&
7227          { ac_try='test -s conftest$ac_exeext'
7228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229   (eval $ac_try) 2>&5
7230   ac_status=$?
7231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232   (exit $ac_status); }; }; then
7233
7234 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7235 }'`
7236 # Check for a 64-bit object if we didn't find anything.
7237 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; }
7238 }'`; fi
7239 else
7240   echo "$as_me: failed program was:" >&5
7241 sed 's/^/| /' conftest.$ac_ext >&5
7242
7243 fi
7244 rm -f conftest.err conftest.$ac_objext \
7245       conftest$ac_exeext conftest.$ac_ext
7246 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7247
7248          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7249           # Warning - without using the other run time loading flags,
7250           # -berok will link without error, but may produce a broken library.
7251           no_undefined_flag=' ${wl}-bernotok'
7252           allow_undefined_flag=' ${wl}-berok'
7253           # -bexpall does not export symbols beginning with underscore (_)
7254           always_export_symbols=yes
7255           # Exported symbols can be pulled into shared objects from archives
7256           whole_archive_flag_spec=' '
7257           archive_cmds_need_lc=yes
7258           # This is similar to how AIX traditionally builds it's shared libraries.
7259           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'
7260         fi
7261       fi
7262       ;;
7263
7264     amigaos*)
7265       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)'
7266       hardcode_libdir_flag_spec='-L$libdir'
7267       hardcode_minus_L=yes
7268       # see comment about different semantics on the GNU ld section
7269       ld_shlibs=no
7270       ;;
7271
7272     bsdi[45]*)
7273       export_dynamic_flag_spec=-rdynamic
7274       ;;
7275
7276     cygwin* | mingw* | pw32*)
7277       # When not using gcc, we currently assume that we are using
7278       # Microsoft Visual C++.
7279       # hardcode_libdir_flag_spec is actually meaningless, as there is
7280       # no search path for DLLs.
7281       hardcode_libdir_flag_spec=' '
7282       allow_undefined_flag=unsupported
7283       # Tell ltmain to make .lib files, not .a files.
7284       libext=lib
7285       # Tell ltmain to make .dll files, not .so files.
7286       shrext_cmds=".dll"
7287       # FIXME: Setting linknames here is a bad hack.
7288       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7289       # The linker will automatically build a .lib file if we build a DLL.
7290       old_archive_From_new_cmds='true'
7291       # FIXME: Should let the user specify the lib program.
7292       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7293       fix_srcfile_path='`cygpath -w "$srcfile"`'
7294       enable_shared_with_static_runtimes=yes
7295       ;;
7296
7297     darwin* | rhapsody*)
7298       case "$host_os" in
7299         rhapsody* | darwin1.[012])
7300          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7301          ;;
7302        *) # Darwin 1.3 on
7303          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7304            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7305          else
7306            case ${MACOSX_DEPLOYMENT_TARGET} in
7307              10.[012])
7308                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7309                ;;
7310              10.*)
7311                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7312                ;;
7313            esac
7314          fi
7315          ;;
7316       esac
7317       archive_cmds_need_lc=no
7318       hardcode_direct=no
7319       hardcode_automatic=yes
7320       hardcode_shlibpath_var=unsupported
7321       whole_archive_flag_spec=''
7322       link_all_deplibs=yes
7323     if test "$GCC" = yes ; then
7324         output_verbose_link_cmd='echo'
7325         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7326       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7327       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7328       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}'
7329       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}'
7330     else
7331       case $cc_basename in
7332         xlc*)
7333          output_verbose_link_cmd='echo'
7334          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7335          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7336           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7337          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}'
7338           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}'
7339           ;;
7340        *)
7341          ld_shlibs=no
7342           ;;
7343       esac
7344     fi
7345       ;;
7346
7347     dgux*)
7348       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7349       hardcode_libdir_flag_spec='-L$libdir'
7350       hardcode_shlibpath_var=no
7351       ;;
7352
7353     freebsd1*)
7354       ld_shlibs=no
7355       ;;
7356
7357     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7358     # support.  Future versions do this automatically, but an explicit c++rt0.o
7359     # does not break anything, and helps significantly (at the cost of a little
7360     # extra space).
7361     freebsd2.2*)
7362       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7363       hardcode_libdir_flag_spec='-R$libdir'
7364       hardcode_direct=yes
7365       hardcode_shlibpath_var=no
7366       ;;
7367
7368     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7369     freebsd2*)
7370       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7371       hardcode_direct=yes
7372       hardcode_minus_L=yes
7373       hardcode_shlibpath_var=no
7374       ;;
7375
7376     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7377     freebsd* | kfreebsd*-gnu | dragonfly*)
7378       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7379       hardcode_libdir_flag_spec='-R$libdir'
7380       hardcode_direct=yes
7381       hardcode_shlibpath_var=no
7382       ;;
7383
7384     hpux9*)
7385       if test "$GCC" = yes; then
7386         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'
7387       else
7388         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'
7389       fi
7390       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7391       hardcode_libdir_separator=:
7392       hardcode_direct=yes
7393
7394       # hardcode_minus_L: Not really in the search PATH,
7395       # but as the default location of the library.
7396       hardcode_minus_L=yes
7397       export_dynamic_flag_spec='${wl}-E'
7398       ;;
7399
7400     hpux10* | hpux11*)
7401       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7402         case "$host_cpu" in
7403         hppa*64*|ia64*)
7404           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7405           ;;
7406         *)
7407           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7408           ;;
7409         esac
7410       else
7411         case "$host_cpu" in
7412         hppa*64*|ia64*)
7413           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7414           ;;
7415         *)
7416           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7417           ;;
7418         esac
7419       fi
7420       if test "$with_gnu_ld" = no; then
7421         case "$host_cpu" in
7422         hppa*64*)
7423           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7424           hardcode_libdir_flag_spec_ld='+b $libdir'
7425           hardcode_libdir_separator=:
7426           hardcode_direct=no
7427           hardcode_shlibpath_var=no
7428           ;;
7429         ia64*)
7430           hardcode_libdir_flag_spec='-L$libdir'
7431           hardcode_direct=no
7432           hardcode_shlibpath_var=no
7433
7434           # hardcode_minus_L: Not really in the search PATH,
7435           # but as the default location of the library.
7436           hardcode_minus_L=yes
7437           ;;
7438         *)
7439           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7440           hardcode_libdir_separator=:
7441           hardcode_direct=yes
7442           export_dynamic_flag_spec='${wl}-E'
7443
7444           # hardcode_minus_L: Not really in the search PATH,
7445           # but as the default location of the library.
7446           hardcode_minus_L=yes
7447           ;;
7448         esac
7449       fi
7450       ;;
7451
7452     irix5* | irix6* | nonstopux*)
7453       if test "$GCC" = yes; then
7454         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'
7455       else
7456         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'
7457         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7458       fi
7459       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7460       hardcode_libdir_separator=:
7461       link_all_deplibs=yes
7462       ;;
7463
7464     netbsd*)
7465       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7466         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7467       else
7468         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7469       fi
7470       hardcode_libdir_flag_spec='-R$libdir'
7471       hardcode_direct=yes
7472       hardcode_shlibpath_var=no
7473       ;;
7474
7475     newsos6)
7476       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7477       hardcode_direct=yes
7478       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7479       hardcode_libdir_separator=:
7480       hardcode_shlibpath_var=no
7481       ;;
7482
7483     openbsd*)
7484       hardcode_direct=yes
7485       hardcode_shlibpath_var=no
7486       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7487         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7488         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7489         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7490         export_dynamic_flag_spec='${wl}-E'
7491       else
7492        case $host_os in
7493          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7494            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7495            hardcode_libdir_flag_spec='-R$libdir'
7496            ;;
7497          *)
7498            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7499            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7500            ;;
7501        esac
7502       fi
7503       ;;
7504
7505     os2*)
7506       hardcode_libdir_flag_spec='-L$libdir'
7507       hardcode_minus_L=yes
7508       allow_undefined_flag=unsupported
7509       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'
7510       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7511       ;;
7512
7513     osf3*)
7514       if test "$GCC" = yes; then
7515         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7516         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'
7517       else
7518         allow_undefined_flag=' -expect_unresolved \*'
7519         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'
7520       fi
7521       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7522       hardcode_libdir_separator=:
7523       ;;
7524
7525     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7526       if test "$GCC" = yes; then
7527         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7528         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'
7529         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7530       else
7531         allow_undefined_flag=' -expect_unresolved \*'
7532         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'
7533         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7534         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7535
7536         # Both c and cxx compiler support -rpath directly
7537         hardcode_libdir_flag_spec='-rpath $libdir'
7538       fi
7539       hardcode_libdir_separator=:
7540       ;;
7541
7542     sco3.2v5*)
7543       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7544       hardcode_shlibpath_var=no
7545       export_dynamic_flag_spec='${wl}-Bexport'
7546       runpath_var=LD_RUN_PATH
7547       hardcode_runpath_var=yes
7548       ;;
7549
7550     solaris*)
7551       no_undefined_flag=' -z text'
7552       if test "$GCC" = yes; then
7553         wlarc='${wl}'
7554         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7555         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7556           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7557       else
7558         wlarc=''
7559         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7560         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7561         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7562       fi
7563       hardcode_libdir_flag_spec='-R$libdir'
7564       hardcode_shlibpath_var=no
7565       case $host_os in
7566       solaris2.[0-5] | solaris2.[0-5].*) ;;
7567       *)
7568         # The compiler driver will combine linker options so we
7569         # cannot just pass the convience library names through
7570         # without $wl, iff we do not link with $LD.
7571         # Luckily, gcc supports the same syntax we need for Sun Studio.
7572         # Supported since Solaris 2.6 (maybe 2.5.1?)
7573         case $wlarc in
7574         '')
7575           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7576         *)
7577           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7578         esac ;;
7579       esac
7580       link_all_deplibs=yes
7581       ;;
7582
7583     sunos4*)
7584       if test "x$host_vendor" = xsequent; then
7585         # Use $CC to link under sequent, because it throws in some extra .o
7586         # files that make .init and .fini sections work.
7587         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7588       else
7589         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7590       fi
7591       hardcode_libdir_flag_spec='-L$libdir'
7592       hardcode_direct=yes
7593       hardcode_minus_L=yes
7594       hardcode_shlibpath_var=no
7595       ;;
7596
7597     sysv4)
7598       case $host_vendor in
7599         sni)
7600           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7601           hardcode_direct=yes # is this really true???
7602         ;;
7603         siemens)
7604           ## LD is ld it makes a PLAMLIB
7605           ## CC just makes a GrossModule.
7606           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7607           reload_cmds='$CC -r -o $output$reload_objs'
7608           hardcode_direct=no
7609         ;;
7610         motorola)
7611           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7612           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7613         ;;
7614       esac
7615       runpath_var='LD_RUN_PATH'
7616       hardcode_shlibpath_var=no
7617       ;;
7618
7619     sysv4.3*)
7620       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7621       hardcode_shlibpath_var=no
7622       export_dynamic_flag_spec='-Bexport'
7623       ;;
7624
7625     sysv4*MP*)
7626       if test -d /usr/nec; then
7627         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7628         hardcode_shlibpath_var=no
7629         runpath_var=LD_RUN_PATH
7630         hardcode_runpath_var=yes
7631         ld_shlibs=yes
7632       fi
7633       ;;
7634
7635     sysv4.2uw2*)
7636       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7637       hardcode_direct=yes
7638       hardcode_minus_L=no
7639       hardcode_shlibpath_var=no
7640       hardcode_runpath_var=yes
7641       runpath_var=LD_RUN_PATH
7642       ;;
7643
7644    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7645       no_undefined_flag='${wl}-z ${wl}text'
7646       if test "$GCC" = yes; then
7647         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7648       else
7649         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7650       fi
7651       runpath_var='LD_RUN_PATH'
7652       hardcode_shlibpath_var=no
7653       ;;
7654
7655     sysv5*)
7656       no_undefined_flag=' -z text'
7657       # $CC -shared without GNU ld will not create a library from C++
7658       # object files and a static libstdc++, better avoid it by now
7659       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7660       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7661                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7662       hardcode_libdir_flag_spec=
7663       hardcode_shlibpath_var=no
7664       runpath_var='LD_RUN_PATH'
7665       ;;
7666
7667     uts4*)
7668       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7669       hardcode_libdir_flag_spec='-L$libdir'
7670       hardcode_shlibpath_var=no
7671       ;;
7672
7673     *)
7674       ld_shlibs=no
7675       ;;
7676     esac
7677   fi
7678
7679 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7680 echo "${ECHO_T}$ld_shlibs" >&6
7681 test "$ld_shlibs" = no && can_build_shared=no
7682
7683 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7684 if test "$GCC" = yes; then
7685   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7686 fi
7687
7688 #
7689 # Do we need to explicitly link libc?
7690 #
7691 case "x$archive_cmds_need_lc" in
7692 x|xyes)
7693   # Assume -lc should be added
7694   archive_cmds_need_lc=yes
7695
7696   if test "$enable_shared" = yes && test "$GCC" = yes; then
7697     case $archive_cmds in
7698     *'~'*)
7699       # FIXME: we may have to deal with multi-command sequences.
7700       ;;
7701     '$CC '*)
7702       # Test whether the compiler implicitly links with -lc since on some
7703       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7704       # to ld, don't add -lc before -lgcc.
7705       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7706 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7707       $rm conftest*
7708       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7709
7710       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7711   (eval $ac_compile) 2>&5
7712   ac_status=$?
7713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714   (exit $ac_status); } 2>conftest.err; then
7715         soname=conftest
7716         lib=conftest
7717         libobjs=conftest.$ac_objext
7718         deplibs=
7719         wl=$lt_prog_compiler_wl
7720         compiler_flags=-v
7721         linker_flags=-v
7722         verstring=
7723         output_objdir=.
7724         libname=conftest
7725         lt_save_allow_undefined_flag=$allow_undefined_flag
7726         allow_undefined_flag=
7727         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7728   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7729   ac_status=$?
7730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731   (exit $ac_status); }
7732         then
7733           archive_cmds_need_lc=no
7734         else
7735           archive_cmds_need_lc=yes
7736         fi
7737         allow_undefined_flag=$lt_save_allow_undefined_flag
7738       else
7739         cat conftest.err 1>&5
7740       fi
7741       $rm conftest*
7742       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7743 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7744       ;;
7745     esac
7746   fi
7747   ;;
7748 esac
7749
7750 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7751 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7752 library_names_spec=
7753 libname_spec='lib$name'
7754 soname_spec=
7755 shrext_cmds=".so"
7756 postinstall_cmds=
7757 postuninstall_cmds=
7758 finish_cmds=
7759 finish_eval=
7760 shlibpath_var=
7761 shlibpath_overrides_runpath=unknown
7762 version_type=none
7763 dynamic_linker="$host_os ld.so"
7764 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7765 if test "$GCC" = yes; then
7766   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7767   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7768     # if the path contains ";" then we assume it to be the separator
7769     # otherwise default to the standard path separator (i.e. ":") - it is
7770     # assumed that no part of a normal pathname contains ";" but that should
7771     # okay in the real world where ";" in dirpaths is itself problematic.
7772     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7773   else
7774     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7775   fi
7776 else
7777   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7778 fi
7779 need_lib_prefix=unknown
7780 hardcode_into_libs=no
7781
7782 # when you set need_version to no, make sure it does not cause -set_version
7783 # flags to be left without arguments
7784 need_version=unknown
7785
7786 case $host_os in
7787 aix3*)
7788   version_type=linux
7789   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7790   shlibpath_var=LIBPATH
7791
7792   # AIX 3 has no versioning support, so we append a major version to the name.
7793   soname_spec='${libname}${release}${shared_ext}$major'
7794   ;;
7795
7796 aix4* | aix5*)
7797   version_type=linux
7798   need_lib_prefix=no
7799   need_version=no
7800   hardcode_into_libs=yes
7801   if test "$host_cpu" = ia64; then
7802     # AIX 5 supports IA64
7803     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7804     shlibpath_var=LD_LIBRARY_PATH
7805   else
7806     # With GCC up to 2.95.x, collect2 would create an import file
7807     # for dependence libraries.  The import file would start with
7808     # the line `#! .'.  This would cause the generated library to
7809     # depend on `.', always an invalid library.  This was fixed in
7810     # development snapshots of GCC prior to 3.0.
7811     case $host_os in
7812       aix4 | aix4.[01] | aix4.[01].*)
7813       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7814            echo ' yes '
7815            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7816         :
7817       else
7818         can_build_shared=no
7819       fi
7820       ;;
7821     esac
7822     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7823     # soname into executable. Probably we can add versioning support to
7824     # collect2, so additional links can be useful in future.
7825     if test "$aix_use_runtimelinking" = yes; then
7826       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7827       # instead of lib<name>.a to let people know that these are not
7828       # typical AIX shared libraries.
7829       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7830     else
7831       # We preserve .a as extension for shared libraries through AIX4.2
7832       # and later when we are not doing run time linking.
7833       library_names_spec='${libname}${release}.a $libname.a'
7834       soname_spec='${libname}${release}${shared_ext}$major'
7835     fi
7836     shlibpath_var=LIBPATH
7837   fi
7838   ;;
7839
7840 amigaos*)
7841   library_names_spec='$libname.ixlibrary $libname.a'
7842   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7843   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'
7844   ;;
7845
7846 beos*)
7847   library_names_spec='${libname}${shared_ext}'
7848   dynamic_linker="$host_os ld.so"
7849   shlibpath_var=LIBRARY_PATH
7850   ;;
7851
7852 bsdi[45]*)
7853   version_type=linux
7854   need_version=no
7855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7856   soname_spec='${libname}${release}${shared_ext}$major'
7857   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7858   shlibpath_var=LD_LIBRARY_PATH
7859   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7860   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7861   # the default ld.so.conf also contains /usr/contrib/lib and
7862   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7863   # libtool to hard-code these into programs
7864   ;;
7865
7866 cygwin* | mingw* | pw32*)
7867   version_type=windows
7868   shrext_cmds=".dll"
7869   need_version=no
7870   need_lib_prefix=no
7871
7872   case $GCC,$host_os in
7873   yes,cygwin* | yes,mingw* | yes,pw32*)
7874     library_names_spec='$libname.dll.a'
7875     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7876     postinstall_cmds='base_file=`basename \${file}`~
7877       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7878       dldir=$destdir/`dirname \$dlpath`~
7879       test -d \$dldir || mkdir -p \$dldir~
7880       $install_prog $dir/$dlname \$dldir/$dlname'
7881     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7882       dlpath=$dir/\$dldll~
7883        $rm \$dlpath'
7884     shlibpath_overrides_runpath=yes
7885
7886     case $host_os in
7887     cygwin*)
7888       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7889       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7890       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7891       ;;
7892     mingw*)
7893       # MinGW DLLs use traditional 'lib' prefix
7894       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7895       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7896       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7897         # It is most probably a Windows format PATH printed by
7898         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7899         # path with ; separators, and with drive letters. We can handle the
7900         # drive letters (cygwin fileutils understands them), so leave them,
7901         # especially as we might pass files found there to a mingw objdump,
7902         # which wouldn't understand a cygwinified path. Ahh.
7903         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7904       else
7905         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7906       fi
7907       ;;
7908     pw32*)
7909       # pw32 DLLs use 'pw' prefix rather than 'lib'
7910       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7911       ;;
7912     esac
7913     ;;
7914
7915   *)
7916     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7917     ;;
7918   esac
7919   dynamic_linker='Win32 ld.exe'
7920   # FIXME: first we should search . and the directory the executable is in
7921   shlibpath_var=PATH
7922   ;;
7923
7924 darwin* | rhapsody*)
7925   dynamic_linker="$host_os dyld"
7926   version_type=darwin
7927   need_lib_prefix=no
7928   need_version=no
7929   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7930   soname_spec='${libname}${release}${major}$shared_ext'
7931   shlibpath_overrides_runpath=yes
7932   shlibpath_var=DYLD_LIBRARY_PATH
7933   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7934   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7935   if test "$GCC" = yes; then
7936     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"`
7937   else
7938     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7939   fi
7940   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7941   ;;
7942
7943 dgux*)
7944   version_type=linux
7945   need_lib_prefix=no
7946   need_version=no
7947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7948   soname_spec='${libname}${release}${shared_ext}$major'
7949   shlibpath_var=LD_LIBRARY_PATH
7950   ;;
7951
7952 freebsd1*)
7953   dynamic_linker=no
7954   ;;
7955
7956 kfreebsd*-gnu)
7957   version_type=linux
7958   need_lib_prefix=no
7959   need_version=no
7960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7961   soname_spec='${libname}${release}${shared_ext}$major'
7962   shlibpath_var=LD_LIBRARY_PATH
7963   shlibpath_overrides_runpath=no
7964   hardcode_into_libs=yes
7965   dynamic_linker='GNU ld.so'
7966   ;;
7967
7968 freebsd* | dragonfly*)
7969   # DragonFly does not have aout.  When/if they implement a new
7970   # versioning mechanism, adjust this.
7971   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7972   version_type=freebsd-$objformat
7973   case $version_type in
7974     freebsd-elf*)
7975       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7976       need_version=no
7977       need_lib_prefix=no
7978       ;;
7979     freebsd-*)
7980       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7981       need_version=yes
7982       ;;
7983   esac
7984   shlibpath_var=LD_LIBRARY_PATH
7985   case $host_os in
7986   freebsd2*)
7987     shlibpath_overrides_runpath=yes
7988     ;;
7989   freebsd3.[01]* | freebsdelf3.[01]*)
7990     shlibpath_overrides_runpath=yes
7991     hardcode_into_libs=yes
7992     ;;
7993   *) # from 3.2 on
7994     shlibpath_overrides_runpath=no
7995     hardcode_into_libs=yes
7996     ;;
7997   esac
7998   ;;
7999
8000 gnu*)
8001   version_type=linux
8002   need_lib_prefix=no
8003   need_version=no
8004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8005   soname_spec='${libname}${release}${shared_ext}$major'
8006   shlibpath_var=LD_LIBRARY_PATH
8007   hardcode_into_libs=yes
8008   ;;
8009
8010 hpux9* | hpux10* | hpux11*)
8011   # Give a soname corresponding to the major version so that dld.sl refuses to
8012   # link against other versions.
8013   version_type=sunos
8014   need_lib_prefix=no
8015   need_version=no
8016   case "$host_cpu" in
8017   ia64*)
8018     shrext_cmds='.so'
8019     hardcode_into_libs=yes
8020     dynamic_linker="$host_os dld.so"
8021     shlibpath_var=LD_LIBRARY_PATH
8022     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8023     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8024     soname_spec='${libname}${release}${shared_ext}$major'
8025     if test "X$HPUX_IA64_MODE" = X32; then
8026       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8027     else
8028       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8029     fi
8030     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8031     ;;
8032    hppa*64*)
8033      shrext_cmds='.sl'
8034      hardcode_into_libs=yes
8035      dynamic_linker="$host_os dld.sl"
8036      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8037      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8038      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8039      soname_spec='${libname}${release}${shared_ext}$major'
8040      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8041      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8042      ;;
8043    *)
8044     shrext_cmds='.sl'
8045     dynamic_linker="$host_os dld.sl"
8046     shlibpath_var=SHLIB_PATH
8047     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8048     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8049     soname_spec='${libname}${release}${shared_ext}$major'
8050     ;;
8051   esac
8052   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8053   postinstall_cmds='chmod 555 $lib'
8054   ;;
8055
8056 irix5* | irix6* | nonstopux*)
8057   case $host_os in
8058     nonstopux*) version_type=nonstopux ;;
8059     *)
8060         if test "$lt_cv_prog_gnu_ld" = yes; then
8061                 version_type=linux
8062         else
8063                 version_type=irix
8064         fi ;;
8065   esac
8066   need_lib_prefix=no
8067   need_version=no
8068   soname_spec='${libname}${release}${shared_ext}$major'
8069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8070   case $host_os in
8071   irix5* | nonstopux*)
8072     libsuff= shlibsuff=
8073     ;;
8074   *)
8075     case $LD in # libtool.m4 will add one of these switches to LD
8076     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8077       libsuff= shlibsuff= libmagic=32-bit;;
8078     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8079       libsuff=32 shlibsuff=N32 libmagic=N32;;
8080     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8081       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8082     *) libsuff= shlibsuff= libmagic=never-match;;
8083     esac
8084     ;;
8085   esac
8086   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8087   shlibpath_overrides_runpath=no
8088   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8089   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8090   hardcode_into_libs=yes
8091   ;;
8092
8093 # No shared lib support for Linux oldld, aout, or coff.
8094 linux*oldld* | linux*aout* | linux*coff*)
8095   dynamic_linker=no
8096   ;;
8097
8098 # This must be Linux ELF.
8099 linux*)
8100   version_type=linux
8101   need_lib_prefix=no
8102   need_version=no
8103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8104   soname_spec='${libname}${release}${shared_ext}$major'
8105   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8106   shlibpath_var=LD_LIBRARY_PATH
8107   shlibpath_overrides_runpath=no
8108   # This implies no fast_install, which is unacceptable.
8109   # Some rework will be needed to allow for fast_install
8110   # before this can be enabled.
8111   hardcode_into_libs=yes
8112
8113   # Append ld.so.conf contents to the search path
8114   if test -f /etc/ld.so.conf; then
8115     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/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8116     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8117   fi
8118
8119   # We used to test for /lib/ld.so.1 and disable shared libraries on
8120   # powerpc, because MkLinux only supported shared libraries with the
8121   # GNU dynamic linker.  Since this was broken with cross compilers,
8122   # most powerpc-linux boxes support dynamic linking these days and
8123   # people can always --disable-shared, the test was removed, and we
8124   # assume the GNU/Linux dynamic linker is in use.
8125   dynamic_linker='GNU/Linux ld.so'
8126   ;;
8127
8128 knetbsd*-gnu)
8129   version_type=linux
8130   need_lib_prefix=no
8131   need_version=no
8132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8133   soname_spec='${libname}${release}${shared_ext}$major'
8134   shlibpath_var=LD_LIBRARY_PATH
8135   shlibpath_overrides_runpath=no
8136   hardcode_into_libs=yes
8137   dynamic_linker='GNU ld.so'
8138   ;;
8139
8140 netbsd*)
8141   version_type=sunos
8142   need_lib_prefix=no
8143   need_version=no
8144   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8145     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8146     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8147     dynamic_linker='NetBSD (a.out) ld.so'
8148   else
8149     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8150     soname_spec='${libname}${release}${shared_ext}$major'
8151     dynamic_linker='NetBSD ld.elf_so'
8152   fi
8153   shlibpath_var=LD_LIBRARY_PATH
8154   shlibpath_overrides_runpath=yes
8155   hardcode_into_libs=yes
8156   ;;
8157
8158 newsos6)
8159   version_type=linux
8160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8161   shlibpath_var=LD_LIBRARY_PATH
8162   shlibpath_overrides_runpath=yes
8163   ;;
8164
8165 nto-qnx*)
8166   version_type=linux
8167   need_lib_prefix=no
8168   need_version=no
8169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8170   soname_spec='${libname}${release}${shared_ext}$major'
8171   shlibpath_var=LD_LIBRARY_PATH
8172   shlibpath_overrides_runpath=yes
8173   ;;
8174
8175 openbsd*)
8176   version_type=sunos
8177   need_lib_prefix=no
8178   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8179   case $host_os in
8180     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8181     *)                         need_version=no  ;;
8182   esac
8183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8184   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8185   shlibpath_var=LD_LIBRARY_PATH
8186   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8187     case $host_os in
8188       openbsd2.[89] | openbsd2.[89].*)
8189         shlibpath_overrides_runpath=no
8190         ;;
8191       *)
8192         shlibpath_overrides_runpath=yes
8193         ;;
8194       esac
8195   else
8196     shlibpath_overrides_runpath=yes
8197   fi
8198   ;;
8199
8200 os2*)
8201   libname_spec='$name'
8202   shrext_cmds=".dll"
8203   need_lib_prefix=no
8204   library_names_spec='$libname${shared_ext} $libname.a'
8205   dynamic_linker='OS/2 ld.exe'
8206   shlibpath_var=LIBPATH
8207   ;;
8208
8209 osf3* | osf4* | osf5*)
8210   version_type=osf
8211   need_lib_prefix=no
8212   need_version=no
8213   soname_spec='${libname}${release}${shared_ext}$major'
8214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8215   shlibpath_var=LD_LIBRARY_PATH
8216   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8217   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8218   ;;
8219
8220 sco3.2v5*)
8221   version_type=osf
8222   soname_spec='${libname}${release}${shared_ext}$major'
8223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8224   shlibpath_var=LD_LIBRARY_PATH
8225   ;;
8226
8227 solaris*)
8228   version_type=linux
8229   need_lib_prefix=no
8230   need_version=no
8231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8232   soname_spec='${libname}${release}${shared_ext}$major'
8233   shlibpath_var=LD_LIBRARY_PATH
8234   shlibpath_overrides_runpath=yes
8235   hardcode_into_libs=yes
8236   # ldd complains unless libraries are executable
8237   postinstall_cmds='chmod +x $lib'
8238   ;;
8239
8240 sunos4*)
8241   version_type=sunos
8242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8243   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8244   shlibpath_var=LD_LIBRARY_PATH
8245   shlibpath_overrides_runpath=yes
8246   if test "$with_gnu_ld" = yes; then
8247     need_lib_prefix=no
8248   fi
8249   need_version=yes
8250   ;;
8251
8252 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8253   version_type=linux
8254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8255   soname_spec='${libname}${release}${shared_ext}$major'
8256   shlibpath_var=LD_LIBRARY_PATH
8257   case $host_vendor in
8258     sni)
8259       shlibpath_overrides_runpath=no
8260       need_lib_prefix=no
8261       export_dynamic_flag_spec='${wl}-Blargedynsym'
8262       runpath_var=LD_RUN_PATH
8263       ;;
8264     siemens)
8265       need_lib_prefix=no
8266       ;;
8267     motorola)
8268       need_lib_prefix=no
8269       need_version=no
8270       shlibpath_overrides_runpath=no
8271       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8272       ;;
8273   esac
8274   ;;
8275
8276 sysv4*MP*)
8277   if test -d /usr/nec ;then
8278     version_type=linux
8279     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8280     soname_spec='$libname${shared_ext}.$major'
8281     shlibpath_var=LD_LIBRARY_PATH
8282   fi
8283   ;;
8284
8285 uts4*)
8286   version_type=linux
8287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8288   soname_spec='${libname}${release}${shared_ext}$major'
8289   shlibpath_var=LD_LIBRARY_PATH
8290   ;;
8291
8292 *)
8293   dynamic_linker=no
8294   ;;
8295 esac
8296 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8297 echo "${ECHO_T}$dynamic_linker" >&6
8298 test "$dynamic_linker" = no && can_build_shared=no
8299
8300 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8301 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8302 hardcode_action=
8303 if test -n "$hardcode_libdir_flag_spec" || \
8304    test -n "$runpath_var" || \
8305    test "X$hardcode_automatic" = "Xyes" ; then
8306
8307   # We can hardcode non-existant directories.
8308   if test "$hardcode_direct" != no &&
8309      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8310      # have to relink, otherwise we might link with an installed library
8311      # when we should be linking with a yet-to-be-installed one
8312      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8313      test "$hardcode_minus_L" != no; then
8314     # Linking always hardcodes the temporary library directory.
8315     hardcode_action=relink
8316   else
8317     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8318     hardcode_action=immediate
8319   fi
8320 else
8321   # We cannot hardcode anything, or else we can only hardcode existing
8322   # directories.
8323   hardcode_action=unsupported
8324 fi
8325 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8326 echo "${ECHO_T}$hardcode_action" >&6
8327
8328 if test "$hardcode_action" = relink; then
8329   # Fast installation is not supported
8330   enable_fast_install=no
8331 elif test "$shlibpath_overrides_runpath" = yes ||
8332      test "$enable_shared" = no; then
8333   # Fast installation is not necessary
8334   enable_fast_install=needless
8335 fi
8336
8337 striplib=
8338 old_striplib=
8339 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8340 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8341 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8342   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8343   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8344   echo "$as_me:$LINENO: result: yes" >&5
8345 echo "${ECHO_T}yes" >&6
8346 else
8347 # FIXME - insert some real tests, host_os isn't really good enough
8348   case $host_os in
8349    darwin*)
8350        if test -n "$STRIP" ; then
8351          striplib="$STRIP -x"
8352          echo "$as_me:$LINENO: result: yes" >&5
8353 echo "${ECHO_T}yes" >&6
8354        else
8355   echo "$as_me:$LINENO: result: no" >&5
8356 echo "${ECHO_T}no" >&6
8357 fi
8358        ;;
8359    *)
8360   echo "$as_me:$LINENO: result: no" >&5
8361 echo "${ECHO_T}no" >&6
8362     ;;
8363   esac
8364 fi
8365
8366 if test "x$enable_dlopen" != xyes; then
8367   enable_dlopen=unknown
8368   enable_dlopen_self=unknown
8369   enable_dlopen_self_static=unknown
8370 else
8371   lt_cv_dlopen=no
8372   lt_cv_dlopen_libs=
8373
8374   case $host_os in
8375   beos*)
8376     lt_cv_dlopen="load_add_on"
8377     lt_cv_dlopen_libs=
8378     lt_cv_dlopen_self=yes
8379     ;;
8380
8381   mingw* | pw32*)
8382     lt_cv_dlopen="LoadLibrary"
8383     lt_cv_dlopen_libs=
8384    ;;
8385
8386   cygwin*)
8387     lt_cv_dlopen="dlopen"
8388     lt_cv_dlopen_libs=
8389    ;;
8390
8391   darwin*)
8392   # if libdl is installed we need to link against it
8393     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8394 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8395 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8396   echo $ECHO_N "(cached) $ECHO_C" >&6
8397 else
8398   ac_check_lib_save_LIBS=$LIBS
8399 LIBS="-ldl  $LIBS"
8400 cat >conftest.$ac_ext <<_ACEOF
8401 /* confdefs.h.  */
8402 _ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h.  */
8406
8407 /* Override any gcc2 internal prototype to avoid an error.  */
8408 #ifdef __cplusplus
8409 extern "C"
8410 #endif
8411 /* We use char because int might match the return type of a gcc2
8412    builtin and then its argument prototype would still apply.  */
8413 char dlopen ();
8414 int
8415 main ()
8416 {
8417 dlopen ();
8418   ;
8419   return 0;
8420 }
8421 _ACEOF
8422 rm -f conftest.$ac_objext conftest$ac_exeext
8423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8424   (eval $ac_link) 2>conftest.er1
8425   ac_status=$?
8426   grep -v '^ *+' conftest.er1 >conftest.err
8427   rm -f conftest.er1
8428   cat conftest.err >&5
8429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430   (exit $ac_status); } &&
8431          { ac_try='test -z "$ac_c_werror_flag"
8432                          || test ! -s conftest.err'
8433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434   (eval $ac_try) 2>&5
8435   ac_status=$?
8436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437   (exit $ac_status); }; } &&
8438          { ac_try='test -s conftest$ac_exeext'
8439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440   (eval $ac_try) 2>&5
8441   ac_status=$?
8442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443   (exit $ac_status); }; }; then
8444   ac_cv_lib_dl_dlopen=yes
8445 else
8446   echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8448
8449 ac_cv_lib_dl_dlopen=no
8450 fi
8451 rm -f conftest.err conftest.$ac_objext \
8452       conftest$ac_exeext conftest.$ac_ext
8453 LIBS=$ac_check_lib_save_LIBS
8454 fi
8455 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8456 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8457 if test $ac_cv_lib_dl_dlopen = yes; then
8458   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8459 else
8460
8461     lt_cv_dlopen="dyld"
8462     lt_cv_dlopen_libs=
8463     lt_cv_dlopen_self=yes
8464
8465 fi
8466
8467    ;;
8468
8469   *)
8470     echo "$as_me:$LINENO: checking for shl_load" >&5
8471 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8472 if test "${ac_cv_func_shl_load+set}" = set; then
8473   echo $ECHO_N "(cached) $ECHO_C" >&6
8474 else
8475   cat >conftest.$ac_ext <<_ACEOF
8476 /* confdefs.h.  */
8477 _ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h.  */
8481 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8482    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8483 #define shl_load innocuous_shl_load
8484
8485 /* System header to define __stub macros and hopefully few prototypes,
8486     which can conflict with char shl_load (); below.
8487     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8488     <limits.h> exists even on freestanding compilers.  */
8489
8490 #ifdef __STDC__
8491 # include <limits.h>
8492 #else
8493 # include <assert.h>
8494 #endif
8495
8496 #undef shl_load
8497
8498 /* Override any gcc2 internal prototype to avoid an error.  */
8499 #ifdef __cplusplus
8500 extern "C"
8501 {
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 /* The GNU C library defines this for functions which it implements
8507     to always fail with ENOSYS.  Some functions are actually named
8508     something starting with __ and the normal name is an alias.  */
8509 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8510 choke me
8511 #else
8512 char (*f) () = shl_load;
8513 #endif
8514 #ifdef __cplusplus
8515 }
8516 #endif
8517
8518 int
8519 main ()
8520 {
8521 return f != shl_load;
8522   ;
8523   return 0;
8524 }
8525 _ACEOF
8526 rm -f conftest.$ac_objext conftest$ac_exeext
8527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8528   (eval $ac_link) 2>conftest.er1
8529   ac_status=$?
8530   grep -v '^ *+' conftest.er1 >conftest.err
8531   rm -f conftest.er1
8532   cat conftest.err >&5
8533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534   (exit $ac_status); } &&
8535          { ac_try='test -z "$ac_c_werror_flag"
8536                          || test ! -s conftest.err'
8537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538   (eval $ac_try) 2>&5
8539   ac_status=$?
8540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541   (exit $ac_status); }; } &&
8542          { ac_try='test -s conftest$ac_exeext'
8543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544   (eval $ac_try) 2>&5
8545   ac_status=$?
8546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547   (exit $ac_status); }; }; then
8548   ac_cv_func_shl_load=yes
8549 else
8550   echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8552
8553 ac_cv_func_shl_load=no
8554 fi
8555 rm -f conftest.err conftest.$ac_objext \
8556       conftest$ac_exeext conftest.$ac_ext
8557 fi
8558 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8559 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8560 if test $ac_cv_func_shl_load = yes; then
8561   lt_cv_dlopen="shl_load"
8562 else
8563   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8564 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8565 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8566   echo $ECHO_N "(cached) $ECHO_C" >&6
8567 else
8568   ac_check_lib_save_LIBS=$LIBS
8569 LIBS="-ldld  $LIBS"
8570 cat >conftest.$ac_ext <<_ACEOF
8571 /* confdefs.h.  */
8572 _ACEOF
8573 cat confdefs.h >>conftest.$ac_ext
8574 cat >>conftest.$ac_ext <<_ACEOF
8575 /* end confdefs.h.  */
8576
8577 /* Override any gcc2 internal prototype to avoid an error.  */
8578 #ifdef __cplusplus
8579 extern "C"
8580 #endif
8581 /* We use char because int might match the return type of a gcc2
8582    builtin and then its argument prototype would still apply.  */
8583 char shl_load ();
8584 int
8585 main ()
8586 {
8587 shl_load ();
8588   ;
8589   return 0;
8590 }
8591 _ACEOF
8592 rm -f conftest.$ac_objext conftest$ac_exeext
8593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8594   (eval $ac_link) 2>conftest.er1
8595   ac_status=$?
8596   grep -v '^ *+' conftest.er1 >conftest.err
8597   rm -f conftest.er1
8598   cat conftest.err >&5
8599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600   (exit $ac_status); } &&
8601          { ac_try='test -z "$ac_c_werror_flag"
8602                          || test ! -s conftest.err'
8603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604   (eval $ac_try) 2>&5
8605   ac_status=$?
8606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607   (exit $ac_status); }; } &&
8608          { ac_try='test -s conftest$ac_exeext'
8609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610   (eval $ac_try) 2>&5
8611   ac_status=$?
8612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613   (exit $ac_status); }; }; then
8614   ac_cv_lib_dld_shl_load=yes
8615 else
8616   echo "$as_me: failed program was:" >&5
8617 sed 's/^/| /' conftest.$ac_ext >&5
8618
8619 ac_cv_lib_dld_shl_load=no
8620 fi
8621 rm -f conftest.err conftest.$ac_objext \
8622       conftest$ac_exeext conftest.$ac_ext
8623 LIBS=$ac_check_lib_save_LIBS
8624 fi
8625 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8626 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8627 if test $ac_cv_lib_dld_shl_load = yes; then
8628   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8629 else
8630   echo "$as_me:$LINENO: checking for dlopen" >&5
8631 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8632 if test "${ac_cv_func_dlopen+set}" = set; then
8633   echo $ECHO_N "(cached) $ECHO_C" >&6
8634 else
8635   cat >conftest.$ac_ext <<_ACEOF
8636 /* confdefs.h.  */
8637 _ACEOF
8638 cat confdefs.h >>conftest.$ac_ext
8639 cat >>conftest.$ac_ext <<_ACEOF
8640 /* end confdefs.h.  */
8641 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8642    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8643 #define dlopen innocuous_dlopen
8644
8645 /* System header to define __stub macros and hopefully few prototypes,
8646     which can conflict with char dlopen (); below.
8647     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8648     <limits.h> exists even on freestanding compilers.  */
8649
8650 #ifdef __STDC__
8651 # include <limits.h>
8652 #else
8653 # include <assert.h>
8654 #endif
8655
8656 #undef dlopen
8657
8658 /* Override any gcc2 internal prototype to avoid an error.  */
8659 #ifdef __cplusplus
8660 extern "C"
8661 {
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 /* The GNU C library defines this for functions which it implements
8667     to always fail with ENOSYS.  Some functions are actually named
8668     something starting with __ and the normal name is an alias.  */
8669 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8670 choke me
8671 #else
8672 char (*f) () = dlopen;
8673 #endif
8674 #ifdef __cplusplus
8675 }
8676 #endif
8677
8678 int
8679 main ()
8680 {
8681 return f != dlopen;
8682   ;
8683   return 0;
8684 }
8685 _ACEOF
8686 rm -f conftest.$ac_objext conftest$ac_exeext
8687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8688   (eval $ac_link) 2>conftest.er1
8689   ac_status=$?
8690   grep -v '^ *+' conftest.er1 >conftest.err
8691   rm -f conftest.er1
8692   cat conftest.err >&5
8693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694   (exit $ac_status); } &&
8695          { ac_try='test -z "$ac_c_werror_flag"
8696                          || test ! -s conftest.err'
8697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698   (eval $ac_try) 2>&5
8699   ac_status=$?
8700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701   (exit $ac_status); }; } &&
8702          { ac_try='test -s conftest$ac_exeext'
8703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704   (eval $ac_try) 2>&5
8705   ac_status=$?
8706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707   (exit $ac_status); }; }; then
8708   ac_cv_func_dlopen=yes
8709 else
8710   echo "$as_me: failed program was:" >&5
8711 sed 's/^/| /' conftest.$ac_ext >&5
8712
8713 ac_cv_func_dlopen=no
8714 fi
8715 rm -f conftest.err conftest.$ac_objext \
8716       conftest$ac_exeext conftest.$ac_ext
8717 fi
8718 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8719 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8720 if test $ac_cv_func_dlopen = yes; then
8721   lt_cv_dlopen="dlopen"
8722 else
8723   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8724 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8725 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8726   echo $ECHO_N "(cached) $ECHO_C" >&6
8727 else
8728   ac_check_lib_save_LIBS=$LIBS
8729 LIBS="-ldl  $LIBS"
8730 cat >conftest.$ac_ext <<_ACEOF
8731 /* confdefs.h.  */
8732 _ACEOF
8733 cat confdefs.h >>conftest.$ac_ext
8734 cat >>conftest.$ac_ext <<_ACEOF
8735 /* end confdefs.h.  */
8736
8737 /* Override any gcc2 internal prototype to avoid an error.  */
8738 #ifdef __cplusplus
8739 extern "C"
8740 #endif
8741 /* We use char because int might match the return type of a gcc2
8742    builtin and then its argument prototype would still apply.  */
8743 char dlopen ();
8744 int
8745 main ()
8746 {
8747 dlopen ();
8748   ;
8749   return 0;
8750 }
8751 _ACEOF
8752 rm -f conftest.$ac_objext conftest$ac_exeext
8753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8754   (eval $ac_link) 2>conftest.er1
8755   ac_status=$?
8756   grep -v '^ *+' conftest.er1 >conftest.err
8757   rm -f conftest.er1
8758   cat conftest.err >&5
8759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760   (exit $ac_status); } &&
8761          { ac_try='test -z "$ac_c_werror_flag"
8762                          || test ! -s conftest.err'
8763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764   (eval $ac_try) 2>&5
8765   ac_status=$?
8766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); }; } &&
8768          { ac_try='test -s conftest$ac_exeext'
8769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770   (eval $ac_try) 2>&5
8771   ac_status=$?
8772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773   (exit $ac_status); }; }; then
8774   ac_cv_lib_dl_dlopen=yes
8775 else
8776   echo "$as_me: failed program was:" >&5
8777 sed 's/^/| /' conftest.$ac_ext >&5
8778
8779 ac_cv_lib_dl_dlopen=no
8780 fi
8781 rm -f conftest.err conftest.$ac_objext \
8782       conftest$ac_exeext conftest.$ac_ext
8783 LIBS=$ac_check_lib_save_LIBS
8784 fi
8785 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8786 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8787 if test $ac_cv_lib_dl_dlopen = yes; then
8788   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8789 else
8790   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8791 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8792 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8793   echo $ECHO_N "(cached) $ECHO_C" >&6
8794 else
8795   ac_check_lib_save_LIBS=$LIBS
8796 LIBS="-lsvld  $LIBS"
8797 cat >conftest.$ac_ext <<_ACEOF
8798 /* confdefs.h.  */
8799 _ACEOF
8800 cat confdefs.h >>conftest.$ac_ext
8801 cat >>conftest.$ac_ext <<_ACEOF
8802 /* end confdefs.h.  */
8803
8804 /* Override any gcc2 internal prototype to avoid an error.  */
8805 #ifdef __cplusplus
8806 extern "C"
8807 #endif
8808 /* We use char because int might match the return type of a gcc2
8809    builtin and then its argument prototype would still apply.  */
8810 char dlopen ();
8811 int
8812 main ()
8813 {
8814 dlopen ();
8815   ;
8816   return 0;
8817 }
8818 _ACEOF
8819 rm -f conftest.$ac_objext conftest$ac_exeext
8820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8821   (eval $ac_link) 2>conftest.er1
8822   ac_status=$?
8823   grep -v '^ *+' conftest.er1 >conftest.err
8824   rm -f conftest.er1
8825   cat conftest.err >&5
8826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827   (exit $ac_status); } &&
8828          { ac_try='test -z "$ac_c_werror_flag"
8829                          || test ! -s conftest.err'
8830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831   (eval $ac_try) 2>&5
8832   ac_status=$?
8833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834   (exit $ac_status); }; } &&
8835          { ac_try='test -s conftest$ac_exeext'
8836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837   (eval $ac_try) 2>&5
8838   ac_status=$?
8839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840   (exit $ac_status); }; }; then
8841   ac_cv_lib_svld_dlopen=yes
8842 else
8843   echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8845
8846 ac_cv_lib_svld_dlopen=no
8847 fi
8848 rm -f conftest.err conftest.$ac_objext \
8849       conftest$ac_exeext conftest.$ac_ext
8850 LIBS=$ac_check_lib_save_LIBS
8851 fi
8852 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8853 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8854 if test $ac_cv_lib_svld_dlopen = yes; then
8855   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8856 else
8857   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8858 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8859 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8860   echo $ECHO_N "(cached) $ECHO_C" >&6
8861 else
8862   ac_check_lib_save_LIBS=$LIBS
8863 LIBS="-ldld  $LIBS"
8864 cat >conftest.$ac_ext <<_ACEOF
8865 /* confdefs.h.  */
8866 _ACEOF
8867 cat confdefs.h >>conftest.$ac_ext
8868 cat >>conftest.$ac_ext <<_ACEOF
8869 /* end confdefs.h.  */
8870
8871 /* Override any gcc2 internal prototype to avoid an error.  */
8872 #ifdef __cplusplus
8873 extern "C"
8874 #endif
8875 /* We use char because int might match the return type of a gcc2
8876    builtin and then its argument prototype would still apply.  */
8877 char dld_link ();
8878 int
8879 main ()
8880 {
8881 dld_link ();
8882   ;
8883   return 0;
8884 }
8885 _ACEOF
8886 rm -f conftest.$ac_objext conftest$ac_exeext
8887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8888   (eval $ac_link) 2>conftest.er1
8889   ac_status=$?
8890   grep -v '^ *+' conftest.er1 >conftest.err
8891   rm -f conftest.er1
8892   cat conftest.err >&5
8893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894   (exit $ac_status); } &&
8895          { ac_try='test -z "$ac_c_werror_flag"
8896                          || test ! -s conftest.err'
8897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898   (eval $ac_try) 2>&5
8899   ac_status=$?
8900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901   (exit $ac_status); }; } &&
8902          { ac_try='test -s conftest$ac_exeext'
8903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904   (eval $ac_try) 2>&5
8905   ac_status=$?
8906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907   (exit $ac_status); }; }; then
8908   ac_cv_lib_dld_dld_link=yes
8909 else
8910   echo "$as_me: failed program was:" >&5
8911 sed 's/^/| /' conftest.$ac_ext >&5
8912
8913 ac_cv_lib_dld_dld_link=no
8914 fi
8915 rm -f conftest.err conftest.$ac_objext \
8916       conftest$ac_exeext conftest.$ac_ext
8917 LIBS=$ac_check_lib_save_LIBS
8918 fi
8919 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8920 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8921 if test $ac_cv_lib_dld_dld_link = yes; then
8922   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8923 fi
8924
8925
8926 fi
8927
8928
8929 fi
8930
8931
8932 fi
8933
8934
8935 fi
8936
8937
8938 fi
8939
8940     ;;
8941   esac
8942
8943   if test "x$lt_cv_dlopen" != xno; then
8944     enable_dlopen=yes
8945   else
8946     enable_dlopen=no
8947   fi
8948
8949   case $lt_cv_dlopen in
8950   dlopen)
8951     save_CPPFLAGS="$CPPFLAGS"
8952     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8953
8954     save_LDFLAGS="$LDFLAGS"
8955     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8956
8957     save_LIBS="$LIBS"
8958     LIBS="$lt_cv_dlopen_libs $LIBS"
8959
8960     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8961 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8962 if test "${lt_cv_dlopen_self+set}" = set; then
8963   echo $ECHO_N "(cached) $ECHO_C" >&6
8964 else
8965           if test "$cross_compiling" = yes; then :
8966   lt_cv_dlopen_self=cross
8967 else
8968   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8969   lt_status=$lt_dlunknown
8970   cat > conftest.$ac_ext <<EOF
8971 #line 8971 "configure"
8972 #include "confdefs.h"
8973
8974 #if HAVE_DLFCN_H
8975 #include <dlfcn.h>
8976 #endif
8977
8978 #include <stdio.h>
8979
8980 #ifdef RTLD_GLOBAL
8981 #  define LT_DLGLOBAL           RTLD_GLOBAL
8982 #else
8983 #  ifdef DL_GLOBAL
8984 #    define LT_DLGLOBAL         DL_GLOBAL
8985 #  else
8986 #    define LT_DLGLOBAL         0
8987 #  endif
8988 #endif
8989
8990 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8991    find out it does not work in some platform. */
8992 #ifndef LT_DLLAZY_OR_NOW
8993 #  ifdef RTLD_LAZY
8994 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8995 #  else
8996 #    ifdef DL_LAZY
8997 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8998 #    else
8999 #      ifdef RTLD_NOW
9000 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9001 #      else
9002 #        ifdef DL_NOW
9003 #          define LT_DLLAZY_OR_NOW      DL_NOW
9004 #        else
9005 #          define LT_DLLAZY_OR_NOW      0
9006 #        endif
9007 #      endif
9008 #    endif
9009 #  endif
9010 #endif
9011
9012 #ifdef __cplusplus
9013 extern "C" void exit (int);
9014 #endif
9015
9016 void fnord() { int i=42;}
9017 int main ()
9018 {
9019   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9020   int status = $lt_dlunknown;
9021
9022   if (self)
9023     {
9024       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9025       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9026       /* dlclose (self); */
9027     }
9028
9029     exit (status);
9030 }
9031 EOF
9032   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9033   (eval $ac_link) 2>&5
9034   ac_status=$?
9035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9037     (./conftest; exit; ) 2>/dev/null
9038     lt_status=$?
9039     case x$lt_status in
9040       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9041       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9042       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9043     esac
9044   else :
9045     # compilation failed
9046     lt_cv_dlopen_self=no
9047   fi
9048 fi
9049 rm -fr conftest*
9050
9051
9052 fi
9053 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9054 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9055
9056     if test "x$lt_cv_dlopen_self" = xyes; then
9057       LDFLAGS="$LDFLAGS $link_static_flag"
9058       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9059 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9060 if test "${lt_cv_dlopen_self_static+set}" = set; then
9061   echo $ECHO_N "(cached) $ECHO_C" >&6
9062 else
9063           if test "$cross_compiling" = yes; then :
9064   lt_cv_dlopen_self_static=cross
9065 else
9066   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9067   lt_status=$lt_dlunknown
9068   cat > conftest.$ac_ext <<EOF
9069 #line 9069 "configure"
9070 #include "confdefs.h"
9071
9072 #if HAVE_DLFCN_H
9073 #include <dlfcn.h>
9074 #endif
9075
9076 #include <stdio.h>
9077
9078 #ifdef RTLD_GLOBAL
9079 #  define LT_DLGLOBAL           RTLD_GLOBAL
9080 #else
9081 #  ifdef DL_GLOBAL
9082 #    define LT_DLGLOBAL         DL_GLOBAL
9083 #  else
9084 #    define LT_DLGLOBAL         0
9085 #  endif
9086 #endif
9087
9088 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9089    find out it does not work in some platform. */
9090 #ifndef LT_DLLAZY_OR_NOW
9091 #  ifdef RTLD_LAZY
9092 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9093 #  else
9094 #    ifdef DL_LAZY
9095 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9096 #    else
9097 #      ifdef RTLD_NOW
9098 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9099 #      else
9100 #        ifdef DL_NOW
9101 #          define LT_DLLAZY_OR_NOW      DL_NOW
9102 #        else
9103 #          define LT_DLLAZY_OR_NOW      0
9104 #        endif
9105 #      endif
9106 #    endif
9107 #  endif
9108 #endif
9109
9110 #ifdef __cplusplus
9111 extern "C" void exit (int);
9112 #endif
9113
9114 void fnord() { int i=42;}
9115 int main ()
9116 {
9117   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9118   int status = $lt_dlunknown;
9119
9120   if (self)
9121     {
9122       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9123       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9124       /* dlclose (self); */
9125     }
9126
9127     exit (status);
9128 }
9129 EOF
9130   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9131   (eval $ac_link) 2>&5
9132   ac_status=$?
9133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9135     (./conftest; exit; ) 2>/dev/null
9136     lt_status=$?
9137     case x$lt_status in
9138       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9139       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9140       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9141     esac
9142   else :
9143     # compilation failed
9144     lt_cv_dlopen_self_static=no
9145   fi
9146 fi
9147 rm -fr conftest*
9148
9149
9150 fi
9151 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9152 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9153     fi
9154
9155     CPPFLAGS="$save_CPPFLAGS"
9156     LDFLAGS="$save_LDFLAGS"
9157     LIBS="$save_LIBS"
9158     ;;
9159   esac
9160
9161   case $lt_cv_dlopen_self in
9162   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9163   *) enable_dlopen_self=unknown ;;
9164   esac
9165
9166   case $lt_cv_dlopen_self_static in
9167   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9168   *) enable_dlopen_self_static=unknown ;;
9169   esac
9170 fi
9171
9172
9173 # Report which librarie types wil actually be built
9174 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9175 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9176 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9177 echo "${ECHO_T}$can_build_shared" >&6
9178
9179 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9180 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9181 test "$can_build_shared" = "no" && enable_shared=no
9182
9183 # On AIX, shared libraries and static libraries use the same namespace, and
9184 # are all built from PIC.
9185 case "$host_os" in
9186 aix3*)
9187   test "$enable_shared" = yes && enable_static=no
9188   if test -n "$RANLIB"; then
9189     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9190     postinstall_cmds='$RANLIB $lib'
9191   fi
9192   ;;
9193
9194 aix4* | aix5*)
9195   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9196     test "$enable_shared" = yes && enable_static=no
9197   fi
9198     ;;
9199 esac
9200 echo "$as_me:$LINENO: result: $enable_shared" >&5
9201 echo "${ECHO_T}$enable_shared" >&6
9202
9203 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9204 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9205 # Make sure either enable_shared or enable_static is yes.
9206 test "$enable_shared" = yes || enable_static=yes
9207 echo "$as_me:$LINENO: result: $enable_static" >&5
9208 echo "${ECHO_T}$enable_static" >&6
9209
9210 # The else clause should only fire when bootstrapping the
9211 # libtool distribution, otherwise you forgot to ship ltmain.sh
9212 # with your package, and you will get complaints that there are
9213 # no rules to generate ltmain.sh.
9214 if test -f "$ltmain"; then
9215   # See if we are running on zsh, and set the options which allow our commands through
9216   # without removal of \ escapes.
9217   if test -n "${ZSH_VERSION+set}" ; then
9218     setopt NO_GLOB_SUBST
9219   fi
9220   # Now quote all the things that may contain metacharacters while being
9221   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9222   # variables and quote the copies for generation of the libtool script.
9223   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9224     SED SHELL STRIP \
9225     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9226     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9227     deplibs_check_method reload_flag reload_cmds need_locks \
9228     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9229     lt_cv_sys_global_symbol_to_c_name_address \
9230     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9231     old_postinstall_cmds old_postuninstall_cmds \
9232     compiler \
9233     CC \
9234     LD \
9235     lt_prog_compiler_wl \
9236     lt_prog_compiler_pic \
9237     lt_prog_compiler_static \
9238     lt_prog_compiler_no_builtin_flag \
9239     export_dynamic_flag_spec \
9240     thread_safe_flag_spec \
9241     whole_archive_flag_spec \
9242     enable_shared_with_static_runtimes \
9243     old_archive_cmds \
9244     old_archive_from_new_cmds \
9245     predep_objects \
9246     postdep_objects \
9247     predeps \
9248     postdeps \
9249     compiler_lib_search_path \
9250     archive_cmds \
9251     archive_expsym_cmds \
9252     postinstall_cmds \
9253     postuninstall_cmds \
9254     old_archive_from_expsyms_cmds \
9255     allow_undefined_flag \
9256     no_undefined_flag \
9257     export_symbols_cmds \
9258     hardcode_libdir_flag_spec \
9259     hardcode_libdir_flag_spec_ld \
9260     hardcode_libdir_separator \
9261     hardcode_automatic \
9262     module_cmds \
9263     module_expsym_cmds \
9264     lt_cv_prog_compiler_c_o \
9265     exclude_expsyms \
9266     include_expsyms; do
9267
9268     case $var in
9269     old_archive_cmds | \
9270     old_archive_from_new_cmds | \
9271     archive_cmds | \
9272     archive_expsym_cmds | \
9273     module_cmds | \
9274     module_expsym_cmds | \
9275     old_archive_from_expsyms_cmds | \
9276     export_symbols_cmds | \
9277     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9278     postinstall_cmds | postuninstall_cmds | \
9279     old_postinstall_cmds | old_postuninstall_cmds | \
9280     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9281       # Double-quote double-evaled strings.
9282       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9283       ;;
9284     *)
9285       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9286       ;;
9287     esac
9288   done
9289
9290   case $lt_echo in
9291   *'\$0 --fallback-echo"')
9292     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9293     ;;
9294   esac
9295
9296 cfgfile="${ofile}T"
9297   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9298   $rm -f "$cfgfile"
9299   { echo "$as_me:$LINENO: creating $ofile" >&5
9300 echo "$as_me: creating $ofile" >&6;}
9301
9302   cat <<__EOF__ >> "$cfgfile"
9303 #! $SHELL
9304
9305 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9306 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9307 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9308 #
9309 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9310 # Free Software Foundation, Inc.
9311 #
9312 # This file is part of GNU Libtool:
9313 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9314 #
9315 # This program is free software; you can redistribute it and/or modify
9316 # it under the terms of the GNU General Public License as published by
9317 # the Free Software Foundation; either version 2 of the License, or
9318 # (at your option) any later version.
9319 #
9320 # This program is distributed in the hope that it will be useful, but
9321 # WITHOUT ANY WARRANTY; without even the implied warranty of
9322 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9323 # General Public License for more details.
9324 #
9325 # You should have received a copy of the GNU General Public License
9326 # along with this program; if not, write to the Free Software
9327 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9328 #
9329 # As a special exception to the GNU General Public License, if you
9330 # distribute this file as part of a program that contains a
9331 # configuration script generated by Autoconf, you may include it under
9332 # the same distribution terms that you use for the rest of that program.
9333
9334 # A sed program that does not truncate output.
9335 SED=$lt_SED
9336
9337 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9338 Xsed="$SED -e 1s/^X//"
9339
9340 # The HP-UX ksh and POSIX shell print the target directory to stdout
9341 # if CDPATH is set.
9342 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9343
9344 # The names of the tagged configurations supported by this script.
9345 available_tags=
9346
9347 # ### BEGIN LIBTOOL CONFIG
9348
9349 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9350
9351 # Shell to use when invoking shell scripts.
9352 SHELL=$lt_SHELL
9353
9354 # Whether or not to build shared libraries.
9355 build_libtool_libs=$enable_shared
9356
9357 # Whether or not to build static libraries.
9358 build_old_libs=$enable_static
9359
9360 # Whether or not to add -lc for building shared libraries.
9361 build_libtool_need_lc=$archive_cmds_need_lc
9362
9363 # Whether or not to disallow shared libs when runtime libs are static
9364 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9365
9366 # Whether or not to optimize for fast installation.
9367 fast_install=$enable_fast_install
9368
9369 # The host system.
9370 host_alias=$host_alias
9371 host=$host
9372 host_os=$host_os
9373
9374 # The build system.
9375 build_alias=$build_alias
9376 build=$build
9377 build_os=$build_os
9378
9379 # An echo program that does not interpret backslashes.
9380 echo=$lt_echo
9381
9382 # The archiver.
9383 AR=$lt_AR
9384 AR_FLAGS=$lt_AR_FLAGS
9385
9386 # A C compiler.
9387 LTCC=$lt_LTCC
9388
9389 # A language-specific compiler.
9390 CC=$lt_compiler
9391
9392 # Is the compiler the GNU C compiler?
9393 with_gcc=$GCC
9394
9395 # An ERE matcher.
9396 EGREP=$lt_EGREP
9397
9398 # The linker used to build libraries.
9399 LD=$lt_LD
9400
9401 # Whether we need hard or soft links.
9402 LN_S=$lt_LN_S
9403
9404 # A BSD-compatible nm program.
9405 NM=$lt_NM
9406
9407 # A symbol stripping program
9408 STRIP=$lt_STRIP
9409
9410 # Used to examine libraries when file_magic_cmd begins "file"
9411 MAGIC_CMD=$MAGIC_CMD
9412
9413 # Used on cygwin: DLL creation program.
9414 DLLTOOL="$DLLTOOL"
9415
9416 # Used on cygwin: object dumper.
9417 OBJDUMP="$OBJDUMP"
9418
9419 # Used on cygwin: assembler.
9420 AS="$AS"
9421
9422 # The name of the directory that contains temporary libtool files.
9423 objdir=$objdir
9424
9425 # How to create reloadable object files.
9426 reload_flag=$lt_reload_flag
9427 reload_cmds=$lt_reload_cmds
9428
9429 # How to pass a linker flag through the compiler.
9430 wl=$lt_lt_prog_compiler_wl
9431
9432 # Object file suffix (normally "o").
9433 objext="$ac_objext"
9434
9435 # Old archive suffix (normally "a").
9436 libext="$libext"
9437
9438 # Shared library suffix (normally ".so").
9439 shrext_cmds='$shrext_cmds'
9440
9441 # Executable file suffix (normally "").
9442 exeext="$exeext"
9443
9444 # Additional compiler flags for building library objects.
9445 pic_flag=$lt_lt_prog_compiler_pic
9446 pic_mode=$pic_mode
9447
9448 # What is the maximum length of a command?
9449 max_cmd_len=$lt_cv_sys_max_cmd_len
9450
9451 # Does compiler simultaneously support -c and -o options?
9452 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9453
9454 # Must we lock files when doing compilation?
9455 need_locks=$lt_need_locks
9456
9457 # Do we need the lib prefix for modules?
9458 need_lib_prefix=$need_lib_prefix
9459
9460 # Do we need a version for libraries?
9461 need_version=$need_version
9462
9463 # Whether dlopen is supported.
9464 dlopen_support=$enable_dlopen
9465
9466 # Whether dlopen of programs is supported.
9467 dlopen_self=$enable_dlopen_self
9468
9469 # Whether dlopen of statically linked programs is supported.
9470 dlopen_self_static=$enable_dlopen_self_static
9471
9472 # Compiler flag to prevent dynamic linking.
9473 link_static_flag=$lt_lt_prog_compiler_static
9474
9475 # Compiler flag to turn off builtin functions.
9476 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9477
9478 # Compiler flag to allow reflexive dlopens.
9479 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9480
9481 # Compiler flag to generate shared objects directly from archives.
9482 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9483
9484 # Compiler flag to generate thread-safe objects.
9485 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9486
9487 # Library versioning type.
9488 version_type=$version_type
9489
9490 # Format of library name prefix.
9491 libname_spec=$lt_libname_spec
9492
9493 # List of archive names.  First name is the real one, the rest are links.
9494 # The last name is the one that the linker finds with -lNAME.
9495 library_names_spec=$lt_library_names_spec
9496
9497 # The coded name of the library, if different from the real name.
9498 soname_spec=$lt_soname_spec
9499
9500 # Commands used to build and install an old-style archive.
9501 RANLIB=$lt_RANLIB
9502 old_archive_cmds=$lt_old_archive_cmds
9503 old_postinstall_cmds=$lt_old_postinstall_cmds
9504 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9505
9506 # Create an old-style archive from a shared archive.
9507 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9508
9509 # Create a temporary old-style archive to link instead of a shared archive.
9510 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9511
9512 # Commands used to build and install a shared archive.
9513 archive_cmds=$lt_archive_cmds
9514 archive_expsym_cmds=$lt_archive_expsym_cmds
9515 postinstall_cmds=$lt_postinstall_cmds
9516 postuninstall_cmds=$lt_postuninstall_cmds
9517
9518 # Commands used to build a loadable module (assumed same as above if empty)
9519 module_cmds=$lt_module_cmds
9520 module_expsym_cmds=$lt_module_expsym_cmds
9521
9522 # Commands to strip libraries.
9523 old_striplib=$lt_old_striplib
9524 striplib=$lt_striplib
9525
9526 # Dependencies to place before the objects being linked to create a
9527 # shared library.
9528 predep_objects=$lt_predep_objects
9529
9530 # Dependencies to place after the objects being linked to create a
9531 # shared library.
9532 postdep_objects=$lt_postdep_objects
9533
9534 # Dependencies to place before the objects being linked to create a
9535 # shared library.
9536 predeps=$lt_predeps
9537
9538 # Dependencies to place after the objects being linked to create a
9539 # shared library.
9540 postdeps=$lt_postdeps
9541
9542 # The library search path used internally by the compiler when linking
9543 # a shared library.
9544 compiler_lib_search_path=$lt_compiler_lib_search_path
9545
9546 # Method to check whether dependent libraries are shared objects.
9547 deplibs_check_method=$lt_deplibs_check_method
9548
9549 # Command to use when deplibs_check_method == file_magic.
9550 file_magic_cmd=$lt_file_magic_cmd
9551
9552 # Flag that allows shared libraries with undefined symbols to be built.
9553 allow_undefined_flag=$lt_allow_undefined_flag
9554
9555 # Flag that forces no undefined symbols.
9556 no_undefined_flag=$lt_no_undefined_flag
9557
9558 # Commands used to finish a libtool library installation in a directory.
9559 finish_cmds=$lt_finish_cmds
9560
9561 # Same as above, but a single script fragment to be evaled but not shown.
9562 finish_eval=$lt_finish_eval
9563
9564 # Take the output of nm and produce a listing of raw symbols and C names.
9565 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9566
9567 # Transform the output of nm in a proper C declaration
9568 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9569
9570 # Transform the output of nm in a C name address pair
9571 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9572
9573 # This is the shared library runtime path variable.
9574 runpath_var=$runpath_var
9575
9576 # This is the shared library path variable.
9577 shlibpath_var=$shlibpath_var
9578
9579 # Is shlibpath searched before the hard-coded library search path?
9580 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9581
9582 # How to hardcode a shared library path into an executable.
9583 hardcode_action=$hardcode_action
9584
9585 # Whether we should hardcode library paths into libraries.
9586 hardcode_into_libs=$hardcode_into_libs
9587
9588 # Flag to hardcode \$libdir into a binary during linking.
9589 # This must work even if \$libdir does not exist.
9590 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9591
9592 # If ld is used when linking, flag to hardcode \$libdir into
9593 # a binary during linking. This must work even if \$libdir does
9594 # not exist.
9595 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9596
9597 # Whether we need a single -rpath flag with a separated argument.
9598 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9599
9600 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9601 # resulting binary.
9602 hardcode_direct=$hardcode_direct
9603
9604 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9605 # resulting binary.
9606 hardcode_minus_L=$hardcode_minus_L
9607
9608 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9609 # the resulting binary.
9610 hardcode_shlibpath_var=$hardcode_shlibpath_var
9611
9612 # Set to yes if building a shared library automatically hardcodes DIR into the library
9613 # and all subsequent libraries and executables linked against it.
9614 hardcode_automatic=$hardcode_automatic
9615
9616 # Variables whose values should be saved in libtool wrapper scripts and
9617 # restored at relink time.
9618 variables_saved_for_relink="$variables_saved_for_relink"
9619
9620 # Whether libtool must link a program against all its dependency libraries.
9621 link_all_deplibs=$link_all_deplibs
9622
9623 # Compile-time system search path for libraries
9624 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9625
9626 # Run-time system search path for libraries
9627 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9628
9629 # Fix the shell variable \$srcfile for the compiler.
9630 fix_srcfile_path="$fix_srcfile_path"
9631
9632 # Set to yes if exported symbols are required.
9633 always_export_symbols=$always_export_symbols
9634
9635 # The commands to list exported symbols.
9636 export_symbols_cmds=$lt_export_symbols_cmds
9637
9638 # The commands to extract the exported symbol list from a shared archive.
9639 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9640
9641 # Symbols that should not be listed in the preloaded symbols.
9642 exclude_expsyms=$lt_exclude_expsyms
9643
9644 # Symbols that must always be exported.
9645 include_expsyms=$lt_include_expsyms
9646
9647 # ### END LIBTOOL CONFIG
9648
9649 __EOF__
9650
9651
9652   case $host_os in
9653   aix3*)
9654     cat <<\EOF >> "$cfgfile"
9655
9656 # AIX sometimes has problems with the GCC collect2 program.  For some
9657 # reason, if we set the COLLECT_NAMES environment variable, the problems
9658 # vanish in a puff of smoke.
9659 if test "X${COLLECT_NAMES+set}" != Xset; then
9660   COLLECT_NAMES=
9661   export COLLECT_NAMES
9662 fi
9663 EOF
9664     ;;
9665   esac
9666
9667   # We use sed instead of cat because bash on DJGPP gets confused if
9668   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9669   # text mode, it properly converts lines to CR/LF.  This bash problem
9670   # is reportedly fixed, but why not run on old versions too?
9671   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9672
9673   mv -f "$cfgfile" "$ofile" || \
9674     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9675   chmod +x "$ofile"
9676
9677 else
9678   # If there is no Makefile yet, we rely on a make rule to execute
9679   # `config.status --recheck' to rerun these tests and create the
9680   # libtool script then.
9681   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9682   if test -f "$ltmain_in"; then
9683     test -f Makefile && make "$ltmain"
9684   fi
9685 fi
9686
9687
9688 ac_ext=c
9689 ac_cpp='$CPP $CPPFLAGS'
9690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9693
9694 CC="$lt_save_CC"
9695
9696
9697 # Check whether --with-tags or --without-tags was given.
9698 if test "${with_tags+set}" = set; then
9699   withval="$with_tags"
9700   tagnames="$withval"
9701 fi;
9702
9703 if test -f "$ltmain" && test -n "$tagnames"; then
9704   if test ! -f "${ofile}"; then
9705     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9706 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9707   fi
9708
9709   if test -z "$LTCC"; then
9710     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9711     if test -z "$LTCC"; then
9712       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9713 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9714     else
9715       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9716 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9717     fi
9718   fi
9719
9720   # Extract list of available tagged configurations in $ofile.
9721   # Note that this assumes the entire list is on one line.
9722   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9723
9724   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9725   for tagname in $tagnames; do
9726     IFS="$lt_save_ifs"
9727     # Check whether tagname contains only valid characters
9728     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9729     "") ;;
9730     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9731 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9732    { (exit 1); exit 1; }; }
9733         ;;
9734     esac
9735
9736     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9737     then
9738       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9739 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9740    { (exit 1); exit 1; }; }
9741     fi
9742
9743     # Update the list of available tags.
9744     if test -n "$tagname"; then
9745       echo appending configuration tag \"$tagname\" to $ofile
9746
9747       case $tagname in
9748       CXX)
9749         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9750             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9751             (test "X$CXX" != "Xg++"))) ; then
9752           ac_ext=cc
9753 ac_cpp='$CXXCPP $CPPFLAGS'
9754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9757
9758
9759
9760
9761 archive_cmds_need_lc_CXX=no
9762 allow_undefined_flag_CXX=
9763 always_export_symbols_CXX=no
9764 archive_expsym_cmds_CXX=
9765 export_dynamic_flag_spec_CXX=
9766 hardcode_direct_CXX=no
9767 hardcode_libdir_flag_spec_CXX=
9768 hardcode_libdir_flag_spec_ld_CXX=
9769 hardcode_libdir_separator_CXX=
9770 hardcode_minus_L_CXX=no
9771 hardcode_automatic_CXX=no
9772 module_cmds_CXX=
9773 module_expsym_cmds_CXX=
9774 link_all_deplibs_CXX=unknown
9775 old_archive_cmds_CXX=$old_archive_cmds
9776 no_undefined_flag_CXX=
9777 whole_archive_flag_spec_CXX=
9778 enable_shared_with_static_runtimes_CXX=no
9779
9780 # Dependencies to place before and after the object being linked:
9781 predep_objects_CXX=
9782 postdep_objects_CXX=
9783 predeps_CXX=
9784 postdeps_CXX=
9785 compiler_lib_search_path_CXX=
9786
9787 # Source file extension for C++ test sources.
9788 ac_ext=cc
9789
9790 # Object file extension for compiled C++ test sources.
9791 objext=o
9792 objext_CXX=$objext
9793
9794 # Code to be used in simple compile tests
9795 lt_simple_compile_test_code="int some_variable = 0;\n"
9796
9797 # Code to be used in simple link tests
9798 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9799
9800 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9801
9802 # If no C compiler was specified, use CC.
9803 LTCC=${LTCC-"$CC"}
9804
9805 # Allow CC to be a program name with arguments.
9806 compiler=$CC
9807
9808
9809 # save warnings/boilerplate of simple test code
9810 ac_outfile=conftest.$ac_objext
9811 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9812 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9813 _lt_compiler_boilerplate=`cat conftest.err`
9814 $rm conftest*
9815
9816 ac_outfile=conftest.$ac_objext
9817 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9818 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9819 _lt_linker_boilerplate=`cat conftest.err`
9820 $rm conftest*
9821
9822
9823 # Allow CC to be a program name with arguments.
9824 lt_save_CC=$CC
9825 lt_save_LD=$LD
9826 lt_save_GCC=$GCC
9827 GCC=$GXX
9828 lt_save_with_gnu_ld=$with_gnu_ld
9829 lt_save_path_LD=$lt_cv_path_LD
9830 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9831   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9832 else
9833   unset lt_cv_prog_gnu_ld
9834 fi
9835 if test -n "${lt_cv_path_LDCXX+set}"; then
9836   lt_cv_path_LD=$lt_cv_path_LDCXX
9837 else
9838   unset lt_cv_path_LD
9839 fi
9840 test -z "${LDCXX+set}" || LD=$LDCXX
9841 CC=${CXX-"c++"}
9842 compiler=$CC
9843 compiler_CXX=$CC
9844 for cc_temp in $compiler""; do
9845   case $cc_temp in
9846     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9847     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9848     \-*) ;;
9849     *) break;;
9850   esac
9851 done
9852 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9853
9854
9855 # We don't want -fno-exception wen compiling C++ code, so set the
9856 # no_builtin_flag separately
9857 if test "$GXX" = yes; then
9858   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9859 else
9860   lt_prog_compiler_no_builtin_flag_CXX=
9861 fi
9862
9863 if test "$GXX" = yes; then
9864   # Set up default GNU C++ configuration
9865
9866
9867 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9868 if test "${with_gnu_ld+set}" = set; then
9869   withval="$with_gnu_ld"
9870   test "$withval" = no || with_gnu_ld=yes
9871 else
9872   with_gnu_ld=no
9873 fi;
9874 ac_prog=ld
9875 if test "$GCC" = yes; then
9876   # Check if gcc -print-prog-name=ld gives a path.
9877   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9878 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9879   case $host in
9880   *-*-mingw*)
9881     # gcc leaves a trailing carriage return which upsets mingw
9882     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9883   *)
9884     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9885   esac
9886   case $ac_prog in
9887     # Accept absolute paths.
9888     [\\/]* | ?:[\\/]*)
9889       re_direlt='/[^/][^/]*/\.\./'
9890       # Canonicalize the pathname of ld
9891       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9892       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9893         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9894       done
9895       test -z "$LD" && LD="$ac_prog"
9896       ;;
9897   "")
9898     # If it fails, then pretend we aren't using GCC.
9899     ac_prog=ld
9900     ;;
9901   *)
9902     # If it is relative, then search for the first ld in PATH.
9903     with_gnu_ld=unknown
9904     ;;
9905   esac
9906 elif test "$with_gnu_ld" = yes; then
9907   echo "$as_me:$LINENO: checking for GNU ld" >&5
9908 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9909 else
9910   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9911 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9912 fi
9913 if test "${lt_cv_path_LD+set}" = set; then
9914   echo $ECHO_N "(cached) $ECHO_C" >&6
9915 else
9916   if test -z "$LD"; then
9917   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9918   for ac_dir in $PATH; do
9919     IFS="$lt_save_ifs"
9920     test -z "$ac_dir" && ac_dir=.
9921     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9922       lt_cv_path_LD="$ac_dir/$ac_prog"
9923       # Check to see if the program is GNU ld.  I'd rather use --version,
9924       # but apparently some GNU ld's only accept -v.
9925       # Break only if it was the GNU/non-GNU ld that we prefer.
9926       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9927       *GNU* | *'with BFD'*)
9928         test "$with_gnu_ld" != no && break
9929         ;;
9930       *)
9931         test "$with_gnu_ld" != yes && break
9932         ;;
9933       esac
9934     fi
9935   done
9936   IFS="$lt_save_ifs"
9937 else
9938   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9939 fi
9940 fi
9941
9942 LD="$lt_cv_path_LD"
9943 if test -n "$LD"; then
9944   echo "$as_me:$LINENO: result: $LD" >&5
9945 echo "${ECHO_T}$LD" >&6
9946 else
9947   echo "$as_me:$LINENO: result: no" >&5
9948 echo "${ECHO_T}no" >&6
9949 fi
9950 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9951 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9952    { (exit 1); exit 1; }; }
9953 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9954 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9955 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9956   echo $ECHO_N "(cached) $ECHO_C" >&6
9957 else
9958   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9959 case `$LD -v 2>&1 </dev/null` in
9960 *GNU* | *'with BFD'*)
9961   lt_cv_prog_gnu_ld=yes
9962   ;;
9963 *)
9964   lt_cv_prog_gnu_ld=no
9965   ;;
9966 esac
9967 fi
9968 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9969 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9970 with_gnu_ld=$lt_cv_prog_gnu_ld
9971
9972
9973
9974   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9975   # archiving commands below assume that GNU ld is being used.
9976   if test "$with_gnu_ld" = yes; then
9977     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9978     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'
9979
9980     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9981     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9982
9983     # If archive_cmds runs LD, not CC, wlarc should be empty
9984     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9985     #     investigate it a little bit more. (MM)
9986     wlarc='${wl}'
9987
9988     # ancient GNU ld didn't support --whole-archive et. al.
9989     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9990         grep 'no-whole-archive' > /dev/null; then
9991       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9992     else
9993       whole_archive_flag_spec_CXX=
9994     fi
9995   else
9996     with_gnu_ld=no
9997     wlarc=
9998
9999     # A generic and very simple default shared library creation
10000     # command for GNU C++ for the case where it uses the native
10001     # linker, instead of GNU ld.  If possible, this setting should
10002     # overridden to take advantage of the native linker features on
10003     # the platform it is being used on.
10004     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10005   fi
10006
10007   # Commands to make compiler produce verbose output that lists
10008   # what "hidden" libraries, object files and flags are used when
10009   # linking a shared library.
10010   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10011
10012 else
10013   GXX=no
10014   with_gnu_ld=no
10015   wlarc=
10016 fi
10017
10018 # PORTME: fill in a description of your system's C++ link characteristics
10019 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10020 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10021 ld_shlibs_CXX=yes
10022 case $host_os in
10023   aix3*)
10024     # FIXME: insert proper C++ library support
10025     ld_shlibs_CXX=no
10026     ;;
10027   aix4* | aix5*)
10028     if test "$host_cpu" = ia64; then
10029       # On IA64, the linker does run time linking by default, so we don't
10030       # have to do anything special.
10031       aix_use_runtimelinking=no
10032       exp_sym_flag='-Bexport'
10033       no_entry_flag=""
10034     else
10035       aix_use_runtimelinking=no
10036
10037       # Test if we are trying to use run time linking or normal
10038       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10039       # need to do runtime linking.
10040       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10041         for ld_flag in $LDFLAGS; do
10042           case $ld_flag in
10043           *-brtl*)
10044             aix_use_runtimelinking=yes
10045             break
10046             ;;
10047           esac
10048         done
10049       esac
10050
10051       exp_sym_flag='-bexport'
10052       no_entry_flag='-bnoentry'
10053     fi
10054
10055     # When large executables or shared objects are built, AIX ld can
10056     # have problems creating the table of contents.  If linking a library
10057     # or program results in "error TOC overflow" add -mminimal-toc to
10058     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10059     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10060
10061     archive_cmds_CXX=''
10062     hardcode_direct_CXX=yes
10063     hardcode_libdir_separator_CXX=':'
10064     link_all_deplibs_CXX=yes
10065
10066     if test "$GXX" = yes; then
10067       case $host_os in aix4.[012]|aix4.[012].*)
10068       # We only want to do this on AIX 4.2 and lower, the check
10069       # below for broken collect2 doesn't work under 4.3+
10070         collect2name=`${CC} -print-prog-name=collect2`
10071         if test -f "$collect2name" && \
10072            strings "$collect2name" | grep resolve_lib_name >/dev/null
10073         then
10074           # We have reworked collect2
10075           hardcode_direct_CXX=yes
10076         else
10077           # We have old collect2
10078           hardcode_direct_CXX=unsupported
10079           # It fails to find uninstalled libraries when the uninstalled
10080           # path is not listed in the libpath.  Setting hardcode_minus_L
10081           # to unsupported forces relinking
10082           hardcode_minus_L_CXX=yes
10083           hardcode_libdir_flag_spec_CXX='-L$libdir'
10084           hardcode_libdir_separator_CXX=
10085         fi
10086       esac
10087       shared_flag='-shared'
10088       if test "$aix_use_runtimelinking" = yes; then
10089         shared_flag="$shared_flag "'${wl}-G'
10090       fi
10091     else
10092       # not using gcc
10093       if test "$host_cpu" = ia64; then
10094         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10095         # chokes on -Wl,-G. The following line is correct:
10096         shared_flag='-G'
10097       else
10098         if test "$aix_use_runtimelinking" = yes; then
10099           shared_flag='${wl}-G'
10100         else
10101           shared_flag='${wl}-bM:SRE'
10102         fi
10103       fi
10104     fi
10105
10106     # It seems that -bexpall does not export symbols beginning with
10107     # underscore (_), so it is better to generate a list of symbols to export.
10108     always_export_symbols_CXX=yes
10109     if test "$aix_use_runtimelinking" = yes; then
10110       # Warning - without using the other runtime loading flags (-brtl),
10111       # -berok will link without error, but may produce a broken library.
10112       allow_undefined_flag_CXX='-berok'
10113       # Determine the default libpath from the value encoded in an empty executable.
10114       cat >conftest.$ac_ext <<_ACEOF
10115 /* confdefs.h.  */
10116 _ACEOF
10117 cat confdefs.h >>conftest.$ac_ext
10118 cat >>conftest.$ac_ext <<_ACEOF
10119 /* end confdefs.h.  */
10120
10121 int
10122 main ()
10123 {
10124
10125   ;
10126   return 0;
10127 }
10128 _ACEOF
10129 rm -f conftest.$ac_objext conftest$ac_exeext
10130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10131   (eval $ac_link) 2>conftest.er1
10132   ac_status=$?
10133   grep -v '^ *+' conftest.er1 >conftest.err
10134   rm -f conftest.er1
10135   cat conftest.err >&5
10136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137   (exit $ac_status); } &&
10138          { ac_try='test -z "$ac_cxx_werror_flag"
10139                          || test ! -s conftest.err'
10140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10141   (eval $ac_try) 2>&5
10142   ac_status=$?
10143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144   (exit $ac_status); }; } &&
10145          { ac_try='test -s conftest$ac_exeext'
10146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147   (eval $ac_try) 2>&5
10148   ac_status=$?
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); }; }; then
10151
10152 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10153 }'`
10154 # Check for a 64-bit object if we didn't find anything.
10155 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; }
10156 }'`; fi
10157 else
10158   echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10160
10161 fi
10162 rm -f conftest.err conftest.$ac_objext \
10163       conftest$ac_exeext conftest.$ac_ext
10164 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10165
10166       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10167
10168       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"
10169      else
10170       if test "$host_cpu" = ia64; then
10171         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10172         allow_undefined_flag_CXX="-z nodefs"
10173         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"
10174       else
10175         # Determine the default libpath from the value encoded in an empty executable.
10176         cat >conftest.$ac_ext <<_ACEOF
10177 /* confdefs.h.  */
10178 _ACEOF
10179 cat confdefs.h >>conftest.$ac_ext
10180 cat >>conftest.$ac_ext <<_ACEOF
10181 /* end confdefs.h.  */
10182
10183 int
10184 main ()
10185 {
10186
10187   ;
10188   return 0;
10189 }
10190 _ACEOF
10191 rm -f conftest.$ac_objext conftest$ac_exeext
10192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10193   (eval $ac_link) 2>conftest.er1
10194   ac_status=$?
10195   grep -v '^ *+' conftest.er1 >conftest.err
10196   rm -f conftest.er1
10197   cat conftest.err >&5
10198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199   (exit $ac_status); } &&
10200          { ac_try='test -z "$ac_cxx_werror_flag"
10201                          || test ! -s conftest.err'
10202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203   (eval $ac_try) 2>&5
10204   ac_status=$?
10205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206   (exit $ac_status); }; } &&
10207          { ac_try='test -s conftest$ac_exeext'
10208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209   (eval $ac_try) 2>&5
10210   ac_status=$?
10211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); }; }; then
10213
10214 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10215 }'`
10216 # Check for a 64-bit object if we didn't find anything.
10217 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; }
10218 }'`; fi
10219 else
10220   echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10222
10223 fi
10224 rm -f conftest.err conftest.$ac_objext \
10225       conftest$ac_exeext conftest.$ac_ext
10226 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10227
10228         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10229         # Warning - without using the other run time loading flags,
10230         # -berok will link without error, but may produce a broken library.
10231         no_undefined_flag_CXX=' ${wl}-bernotok'
10232         allow_undefined_flag_CXX=' ${wl}-berok'
10233         # -bexpall does not export symbols beginning with underscore (_)
10234         always_export_symbols_CXX=yes
10235         # Exported symbols can be pulled into shared objects from archives
10236         whole_archive_flag_spec_CXX=' '
10237         archive_cmds_need_lc_CXX=yes
10238         # This is similar to how AIX traditionally builds it's shared libraries.
10239         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'
10240       fi
10241     fi
10242     ;;
10243   chorus*)
10244     case $cc_basename in
10245       *)
10246         # FIXME: insert proper C++ library support
10247         ld_shlibs_CXX=no
10248         ;;
10249     esac
10250     ;;
10251
10252
10253   cygwin* | mingw* | pw32*)
10254     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10255     # as there is no search path for DLLs.
10256     hardcode_libdir_flag_spec_CXX='-L$libdir'
10257     allow_undefined_flag_CXX=unsupported
10258     always_export_symbols_CXX=no
10259     enable_shared_with_static_runtimes_CXX=yes
10260
10261     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10262       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'
10263       # If the export-symbols file already is a .def file (1st line
10264       # is EXPORTS), use it as is; otherwise, prepend...
10265       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10266         cp $export_symbols $output_objdir/$soname.def;
10267       else
10268         echo EXPORTS > $output_objdir/$soname.def;
10269         cat $export_symbols >> $output_objdir/$soname.def;
10270       fi~
10271       $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'
10272     else
10273       ld_shlibs_CXX=no
10274     fi
10275   ;;
10276       darwin* | rhapsody*)
10277         case "$host_os" in
10278         rhapsody* | darwin1.[012])
10279          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10280          ;;
10281        *) # Darwin 1.3 on
10282          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10283            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10284          else
10285            case ${MACOSX_DEPLOYMENT_TARGET} in
10286              10.[012])
10287                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10288                ;;
10289              10.*)
10290                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10291                ;;
10292            esac
10293          fi
10294          ;;
10295         esac
10296       archive_cmds_need_lc_CXX=no
10297       hardcode_direct_CXX=no
10298       hardcode_automatic_CXX=yes
10299       hardcode_shlibpath_var_CXX=unsupported
10300       whole_archive_flag_spec_CXX=''
10301       link_all_deplibs_CXX=yes
10302
10303     if test "$GXX" = yes ; then
10304       lt_int_apple_cc_single_mod=no
10305       output_verbose_link_cmd='echo'
10306       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10307        lt_int_apple_cc_single_mod=yes
10308       fi
10309       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10310        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10311       else
10312           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'
10313         fi
10314         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10315         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10316           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10317             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}'
10318           else
10319             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}'
10320           fi
10321             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}'
10322       else
10323       case $cc_basename in
10324         xlc*)
10325          output_verbose_link_cmd='echo'
10326           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'
10327           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10328           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10329           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}'
10330           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}'
10331           ;;
10332        *)
10333          ld_shlibs_CXX=no
10334           ;;
10335       esac
10336       fi
10337         ;;
10338
10339   dgux*)
10340     case $cc_basename in
10341       ec++*)
10342         # FIXME: insert proper C++ library support
10343         ld_shlibs_CXX=no
10344         ;;
10345       ghcx*)
10346         # Green Hills C++ Compiler
10347         # FIXME: insert proper C++ library support
10348         ld_shlibs_CXX=no
10349         ;;
10350       *)
10351         # FIXME: insert proper C++ library support
10352         ld_shlibs_CXX=no
10353         ;;
10354     esac
10355     ;;
10356   freebsd[12]*)
10357     # C++ shared libraries reported to be fairly broken before switch to ELF
10358     ld_shlibs_CXX=no
10359     ;;
10360   freebsd-elf*)
10361     archive_cmds_need_lc_CXX=no
10362     ;;
10363   freebsd* | kfreebsd*-gnu | dragonfly*)
10364     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10365     # conventions
10366     ld_shlibs_CXX=yes
10367     ;;
10368   gnu*)
10369     ;;
10370   hpux9*)
10371     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10372     hardcode_libdir_separator_CXX=:
10373     export_dynamic_flag_spec_CXX='${wl}-E'
10374     hardcode_direct_CXX=yes
10375     hardcode_minus_L_CXX=yes # Not in the search PATH,
10376                                 # but as the default
10377                                 # location of the library.
10378
10379     case $cc_basename in
10380     CC*)
10381       # FIXME: insert proper C++ library support
10382       ld_shlibs_CXX=no
10383       ;;
10384     aCC*)
10385       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'
10386       # Commands to make compiler produce verbose output that lists
10387       # what "hidden" libraries, object files and flags are used when
10388       # linking a shared library.
10389       #
10390       # There doesn't appear to be a way to prevent this compiler from
10391       # explicitly linking system object files so we need to strip them
10392       # from the output so that they don't get included in the library
10393       # dependencies.
10394       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'
10395       ;;
10396     *)
10397       if test "$GXX" = yes; then
10398         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'
10399       else
10400         # FIXME: insert proper C++ library support
10401         ld_shlibs_CXX=no
10402       fi
10403       ;;
10404     esac
10405     ;;
10406   hpux10*|hpux11*)
10407     if test $with_gnu_ld = no; then
10408       case "$host_cpu" in
10409       hppa*64*)
10410         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10411         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10412         hardcode_libdir_separator_CXX=:
10413         ;;
10414       ia64*)
10415         hardcode_libdir_flag_spec_CXX='-L$libdir'
10416         ;;
10417       *)
10418         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10419         hardcode_libdir_separator_CXX=:
10420         export_dynamic_flag_spec_CXX='${wl}-E'
10421         ;;
10422       esac
10423     fi
10424     case "$host_cpu" in
10425     hppa*64*)
10426       hardcode_direct_CXX=no
10427       hardcode_shlibpath_var_CXX=no
10428       ;;
10429     ia64*)
10430       hardcode_direct_CXX=no
10431       hardcode_shlibpath_var_CXX=no
10432       hardcode_minus_L_CXX=yes # Not in the search PATH,
10433                                               # but as the default
10434                                               # location of the library.
10435       ;;
10436     *)
10437       hardcode_direct_CXX=yes
10438       hardcode_minus_L_CXX=yes # Not in the search PATH,
10439                                               # but as the default
10440                                               # location of the library.
10441       ;;
10442     esac
10443
10444     case $cc_basename in
10445       CC*)
10446         # FIXME: insert proper C++ library support
10447         ld_shlibs_CXX=no
10448         ;;
10449       aCC*)
10450         case "$host_cpu" in
10451         hppa*64*|ia64*)
10452           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10453           ;;
10454         *)
10455           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10456           ;;
10457         esac
10458         # Commands to make compiler produce verbose output that lists
10459         # what "hidden" libraries, object files and flags are used when
10460         # linking a shared library.
10461         #
10462         # There doesn't appear to be a way to prevent this compiler from
10463         # explicitly linking system object files so we need to strip them
10464         # from the output so that they don't get included in the library
10465         # dependencies.
10466         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'
10467         ;;
10468       *)
10469         if test "$GXX" = yes; then
10470           if test $with_gnu_ld = no; then
10471             case "$host_cpu" in
10472             ia64*|hppa*64*)
10473               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10474               ;;
10475             *)
10476               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'
10477               ;;
10478             esac
10479           fi
10480         else
10481           # FIXME: insert proper C++ library support
10482           ld_shlibs_CXX=no
10483         fi
10484         ;;
10485     esac
10486     ;;
10487   irix5* | irix6*)
10488     case $cc_basename in
10489       CC*)
10490         # SGI C++
10491         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 ${output_objdir}/so_locations -o $lib'
10492
10493         # Archives containing C++ object files must be created using
10494         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10495         # necessary to make sure instantiated templates are included
10496         # in the archive.
10497         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10498         ;;
10499       *)
10500         if test "$GXX" = yes; then
10501           if test "$with_gnu_ld" = no; then
10502             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}${output_objdir}/so_locations -o $lib'
10503           else
10504             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'
10505           fi
10506         fi
10507         link_all_deplibs_CXX=yes
10508         ;;
10509     esac
10510     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10511     hardcode_libdir_separator_CXX=:
10512     ;;
10513   linux*)
10514     case $cc_basename in
10515       KCC*)
10516         # Kuck and Associates, Inc. (KAI) C++ Compiler
10517
10518         # KCC will only create a shared library if the output file
10519         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10520         # to its proper name (with version) after linking.
10521         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'
10522         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'
10523         # Commands to make compiler produce verbose output that lists
10524         # what "hidden" libraries, object files and flags are used when
10525         # linking a shared library.
10526         #
10527         # There doesn't appear to be a way to prevent this compiler from
10528         # explicitly linking system object files so we need to strip them
10529         # from the output so that they don't get included in the library
10530         # dependencies.
10531         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'
10532
10533         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10534         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10535
10536         # Archives containing C++ object files must be created using
10537         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10538         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10539         ;;
10540       icpc*)
10541         # Intel C++
10542         with_gnu_ld=yes
10543         # version 8.0 and above of icpc choke on multiply defined symbols
10544         # if we add $predep_objects and $postdep_objects, however 7.1 and
10545         # earlier do not add the objects themselves.
10546         case `$CC -V 2>&1` in
10547         *"Version 7."*)
10548           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10549           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'
10550           ;;
10551         *)  # Version 8.0 or newer
10552           tmp_idyn=
10553           case $host_cpu in
10554             ia64*) tmp_idyn=' -i_dynamic';;
10555           esac
10556           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10557           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'
10558           ;;
10559         esac
10560         archive_cmds_need_lc_CXX=no
10561         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10562         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10563         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10564         ;;
10565       pgCC*)
10566         # Portland Group C++ compiler
10567         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10568         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10569
10570         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10571         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10572         whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10573         ;;
10574       cxx*)
10575         # Compaq C++
10576         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10577         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'
10578
10579         runpath_var=LD_RUN_PATH
10580         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10581         hardcode_libdir_separator_CXX=:
10582
10583         # Commands to make compiler produce verbose output that lists
10584         # what "hidden" libraries, object files and flags are used when
10585         # linking a shared library.
10586         #
10587         # There doesn't appear to be a way to prevent this compiler from
10588         # explicitly linking system object files so we need to strip them
10589         # from the output so that they don't get included in the library
10590         # dependencies.
10591         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'
10592         ;;
10593     esac
10594     ;;
10595   lynxos*)
10596     # FIXME: insert proper C++ library support
10597     ld_shlibs_CXX=no
10598     ;;
10599   m88k*)
10600     # FIXME: insert proper C++ library support
10601     ld_shlibs_CXX=no
10602     ;;
10603   mvs*)
10604     case $cc_basename in
10605       cxx*)
10606         # FIXME: insert proper C++ library support
10607         ld_shlibs_CXX=no
10608         ;;
10609       *)
10610         # FIXME: insert proper C++ library support
10611         ld_shlibs_CXX=no
10612         ;;
10613     esac
10614     ;;
10615   netbsd*)
10616     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10617       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10618       wlarc=
10619       hardcode_libdir_flag_spec_CXX='-R$libdir'
10620       hardcode_direct_CXX=yes
10621       hardcode_shlibpath_var_CXX=no
10622     fi
10623     # Workaround some broken pre-1.5 toolchains
10624     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10625     ;;
10626   openbsd2*)
10627     # C++ shared libraries are fairly broken
10628     ld_shlibs_CXX=no
10629     ;;
10630   openbsd*)
10631     hardcode_direct_CXX=yes
10632     hardcode_shlibpath_var_CXX=no
10633     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10634     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10635     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10636       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10637       export_dynamic_flag_spec_CXX='${wl}-E'
10638       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10639     fi
10640     output_verbose_link_cmd='echo'
10641     ;;
10642   osf3*)
10643     case $cc_basename in
10644       KCC*)
10645         # Kuck and Associates, Inc. (KAI) C++ Compiler
10646
10647         # KCC will only create a shared library if the output file
10648         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10649         # to its proper name (with version) after linking.
10650         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'
10651
10652         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10653         hardcode_libdir_separator_CXX=:
10654
10655         # Archives containing C++ object files must be created using
10656         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10657         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10658
10659         ;;
10660       RCC*)
10661         # Rational C++ 2.4.1
10662         # FIXME: insert proper C++ library support
10663         ld_shlibs_CXX=no
10664         ;;
10665       cxx*)
10666         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10667         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 ${output_objdir}/so_locations -o $lib'
10668
10669         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10670         hardcode_libdir_separator_CXX=:
10671
10672         # Commands to make compiler produce verbose output that lists
10673         # what "hidden" libraries, object files and flags are used when
10674         # linking a shared library.
10675         #
10676         # There doesn't appear to be a way to prevent this compiler from
10677         # explicitly linking system object files so we need to strip them
10678         # from the output so that they don't get included in the library
10679         # dependencies.
10680         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'
10681         ;;
10682       *)
10683         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10684           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10685           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}${output_objdir}/so_locations -o $lib'
10686
10687           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10688           hardcode_libdir_separator_CXX=:
10689
10690           # Commands to make compiler produce verbose output that lists
10691           # what "hidden" libraries, object files and flags are used when
10692           # linking a shared library.
10693           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10694
10695         else
10696           # FIXME: insert proper C++ library support
10697           ld_shlibs_CXX=no
10698         fi
10699         ;;
10700     esac
10701     ;;
10702   osf4* | osf5*)
10703     case $cc_basename in
10704       KCC*)
10705         # Kuck and Associates, Inc. (KAI) C++ Compiler
10706
10707         # KCC will only create a shared library if the output file
10708         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10709         # to its proper name (with version) after linking.
10710         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'
10711
10712         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10713         hardcode_libdir_separator_CXX=:
10714
10715         # Archives containing C++ object files must be created using
10716         # the KAI C++ compiler.
10717         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10718         ;;
10719       RCC*)
10720         # Rational C++ 2.4.1
10721         # FIXME: insert proper C++ library support
10722         ld_shlibs_CXX=no
10723         ;;
10724       cxx*)
10725         allow_undefined_flag_CXX=' -expect_unresolved \*'
10726         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 ${output_objdir}/so_locations -o $lib'
10727         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10728           echo "-hidden">> $lib.exp~
10729           $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 ${output_objdir}/so_locations -o $lib~
10730           $rm $lib.exp'
10731
10732         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10733         hardcode_libdir_separator_CXX=:
10734
10735         # Commands to make compiler produce verbose output that lists
10736         # what "hidden" libraries, object files and flags are used when
10737         # linking a shared library.
10738         #
10739         # There doesn't appear to be a way to prevent this compiler from
10740         # explicitly linking system object files so we need to strip them
10741         # from the output so that they don't get included in the library
10742         # dependencies.
10743         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'
10744         ;;
10745       *)
10746         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10747           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10748          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}${output_objdir}/so_locations -o $lib'
10749
10750           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10751           hardcode_libdir_separator_CXX=:
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
10758         else
10759           # FIXME: insert proper C++ library support
10760           ld_shlibs_CXX=no
10761         fi
10762         ;;
10763     esac
10764     ;;
10765   psos*)
10766     # FIXME: insert proper C++ library support
10767     ld_shlibs_CXX=no
10768     ;;
10769   sco*)
10770     archive_cmds_need_lc_CXX=no
10771     case $cc_basename in
10772       CC*)
10773         # FIXME: insert proper C++ library support
10774         ld_shlibs_CXX=no
10775         ;;
10776       *)
10777         # FIXME: insert proper C++ library support
10778         ld_shlibs_CXX=no
10779         ;;
10780     esac
10781     ;;
10782   sunos4*)
10783     case $cc_basename in
10784       CC*)
10785         # Sun C++ 4.x
10786         # FIXME: insert proper C++ library support
10787         ld_shlibs_CXX=no
10788         ;;
10789       lcc*)
10790         # Lucid
10791         # FIXME: insert proper C++ library support
10792         ld_shlibs_CXX=no
10793         ;;
10794       *)
10795         # FIXME: insert proper C++ library support
10796         ld_shlibs_CXX=no
10797         ;;
10798     esac
10799     ;;
10800   solaris*)
10801     case $cc_basename in
10802       CC*)
10803         # Sun C++ 4.2, 5.x and Centerline C++
10804         no_undefined_flag_CXX=' -zdefs'
10805         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10806         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10807         $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'
10808
10809         hardcode_libdir_flag_spec_CXX='-R$libdir'
10810         hardcode_shlibpath_var_CXX=no
10811         case $host_os in
10812           solaris2.[0-5] | solaris2.[0-5].*) ;;
10813           *)
10814             # The C++ compiler is used as linker so we must use $wl
10815             # flag to pass the commands to the underlying system
10816             # linker. We must also pass each convience library through
10817             # to the system linker between allextract/defaultextract.
10818             # The C++ compiler will combine linker options so we
10819             # cannot just pass the convience library names through
10820             # without $wl.
10821             # Supported since Solaris 2.6 (maybe 2.5.1?)
10822             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10823             ;;
10824         esac
10825         link_all_deplibs_CXX=yes
10826
10827         # Commands to make compiler produce verbose output that lists
10828         # what "hidden" libraries, object files and flags are used when
10829         # linking a shared library.
10830         #
10831         # There doesn't appear to be a way to prevent this compiler from
10832         # explicitly linking system object files so we need to strip them
10833         # from the output so that they don't get included in the library
10834         # dependencies.
10835         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'
10836
10837         # Archives containing C++ object files must be created using
10838         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10839         # necessary to make sure instantiated templates are included
10840         # in the archive.
10841         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10842         ;;
10843       gcx*)
10844         # Green Hills C++ Compiler
10845         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10846
10847         # The C++ compiler must be used to create the archive.
10848         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10849         ;;
10850       *)
10851         # GNU C++ compiler with Solaris linker
10852         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10853           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10854           if $CC --version | grep -v '^2\.7' > /dev/null; then
10855             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10856             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10857                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10858
10859             # Commands to make compiler produce verbose output that lists
10860             # what "hidden" libraries, object files and flags are used when
10861             # linking a shared library.
10862             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10863           else
10864             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10865             # platform.
10866             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10867             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10868                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10869
10870             # Commands to make compiler produce verbose output that lists
10871             # what "hidden" libraries, object files and flags are used when
10872             # linking a shared library.
10873             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10874           fi
10875
10876           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10877         fi
10878         ;;
10879     esac
10880     ;;
10881   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10882     archive_cmds_need_lc_CXX=no
10883     ;;
10884   tandem*)
10885     case $cc_basename in
10886       NCC*)
10887         # NonStop-UX NCC 3.20
10888         # FIXME: insert proper C++ library support
10889         ld_shlibs_CXX=no
10890         ;;
10891       *)
10892         # FIXME: insert proper C++ library support
10893         ld_shlibs_CXX=no
10894         ;;
10895     esac
10896     ;;
10897   vxworks*)
10898     # FIXME: insert proper C++ library support
10899     ld_shlibs_CXX=no
10900     ;;
10901   *)
10902     # FIXME: insert proper C++ library support
10903     ld_shlibs_CXX=no
10904     ;;
10905 esac
10906 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10907 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10908 test "$ld_shlibs_CXX" = no && can_build_shared=no
10909
10910 GCC_CXX="$GXX"
10911 LD_CXX="$LD"
10912
10913
10914 cat > conftest.$ac_ext <<EOF
10915 class Foo
10916 {
10917 public:
10918   Foo (void) { a = 0; }
10919 private:
10920   int a;
10921 };
10922 EOF
10923
10924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10925   (eval $ac_compile) 2>&5
10926   ac_status=$?
10927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928   (exit $ac_status); }; then
10929   # Parse the compiler output and extract the necessary
10930   # objects, libraries and library flags.
10931
10932   # Sentinel used to keep track of whether or not we are before
10933   # the conftest object file.
10934   pre_test_object_deps_done=no
10935
10936   # The `*' in the case matches for architectures that use `case' in
10937   # $output_verbose_cmd can trigger glob expansion during the loop
10938   # eval without this substitution.
10939   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10940
10941   for p in `eval $output_verbose_link_cmd`; do
10942     case $p in
10943
10944     -L* | -R* | -l*)
10945        # Some compilers place space between "-{L,R}" and the path.
10946        # Remove the space.
10947        if test $p = "-L" \
10948           || test $p = "-R"; then
10949          prev=$p
10950          continue
10951        else
10952          prev=
10953        fi
10954
10955        if test "$pre_test_object_deps_done" = no; then
10956          case $p in
10957          -L* | -R*)
10958            # Internal compiler library paths should come after those
10959            # provided the user.  The postdeps already come after the
10960            # user supplied libs so there is no need to process them.
10961            if test -z "$compiler_lib_search_path_CXX"; then
10962              compiler_lib_search_path_CXX="${prev}${p}"
10963            else
10964              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10965            fi
10966            ;;
10967          # The "-l" case would never come before the object being
10968          # linked, so don't bother handling this case.
10969          esac
10970        else
10971          if test -z "$postdeps_CXX"; then
10972            postdeps_CXX="${prev}${p}"
10973          else
10974            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10975          fi
10976        fi
10977        ;;
10978
10979     *.$objext)
10980        # This assumes that the test object file only shows up
10981        # once in the compiler output.
10982        if test "$p" = "conftest.$objext"; then
10983          pre_test_object_deps_done=yes
10984          continue
10985        fi
10986
10987        if test "$pre_test_object_deps_done" = no; then
10988          if test -z "$predep_objects_CXX"; then
10989            predep_objects_CXX="$p"
10990          else
10991            predep_objects_CXX="$predep_objects_CXX $p"
10992          fi
10993        else
10994          if test -z "$postdep_objects_CXX"; then
10995            postdep_objects_CXX="$p"
10996          else
10997            postdep_objects_CXX="$postdep_objects_CXX $p"
10998          fi
10999        fi
11000        ;;
11001
11002     *) ;; # Ignore the rest.
11003
11004     esac
11005   done
11006
11007   # Clean up.
11008   rm -f a.out a.exe
11009 else
11010   echo "libtool.m4: error: problem compiling CXX test program"
11011 fi
11012
11013 $rm -f confest.$objext
11014
11015 case " $postdeps_CXX " in
11016 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11017 esac
11018
11019 lt_prog_compiler_wl_CXX=
11020 lt_prog_compiler_pic_CXX=
11021 lt_prog_compiler_static_CXX=
11022
11023 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11024 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11025
11026   # C++ specific cases for pic, static, wl, etc.
11027   if test "$GXX" = yes; then
11028     lt_prog_compiler_wl_CXX='-Wl,'
11029     lt_prog_compiler_static_CXX='-static'
11030
11031     case $host_os in
11032     aix*)
11033       # All AIX code is PIC.
11034       if test "$host_cpu" = ia64; then
11035         # AIX 5 now supports IA64 processor
11036         lt_prog_compiler_static_CXX='-Bstatic'
11037       fi
11038       ;;
11039     amigaos*)
11040       # FIXME: we need at least 68020 code to build shared libraries, but
11041       # adding the `-m68020' flag to GCC prevents building anything better,
11042       # like `-m68040'.
11043       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11044       ;;
11045     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11046       # PIC is the default for these OSes.
11047       ;;
11048     mingw* | os2* | pw32*)
11049       # This hack is so that the source file can tell whether it is being
11050       # built for inclusion in a dll (and should export symbols for example).
11051       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11052       ;;
11053     darwin* | rhapsody*)
11054       # PIC is the default on this platform
11055       # Common symbols not allowed in MH_DYLIB files
11056       lt_prog_compiler_pic_CXX='-fno-common'
11057       ;;
11058     *djgpp*)
11059       # DJGPP does not support shared libraries at all
11060       lt_prog_compiler_pic_CXX=
11061       ;;
11062     sysv4*MP*)
11063       if test -d /usr/nec; then
11064         lt_prog_compiler_pic_CXX=-Kconform_pic
11065       fi
11066       ;;
11067     hpux*)
11068       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11069       # not for PA HP-UX.
11070       case "$host_cpu" in
11071       hppa*64*|ia64*)
11072         ;;
11073       *)
11074         lt_prog_compiler_pic_CXX='-fPIC'
11075         ;;
11076       esac
11077       ;;
11078     *)
11079       lt_prog_compiler_pic_CXX='-fPIC'
11080       ;;
11081     esac
11082   else
11083     case $host_os in
11084       aix4* | aix5*)
11085         # All AIX code is PIC.
11086         if test "$host_cpu" = ia64; then
11087           # AIX 5 now supports IA64 processor
11088           lt_prog_compiler_static_CXX='-Bstatic'
11089         else
11090           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11091         fi
11092         ;;
11093       chorus*)
11094         case $cc_basename in
11095         cxch68*)
11096           # Green Hills C++ Compiler
11097           # _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"
11098           ;;
11099         esac
11100         ;;
11101        darwin*)
11102          # PIC is the default on this platform
11103          # Common symbols not allowed in MH_DYLIB files
11104          case $cc_basename in
11105            xlc*)
11106            lt_prog_compiler_pic_CXX='-qnocommon'
11107            lt_prog_compiler_wl_CXX='-Wl,'
11108            ;;
11109          esac
11110        ;;
11111       dgux*)
11112         case $cc_basename in
11113           ec++*)
11114             lt_prog_compiler_pic_CXX='-KPIC'
11115             ;;
11116           ghcx*)
11117             # Green Hills C++ Compiler
11118             lt_prog_compiler_pic_CXX='-pic'
11119             ;;
11120           *)
11121             ;;
11122         esac
11123         ;;
11124       freebsd* | kfreebsd*-gnu | dragonfly*)
11125         # FreeBSD uses GNU C++
11126         ;;
11127       hpux9* | hpux10* | hpux11*)
11128         case $cc_basename in
11129           CC*)
11130             lt_prog_compiler_wl_CXX='-Wl,'
11131             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11132             if test "$host_cpu" != ia64; then
11133               lt_prog_compiler_pic_CXX='+Z'
11134             fi
11135             ;;
11136           aCC*)
11137             lt_prog_compiler_wl_CXX='-Wl,'
11138             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11139             case "$host_cpu" in
11140             hppa*64*|ia64*)
11141               # +Z the default
11142               ;;
11143             *)
11144               lt_prog_compiler_pic_CXX='+Z'
11145               ;;
11146             esac
11147             ;;
11148           *)
11149             ;;
11150         esac
11151         ;;
11152       irix5* | irix6* | nonstopux*)
11153         case $cc_basename in
11154           CC*)
11155             lt_prog_compiler_wl_CXX='-Wl,'
11156             lt_prog_compiler_static_CXX='-non_shared'
11157             # CC pic flag -KPIC is the default.
11158             ;;
11159           *)
11160             ;;
11161         esac
11162         ;;
11163       linux*)
11164         case $cc_basename in
11165           KCC*)
11166             # KAI C++ Compiler
11167             lt_prog_compiler_wl_CXX='--backend -Wl,'
11168             lt_prog_compiler_pic_CXX='-fPIC'
11169             ;;
11170           icpc* | ecpc*)
11171             # Intel C++
11172             lt_prog_compiler_wl_CXX='-Wl,'
11173             lt_prog_compiler_pic_CXX='-KPIC'
11174             lt_prog_compiler_static_CXX='-static'
11175             ;;
11176           pgCC*)
11177             # Portland Group C++ compiler.
11178             lt_prog_compiler_wl_CXX='-Wl,'
11179             lt_prog_compiler_pic_CXX='-fpic'
11180             lt_prog_compiler_static_CXX='-static'
11181             ;;
11182           cxx*)
11183             # Compaq C++
11184             # Make sure the PIC flag is empty.  It appears that all Alpha
11185             # Linux and Compaq Tru64 Unix objects are PIC.
11186             lt_prog_compiler_pic_CXX=
11187             lt_prog_compiler_static_CXX='-non_shared'
11188             ;;
11189           *)
11190             ;;
11191         esac
11192         ;;
11193       lynxos*)
11194         ;;
11195       m88k*)
11196         ;;
11197       mvs*)
11198         case $cc_basename in
11199           cxx*)
11200             lt_prog_compiler_pic_CXX='-W c,exportall'
11201             ;;
11202           *)
11203             ;;
11204         esac
11205         ;;
11206       netbsd*)
11207         ;;
11208       osf3* | osf4* | osf5*)
11209         case $cc_basename in
11210           KCC*)
11211             lt_prog_compiler_wl_CXX='--backend -Wl,'
11212             ;;
11213           RCC*)
11214             # Rational C++ 2.4.1
11215             lt_prog_compiler_pic_CXX='-pic'
11216             ;;
11217           cxx*)
11218             # Digital/Compaq C++
11219             lt_prog_compiler_wl_CXX='-Wl,'
11220             # Make sure the PIC flag is empty.  It appears that all Alpha
11221             # Linux and Compaq Tru64 Unix objects are PIC.
11222             lt_prog_compiler_pic_CXX=
11223             lt_prog_compiler_static_CXX='-non_shared'
11224             ;;
11225           *)
11226             ;;
11227         esac
11228         ;;
11229       psos*)
11230         ;;
11231       sco*)
11232         case $cc_basename in
11233           CC*)
11234             lt_prog_compiler_pic_CXX='-fPIC'
11235             ;;
11236           *)
11237             ;;
11238         esac
11239         ;;
11240       solaris*)
11241         case $cc_basename in
11242           CC*)
11243             # Sun C++ 4.2, 5.x and Centerline C++
11244             lt_prog_compiler_pic_CXX='-KPIC'
11245             lt_prog_compiler_static_CXX='-Bstatic'
11246             lt_prog_compiler_wl_CXX='-Qoption ld '
11247             ;;
11248           gcx*)
11249             # Green Hills C++ Compiler
11250             lt_prog_compiler_pic_CXX='-PIC'
11251             ;;
11252           *)
11253             ;;
11254         esac
11255         ;;
11256       sunos4*)
11257         case $cc_basename in
11258           CC*)
11259             # Sun C++ 4.x
11260             lt_prog_compiler_pic_CXX='-pic'
11261             lt_prog_compiler_static_CXX='-Bstatic'
11262             ;;
11263           lcc*)
11264             # Lucid
11265             lt_prog_compiler_pic_CXX='-pic'
11266             ;;
11267           *)
11268             ;;
11269         esac
11270         ;;
11271       tandem*)
11272         case $cc_basename in
11273           NCC*)
11274             # NonStop-UX NCC 3.20
11275             lt_prog_compiler_pic_CXX='-KPIC'
11276             ;;
11277           *)
11278             ;;
11279         esac
11280         ;;
11281       unixware*)
11282         ;;
11283       vxworks*)
11284         ;;
11285       *)
11286         lt_prog_compiler_can_build_shared_CXX=no
11287         ;;
11288     esac
11289   fi
11290
11291 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11292 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11293
11294 #
11295 # Check to make sure the PIC flag actually works.
11296 #
11297 if test -n "$lt_prog_compiler_pic_CXX"; then
11298
11299 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11300 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11301 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11302   echo $ECHO_N "(cached) $ECHO_C" >&6
11303 else
11304   lt_prog_compiler_pic_works_CXX=no
11305   ac_outfile=conftest.$ac_objext
11306    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11307    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11308    # Insert the option either (1) after the last *FLAGS variable, or
11309    # (2) before a word containing "conftest.", or (3) at the end.
11310    # Note that $ac_compile itself does not contain backslashes and begins
11311    # with a dollar sign (not a hyphen), so the echo should work correctly.
11312    # The option is referenced via a variable to avoid confusing sed.
11313    lt_compile=`echo "$ac_compile" | $SED \
11314    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11315    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11316    -e 's:$: $lt_compiler_flag:'`
11317    (eval echo "\"\$as_me:11317: $lt_compile\"" >&5)
11318    (eval "$lt_compile" 2>conftest.err)
11319    ac_status=$?
11320    cat conftest.err >&5
11321    echo "$as_me:11321: \$? = $ac_status" >&5
11322    if (exit $ac_status) && test -s "$ac_outfile"; then
11323      # The compiler can only warn and ignore the option if not recognized
11324      # So say no if there are warnings other than the usual output.
11325      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11326      $SED '/^$/d' conftest.err >conftest.er2
11327      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11328        lt_prog_compiler_pic_works_CXX=yes
11329      fi
11330    fi
11331    $rm conftest*
11332
11333 fi
11334 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11335 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11336
11337 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11338     case $lt_prog_compiler_pic_CXX in
11339      "" | " "*) ;;
11340      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11341      esac
11342 else
11343     lt_prog_compiler_pic_CXX=
11344      lt_prog_compiler_can_build_shared_CXX=no
11345 fi
11346
11347 fi
11348 case "$host_os" in
11349   # For platforms which do not support PIC, -DPIC is meaningless:
11350   *djgpp*)
11351     lt_prog_compiler_pic_CXX=
11352     ;;
11353   *)
11354     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11355     ;;
11356 esac
11357
11358 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11359 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11360 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11361   echo $ECHO_N "(cached) $ECHO_C" >&6
11362 else
11363   lt_cv_prog_compiler_c_o_CXX=no
11364    $rm -r conftest 2>/dev/null
11365    mkdir conftest
11366    cd conftest
11367    mkdir out
11368    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11369
11370    lt_compiler_flag="-o out/conftest2.$ac_objext"
11371    # Insert the option either (1) after the last *FLAGS variable, or
11372    # (2) before a word containing "conftest.", or (3) at the end.
11373    # Note that $ac_compile itself does not contain backslashes and begins
11374    # with a dollar sign (not a hyphen), so the echo should work correctly.
11375    lt_compile=`echo "$ac_compile" | $SED \
11376    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11377    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11378    -e 's:$: $lt_compiler_flag:'`
11379    (eval echo "\"\$as_me:11379: $lt_compile\"" >&5)
11380    (eval "$lt_compile" 2>out/conftest.err)
11381    ac_status=$?
11382    cat out/conftest.err >&5
11383    echo "$as_me:11383: \$? = $ac_status" >&5
11384    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11385    then
11386      # The compiler can only warn and ignore the option if not recognized
11387      # So say no if there are warnings
11388      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11389      $SED '/^$/d' out/conftest.err >out/conftest.er2
11390      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11391        lt_cv_prog_compiler_c_o_CXX=yes
11392      fi
11393    fi
11394    chmod u+w .
11395    $rm conftest*
11396    # SGI C++ compiler will create directory out/ii_files/ for
11397    # template instantiation
11398    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11399    $rm out/* && rmdir out
11400    cd ..
11401    rmdir conftest
11402    $rm conftest*
11403
11404 fi
11405 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11406 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11407
11408
11409 hard_links="nottested"
11410 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11411   # do not overwrite the value of need_locks provided by the user
11412   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11413 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11414   hard_links=yes
11415   $rm conftest*
11416   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11417   touch conftest.a
11418   ln conftest.a conftest.b 2>&5 || hard_links=no
11419   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11420   echo "$as_me:$LINENO: result: $hard_links" >&5
11421 echo "${ECHO_T}$hard_links" >&6
11422   if test "$hard_links" = no; then
11423     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11424 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11425     need_locks=warn
11426   fi
11427 else
11428   need_locks=no
11429 fi
11430
11431 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11432 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11433
11434   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11435   case $host_os in
11436   aix4* | aix5*)
11437     # If we're using GNU nm, then we don't want the "-C" option.
11438     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11439     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11440       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'
11441     else
11442       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'
11443     fi
11444     ;;
11445   pw32*)
11446     export_symbols_cmds_CXX="$ltdll_cmds"
11447   ;;
11448   cygwin* | mingw*)
11449     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'
11450   ;;
11451   *)
11452     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11453   ;;
11454   esac
11455
11456 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11457 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11458 test "$ld_shlibs_CXX" = no && can_build_shared=no
11459
11460 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11461 if test "$GCC" = yes; then
11462   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11463 fi
11464
11465 #
11466 # Do we need to explicitly link libc?
11467 #
11468 case "x$archive_cmds_need_lc_CXX" in
11469 x|xyes)
11470   # Assume -lc should be added
11471   archive_cmds_need_lc_CXX=yes
11472
11473   if test "$enable_shared" = yes && test "$GCC" = yes; then
11474     case $archive_cmds_CXX in
11475     *'~'*)
11476       # FIXME: we may have to deal with multi-command sequences.
11477       ;;
11478     '$CC '*)
11479       # Test whether the compiler implicitly links with -lc since on some
11480       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11481       # to ld, don't add -lc before -lgcc.
11482       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11483 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11484       $rm conftest*
11485       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11486
11487       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11488   (eval $ac_compile) 2>&5
11489   ac_status=$?
11490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491   (exit $ac_status); } 2>conftest.err; then
11492         soname=conftest
11493         lib=conftest
11494         libobjs=conftest.$ac_objext
11495         deplibs=
11496         wl=$lt_prog_compiler_wl_CXX
11497         compiler_flags=-v
11498         linker_flags=-v
11499         verstring=
11500         output_objdir=.
11501         libname=conftest
11502         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11503         allow_undefined_flag_CXX=
11504         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11505   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11506   ac_status=$?
11507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508   (exit $ac_status); }
11509         then
11510           archive_cmds_need_lc_CXX=no
11511         else
11512           archive_cmds_need_lc_CXX=yes
11513         fi
11514         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11515       else
11516         cat conftest.err 1>&5
11517       fi
11518       $rm conftest*
11519       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11520 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11521       ;;
11522     esac
11523   fi
11524   ;;
11525 esac
11526
11527 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11528 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11529 library_names_spec=
11530 libname_spec='lib$name'
11531 soname_spec=
11532 shrext_cmds=".so"
11533 postinstall_cmds=
11534 postuninstall_cmds=
11535 finish_cmds=
11536 finish_eval=
11537 shlibpath_var=
11538 shlibpath_overrides_runpath=unknown
11539 version_type=none
11540 dynamic_linker="$host_os ld.so"
11541 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11542 if test "$GCC" = yes; then
11543   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11544   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11545     # if the path contains ";" then we assume it to be the separator
11546     # otherwise default to the standard path separator (i.e. ":") - it is
11547     # assumed that no part of a normal pathname contains ";" but that should
11548     # okay in the real world where ";" in dirpaths is itself problematic.
11549     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11550   else
11551     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11552   fi
11553 else
11554   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11555 fi
11556 need_lib_prefix=unknown
11557 hardcode_into_libs=no
11558
11559 # when you set need_version to no, make sure it does not cause -set_version
11560 # flags to be left without arguments
11561 need_version=unknown
11562
11563 case $host_os in
11564 aix3*)
11565   version_type=linux
11566   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11567   shlibpath_var=LIBPATH
11568
11569   # AIX 3 has no versioning support, so we append a major version to the name.
11570   soname_spec='${libname}${release}${shared_ext}$major'
11571   ;;
11572
11573 aix4* | aix5*)
11574   version_type=linux
11575   need_lib_prefix=no
11576   need_version=no
11577   hardcode_into_libs=yes
11578   if test "$host_cpu" = ia64; then
11579     # AIX 5 supports IA64
11580     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11581     shlibpath_var=LD_LIBRARY_PATH
11582   else
11583     # With GCC up to 2.95.x, collect2 would create an import file
11584     # for dependence libraries.  The import file would start with
11585     # the line `#! .'.  This would cause the generated library to
11586     # depend on `.', always an invalid library.  This was fixed in
11587     # development snapshots of GCC prior to 3.0.
11588     case $host_os in
11589       aix4 | aix4.[01] | aix4.[01].*)
11590       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11591            echo ' yes '
11592            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11593         :
11594       else
11595         can_build_shared=no
11596       fi
11597       ;;
11598     esac
11599     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11600     # soname into executable. Probably we can add versioning support to
11601     # collect2, so additional links can be useful in future.
11602     if test "$aix_use_runtimelinking" = yes; then
11603       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11604       # instead of lib<name>.a to let people know that these are not
11605       # typical AIX shared libraries.
11606       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11607     else
11608       # We preserve .a as extension for shared libraries through AIX4.2
11609       # and later when we are not doing run time linking.
11610       library_names_spec='${libname}${release}.a $libname.a'
11611       soname_spec='${libname}${release}${shared_ext}$major'
11612     fi
11613     shlibpath_var=LIBPATH
11614   fi
11615   ;;
11616
11617 amigaos*)
11618   library_names_spec='$libname.ixlibrary $libname.a'
11619   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11620   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'
11621   ;;
11622
11623 beos*)
11624   library_names_spec='${libname}${shared_ext}'
11625   dynamic_linker="$host_os ld.so"
11626   shlibpath_var=LIBRARY_PATH
11627   ;;
11628
11629 bsdi[45]*)
11630   version_type=linux
11631   need_version=no
11632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11633   soname_spec='${libname}${release}${shared_ext}$major'
11634   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11635   shlibpath_var=LD_LIBRARY_PATH
11636   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11637   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11638   # the default ld.so.conf also contains /usr/contrib/lib and
11639   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11640   # libtool to hard-code these into programs
11641   ;;
11642
11643 cygwin* | mingw* | pw32*)
11644   version_type=windows
11645   shrext_cmds=".dll"
11646   need_version=no
11647   need_lib_prefix=no
11648
11649   case $GCC,$host_os in
11650   yes,cygwin* | yes,mingw* | yes,pw32*)
11651     library_names_spec='$libname.dll.a'
11652     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11653     postinstall_cmds='base_file=`basename \${file}`~
11654       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11655       dldir=$destdir/`dirname \$dlpath`~
11656       test -d \$dldir || mkdir -p \$dldir~
11657       $install_prog $dir/$dlname \$dldir/$dlname'
11658     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11659       dlpath=$dir/\$dldll~
11660        $rm \$dlpath'
11661     shlibpath_overrides_runpath=yes
11662
11663     case $host_os in
11664     cygwin*)
11665       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11666       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11667       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11668       ;;
11669     mingw*)
11670       # MinGW DLLs use traditional 'lib' prefix
11671       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11672       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11673       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11674         # It is most probably a Windows format PATH printed by
11675         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11676         # path with ; separators, and with drive letters. We can handle the
11677         # drive letters (cygwin fileutils understands them), so leave them,
11678         # especially as we might pass files found there to a mingw objdump,
11679         # which wouldn't understand a cygwinified path. Ahh.
11680         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11681       else
11682         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11683       fi
11684       ;;
11685     pw32*)
11686       # pw32 DLLs use 'pw' prefix rather than 'lib'
11687       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11688       ;;
11689     esac
11690     ;;
11691
11692   *)
11693     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11694     ;;
11695   esac
11696   dynamic_linker='Win32 ld.exe'
11697   # FIXME: first we should search . and the directory the executable is in
11698   shlibpath_var=PATH
11699   ;;
11700
11701 darwin* | rhapsody*)
11702   dynamic_linker="$host_os dyld"
11703   version_type=darwin
11704   need_lib_prefix=no
11705   need_version=no
11706   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11707   soname_spec='${libname}${release}${major}$shared_ext'
11708   shlibpath_overrides_runpath=yes
11709   shlibpath_var=DYLD_LIBRARY_PATH
11710   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11711   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11712   if test "$GCC" = yes; then
11713     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"`
11714   else
11715     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11716   fi
11717   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11718   ;;
11719
11720 dgux*)
11721   version_type=linux
11722   need_lib_prefix=no
11723   need_version=no
11724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11725   soname_spec='${libname}${release}${shared_ext}$major'
11726   shlibpath_var=LD_LIBRARY_PATH
11727   ;;
11728
11729 freebsd1*)
11730   dynamic_linker=no
11731   ;;
11732
11733 kfreebsd*-gnu)
11734   version_type=linux
11735   need_lib_prefix=no
11736   need_version=no
11737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11738   soname_spec='${libname}${release}${shared_ext}$major'
11739   shlibpath_var=LD_LIBRARY_PATH
11740   shlibpath_overrides_runpath=no
11741   hardcode_into_libs=yes
11742   dynamic_linker='GNU ld.so'
11743   ;;
11744
11745 freebsd* | dragonfly*)
11746   # DragonFly does not have aout.  When/if they implement a new
11747   # versioning mechanism, adjust this.
11748   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11749   version_type=freebsd-$objformat
11750   case $version_type in
11751     freebsd-elf*)
11752       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11753       need_version=no
11754       need_lib_prefix=no
11755       ;;
11756     freebsd-*)
11757       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11758       need_version=yes
11759       ;;
11760   esac
11761   shlibpath_var=LD_LIBRARY_PATH
11762   case $host_os in
11763   freebsd2*)
11764     shlibpath_overrides_runpath=yes
11765     ;;
11766   freebsd3.[01]* | freebsdelf3.[01]*)
11767     shlibpath_overrides_runpath=yes
11768     hardcode_into_libs=yes
11769     ;;
11770   *) # from 3.2 on
11771     shlibpath_overrides_runpath=no
11772     hardcode_into_libs=yes
11773     ;;
11774   esac
11775   ;;
11776
11777 gnu*)
11778   version_type=linux
11779   need_lib_prefix=no
11780   need_version=no
11781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11782   soname_spec='${libname}${release}${shared_ext}$major'
11783   shlibpath_var=LD_LIBRARY_PATH
11784   hardcode_into_libs=yes
11785   ;;
11786
11787 hpux9* | hpux10* | hpux11*)
11788   # Give a soname corresponding to the major version so that dld.sl refuses to
11789   # link against other versions.
11790   version_type=sunos
11791   need_lib_prefix=no
11792   need_version=no
11793   case "$host_cpu" in
11794   ia64*)
11795     shrext_cmds='.so'
11796     hardcode_into_libs=yes
11797     dynamic_linker="$host_os dld.so"
11798     shlibpath_var=LD_LIBRARY_PATH
11799     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11800     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11801     soname_spec='${libname}${release}${shared_ext}$major'
11802     if test "X$HPUX_IA64_MODE" = X32; then
11803       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11804     else
11805       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11806     fi
11807     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11808     ;;
11809    hppa*64*)
11810      shrext_cmds='.sl'
11811      hardcode_into_libs=yes
11812      dynamic_linker="$host_os dld.sl"
11813      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11814      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11815      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11816      soname_spec='${libname}${release}${shared_ext}$major'
11817      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11818      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11819      ;;
11820    *)
11821     shrext_cmds='.sl'
11822     dynamic_linker="$host_os dld.sl"
11823     shlibpath_var=SHLIB_PATH
11824     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11825     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11826     soname_spec='${libname}${release}${shared_ext}$major'
11827     ;;
11828   esac
11829   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11830   postinstall_cmds='chmod 555 $lib'
11831   ;;
11832
11833 irix5* | irix6* | nonstopux*)
11834   case $host_os in
11835     nonstopux*) version_type=nonstopux ;;
11836     *)
11837         if test "$lt_cv_prog_gnu_ld" = yes; then
11838                 version_type=linux
11839         else
11840                 version_type=irix
11841         fi ;;
11842   esac
11843   need_lib_prefix=no
11844   need_version=no
11845   soname_spec='${libname}${release}${shared_ext}$major'
11846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11847   case $host_os in
11848   irix5* | nonstopux*)
11849     libsuff= shlibsuff=
11850     ;;
11851   *)
11852     case $LD in # libtool.m4 will add one of these switches to LD
11853     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11854       libsuff= shlibsuff= libmagic=32-bit;;
11855     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11856       libsuff=32 shlibsuff=N32 libmagic=N32;;
11857     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11858       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11859     *) libsuff= shlibsuff= libmagic=never-match;;
11860     esac
11861     ;;
11862   esac
11863   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11864   shlibpath_overrides_runpath=no
11865   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11866   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11867   hardcode_into_libs=yes
11868   ;;
11869
11870 # No shared lib support for Linux oldld, aout, or coff.
11871 linux*oldld* | linux*aout* | linux*coff*)
11872   dynamic_linker=no
11873   ;;
11874
11875 # This must be Linux ELF.
11876 linux*)
11877   version_type=linux
11878   need_lib_prefix=no
11879   need_version=no
11880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11881   soname_spec='${libname}${release}${shared_ext}$major'
11882   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11883   shlibpath_var=LD_LIBRARY_PATH
11884   shlibpath_overrides_runpath=no
11885   # This implies no fast_install, which is unacceptable.
11886   # Some rework will be needed to allow for fast_install
11887   # before this can be enabled.
11888   hardcode_into_libs=yes
11889
11890   # Append ld.so.conf contents to the search path
11891   if test -f /etc/ld.so.conf; then
11892     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/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11893     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11894   fi
11895
11896   # We used to test for /lib/ld.so.1 and disable shared libraries on
11897   # powerpc, because MkLinux only supported shared libraries with the
11898   # GNU dynamic linker.  Since this was broken with cross compilers,
11899   # most powerpc-linux boxes support dynamic linking these days and
11900   # people can always --disable-shared, the test was removed, and we
11901   # assume the GNU/Linux dynamic linker is in use.
11902   dynamic_linker='GNU/Linux ld.so'
11903   ;;
11904
11905 knetbsd*-gnu)
11906   version_type=linux
11907   need_lib_prefix=no
11908   need_version=no
11909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11910   soname_spec='${libname}${release}${shared_ext}$major'
11911   shlibpath_var=LD_LIBRARY_PATH
11912   shlibpath_overrides_runpath=no
11913   hardcode_into_libs=yes
11914   dynamic_linker='GNU ld.so'
11915   ;;
11916
11917 netbsd*)
11918   version_type=sunos
11919   need_lib_prefix=no
11920   need_version=no
11921   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11922     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11923     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11924     dynamic_linker='NetBSD (a.out) ld.so'
11925   else
11926     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11927     soname_spec='${libname}${release}${shared_ext}$major'
11928     dynamic_linker='NetBSD ld.elf_so'
11929   fi
11930   shlibpath_var=LD_LIBRARY_PATH
11931   shlibpath_overrides_runpath=yes
11932   hardcode_into_libs=yes
11933   ;;
11934
11935 newsos6)
11936   version_type=linux
11937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11938   shlibpath_var=LD_LIBRARY_PATH
11939   shlibpath_overrides_runpath=yes
11940   ;;
11941
11942 nto-qnx*)
11943   version_type=linux
11944   need_lib_prefix=no
11945   need_version=no
11946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11947   soname_spec='${libname}${release}${shared_ext}$major'
11948   shlibpath_var=LD_LIBRARY_PATH
11949   shlibpath_overrides_runpath=yes
11950   ;;
11951
11952 openbsd*)
11953   version_type=sunos
11954   need_lib_prefix=no
11955   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11956   case $host_os in
11957     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11958     *)                         need_version=no  ;;
11959   esac
11960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11961   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11962   shlibpath_var=LD_LIBRARY_PATH
11963   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11964     case $host_os in
11965       openbsd2.[89] | openbsd2.[89].*)
11966         shlibpath_overrides_runpath=no
11967         ;;
11968       *)
11969         shlibpath_overrides_runpath=yes
11970         ;;
11971       esac
11972   else
11973     shlibpath_overrides_runpath=yes
11974   fi
11975   ;;
11976
11977 os2*)
11978   libname_spec='$name'
11979   shrext_cmds=".dll"
11980   need_lib_prefix=no
11981   library_names_spec='$libname${shared_ext} $libname.a'
11982   dynamic_linker='OS/2 ld.exe'
11983   shlibpath_var=LIBPATH
11984   ;;
11985
11986 osf3* | osf4* | osf5*)
11987   version_type=osf
11988   need_lib_prefix=no
11989   need_version=no
11990   soname_spec='${libname}${release}${shared_ext}$major'
11991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11992   shlibpath_var=LD_LIBRARY_PATH
11993   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11994   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11995   ;;
11996
11997 sco3.2v5*)
11998   version_type=osf
11999   soname_spec='${libname}${release}${shared_ext}$major'
12000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12001   shlibpath_var=LD_LIBRARY_PATH
12002   ;;
12003
12004 solaris*)
12005   version_type=linux
12006   need_lib_prefix=no
12007   need_version=no
12008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12009   soname_spec='${libname}${release}${shared_ext}$major'
12010   shlibpath_var=LD_LIBRARY_PATH
12011   shlibpath_overrides_runpath=yes
12012   hardcode_into_libs=yes
12013   # ldd complains unless libraries are executable
12014   postinstall_cmds='chmod +x $lib'
12015   ;;
12016
12017 sunos4*)
12018   version_type=sunos
12019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12020   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12021   shlibpath_var=LD_LIBRARY_PATH
12022   shlibpath_overrides_runpath=yes
12023   if test "$with_gnu_ld" = yes; then
12024     need_lib_prefix=no
12025   fi
12026   need_version=yes
12027   ;;
12028
12029 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12030   version_type=linux
12031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12032   soname_spec='${libname}${release}${shared_ext}$major'
12033   shlibpath_var=LD_LIBRARY_PATH
12034   case $host_vendor in
12035     sni)
12036       shlibpath_overrides_runpath=no
12037       need_lib_prefix=no
12038       export_dynamic_flag_spec='${wl}-Blargedynsym'
12039       runpath_var=LD_RUN_PATH
12040       ;;
12041     siemens)
12042       need_lib_prefix=no
12043       ;;
12044     motorola)
12045       need_lib_prefix=no
12046       need_version=no
12047       shlibpath_overrides_runpath=no
12048       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12049       ;;
12050   esac
12051   ;;
12052
12053 sysv4*MP*)
12054   if test -d /usr/nec ;then
12055     version_type=linux
12056     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12057     soname_spec='$libname${shared_ext}.$major'
12058     shlibpath_var=LD_LIBRARY_PATH
12059   fi
12060   ;;
12061
12062 uts4*)
12063   version_type=linux
12064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12065   soname_spec='${libname}${release}${shared_ext}$major'
12066   shlibpath_var=LD_LIBRARY_PATH
12067   ;;
12068
12069 *)
12070   dynamic_linker=no
12071   ;;
12072 esac
12073 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12074 echo "${ECHO_T}$dynamic_linker" >&6
12075 test "$dynamic_linker" = no && can_build_shared=no
12076
12077 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12078 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12079 hardcode_action_CXX=
12080 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12081    test -n "$runpath_var_CXX" || \
12082    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12083
12084   # We can hardcode non-existant directories.
12085   if test "$hardcode_direct_CXX" != no &&
12086      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12087      # have to relink, otherwise we might link with an installed library
12088      # when we should be linking with a yet-to-be-installed one
12089      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12090      test "$hardcode_minus_L_CXX" != no; then
12091     # Linking always hardcodes the temporary library directory.
12092     hardcode_action_CXX=relink
12093   else
12094     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12095     hardcode_action_CXX=immediate
12096   fi
12097 else
12098   # We cannot hardcode anything, or else we can only hardcode existing
12099   # directories.
12100   hardcode_action_CXX=unsupported
12101 fi
12102 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12103 echo "${ECHO_T}$hardcode_action_CXX" >&6
12104
12105 if test "$hardcode_action_CXX" = relink; then
12106   # Fast installation is not supported
12107   enable_fast_install=no
12108 elif test "$shlibpath_overrides_runpath" = yes ||
12109      test "$enable_shared" = no; then
12110   # Fast installation is not necessary
12111   enable_fast_install=needless
12112 fi
12113
12114 striplib=
12115 old_striplib=
12116 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12117 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12118 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12119   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12120   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12121   echo "$as_me:$LINENO: result: yes" >&5
12122 echo "${ECHO_T}yes" >&6
12123 else
12124 # FIXME - insert some real tests, host_os isn't really good enough
12125   case $host_os in
12126    darwin*)
12127        if test -n "$STRIP" ; then
12128          striplib="$STRIP -x"
12129          echo "$as_me:$LINENO: result: yes" >&5
12130 echo "${ECHO_T}yes" >&6
12131        else
12132   echo "$as_me:$LINENO: result: no" >&5
12133 echo "${ECHO_T}no" >&6
12134 fi
12135        ;;
12136    *)
12137   echo "$as_me:$LINENO: result: no" >&5
12138 echo "${ECHO_T}no" >&6
12139     ;;
12140   esac
12141 fi
12142
12143 if test "x$enable_dlopen" != xyes; then
12144   enable_dlopen=unknown
12145   enable_dlopen_self=unknown
12146   enable_dlopen_self_static=unknown
12147 else
12148   lt_cv_dlopen=no
12149   lt_cv_dlopen_libs=
12150
12151   case $host_os in
12152   beos*)
12153     lt_cv_dlopen="load_add_on"
12154     lt_cv_dlopen_libs=
12155     lt_cv_dlopen_self=yes
12156     ;;
12157
12158   mingw* | pw32*)
12159     lt_cv_dlopen="LoadLibrary"
12160     lt_cv_dlopen_libs=
12161    ;;
12162
12163   cygwin*)
12164     lt_cv_dlopen="dlopen"
12165     lt_cv_dlopen_libs=
12166    ;;
12167
12168   darwin*)
12169   # if libdl is installed we need to link against it
12170     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12171 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12172 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12173   echo $ECHO_N "(cached) $ECHO_C" >&6
12174 else
12175   ac_check_lib_save_LIBS=$LIBS
12176 LIBS="-ldl  $LIBS"
12177 cat >conftest.$ac_ext <<_ACEOF
12178 /* confdefs.h.  */
12179 _ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h.  */
12183
12184 /* Override any gcc2 internal prototype to avoid an error.  */
12185 #ifdef __cplusplus
12186 extern "C"
12187 #endif
12188 /* We use char because int might match the return type of a gcc2
12189    builtin and then its argument prototype would still apply.  */
12190 char dlopen ();
12191 int
12192 main ()
12193 {
12194 dlopen ();
12195   ;
12196   return 0;
12197 }
12198 _ACEOF
12199 rm -f conftest.$ac_objext conftest$ac_exeext
12200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12201   (eval $ac_link) 2>conftest.er1
12202   ac_status=$?
12203   grep -v '^ *+' conftest.er1 >conftest.err
12204   rm -f conftest.er1
12205   cat conftest.err >&5
12206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207   (exit $ac_status); } &&
12208          { ac_try='test -z "$ac_cxx_werror_flag"
12209                          || test ! -s conftest.err'
12210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211   (eval $ac_try) 2>&5
12212   ac_status=$?
12213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214   (exit $ac_status); }; } &&
12215          { ac_try='test -s conftest$ac_exeext'
12216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217   (eval $ac_try) 2>&5
12218   ac_status=$?
12219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220   (exit $ac_status); }; }; then
12221   ac_cv_lib_dl_dlopen=yes
12222 else
12223   echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12225
12226 ac_cv_lib_dl_dlopen=no
12227 fi
12228 rm -f conftest.err conftest.$ac_objext \
12229       conftest$ac_exeext conftest.$ac_ext
12230 LIBS=$ac_check_lib_save_LIBS
12231 fi
12232 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12233 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12234 if test $ac_cv_lib_dl_dlopen = yes; then
12235   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12236 else
12237
12238     lt_cv_dlopen="dyld"
12239     lt_cv_dlopen_libs=
12240     lt_cv_dlopen_self=yes
12241
12242 fi
12243
12244    ;;
12245
12246   *)
12247     echo "$as_me:$LINENO: checking for shl_load" >&5
12248 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12249 if test "${ac_cv_func_shl_load+set}" = set; then
12250   echo $ECHO_N "(cached) $ECHO_C" >&6
12251 else
12252   cat >conftest.$ac_ext <<_ACEOF
12253 /* confdefs.h.  */
12254 _ACEOF
12255 cat confdefs.h >>conftest.$ac_ext
12256 cat >>conftest.$ac_ext <<_ACEOF
12257 /* end confdefs.h.  */
12258 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12259    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12260 #define shl_load innocuous_shl_load
12261
12262 /* System header to define __stub macros and hopefully few prototypes,
12263     which can conflict with char shl_load (); below.
12264     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12265     <limits.h> exists even on freestanding compilers.  */
12266
12267 #ifdef __STDC__
12268 # include <limits.h>
12269 #else
12270 # include <assert.h>
12271 #endif
12272
12273 #undef shl_load
12274
12275 /* Override any gcc2 internal prototype to avoid an error.  */
12276 #ifdef __cplusplus
12277 extern "C"
12278 {
12279 #endif
12280 /* We use char because int might match the return type of a gcc2
12281    builtin and then its argument prototype would still apply.  */
12282 char shl_load ();
12283 /* The GNU C library defines this for functions which it implements
12284     to always fail with ENOSYS.  Some functions are actually named
12285     something starting with __ and the normal name is an alias.  */
12286 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12287 choke me
12288 #else
12289 char (*f) () = shl_load;
12290 #endif
12291 #ifdef __cplusplus
12292 }
12293 #endif
12294
12295 int
12296 main ()
12297 {
12298 return f != shl_load;
12299   ;
12300   return 0;
12301 }
12302 _ACEOF
12303 rm -f conftest.$ac_objext conftest$ac_exeext
12304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12305   (eval $ac_link) 2>conftest.er1
12306   ac_status=$?
12307   grep -v '^ *+' conftest.er1 >conftest.err
12308   rm -f conftest.er1
12309   cat conftest.err >&5
12310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311   (exit $ac_status); } &&
12312          { ac_try='test -z "$ac_cxx_werror_flag"
12313                          || test ! -s conftest.err'
12314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315   (eval $ac_try) 2>&5
12316   ac_status=$?
12317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318   (exit $ac_status); }; } &&
12319          { ac_try='test -s conftest$ac_exeext'
12320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321   (eval $ac_try) 2>&5
12322   ac_status=$?
12323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324   (exit $ac_status); }; }; then
12325   ac_cv_func_shl_load=yes
12326 else
12327   echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.$ac_ext >&5
12329
12330 ac_cv_func_shl_load=no
12331 fi
12332 rm -f conftest.err conftest.$ac_objext \
12333       conftest$ac_exeext conftest.$ac_ext
12334 fi
12335 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12336 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12337 if test $ac_cv_func_shl_load = yes; then
12338   lt_cv_dlopen="shl_load"
12339 else
12340   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12341 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12342 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12343   echo $ECHO_N "(cached) $ECHO_C" >&6
12344 else
12345   ac_check_lib_save_LIBS=$LIBS
12346 LIBS="-ldld  $LIBS"
12347 cat >conftest.$ac_ext <<_ACEOF
12348 /* confdefs.h.  */
12349 _ACEOF
12350 cat confdefs.h >>conftest.$ac_ext
12351 cat >>conftest.$ac_ext <<_ACEOF
12352 /* end confdefs.h.  */
12353
12354 /* Override any gcc2 internal prototype to avoid an error.  */
12355 #ifdef __cplusplus
12356 extern "C"
12357 #endif
12358 /* We use char because int might match the return type of a gcc2
12359    builtin and then its argument prototype would still apply.  */
12360 char shl_load ();
12361 int
12362 main ()
12363 {
12364 shl_load ();
12365   ;
12366   return 0;
12367 }
12368 _ACEOF
12369 rm -f conftest.$ac_objext conftest$ac_exeext
12370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12371   (eval $ac_link) 2>conftest.er1
12372   ac_status=$?
12373   grep -v '^ *+' conftest.er1 >conftest.err
12374   rm -f conftest.er1
12375   cat conftest.err >&5
12376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377   (exit $ac_status); } &&
12378          { ac_try='test -z "$ac_cxx_werror_flag"
12379                          || test ! -s conftest.err'
12380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381   (eval $ac_try) 2>&5
12382   ac_status=$?
12383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384   (exit $ac_status); }; } &&
12385          { ac_try='test -s conftest$ac_exeext'
12386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387   (eval $ac_try) 2>&5
12388   ac_status=$?
12389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390   (exit $ac_status); }; }; then
12391   ac_cv_lib_dld_shl_load=yes
12392 else
12393   echo "$as_me: failed program was:" >&5
12394 sed 's/^/| /' conftest.$ac_ext >&5
12395
12396 ac_cv_lib_dld_shl_load=no
12397 fi
12398 rm -f conftest.err conftest.$ac_objext \
12399       conftest$ac_exeext conftest.$ac_ext
12400 LIBS=$ac_check_lib_save_LIBS
12401 fi
12402 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12403 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12404 if test $ac_cv_lib_dld_shl_load = yes; then
12405   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12406 else
12407   echo "$as_me:$LINENO: checking for dlopen" >&5
12408 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12409 if test "${ac_cv_func_dlopen+set}" = set; then
12410   echo $ECHO_N "(cached) $ECHO_C" >&6
12411 else
12412   cat >conftest.$ac_ext <<_ACEOF
12413 /* confdefs.h.  */
12414 _ACEOF
12415 cat confdefs.h >>conftest.$ac_ext
12416 cat >>conftest.$ac_ext <<_ACEOF
12417 /* end confdefs.h.  */
12418 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12419    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12420 #define dlopen innocuous_dlopen
12421
12422 /* System header to define __stub macros and hopefully few prototypes,
12423     which can conflict with char dlopen (); below.
12424     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12425     <limits.h> exists even on freestanding compilers.  */
12426
12427 #ifdef __STDC__
12428 # include <limits.h>
12429 #else
12430 # include <assert.h>
12431 #endif
12432
12433 #undef dlopen
12434
12435 /* Override any gcc2 internal prototype to avoid an error.  */
12436 #ifdef __cplusplus
12437 extern "C"
12438 {
12439 #endif
12440 /* We use char because int might match the return type of a gcc2
12441    builtin and then its argument prototype would still apply.  */
12442 char dlopen ();
12443 /* The GNU C library defines this for functions which it implements
12444     to always fail with ENOSYS.  Some functions are actually named
12445     something starting with __ and the normal name is an alias.  */
12446 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12447 choke me
12448 #else
12449 char (*f) () = dlopen;
12450 #endif
12451 #ifdef __cplusplus
12452 }
12453 #endif
12454
12455 int
12456 main ()
12457 {
12458 return f != dlopen;
12459   ;
12460   return 0;
12461 }
12462 _ACEOF
12463 rm -f conftest.$ac_objext conftest$ac_exeext
12464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12465   (eval $ac_link) 2>conftest.er1
12466   ac_status=$?
12467   grep -v '^ *+' conftest.er1 >conftest.err
12468   rm -f conftest.er1
12469   cat conftest.err >&5
12470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471   (exit $ac_status); } &&
12472          { ac_try='test -z "$ac_cxx_werror_flag"
12473                          || test ! -s conftest.err'
12474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475   (eval $ac_try) 2>&5
12476   ac_status=$?
12477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478   (exit $ac_status); }; } &&
12479          { ac_try='test -s conftest$ac_exeext'
12480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481   (eval $ac_try) 2>&5
12482   ac_status=$?
12483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484   (exit $ac_status); }; }; then
12485   ac_cv_func_dlopen=yes
12486 else
12487   echo "$as_me: failed program was:" >&5
12488 sed 's/^/| /' conftest.$ac_ext >&5
12489
12490 ac_cv_func_dlopen=no
12491 fi
12492 rm -f conftest.err conftest.$ac_objext \
12493       conftest$ac_exeext conftest.$ac_ext
12494 fi
12495 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12496 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12497 if test $ac_cv_func_dlopen = yes; then
12498   lt_cv_dlopen="dlopen"
12499 else
12500   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12501 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12502 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12503   echo $ECHO_N "(cached) $ECHO_C" >&6
12504 else
12505   ac_check_lib_save_LIBS=$LIBS
12506 LIBS="-ldl  $LIBS"
12507 cat >conftest.$ac_ext <<_ACEOF
12508 /* confdefs.h.  */
12509 _ACEOF
12510 cat confdefs.h >>conftest.$ac_ext
12511 cat >>conftest.$ac_ext <<_ACEOF
12512 /* end confdefs.h.  */
12513
12514 /* Override any gcc2 internal prototype to avoid an error.  */
12515 #ifdef __cplusplus
12516 extern "C"
12517 #endif
12518 /* We use char because int might match the return type of a gcc2
12519    builtin and then its argument prototype would still apply.  */
12520 char dlopen ();
12521 int
12522 main ()
12523 {
12524 dlopen ();
12525   ;
12526   return 0;
12527 }
12528 _ACEOF
12529 rm -f conftest.$ac_objext conftest$ac_exeext
12530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12531   (eval $ac_link) 2>conftest.er1
12532   ac_status=$?
12533   grep -v '^ *+' conftest.er1 >conftest.err
12534   rm -f conftest.er1
12535   cat conftest.err >&5
12536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537   (exit $ac_status); } &&
12538          { ac_try='test -z "$ac_cxx_werror_flag"
12539                          || test ! -s conftest.err'
12540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541   (eval $ac_try) 2>&5
12542   ac_status=$?
12543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544   (exit $ac_status); }; } &&
12545          { ac_try='test -s conftest$ac_exeext'
12546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547   (eval $ac_try) 2>&5
12548   ac_status=$?
12549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550   (exit $ac_status); }; }; then
12551   ac_cv_lib_dl_dlopen=yes
12552 else
12553   echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12555
12556 ac_cv_lib_dl_dlopen=no
12557 fi
12558 rm -f conftest.err conftest.$ac_objext \
12559       conftest$ac_exeext conftest.$ac_ext
12560 LIBS=$ac_check_lib_save_LIBS
12561 fi
12562 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12563 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12564 if test $ac_cv_lib_dl_dlopen = yes; then
12565   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12566 else
12567   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12568 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12569 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12570   echo $ECHO_N "(cached) $ECHO_C" >&6
12571 else
12572   ac_check_lib_save_LIBS=$LIBS
12573 LIBS="-lsvld  $LIBS"
12574 cat >conftest.$ac_ext <<_ACEOF
12575 /* confdefs.h.  */
12576 _ACEOF
12577 cat confdefs.h >>conftest.$ac_ext
12578 cat >>conftest.$ac_ext <<_ACEOF
12579 /* end confdefs.h.  */
12580
12581 /* Override any gcc2 internal prototype to avoid an error.  */
12582 #ifdef __cplusplus
12583 extern "C"
12584 #endif
12585 /* We use char because int might match the return type of a gcc2
12586    builtin and then its argument prototype would still apply.  */
12587 char dlopen ();
12588 int
12589 main ()
12590 {
12591 dlopen ();
12592   ;
12593   return 0;
12594 }
12595 _ACEOF
12596 rm -f conftest.$ac_objext conftest$ac_exeext
12597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12598   (eval $ac_link) 2>conftest.er1
12599   ac_status=$?
12600   grep -v '^ *+' conftest.er1 >conftest.err
12601   rm -f conftest.er1
12602   cat conftest.err >&5
12603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604   (exit $ac_status); } &&
12605          { ac_try='test -z "$ac_cxx_werror_flag"
12606                          || test ! -s conftest.err'
12607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12608   (eval $ac_try) 2>&5
12609   ac_status=$?
12610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611   (exit $ac_status); }; } &&
12612          { ac_try='test -s conftest$ac_exeext'
12613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12614   (eval $ac_try) 2>&5
12615   ac_status=$?
12616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617   (exit $ac_status); }; }; then
12618   ac_cv_lib_svld_dlopen=yes
12619 else
12620   echo "$as_me: failed program was:" >&5
12621 sed 's/^/| /' conftest.$ac_ext >&5
12622
12623 ac_cv_lib_svld_dlopen=no
12624 fi
12625 rm -f conftest.err conftest.$ac_objext \
12626       conftest$ac_exeext conftest.$ac_ext
12627 LIBS=$ac_check_lib_save_LIBS
12628 fi
12629 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12630 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12631 if test $ac_cv_lib_svld_dlopen = yes; then
12632   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12633 else
12634   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12635 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12636 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12637   echo $ECHO_N "(cached) $ECHO_C" >&6
12638 else
12639   ac_check_lib_save_LIBS=$LIBS
12640 LIBS="-ldld  $LIBS"
12641 cat >conftest.$ac_ext <<_ACEOF
12642 /* confdefs.h.  */
12643 _ACEOF
12644 cat confdefs.h >>conftest.$ac_ext
12645 cat >>conftest.$ac_ext <<_ACEOF
12646 /* end confdefs.h.  */
12647
12648 /* Override any gcc2 internal prototype to avoid an error.  */
12649 #ifdef __cplusplus
12650 extern "C"
12651 #endif
12652 /* We use char because int might match the return type of a gcc2
12653    builtin and then its argument prototype would still apply.  */
12654 char dld_link ();
12655 int
12656 main ()
12657 {
12658 dld_link ();
12659   ;
12660   return 0;
12661 }
12662 _ACEOF
12663 rm -f conftest.$ac_objext conftest$ac_exeext
12664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12665   (eval $ac_link) 2>conftest.er1
12666   ac_status=$?
12667   grep -v '^ *+' conftest.er1 >conftest.err
12668   rm -f conftest.er1
12669   cat conftest.err >&5
12670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671   (exit $ac_status); } &&
12672          { ac_try='test -z "$ac_cxx_werror_flag"
12673                          || test ! -s conftest.err'
12674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675   (eval $ac_try) 2>&5
12676   ac_status=$?
12677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678   (exit $ac_status); }; } &&
12679          { ac_try='test -s conftest$ac_exeext'
12680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681   (eval $ac_try) 2>&5
12682   ac_status=$?
12683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684   (exit $ac_status); }; }; then
12685   ac_cv_lib_dld_dld_link=yes
12686 else
12687   echo "$as_me: failed program was:" >&5
12688 sed 's/^/| /' conftest.$ac_ext >&5
12689
12690 ac_cv_lib_dld_dld_link=no
12691 fi
12692 rm -f conftest.err conftest.$ac_objext \
12693       conftest$ac_exeext conftest.$ac_ext
12694 LIBS=$ac_check_lib_save_LIBS
12695 fi
12696 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12697 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12698 if test $ac_cv_lib_dld_dld_link = yes; then
12699   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12700 fi
12701
12702
12703 fi
12704
12705
12706 fi
12707
12708
12709 fi
12710
12711
12712 fi
12713
12714
12715 fi
12716
12717     ;;
12718   esac
12719
12720   if test "x$lt_cv_dlopen" != xno; then
12721     enable_dlopen=yes
12722   else
12723     enable_dlopen=no
12724   fi
12725
12726   case $lt_cv_dlopen in
12727   dlopen)
12728     save_CPPFLAGS="$CPPFLAGS"
12729     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12730
12731     save_LDFLAGS="$LDFLAGS"
12732     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12733
12734     save_LIBS="$LIBS"
12735     LIBS="$lt_cv_dlopen_libs $LIBS"
12736
12737     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12738 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12739 if test "${lt_cv_dlopen_self+set}" = set; then
12740   echo $ECHO_N "(cached) $ECHO_C" >&6
12741 else
12742           if test "$cross_compiling" = yes; then :
12743   lt_cv_dlopen_self=cross
12744 else
12745   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12746   lt_status=$lt_dlunknown
12747   cat > conftest.$ac_ext <<EOF
12748 #line 12748 "configure"
12749 #include "confdefs.h"
12750
12751 #if HAVE_DLFCN_H
12752 #include <dlfcn.h>
12753 #endif
12754
12755 #include <stdio.h>
12756
12757 #ifdef RTLD_GLOBAL
12758 #  define LT_DLGLOBAL           RTLD_GLOBAL
12759 #else
12760 #  ifdef DL_GLOBAL
12761 #    define LT_DLGLOBAL         DL_GLOBAL
12762 #  else
12763 #    define LT_DLGLOBAL         0
12764 #  endif
12765 #endif
12766
12767 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12768    find out it does not work in some platform. */
12769 #ifndef LT_DLLAZY_OR_NOW
12770 #  ifdef RTLD_LAZY
12771 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12772 #  else
12773 #    ifdef DL_LAZY
12774 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12775 #    else
12776 #      ifdef RTLD_NOW
12777 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12778 #      else
12779 #        ifdef DL_NOW
12780 #          define LT_DLLAZY_OR_NOW      DL_NOW
12781 #        else
12782 #          define LT_DLLAZY_OR_NOW      0
12783 #        endif
12784 #      endif
12785 #    endif
12786 #  endif
12787 #endif
12788
12789 #ifdef __cplusplus
12790 extern "C" void exit (int);
12791 #endif
12792
12793 void fnord() { int i=42;}
12794 int main ()
12795 {
12796   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12797   int status = $lt_dlunknown;
12798
12799   if (self)
12800     {
12801       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12802       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12803       /* dlclose (self); */
12804     }
12805
12806     exit (status);
12807 }
12808 EOF
12809   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12810   (eval $ac_link) 2>&5
12811   ac_status=$?
12812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12814     (./conftest; exit; ) 2>/dev/null
12815     lt_status=$?
12816     case x$lt_status in
12817       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12818       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12819       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12820     esac
12821   else :
12822     # compilation failed
12823     lt_cv_dlopen_self=no
12824   fi
12825 fi
12826 rm -fr conftest*
12827
12828
12829 fi
12830 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12831 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12832
12833     if test "x$lt_cv_dlopen_self" = xyes; then
12834       LDFLAGS="$LDFLAGS $link_static_flag"
12835       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12836 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12837 if test "${lt_cv_dlopen_self_static+set}" = set; then
12838   echo $ECHO_N "(cached) $ECHO_C" >&6
12839 else
12840           if test "$cross_compiling" = yes; then :
12841   lt_cv_dlopen_self_static=cross
12842 else
12843   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12844   lt_status=$lt_dlunknown
12845   cat > conftest.$ac_ext <<EOF
12846 #line 12846 "configure"
12847 #include "confdefs.h"
12848
12849 #if HAVE_DLFCN_H
12850 #include <dlfcn.h>
12851 #endif
12852
12853 #include <stdio.h>
12854
12855 #ifdef RTLD_GLOBAL
12856 #  define LT_DLGLOBAL           RTLD_GLOBAL
12857 #else
12858 #  ifdef DL_GLOBAL
12859 #    define LT_DLGLOBAL         DL_GLOBAL
12860 #  else
12861 #    define LT_DLGLOBAL         0
12862 #  endif
12863 #endif
12864
12865 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12866    find out it does not work in some platform. */
12867 #ifndef LT_DLLAZY_OR_NOW
12868 #  ifdef RTLD_LAZY
12869 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12870 #  else
12871 #    ifdef DL_LAZY
12872 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12873 #    else
12874 #      ifdef RTLD_NOW
12875 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12876 #      else
12877 #        ifdef DL_NOW
12878 #          define LT_DLLAZY_OR_NOW      DL_NOW
12879 #        else
12880 #          define LT_DLLAZY_OR_NOW      0
12881 #        endif
12882 #      endif
12883 #    endif
12884 #  endif
12885 #endif
12886
12887 #ifdef __cplusplus
12888 extern "C" void exit (int);
12889 #endif
12890
12891 void fnord() { int i=42;}
12892 int main ()
12893 {
12894   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12895   int status = $lt_dlunknown;
12896
12897   if (self)
12898     {
12899       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12900       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12901       /* dlclose (self); */
12902     }
12903
12904     exit (status);
12905 }
12906 EOF
12907   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12908   (eval $ac_link) 2>&5
12909   ac_status=$?
12910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12912     (./conftest; exit; ) 2>/dev/null
12913     lt_status=$?
12914     case x$lt_status in
12915       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12916       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12917       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12918     esac
12919   else :
12920     # compilation failed
12921     lt_cv_dlopen_self_static=no
12922   fi
12923 fi
12924 rm -fr conftest*
12925
12926
12927 fi
12928 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12929 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12930     fi
12931
12932     CPPFLAGS="$save_CPPFLAGS"
12933     LDFLAGS="$save_LDFLAGS"
12934     LIBS="$save_LIBS"
12935     ;;
12936   esac
12937
12938   case $lt_cv_dlopen_self in
12939   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12940   *) enable_dlopen_self=unknown ;;
12941   esac
12942
12943   case $lt_cv_dlopen_self_static in
12944   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12945   *) enable_dlopen_self_static=unknown ;;
12946   esac
12947 fi
12948
12949
12950 # The else clause should only fire when bootstrapping the
12951 # libtool distribution, otherwise you forgot to ship ltmain.sh
12952 # with your package, and you will get complaints that there are
12953 # no rules to generate ltmain.sh.
12954 if test -f "$ltmain"; then
12955   # See if we are running on zsh, and set the options which allow our commands through
12956   # without removal of \ escapes.
12957   if test -n "${ZSH_VERSION+set}" ; then
12958     setopt NO_GLOB_SUBST
12959   fi
12960   # Now quote all the things that may contain metacharacters while being
12961   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12962   # variables and quote the copies for generation of the libtool script.
12963   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12964     SED SHELL STRIP \
12965     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12966     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12967     deplibs_check_method reload_flag reload_cmds need_locks \
12968     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12969     lt_cv_sys_global_symbol_to_c_name_address \
12970     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12971     old_postinstall_cmds old_postuninstall_cmds \
12972     compiler_CXX \
12973     CC_CXX \
12974     LD_CXX \
12975     lt_prog_compiler_wl_CXX \
12976     lt_prog_compiler_pic_CXX \
12977     lt_prog_compiler_static_CXX \
12978     lt_prog_compiler_no_builtin_flag_CXX \
12979     export_dynamic_flag_spec_CXX \
12980     thread_safe_flag_spec_CXX \
12981     whole_archive_flag_spec_CXX \
12982     enable_shared_with_static_runtimes_CXX \
12983     old_archive_cmds_CXX \
12984     old_archive_from_new_cmds_CXX \
12985     predep_objects_CXX \
12986     postdep_objects_CXX \
12987     predeps_CXX \
12988     postdeps_CXX \
12989     compiler_lib_search_path_CXX \
12990     archive_cmds_CXX \
12991     archive_expsym_cmds_CXX \
12992     postinstall_cmds_CXX \
12993     postuninstall_cmds_CXX \
12994     old_archive_from_expsyms_cmds_CXX \
12995     allow_undefined_flag_CXX \
12996     no_undefined_flag_CXX \
12997     export_symbols_cmds_CXX \
12998     hardcode_libdir_flag_spec_CXX \
12999     hardcode_libdir_flag_spec_ld_CXX \
13000     hardcode_libdir_separator_CXX \
13001     hardcode_automatic_CXX \
13002     module_cmds_CXX \
13003     module_expsym_cmds_CXX \
13004     lt_cv_prog_compiler_c_o_CXX \
13005     exclude_expsyms_CXX \
13006     include_expsyms_CXX; do
13007
13008     case $var in
13009     old_archive_cmds_CXX | \
13010     old_archive_from_new_cmds_CXX | \
13011     archive_cmds_CXX | \
13012     archive_expsym_cmds_CXX | \
13013     module_cmds_CXX | \
13014     module_expsym_cmds_CXX | \
13015     old_archive_from_expsyms_cmds_CXX | \
13016     export_symbols_cmds_CXX | \
13017     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13018     postinstall_cmds | postuninstall_cmds | \
13019     old_postinstall_cmds | old_postuninstall_cmds | \
13020     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13021       # Double-quote double-evaled strings.
13022       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13023       ;;
13024     *)
13025       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13026       ;;
13027     esac
13028   done
13029
13030   case $lt_echo in
13031   *'\$0 --fallback-echo"')
13032     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13033     ;;
13034   esac
13035
13036 cfgfile="$ofile"
13037
13038   cat <<__EOF__ >> "$cfgfile"
13039 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13040
13041 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13042
13043 # Shell to use when invoking shell scripts.
13044 SHELL=$lt_SHELL
13045
13046 # Whether or not to build shared libraries.
13047 build_libtool_libs=$enable_shared
13048
13049 # Whether or not to build static libraries.
13050 build_old_libs=$enable_static
13051
13052 # Whether or not to add -lc for building shared libraries.
13053 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13054
13055 # Whether or not to disallow shared libs when runtime libs are static
13056 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13057
13058 # Whether or not to optimize for fast installation.
13059 fast_install=$enable_fast_install
13060
13061 # The host system.
13062 host_alias=$host_alias
13063 host=$host
13064 host_os=$host_os
13065
13066 # The build system.
13067 build_alias=$build_alias
13068 build=$build
13069 build_os=$build_os
13070
13071 # An echo program that does not interpret backslashes.
13072 echo=$lt_echo
13073
13074 # The archiver.
13075 AR=$lt_AR
13076 AR_FLAGS=$lt_AR_FLAGS
13077
13078 # A C compiler.
13079 LTCC=$lt_LTCC
13080
13081 # A language-specific compiler.
13082 CC=$lt_compiler_CXX
13083
13084 # Is the compiler the GNU C compiler?
13085 with_gcc=$GCC_CXX
13086
13087 # An ERE matcher.
13088 EGREP=$lt_EGREP
13089
13090 # The linker used to build libraries.
13091 LD=$lt_LD_CXX
13092
13093 # Whether we need hard or soft links.
13094 LN_S=$lt_LN_S
13095
13096 # A BSD-compatible nm program.
13097 NM=$lt_NM
13098
13099 # A symbol stripping program
13100 STRIP=$lt_STRIP
13101
13102 # Used to examine libraries when file_magic_cmd begins "file"
13103 MAGIC_CMD=$MAGIC_CMD
13104
13105 # Used on cygwin: DLL creation program.
13106 DLLTOOL="$DLLTOOL"
13107
13108 # Used on cygwin: object dumper.
13109 OBJDUMP="$OBJDUMP"
13110
13111 # Used on cygwin: assembler.
13112 AS="$AS"
13113
13114 # The name of the directory that contains temporary libtool files.
13115 objdir=$objdir
13116
13117 # How to create reloadable object files.
13118 reload_flag=$lt_reload_flag
13119 reload_cmds=$lt_reload_cmds
13120
13121 # How to pass a linker flag through the compiler.
13122 wl=$lt_lt_prog_compiler_wl_CXX
13123
13124 # Object file suffix (normally "o").
13125 objext="$ac_objext"
13126
13127 # Old archive suffix (normally "a").
13128 libext="$libext"
13129
13130 # Shared library suffix (normally ".so").
13131 shrext_cmds='$shrext_cmds'
13132
13133 # Executable file suffix (normally "").
13134 exeext="$exeext"
13135
13136 # Additional compiler flags for building library objects.
13137 pic_flag=$lt_lt_prog_compiler_pic_CXX
13138 pic_mode=$pic_mode
13139
13140 # What is the maximum length of a command?
13141 max_cmd_len=$lt_cv_sys_max_cmd_len
13142
13143 # Does compiler simultaneously support -c and -o options?
13144 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13145
13146 # Must we lock files when doing compilation?
13147 need_locks=$lt_need_locks
13148
13149 # Do we need the lib prefix for modules?
13150 need_lib_prefix=$need_lib_prefix
13151
13152 # Do we need a version for libraries?
13153 need_version=$need_version
13154
13155 # Whether dlopen is supported.
13156 dlopen_support=$enable_dlopen
13157
13158 # Whether dlopen of programs is supported.
13159 dlopen_self=$enable_dlopen_self
13160
13161 # Whether dlopen of statically linked programs is supported.
13162 dlopen_self_static=$enable_dlopen_self_static
13163
13164 # Compiler flag to prevent dynamic linking.
13165 link_static_flag=$lt_lt_prog_compiler_static_CXX
13166
13167 # Compiler flag to turn off builtin functions.
13168 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13169
13170 # Compiler flag to allow reflexive dlopens.
13171 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13172
13173 # Compiler flag to generate shared objects directly from archives.
13174 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13175
13176 # Compiler flag to generate thread-safe objects.
13177 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13178
13179 # Library versioning type.
13180 version_type=$version_type
13181
13182 # Format of library name prefix.
13183 libname_spec=$lt_libname_spec
13184
13185 # List of archive names.  First name is the real one, the rest are links.
13186 # The last name is the one that the linker finds with -lNAME.
13187 library_names_spec=$lt_library_names_spec
13188
13189 # The coded name of the library, if different from the real name.
13190 soname_spec=$lt_soname_spec
13191
13192 # Commands used to build and install an old-style archive.
13193 RANLIB=$lt_RANLIB
13194 old_archive_cmds=$lt_old_archive_cmds_CXX
13195 old_postinstall_cmds=$lt_old_postinstall_cmds
13196 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13197
13198 # Create an old-style archive from a shared archive.
13199 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13200
13201 # Create a temporary old-style archive to link instead of a shared archive.
13202 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13203
13204 # Commands used to build and install a shared archive.
13205 archive_cmds=$lt_archive_cmds_CXX
13206 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13207 postinstall_cmds=$lt_postinstall_cmds
13208 postuninstall_cmds=$lt_postuninstall_cmds
13209
13210 # Commands used to build a loadable module (assumed same as above if empty)
13211 module_cmds=$lt_module_cmds_CXX
13212 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13213
13214 # Commands to strip libraries.
13215 old_striplib=$lt_old_striplib
13216 striplib=$lt_striplib
13217
13218 # Dependencies to place before the objects being linked to create a
13219 # shared library.
13220 predep_objects=$lt_predep_objects_CXX
13221
13222 # Dependencies to place after the objects being linked to create a
13223 # shared library.
13224 postdep_objects=$lt_postdep_objects_CXX
13225
13226 # Dependencies to place before the objects being linked to create a
13227 # shared library.
13228 predeps=$lt_predeps_CXX
13229
13230 # Dependencies to place after the objects being linked to create a
13231 # shared library.
13232 postdeps=$lt_postdeps_CXX
13233
13234 # The library search path used internally by the compiler when linking
13235 # a shared library.
13236 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13237
13238 # Method to check whether dependent libraries are shared objects.
13239 deplibs_check_method=$lt_deplibs_check_method
13240
13241 # Command to use when deplibs_check_method == file_magic.
13242 file_magic_cmd=$lt_file_magic_cmd
13243
13244 # Flag that allows shared libraries with undefined symbols to be built.
13245 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13246
13247 # Flag that forces no undefined symbols.
13248 no_undefined_flag=$lt_no_undefined_flag_CXX
13249
13250 # Commands used to finish a libtool library installation in a directory.
13251 finish_cmds=$lt_finish_cmds
13252
13253 # Same as above, but a single script fragment to be evaled but not shown.
13254 finish_eval=$lt_finish_eval
13255
13256 # Take the output of nm and produce a listing of raw symbols and C names.
13257 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13258
13259 # Transform the output of nm in a proper C declaration
13260 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13261
13262 # Transform the output of nm in a C name address pair
13263 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13264
13265 # This is the shared library runtime path variable.
13266 runpath_var=$runpath_var
13267
13268 # This is the shared library path variable.
13269 shlibpath_var=$shlibpath_var
13270
13271 # Is shlibpath searched before the hard-coded library search path?
13272 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13273
13274 # How to hardcode a shared library path into an executable.
13275 hardcode_action=$hardcode_action_CXX
13276
13277 # Whether we should hardcode library paths into libraries.
13278 hardcode_into_libs=$hardcode_into_libs
13279
13280 # Flag to hardcode \$libdir into a binary during linking.
13281 # This must work even if \$libdir does not exist.
13282 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13283
13284 # If ld is used when linking, flag to hardcode \$libdir into
13285 # a binary during linking. This must work even if \$libdir does
13286 # not exist.
13287 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13288
13289 # Whether we need a single -rpath flag with a separated argument.
13290 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13291
13292 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13293 # resulting binary.
13294 hardcode_direct=$hardcode_direct_CXX
13295
13296 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13297 # resulting binary.
13298 hardcode_minus_L=$hardcode_minus_L_CXX
13299
13300 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13301 # the resulting binary.
13302 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13303
13304 # Set to yes if building a shared library automatically hardcodes DIR into the library
13305 # and all subsequent libraries and executables linked against it.
13306 hardcode_automatic=$hardcode_automatic_CXX
13307
13308 # Variables whose values should be saved in libtool wrapper scripts and
13309 # restored at relink time.
13310 variables_saved_for_relink="$variables_saved_for_relink"
13311
13312 # Whether libtool must link a program against all its dependency libraries.
13313 link_all_deplibs=$link_all_deplibs_CXX
13314
13315 # Compile-time system search path for libraries
13316 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13317
13318 # Run-time system search path for libraries
13319 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13320
13321 # Fix the shell variable \$srcfile for the compiler.
13322 fix_srcfile_path="$fix_srcfile_path_CXX"
13323
13324 # Set to yes if exported symbols are required.
13325 always_export_symbols=$always_export_symbols_CXX
13326
13327 # The commands to list exported symbols.
13328 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13329
13330 # The commands to extract the exported symbol list from a shared archive.
13331 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13332
13333 # Symbols that should not be listed in the preloaded symbols.
13334 exclude_expsyms=$lt_exclude_expsyms_CXX
13335
13336 # Symbols that must always be exported.
13337 include_expsyms=$lt_include_expsyms_CXX
13338
13339 # ### END LIBTOOL TAG CONFIG: $tagname
13340
13341 __EOF__
13342
13343
13344 else
13345   # If there is no Makefile yet, we rely on a make rule to execute
13346   # `config.status --recheck' to rerun these tests and create the
13347   # libtool script then.
13348   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13349   if test -f "$ltmain_in"; then
13350     test -f Makefile && make "$ltmain"
13351   fi
13352 fi
13353
13354
13355 ac_ext=c
13356 ac_cpp='$CPP $CPPFLAGS'
13357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13360
13361 CC=$lt_save_CC
13362 LDCXX=$LD
13363 LD=$lt_save_LD
13364 GCC=$lt_save_GCC
13365 with_gnu_ldcxx=$with_gnu_ld
13366 with_gnu_ld=$lt_save_with_gnu_ld
13367 lt_cv_path_LDCXX=$lt_cv_path_LD
13368 lt_cv_path_LD=$lt_save_path_LD
13369 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13370 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13371
13372         else
13373           tagname=""
13374         fi
13375         ;;
13376
13377       F77)
13378         if test -n "$F77" && test "X$F77" != "Xno"; then
13379
13380 ac_ext=f
13381 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13382 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13383 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13384
13385
13386 archive_cmds_need_lc_F77=no
13387 allow_undefined_flag_F77=
13388 always_export_symbols_F77=no
13389 archive_expsym_cmds_F77=
13390 export_dynamic_flag_spec_F77=
13391 hardcode_direct_F77=no
13392 hardcode_libdir_flag_spec_F77=
13393 hardcode_libdir_flag_spec_ld_F77=
13394 hardcode_libdir_separator_F77=
13395 hardcode_minus_L_F77=no
13396 hardcode_automatic_F77=no
13397 module_cmds_F77=
13398 module_expsym_cmds_F77=
13399 link_all_deplibs_F77=unknown
13400 old_archive_cmds_F77=$old_archive_cmds
13401 no_undefined_flag_F77=
13402 whole_archive_flag_spec_F77=
13403 enable_shared_with_static_runtimes_F77=no
13404
13405 # Source file extension for f77 test sources.
13406 ac_ext=f
13407
13408 # Object file extension for compiled f77 test sources.
13409 objext=o
13410 objext_F77=$objext
13411
13412 # Code to be used in simple compile tests
13413 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13414
13415 # Code to be used in simple link tests
13416 lt_simple_link_test_code="      program t\n      end\n"
13417
13418 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13419
13420 # If no C compiler was specified, use CC.
13421 LTCC=${LTCC-"$CC"}
13422
13423 # Allow CC to be a program name with arguments.
13424 compiler=$CC
13425
13426
13427 # save warnings/boilerplate of simple test code
13428 ac_outfile=conftest.$ac_objext
13429 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13430 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13431 _lt_compiler_boilerplate=`cat conftest.err`
13432 $rm conftest*
13433
13434 ac_outfile=conftest.$ac_objext
13435 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13436 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13437 _lt_linker_boilerplate=`cat conftest.err`
13438 $rm conftest*
13439
13440
13441 # Allow CC to be a program name with arguments.
13442 lt_save_CC="$CC"
13443 CC=${F77-"f77"}
13444 compiler=$CC
13445 compiler_F77=$CC
13446 for cc_temp in $compiler""; do
13447   case $cc_temp in
13448     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13449     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13450     \-*) ;;
13451     *) break;;
13452   esac
13453 done
13454 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13455
13456
13457 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13458 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13459 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13460 echo "${ECHO_T}$can_build_shared" >&6
13461
13462 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13463 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13464 test "$can_build_shared" = "no" && enable_shared=no
13465
13466 # On AIX, shared libraries and static libraries use the same namespace, and
13467 # are all built from PIC.
13468 case "$host_os" in
13469 aix3*)
13470   test "$enable_shared" = yes && enable_static=no
13471   if test -n "$RANLIB"; then
13472     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13473     postinstall_cmds='$RANLIB $lib'
13474   fi
13475   ;;
13476 aix4* | aix5*)
13477   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13478     test "$enable_shared" = yes && enable_static=no
13479   fi
13480   ;;
13481 esac
13482 echo "$as_me:$LINENO: result: $enable_shared" >&5
13483 echo "${ECHO_T}$enable_shared" >&6
13484
13485 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13486 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13487 # Make sure either enable_shared or enable_static is yes.
13488 test "$enable_shared" = yes || enable_static=yes
13489 echo "$as_me:$LINENO: result: $enable_static" >&5
13490 echo "${ECHO_T}$enable_static" >&6
13491
13492 test "$ld_shlibs_F77" = no && can_build_shared=no
13493
13494 GCC_F77="$G77"
13495 LD_F77="$LD"
13496
13497 lt_prog_compiler_wl_F77=
13498 lt_prog_compiler_pic_F77=
13499 lt_prog_compiler_static_F77=
13500
13501 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13502 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13503
13504   if test "$GCC" = yes; then
13505     lt_prog_compiler_wl_F77='-Wl,'
13506     lt_prog_compiler_static_F77='-static'
13507
13508     case $host_os in
13509       aix*)
13510       # All AIX code is PIC.
13511       if test "$host_cpu" = ia64; then
13512         # AIX 5 now supports IA64 processor
13513         lt_prog_compiler_static_F77='-Bstatic'
13514       fi
13515       ;;
13516
13517     amigaos*)
13518       # FIXME: we need at least 68020 code to build shared libraries, but
13519       # adding the `-m68020' flag to GCC prevents building anything better,
13520       # like `-m68040'.
13521       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13522       ;;
13523
13524     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13525       # PIC is the default for these OSes.
13526       ;;
13527
13528     mingw* | pw32* | os2*)
13529       # This hack is so that the source file can tell whether it is being
13530       # built for inclusion in a dll (and should export symbols for example).
13531       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13532       ;;
13533
13534     darwin* | rhapsody*)
13535       # PIC is the default on this platform
13536       # Common symbols not allowed in MH_DYLIB files
13537       lt_prog_compiler_pic_F77='-fno-common'
13538       ;;
13539
13540     msdosdjgpp*)
13541       # Just because we use GCC doesn't mean we suddenly get shared libraries
13542       # on systems that don't support them.
13543       lt_prog_compiler_can_build_shared_F77=no
13544       enable_shared=no
13545       ;;
13546
13547     sysv4*MP*)
13548       if test -d /usr/nec; then
13549         lt_prog_compiler_pic_F77=-Kconform_pic
13550       fi
13551       ;;
13552
13553     hpux*)
13554       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13555       # not for PA HP-UX.
13556       case "$host_cpu" in
13557       hppa*64*|ia64*)
13558         # +Z the default
13559         ;;
13560       *)
13561         lt_prog_compiler_pic_F77='-fPIC'
13562         ;;
13563       esac
13564       ;;
13565
13566     *)
13567       lt_prog_compiler_pic_F77='-fPIC'
13568       ;;
13569     esac
13570   else
13571     # PORTME Check for flag to pass linker flags through the system compiler.
13572     case $host_os in
13573     aix*)
13574       lt_prog_compiler_wl_F77='-Wl,'
13575       if test "$host_cpu" = ia64; then
13576         # AIX 5 now supports IA64 processor
13577         lt_prog_compiler_static_F77='-Bstatic'
13578       else
13579         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13580       fi
13581       ;;
13582       darwin*)
13583         # PIC is the default on this platform
13584         # Common symbols not allowed in MH_DYLIB files
13585        case $cc_basename in
13586          xlc*)
13587          lt_prog_compiler_pic_F77='-qnocommon'
13588          lt_prog_compiler_wl_F77='-Wl,'
13589          ;;
13590        esac
13591        ;;
13592
13593     mingw* | pw32* | os2*)
13594       # This hack is so that the source file can tell whether it is being
13595       # built for inclusion in a dll (and should export symbols for example).
13596       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13597       ;;
13598
13599     hpux9* | hpux10* | hpux11*)
13600       lt_prog_compiler_wl_F77='-Wl,'
13601       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13602       # not for PA HP-UX.
13603       case "$host_cpu" in
13604       hppa*64*|ia64*)
13605         # +Z the default
13606         ;;
13607       *)
13608         lt_prog_compiler_pic_F77='+Z'
13609         ;;
13610       esac
13611       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13612       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13613       ;;
13614
13615     irix5* | irix6* | nonstopux*)
13616       lt_prog_compiler_wl_F77='-Wl,'
13617       # PIC (with -KPIC) is the default.
13618       lt_prog_compiler_static_F77='-non_shared'
13619       ;;
13620
13621     newsos6)
13622       lt_prog_compiler_pic_F77='-KPIC'
13623       lt_prog_compiler_static_F77='-Bstatic'
13624       ;;
13625
13626     linux*)
13627       case $cc_basename in
13628       icc* | ecc*)
13629         lt_prog_compiler_wl_F77='-Wl,'
13630         lt_prog_compiler_pic_F77='-KPIC'
13631         lt_prog_compiler_static_F77='-static'
13632         ;;
13633       pgcc* | pgf77* | pgf90*)
13634         # Portland Group compilers (*not* the Pentium gcc compiler,
13635         # which looks to be a dead project)
13636         lt_prog_compiler_wl_F77='-Wl,'
13637         lt_prog_compiler_pic_F77='-fpic'
13638         lt_prog_compiler_static_F77='-static'
13639         ;;
13640       ccc*)
13641         lt_prog_compiler_wl_F77='-Wl,'
13642         # All Alpha code is PIC.
13643         lt_prog_compiler_static_F77='-non_shared'
13644         ;;
13645       esac
13646       ;;
13647
13648     osf3* | osf4* | osf5*)
13649       lt_prog_compiler_wl_F77='-Wl,'
13650       # All OSF/1 code is PIC.
13651       lt_prog_compiler_static_F77='-non_shared'
13652       ;;
13653
13654     sco3.2v5*)
13655       lt_prog_compiler_pic_F77='-Kpic'
13656       lt_prog_compiler_static_F77='-dn'
13657       ;;
13658
13659     solaris*)
13660       lt_prog_compiler_pic_F77='-KPIC'
13661       lt_prog_compiler_static_F77='-Bstatic'
13662       case $cc_basename in
13663       f77* | f90* | f95*)
13664         lt_prog_compiler_wl_F77='-Qoption ld ';;
13665       *)
13666         lt_prog_compiler_wl_F77='-Wl,';;
13667       esac
13668       ;;
13669
13670     sunos4*)
13671       lt_prog_compiler_wl_F77='-Qoption ld '
13672       lt_prog_compiler_pic_F77='-PIC'
13673       lt_prog_compiler_static_F77='-Bstatic'
13674       ;;
13675
13676     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13677       lt_prog_compiler_wl_F77='-Wl,'
13678       lt_prog_compiler_pic_F77='-KPIC'
13679       lt_prog_compiler_static_F77='-Bstatic'
13680       ;;
13681
13682     sysv4*MP*)
13683       if test -d /usr/nec ;then
13684         lt_prog_compiler_pic_F77='-Kconform_pic'
13685         lt_prog_compiler_static_F77='-Bstatic'
13686       fi
13687       ;;
13688
13689     unicos*)
13690       lt_prog_compiler_wl_F77='-Wl,'
13691       lt_prog_compiler_can_build_shared_F77=no
13692       ;;
13693
13694     uts4*)
13695       lt_prog_compiler_pic_F77='-pic'
13696       lt_prog_compiler_static_F77='-Bstatic'
13697       ;;
13698
13699     *)
13700       lt_prog_compiler_can_build_shared_F77=no
13701       ;;
13702     esac
13703   fi
13704
13705 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13706 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13707
13708 #
13709 # Check to make sure the PIC flag actually works.
13710 #
13711 if test -n "$lt_prog_compiler_pic_F77"; then
13712
13713 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13714 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13715 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13716   echo $ECHO_N "(cached) $ECHO_C" >&6
13717 else
13718   lt_prog_compiler_pic_works_F77=no
13719   ac_outfile=conftest.$ac_objext
13720    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13721    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13722    # Insert the option either (1) after the last *FLAGS variable, or
13723    # (2) before a word containing "conftest.", or (3) at the end.
13724    # Note that $ac_compile itself does not contain backslashes and begins
13725    # with a dollar sign (not a hyphen), so the echo should work correctly.
13726    # The option is referenced via a variable to avoid confusing sed.
13727    lt_compile=`echo "$ac_compile" | $SED \
13728    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13729    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13730    -e 's:$: $lt_compiler_flag:'`
13731    (eval echo "\"\$as_me:13731: $lt_compile\"" >&5)
13732    (eval "$lt_compile" 2>conftest.err)
13733    ac_status=$?
13734    cat conftest.err >&5
13735    echo "$as_me:13735: \$? = $ac_status" >&5
13736    if (exit $ac_status) && test -s "$ac_outfile"; then
13737      # The compiler can only warn and ignore the option if not recognized
13738      # So say no if there are warnings other than the usual output.
13739      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13740      $SED '/^$/d' conftest.err >conftest.er2
13741      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13742        lt_prog_compiler_pic_works_F77=yes
13743      fi
13744    fi
13745    $rm conftest*
13746
13747 fi
13748 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13749 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13750
13751 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13752     case $lt_prog_compiler_pic_F77 in
13753      "" | " "*) ;;
13754      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13755      esac
13756 else
13757     lt_prog_compiler_pic_F77=
13758      lt_prog_compiler_can_build_shared_F77=no
13759 fi
13760
13761 fi
13762 case "$host_os" in
13763   # For platforms which do not support PIC, -DPIC is meaningless:
13764   *djgpp*)
13765     lt_prog_compiler_pic_F77=
13766     ;;
13767   *)
13768     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13769     ;;
13770 esac
13771
13772 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13773 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13774 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13775   echo $ECHO_N "(cached) $ECHO_C" >&6
13776 else
13777   lt_cv_prog_compiler_c_o_F77=no
13778    $rm -r conftest 2>/dev/null
13779    mkdir conftest
13780    cd conftest
13781    mkdir out
13782    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13783
13784    lt_compiler_flag="-o out/conftest2.$ac_objext"
13785    # Insert the option either (1) after the last *FLAGS variable, or
13786    # (2) before a word containing "conftest.", or (3) at the end.
13787    # Note that $ac_compile itself does not contain backslashes and begins
13788    # with a dollar sign (not a hyphen), so the echo should work correctly.
13789    lt_compile=`echo "$ac_compile" | $SED \
13790    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13791    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13792    -e 's:$: $lt_compiler_flag:'`
13793    (eval echo "\"\$as_me:13793: $lt_compile\"" >&5)
13794    (eval "$lt_compile" 2>out/conftest.err)
13795    ac_status=$?
13796    cat out/conftest.err >&5
13797    echo "$as_me:13797: \$? = $ac_status" >&5
13798    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13799    then
13800      # The compiler can only warn and ignore the option if not recognized
13801      # So say no if there are warnings
13802      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13803      $SED '/^$/d' out/conftest.err >out/conftest.er2
13804      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13805        lt_cv_prog_compiler_c_o_F77=yes
13806      fi
13807    fi
13808    chmod u+w .
13809    $rm conftest*
13810    # SGI C++ compiler will create directory out/ii_files/ for
13811    # template instantiation
13812    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13813    $rm out/* && rmdir out
13814    cd ..
13815    rmdir conftest
13816    $rm conftest*
13817
13818 fi
13819 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13820 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13821
13822
13823 hard_links="nottested"
13824 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13825   # do not overwrite the value of need_locks provided by the user
13826   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13827 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13828   hard_links=yes
13829   $rm conftest*
13830   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13831   touch conftest.a
13832   ln conftest.a conftest.b 2>&5 || hard_links=no
13833   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13834   echo "$as_me:$LINENO: result: $hard_links" >&5
13835 echo "${ECHO_T}$hard_links" >&6
13836   if test "$hard_links" = no; then
13837     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13838 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13839     need_locks=warn
13840   fi
13841 else
13842   need_locks=no
13843 fi
13844
13845 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13846 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13847
13848   runpath_var=
13849   allow_undefined_flag_F77=
13850   enable_shared_with_static_runtimes_F77=no
13851   archive_cmds_F77=
13852   archive_expsym_cmds_F77=
13853   old_archive_From_new_cmds_F77=
13854   old_archive_from_expsyms_cmds_F77=
13855   export_dynamic_flag_spec_F77=
13856   whole_archive_flag_spec_F77=
13857   thread_safe_flag_spec_F77=
13858   hardcode_libdir_flag_spec_F77=
13859   hardcode_libdir_flag_spec_ld_F77=
13860   hardcode_libdir_separator_F77=
13861   hardcode_direct_F77=no
13862   hardcode_minus_L_F77=no
13863   hardcode_shlibpath_var_F77=unsupported
13864   link_all_deplibs_F77=unknown
13865   hardcode_automatic_F77=no
13866   module_cmds_F77=
13867   module_expsym_cmds_F77=
13868   always_export_symbols_F77=no
13869   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13870   # include_expsyms should be a list of space-separated symbols to be *always*
13871   # included in the symbol list
13872   include_expsyms_F77=
13873   # exclude_expsyms can be an extended regexp of symbols to exclude
13874   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13875   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13876   # as well as any symbol that contains `d'.
13877   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13878   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13879   # platforms (ab)use it in PIC code, but their linkers get confused if
13880   # the symbol is explicitly referenced.  Since portable code cannot
13881   # rely on this symbol name, it's probably fine to never include it in
13882   # preloaded symbol tables.
13883   extract_expsyms_cmds=
13884   # Just being paranoid about ensuring that cc_basename is set.
13885   for cc_temp in $compiler""; do
13886   case $cc_temp in
13887     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13888     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13889     \-*) ;;
13890     *) break;;
13891   esac
13892 done
13893 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13894
13895   case $host_os in
13896   cygwin* | mingw* | pw32*)
13897     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13898     # When not using gcc, we currently assume that we are using
13899     # Microsoft Visual C++.
13900     if test "$GCC" != yes; then
13901       with_gnu_ld=no
13902     fi
13903     ;;
13904   openbsd*)
13905     with_gnu_ld=no
13906     ;;
13907   esac
13908
13909   ld_shlibs_F77=yes
13910   if test "$with_gnu_ld" = yes; then
13911     # If archive_cmds runs LD, not CC, wlarc should be empty
13912     wlarc='${wl}'
13913
13914     # Set some defaults for GNU ld with shared library support. These
13915     # are reset later if shared libraries are not supported. Putting them
13916     # here allows them to be overridden if necessary.
13917     runpath_var=LD_RUN_PATH
13918     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13919     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13920     # ancient GNU ld didn't support --whole-archive et. al.
13921     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13922         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13923       else
13924         whole_archive_flag_spec_F77=
13925     fi
13926     supports_anon_versioning=no
13927     case `$LD -v 2>/dev/null` in
13928       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13929       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13930       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13931       *\ 2.11.*) ;; # other 2.11 versions
13932       *) supports_anon_versioning=yes ;;
13933     esac
13934
13935     # See if GNU ld supports shared libraries.
13936     case $host_os in
13937     aix3* | aix4* | aix5*)
13938       # On AIX/PPC, the GNU linker is very broken
13939       if test "$host_cpu" != ia64; then
13940         ld_shlibs_F77=no
13941         cat <<EOF 1>&2
13942
13943 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13944 *** to be unable to reliably create shared libraries on AIX.
13945 *** Therefore, libtool is disabling shared libraries support.  If you
13946 *** really care for shared libraries, you may want to modify your PATH
13947 *** so that a non-GNU linker is found, and then restart.
13948
13949 EOF
13950       fi
13951       ;;
13952
13953     amigaos*)
13954       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)'
13955       hardcode_libdir_flag_spec_F77='-L$libdir'
13956       hardcode_minus_L_F77=yes
13957
13958       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13959       # that the semantics of dynamic libraries on AmigaOS, at least up
13960       # to version 4, is to share data among multiple programs linked
13961       # with the same dynamic library.  Since this doesn't match the
13962       # behavior of shared libraries on other platforms, we can't use
13963       # them.
13964       ld_shlibs_F77=no
13965       ;;
13966
13967     beos*)
13968       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13969         allow_undefined_flag_F77=unsupported
13970         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13971         # support --undefined.  This deserves some investigation.  FIXME
13972         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13973       else
13974         ld_shlibs_F77=no
13975       fi
13976       ;;
13977
13978     cygwin* | mingw* | pw32*)
13979       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13980       # as there is no search path for DLLs.
13981       hardcode_libdir_flag_spec_F77='-L$libdir'
13982       allow_undefined_flag_F77=unsupported
13983       always_export_symbols_F77=no
13984       enable_shared_with_static_runtimes_F77=yes
13985       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13986
13987       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13988         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13989         # If the export-symbols file already is a .def file (1st line
13990         # is EXPORTS), use it as is; otherwise, prepend...
13991         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13992           cp $export_symbols $output_objdir/$soname.def;
13993         else
13994           echo EXPORTS > $output_objdir/$soname.def;
13995           cat $export_symbols >> $output_objdir/$soname.def;
13996         fi~
13997         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13998       else
13999         ld_shlibs_F77=no
14000       fi
14001       ;;
14002
14003     linux*)
14004       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14005         tmp_addflag=
14006         case $cc_basename,$host_cpu in
14007         pgcc*)                          # Portland Group C compiler
14008           whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14009           tmp_addflag=' $pic_flag'
14010           ;;
14011         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
14012           whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14013           tmp_addflag=' $pic_flag -Mnomain' ;;
14014         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14015           tmp_addflag=' -i_dynamic' ;;
14016         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14017           tmp_addflag=' -i_dynamic -nofor_main' ;;
14018         ifc* | ifort*)                  # Intel Fortran compiler
14019           tmp_addflag=' -nofor_main' ;;
14020         esac
14021         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14022
14023         if test $supports_anon_versioning = yes; then
14024           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14025   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14026   $echo "local: *; };" >> $output_objdir/$libname.ver~
14027           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14028         fi
14029       else
14030         ld_shlibs_F77=no
14031       fi
14032       ;;
14033
14034     netbsd*)
14035       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14036         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14037         wlarc=
14038       else
14039         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14040         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14041       fi
14042       ;;
14043
14044     solaris* | sysv5*)
14045       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14046         ld_shlibs_F77=no
14047         cat <<EOF 1>&2
14048
14049 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14050 *** create shared libraries on Solaris systems.  Therefore, libtool
14051 *** is disabling shared libraries support.  We urge you to upgrade GNU
14052 *** binutils to release 2.9.1 or newer.  Another option is to modify
14053 *** your PATH or compiler configuration so that the native linker is
14054 *** used, and then restart.
14055
14056 EOF
14057       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14058         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14059         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14060       else
14061         ld_shlibs_F77=no
14062       fi
14063       ;;
14064
14065     sunos4*)
14066       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14067       wlarc=
14068       hardcode_direct_F77=yes
14069       hardcode_shlibpath_var_F77=no
14070       ;;
14071
14072     *)
14073       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14074         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14075         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14076       else
14077         ld_shlibs_F77=no
14078       fi
14079       ;;
14080     esac
14081
14082     if test "$ld_shlibs_F77" = no; then
14083       runpath_var=
14084       hardcode_libdir_flag_spec_F77=
14085       export_dynamic_flag_spec_F77=
14086       whole_archive_flag_spec_F77=
14087     fi
14088   else
14089     # PORTME fill in a description of your system's linker (not GNU ld)
14090     case $host_os in
14091     aix3*)
14092       allow_undefined_flag_F77=unsupported
14093       always_export_symbols_F77=yes
14094       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'
14095       # Note: this linker hardcodes the directories in LIBPATH if there
14096       # are no directories specified by -L.
14097       hardcode_minus_L_F77=yes
14098       if test "$GCC" = yes && test -z "$link_static_flag"; then
14099         # Neither direct hardcoding nor static linking is supported with a
14100         # broken collect2.
14101         hardcode_direct_F77=unsupported
14102       fi
14103       ;;
14104
14105     aix4* | aix5*)
14106       if test "$host_cpu" = ia64; then
14107         # On IA64, the linker does run time linking by default, so we don't
14108         # have to do anything special.
14109         aix_use_runtimelinking=no
14110         exp_sym_flag='-Bexport'
14111         no_entry_flag=""
14112       else
14113         # If we're using GNU nm, then we don't want the "-C" option.
14114         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14115         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14116           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'
14117         else
14118           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'
14119         fi
14120         aix_use_runtimelinking=no
14121
14122         # Test if we are trying to use run time linking or normal
14123         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14124         # need to do runtime linking.
14125         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14126           for ld_flag in $LDFLAGS; do
14127           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14128             aix_use_runtimelinking=yes
14129             break
14130           fi
14131           done
14132         esac
14133
14134         exp_sym_flag='-bexport'
14135         no_entry_flag='-bnoentry'
14136       fi
14137
14138       # When large executables or shared objects are built, AIX ld can
14139       # have problems creating the table of contents.  If linking a library
14140       # or program results in "error TOC overflow" add -mminimal-toc to
14141       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14142       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14143
14144       archive_cmds_F77=''
14145       hardcode_direct_F77=yes
14146       hardcode_libdir_separator_F77=':'
14147       link_all_deplibs_F77=yes
14148
14149       if test "$GCC" = yes; then
14150         case $host_os in aix4.[012]|aix4.[012].*)
14151         # We only want to do this on AIX 4.2 and lower, the check
14152         # below for broken collect2 doesn't work under 4.3+
14153           collect2name=`${CC} -print-prog-name=collect2`
14154           if test -f "$collect2name" && \
14155            strings "$collect2name" | grep resolve_lib_name >/dev/null
14156           then
14157           # We have reworked collect2
14158           hardcode_direct_F77=yes
14159           else
14160           # We have old collect2
14161           hardcode_direct_F77=unsupported
14162           # It fails to find uninstalled libraries when the uninstalled
14163           # path is not listed in the libpath.  Setting hardcode_minus_L
14164           # to unsupported forces relinking
14165           hardcode_minus_L_F77=yes
14166           hardcode_libdir_flag_spec_F77='-L$libdir'
14167           hardcode_libdir_separator_F77=
14168           fi
14169         esac
14170         shared_flag='-shared'
14171         if test "$aix_use_runtimelinking" = yes; then
14172           shared_flag="$shared_flag "'${wl}-G'
14173         fi
14174       else
14175         # not using gcc
14176         if test "$host_cpu" = ia64; then
14177         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14178         # chokes on -Wl,-G. The following line is correct:
14179           shared_flag='-G'
14180         else
14181         if test "$aix_use_runtimelinking" = yes; then
14182             shared_flag='${wl}-G'
14183           else
14184             shared_flag='${wl}-bM:SRE'
14185         fi
14186         fi
14187       fi
14188
14189       # It seems that -bexpall does not export symbols beginning with
14190       # underscore (_), so it is better to generate a list of symbols to export.
14191       always_export_symbols_F77=yes
14192       if test "$aix_use_runtimelinking" = yes; then
14193         # Warning - without using the other runtime loading flags (-brtl),
14194         # -berok will link without error, but may produce a broken library.
14195         allow_undefined_flag_F77='-berok'
14196        # Determine the default libpath from the value encoded in an empty executable.
14197        cat >conftest.$ac_ext <<_ACEOF
14198       program main
14199
14200       end
14201 _ACEOF
14202 rm -f conftest.$ac_objext conftest$ac_exeext
14203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14204   (eval $ac_link) 2>conftest.er1
14205   ac_status=$?
14206   grep -v '^ *+' conftest.er1 >conftest.err
14207   rm -f conftest.er1
14208   cat conftest.err >&5
14209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210   (exit $ac_status); } &&
14211          { ac_try='test -z "$ac_f77_werror_flag"
14212                          || test ! -s conftest.err'
14213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14214   (eval $ac_try) 2>&5
14215   ac_status=$?
14216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217   (exit $ac_status); }; } &&
14218          { ac_try='test -s conftest$ac_exeext'
14219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14220   (eval $ac_try) 2>&5
14221   ac_status=$?
14222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223   (exit $ac_status); }; }; then
14224
14225 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14226 }'`
14227 # Check for a 64-bit object if we didn't find anything.
14228 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; }
14229 }'`; fi
14230 else
14231   echo "$as_me: failed program was:" >&5
14232 sed 's/^/| /' conftest.$ac_ext >&5
14233
14234 fi
14235 rm -f conftest.err conftest.$ac_objext \
14236       conftest$ac_exeext conftest.$ac_ext
14237 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14238
14239        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14240         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"
14241        else
14242         if test "$host_cpu" = ia64; then
14243           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14244           allow_undefined_flag_F77="-z nodefs"
14245           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"
14246         else
14247          # Determine the default libpath from the value encoded in an empty executable.
14248          cat >conftest.$ac_ext <<_ACEOF
14249       program main
14250
14251       end
14252 _ACEOF
14253 rm -f conftest.$ac_objext conftest$ac_exeext
14254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14255   (eval $ac_link) 2>conftest.er1
14256   ac_status=$?
14257   grep -v '^ *+' conftest.er1 >conftest.err
14258   rm -f conftest.er1
14259   cat conftest.err >&5
14260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261   (exit $ac_status); } &&
14262          { ac_try='test -z "$ac_f77_werror_flag"
14263                          || test ! -s conftest.err'
14264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265   (eval $ac_try) 2>&5
14266   ac_status=$?
14267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268   (exit $ac_status); }; } &&
14269          { ac_try='test -s conftest$ac_exeext'
14270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271   (eval $ac_try) 2>&5
14272   ac_status=$?
14273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274   (exit $ac_status); }; }; then
14275
14276 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14277 }'`
14278 # Check for a 64-bit object if we didn't find anything.
14279 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; }
14280 }'`; fi
14281 else
14282   echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14284
14285 fi
14286 rm -f conftest.err conftest.$ac_objext \
14287       conftest$ac_exeext conftest.$ac_ext
14288 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14289
14290          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14291           # Warning - without using the other run time loading flags,
14292           # -berok will link without error, but may produce a broken library.
14293           no_undefined_flag_F77=' ${wl}-bernotok'
14294           allow_undefined_flag_F77=' ${wl}-berok'
14295           # -bexpall does not export symbols beginning with underscore (_)
14296           always_export_symbols_F77=yes
14297           # Exported symbols can be pulled into shared objects from archives
14298           whole_archive_flag_spec_F77=' '
14299           archive_cmds_need_lc_F77=yes
14300           # This is similar to how AIX traditionally builds it's shared libraries.
14301           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'
14302         fi
14303       fi
14304       ;;
14305
14306     amigaos*)
14307       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)'
14308       hardcode_libdir_flag_spec_F77='-L$libdir'
14309       hardcode_minus_L_F77=yes
14310       # see comment about different semantics on the GNU ld section
14311       ld_shlibs_F77=no
14312       ;;
14313
14314     bsdi[45]*)
14315       export_dynamic_flag_spec_F77=-rdynamic
14316       ;;
14317
14318     cygwin* | mingw* | pw32*)
14319       # When not using gcc, we currently assume that we are using
14320       # Microsoft Visual C++.
14321       # hardcode_libdir_flag_spec is actually meaningless, as there is
14322       # no search path for DLLs.
14323       hardcode_libdir_flag_spec_F77=' '
14324       allow_undefined_flag_F77=unsupported
14325       # Tell ltmain to make .lib files, not .a files.
14326       libext=lib
14327       # Tell ltmain to make .dll files, not .so files.
14328       shrext_cmds=".dll"
14329       # FIXME: Setting linknames here is a bad hack.
14330       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14331       # The linker will automatically build a .lib file if we build a DLL.
14332       old_archive_From_new_cmds_F77='true'
14333       # FIXME: Should let the user specify the lib program.
14334       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14335       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14336       enable_shared_with_static_runtimes_F77=yes
14337       ;;
14338
14339     darwin* | rhapsody*)
14340       case "$host_os" in
14341         rhapsody* | darwin1.[012])
14342          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14343          ;;
14344        *) # Darwin 1.3 on
14345          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14346            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14347          else
14348            case ${MACOSX_DEPLOYMENT_TARGET} in
14349              10.[012])
14350                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14351                ;;
14352              10.*)
14353                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14354                ;;
14355            esac
14356          fi
14357          ;;
14358       esac
14359       archive_cmds_need_lc_F77=no
14360       hardcode_direct_F77=no
14361       hardcode_automatic_F77=yes
14362       hardcode_shlibpath_var_F77=unsupported
14363       whole_archive_flag_spec_F77=''
14364       link_all_deplibs_F77=yes
14365     if test "$GCC" = yes ; then
14366         output_verbose_link_cmd='echo'
14367         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14368       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14369       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14370       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}'
14371       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}'
14372     else
14373       case $cc_basename in
14374         xlc*)
14375          output_verbose_link_cmd='echo'
14376          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14377          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14378           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14379          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}'
14380           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}'
14381           ;;
14382        *)
14383          ld_shlibs_F77=no
14384           ;;
14385       esac
14386     fi
14387       ;;
14388
14389     dgux*)
14390       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14391       hardcode_libdir_flag_spec_F77='-L$libdir'
14392       hardcode_shlibpath_var_F77=no
14393       ;;
14394
14395     freebsd1*)
14396       ld_shlibs_F77=no
14397       ;;
14398
14399     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14400     # support.  Future versions do this automatically, but an explicit c++rt0.o
14401     # does not break anything, and helps significantly (at the cost of a little
14402     # extra space).
14403     freebsd2.2*)
14404       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14405       hardcode_libdir_flag_spec_F77='-R$libdir'
14406       hardcode_direct_F77=yes
14407       hardcode_shlibpath_var_F77=no
14408       ;;
14409
14410     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14411     freebsd2*)
14412       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14413       hardcode_direct_F77=yes
14414       hardcode_minus_L_F77=yes
14415       hardcode_shlibpath_var_F77=no
14416       ;;
14417
14418     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14419     freebsd* | kfreebsd*-gnu | dragonfly*)
14420       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14421       hardcode_libdir_flag_spec_F77='-R$libdir'
14422       hardcode_direct_F77=yes
14423       hardcode_shlibpath_var_F77=no
14424       ;;
14425
14426     hpux9*)
14427       if test "$GCC" = yes; then
14428         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'
14429       else
14430         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'
14431       fi
14432       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14433       hardcode_libdir_separator_F77=:
14434       hardcode_direct_F77=yes
14435
14436       # hardcode_minus_L: Not really in the search PATH,
14437       # but as the default location of the library.
14438       hardcode_minus_L_F77=yes
14439       export_dynamic_flag_spec_F77='${wl}-E'
14440       ;;
14441
14442     hpux10* | hpux11*)
14443       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14444         case "$host_cpu" in
14445         hppa*64*|ia64*)
14446           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14447           ;;
14448         *)
14449           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14450           ;;
14451         esac
14452       else
14453         case "$host_cpu" in
14454         hppa*64*|ia64*)
14455           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14456           ;;
14457         *)
14458           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14459           ;;
14460         esac
14461       fi
14462       if test "$with_gnu_ld" = no; then
14463         case "$host_cpu" in
14464         hppa*64*)
14465           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14466           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14467           hardcode_libdir_separator_F77=:
14468           hardcode_direct_F77=no
14469           hardcode_shlibpath_var_F77=no
14470           ;;
14471         ia64*)
14472           hardcode_libdir_flag_spec_F77='-L$libdir'
14473           hardcode_direct_F77=no
14474           hardcode_shlibpath_var_F77=no
14475
14476           # hardcode_minus_L: Not really in the search PATH,
14477           # but as the default location of the library.
14478           hardcode_minus_L_F77=yes
14479           ;;
14480         *)
14481           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14482           hardcode_libdir_separator_F77=:
14483           hardcode_direct_F77=yes
14484           export_dynamic_flag_spec_F77='${wl}-E'
14485
14486           # hardcode_minus_L: Not really in the search PATH,
14487           # but as the default location of the library.
14488           hardcode_minus_L_F77=yes
14489           ;;
14490         esac
14491       fi
14492       ;;
14493
14494     irix5* | irix6* | nonstopux*)
14495       if test "$GCC" = yes; then
14496         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'
14497       else
14498         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'
14499         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14500       fi
14501       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14502       hardcode_libdir_separator_F77=:
14503       link_all_deplibs_F77=yes
14504       ;;
14505
14506     netbsd*)
14507       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14508         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14509       else
14510         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14511       fi
14512       hardcode_libdir_flag_spec_F77='-R$libdir'
14513       hardcode_direct_F77=yes
14514       hardcode_shlibpath_var_F77=no
14515       ;;
14516
14517     newsos6)
14518       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14519       hardcode_direct_F77=yes
14520       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14521       hardcode_libdir_separator_F77=:
14522       hardcode_shlibpath_var_F77=no
14523       ;;
14524
14525     openbsd*)
14526       hardcode_direct_F77=yes
14527       hardcode_shlibpath_var_F77=no
14528       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14529         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14530         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14531         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14532         export_dynamic_flag_spec_F77='${wl}-E'
14533       else
14534        case $host_os in
14535          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14536            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14537            hardcode_libdir_flag_spec_F77='-R$libdir'
14538            ;;
14539          *)
14540            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14541            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14542            ;;
14543        esac
14544       fi
14545       ;;
14546
14547     os2*)
14548       hardcode_libdir_flag_spec_F77='-L$libdir'
14549       hardcode_minus_L_F77=yes
14550       allow_undefined_flag_F77=unsupported
14551       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'
14552       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14553       ;;
14554
14555     osf3*)
14556       if test "$GCC" = yes; then
14557         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14558         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'
14559       else
14560         allow_undefined_flag_F77=' -expect_unresolved \*'
14561         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'
14562       fi
14563       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14564       hardcode_libdir_separator_F77=:
14565       ;;
14566
14567     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14568       if test "$GCC" = yes; then
14569         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14570         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'
14571         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14572       else
14573         allow_undefined_flag_F77=' -expect_unresolved \*'
14574         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'
14575         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~
14576         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14577
14578         # Both c and cxx compiler support -rpath directly
14579         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14580       fi
14581       hardcode_libdir_separator_F77=:
14582       ;;
14583
14584     sco3.2v5*)
14585       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14586       hardcode_shlibpath_var_F77=no
14587       export_dynamic_flag_spec_F77='${wl}-Bexport'
14588       runpath_var=LD_RUN_PATH
14589       hardcode_runpath_var=yes
14590       ;;
14591
14592     solaris*)
14593       no_undefined_flag_F77=' -z text'
14594       if test "$GCC" = yes; then
14595         wlarc='${wl}'
14596         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14597         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14598           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14599       else
14600         wlarc=''
14601         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14602         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14603         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14604       fi
14605       hardcode_libdir_flag_spec_F77='-R$libdir'
14606       hardcode_shlibpath_var_F77=no
14607       case $host_os in
14608       solaris2.[0-5] | solaris2.[0-5].*) ;;
14609       *)
14610         # The compiler driver will combine linker options so we
14611         # cannot just pass the convience library names through
14612         # without $wl, iff we do not link with $LD.
14613         # Luckily, gcc supports the same syntax we need for Sun Studio.
14614         # Supported since Solaris 2.6 (maybe 2.5.1?)
14615         case $wlarc in
14616         '')
14617           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14618         *)
14619           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14620         esac ;;
14621       esac
14622       link_all_deplibs_F77=yes
14623       ;;
14624
14625     sunos4*)
14626       if test "x$host_vendor" = xsequent; then
14627         # Use $CC to link under sequent, because it throws in some extra .o
14628         # files that make .init and .fini sections work.
14629         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14630       else
14631         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14632       fi
14633       hardcode_libdir_flag_spec_F77='-L$libdir'
14634       hardcode_direct_F77=yes
14635       hardcode_minus_L_F77=yes
14636       hardcode_shlibpath_var_F77=no
14637       ;;
14638
14639     sysv4)
14640       case $host_vendor in
14641         sni)
14642           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14643           hardcode_direct_F77=yes # is this really true???
14644         ;;
14645         siemens)
14646           ## LD is ld it makes a PLAMLIB
14647           ## CC just makes a GrossModule.
14648           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14649           reload_cmds_F77='$CC -r -o $output$reload_objs'
14650           hardcode_direct_F77=no
14651         ;;
14652         motorola)
14653           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14654           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14655         ;;
14656       esac
14657       runpath_var='LD_RUN_PATH'
14658       hardcode_shlibpath_var_F77=no
14659       ;;
14660
14661     sysv4.3*)
14662       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14663       hardcode_shlibpath_var_F77=no
14664       export_dynamic_flag_spec_F77='-Bexport'
14665       ;;
14666
14667     sysv4*MP*)
14668       if test -d /usr/nec; then
14669         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14670         hardcode_shlibpath_var_F77=no
14671         runpath_var=LD_RUN_PATH
14672         hardcode_runpath_var=yes
14673         ld_shlibs_F77=yes
14674       fi
14675       ;;
14676
14677     sysv4.2uw2*)
14678       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14679       hardcode_direct_F77=yes
14680       hardcode_minus_L_F77=no
14681       hardcode_shlibpath_var_F77=no
14682       hardcode_runpath_var=yes
14683       runpath_var=LD_RUN_PATH
14684       ;;
14685
14686    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14687       no_undefined_flag_F77='${wl}-z ${wl}text'
14688       if test "$GCC" = yes; then
14689         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14690       else
14691         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14692       fi
14693       runpath_var='LD_RUN_PATH'
14694       hardcode_shlibpath_var_F77=no
14695       ;;
14696
14697     sysv5*)
14698       no_undefined_flag_F77=' -z text'
14699       # $CC -shared without GNU ld will not create a library from C++
14700       # object files and a static libstdc++, better avoid it by now
14701       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14702       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14703                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14704       hardcode_libdir_flag_spec_F77=
14705       hardcode_shlibpath_var_F77=no
14706       runpath_var='LD_RUN_PATH'
14707       ;;
14708
14709     uts4*)
14710       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14711       hardcode_libdir_flag_spec_F77='-L$libdir'
14712       hardcode_shlibpath_var_F77=no
14713       ;;
14714
14715     *)
14716       ld_shlibs_F77=no
14717       ;;
14718     esac
14719   fi
14720
14721 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14722 echo "${ECHO_T}$ld_shlibs_F77" >&6
14723 test "$ld_shlibs_F77" = no && can_build_shared=no
14724
14725 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14726 if test "$GCC" = yes; then
14727   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14728 fi
14729
14730 #
14731 # Do we need to explicitly link libc?
14732 #
14733 case "x$archive_cmds_need_lc_F77" in
14734 x|xyes)
14735   # Assume -lc should be added
14736   archive_cmds_need_lc_F77=yes
14737
14738   if test "$enable_shared" = yes && test "$GCC" = yes; then
14739     case $archive_cmds_F77 in
14740     *'~'*)
14741       # FIXME: we may have to deal with multi-command sequences.
14742       ;;
14743     '$CC '*)
14744       # Test whether the compiler implicitly links with -lc since on some
14745       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14746       # to ld, don't add -lc before -lgcc.
14747       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14748 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14749       $rm conftest*
14750       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14751
14752       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14753   (eval $ac_compile) 2>&5
14754   ac_status=$?
14755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756   (exit $ac_status); } 2>conftest.err; then
14757         soname=conftest
14758         lib=conftest
14759         libobjs=conftest.$ac_objext
14760         deplibs=
14761         wl=$lt_prog_compiler_wl_F77
14762         compiler_flags=-v
14763         linker_flags=-v
14764         verstring=
14765         output_objdir=.
14766         libname=conftest
14767         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14768         allow_undefined_flag_F77=
14769         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14770   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14771   ac_status=$?
14772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773   (exit $ac_status); }
14774         then
14775           archive_cmds_need_lc_F77=no
14776         else
14777           archive_cmds_need_lc_F77=yes
14778         fi
14779         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14780       else
14781         cat conftest.err 1>&5
14782       fi
14783       $rm conftest*
14784       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14785 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14786       ;;
14787     esac
14788   fi
14789   ;;
14790 esac
14791
14792 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14793 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14794 library_names_spec=
14795 libname_spec='lib$name'
14796 soname_spec=
14797 shrext_cmds=".so"
14798 postinstall_cmds=
14799 postuninstall_cmds=
14800 finish_cmds=
14801 finish_eval=
14802 shlibpath_var=
14803 shlibpath_overrides_runpath=unknown
14804 version_type=none
14805 dynamic_linker="$host_os ld.so"
14806 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14807 if test "$GCC" = yes; then
14808   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14809   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14810     # if the path contains ";" then we assume it to be the separator
14811     # otherwise default to the standard path separator (i.e. ":") - it is
14812     # assumed that no part of a normal pathname contains ";" but that should
14813     # okay in the real world where ";" in dirpaths is itself problematic.
14814     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14815   else
14816     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14817   fi
14818 else
14819   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14820 fi
14821 need_lib_prefix=unknown
14822 hardcode_into_libs=no
14823
14824 # when you set need_version to no, make sure it does not cause -set_version
14825 # flags to be left without arguments
14826 need_version=unknown
14827
14828 case $host_os in
14829 aix3*)
14830   version_type=linux
14831   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14832   shlibpath_var=LIBPATH
14833
14834   # AIX 3 has no versioning support, so we append a major version to the name.
14835   soname_spec='${libname}${release}${shared_ext}$major'
14836   ;;
14837
14838 aix4* | aix5*)
14839   version_type=linux
14840   need_lib_prefix=no
14841   need_version=no
14842   hardcode_into_libs=yes
14843   if test "$host_cpu" = ia64; then
14844     # AIX 5 supports IA64
14845     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14846     shlibpath_var=LD_LIBRARY_PATH
14847   else
14848     # With GCC up to 2.95.x, collect2 would create an import file
14849     # for dependence libraries.  The import file would start with
14850     # the line `#! .'.  This would cause the generated library to
14851     # depend on `.', always an invalid library.  This was fixed in
14852     # development snapshots of GCC prior to 3.0.
14853     case $host_os in
14854       aix4 | aix4.[01] | aix4.[01].*)
14855       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14856            echo ' yes '
14857            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14858         :
14859       else
14860         can_build_shared=no
14861       fi
14862       ;;
14863     esac
14864     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14865     # soname into executable. Probably we can add versioning support to
14866     # collect2, so additional links can be useful in future.
14867     if test "$aix_use_runtimelinking" = yes; then
14868       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14869       # instead of lib<name>.a to let people know that these are not
14870       # typical AIX shared libraries.
14871       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14872     else
14873       # We preserve .a as extension for shared libraries through AIX4.2
14874       # and later when we are not doing run time linking.
14875       library_names_spec='${libname}${release}.a $libname.a'
14876       soname_spec='${libname}${release}${shared_ext}$major'
14877     fi
14878     shlibpath_var=LIBPATH
14879   fi
14880   ;;
14881
14882 amigaos*)
14883   library_names_spec='$libname.ixlibrary $libname.a'
14884   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14885   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'
14886   ;;
14887
14888 beos*)
14889   library_names_spec='${libname}${shared_ext}'
14890   dynamic_linker="$host_os ld.so"
14891   shlibpath_var=LIBRARY_PATH
14892   ;;
14893
14894 bsdi[45]*)
14895   version_type=linux
14896   need_version=no
14897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14898   soname_spec='${libname}${release}${shared_ext}$major'
14899   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14900   shlibpath_var=LD_LIBRARY_PATH
14901   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14902   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14903   # the default ld.so.conf also contains /usr/contrib/lib and
14904   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14905   # libtool to hard-code these into programs
14906   ;;
14907
14908 cygwin* | mingw* | pw32*)
14909   version_type=windows
14910   shrext_cmds=".dll"
14911   need_version=no
14912   need_lib_prefix=no
14913
14914   case $GCC,$host_os in
14915   yes,cygwin* | yes,mingw* | yes,pw32*)
14916     library_names_spec='$libname.dll.a'
14917     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14918     postinstall_cmds='base_file=`basename \${file}`~
14919       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14920       dldir=$destdir/`dirname \$dlpath`~
14921       test -d \$dldir || mkdir -p \$dldir~
14922       $install_prog $dir/$dlname \$dldir/$dlname'
14923     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14924       dlpath=$dir/\$dldll~
14925        $rm \$dlpath'
14926     shlibpath_overrides_runpath=yes
14927
14928     case $host_os in
14929     cygwin*)
14930       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14931       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14932       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14933       ;;
14934     mingw*)
14935       # MinGW DLLs use traditional 'lib' prefix
14936       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14937       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14938       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14939         # It is most probably a Windows format PATH printed by
14940         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14941         # path with ; separators, and with drive letters. We can handle the
14942         # drive letters (cygwin fileutils understands them), so leave them,
14943         # especially as we might pass files found there to a mingw objdump,
14944         # which wouldn't understand a cygwinified path. Ahh.
14945         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14946       else
14947         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14948       fi
14949       ;;
14950     pw32*)
14951       # pw32 DLLs use 'pw' prefix rather than 'lib'
14952       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14953       ;;
14954     esac
14955     ;;
14956
14957   *)
14958     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14959     ;;
14960   esac
14961   dynamic_linker='Win32 ld.exe'
14962   # FIXME: first we should search . and the directory the executable is in
14963   shlibpath_var=PATH
14964   ;;
14965
14966 darwin* | rhapsody*)
14967   dynamic_linker="$host_os dyld"
14968   version_type=darwin
14969   need_lib_prefix=no
14970   need_version=no
14971   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14972   soname_spec='${libname}${release}${major}$shared_ext'
14973   shlibpath_overrides_runpath=yes
14974   shlibpath_var=DYLD_LIBRARY_PATH
14975   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14976   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14977   if test "$GCC" = yes; then
14978     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"`
14979   else
14980     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14981   fi
14982   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14983   ;;
14984
14985 dgux*)
14986   version_type=linux
14987   need_lib_prefix=no
14988   need_version=no
14989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14990   soname_spec='${libname}${release}${shared_ext}$major'
14991   shlibpath_var=LD_LIBRARY_PATH
14992   ;;
14993
14994 freebsd1*)
14995   dynamic_linker=no
14996   ;;
14997
14998 kfreebsd*-gnu)
14999   version_type=linux
15000   need_lib_prefix=no
15001   need_version=no
15002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15003   soname_spec='${libname}${release}${shared_ext}$major'
15004   shlibpath_var=LD_LIBRARY_PATH
15005   shlibpath_overrides_runpath=no
15006   hardcode_into_libs=yes
15007   dynamic_linker='GNU ld.so'
15008   ;;
15009
15010 freebsd* | dragonfly*)
15011   # DragonFly does not have aout.  When/if they implement a new
15012   # versioning mechanism, adjust this.
15013   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15014   version_type=freebsd-$objformat
15015   case $version_type in
15016     freebsd-elf*)
15017       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15018       need_version=no
15019       need_lib_prefix=no
15020       ;;
15021     freebsd-*)
15022       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15023       need_version=yes
15024       ;;
15025   esac
15026   shlibpath_var=LD_LIBRARY_PATH
15027   case $host_os in
15028   freebsd2*)
15029     shlibpath_overrides_runpath=yes
15030     ;;
15031   freebsd3.[01]* | freebsdelf3.[01]*)
15032     shlibpath_overrides_runpath=yes
15033     hardcode_into_libs=yes
15034     ;;
15035   *) # from 3.2 on
15036     shlibpath_overrides_runpath=no
15037     hardcode_into_libs=yes
15038     ;;
15039   esac
15040   ;;
15041
15042 gnu*)
15043   version_type=linux
15044   need_lib_prefix=no
15045   need_version=no
15046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15047   soname_spec='${libname}${release}${shared_ext}$major'
15048   shlibpath_var=LD_LIBRARY_PATH
15049   hardcode_into_libs=yes
15050   ;;
15051
15052 hpux9* | hpux10* | hpux11*)
15053   # Give a soname corresponding to the major version so that dld.sl refuses to
15054   # link against other versions.
15055   version_type=sunos
15056   need_lib_prefix=no
15057   need_version=no
15058   case "$host_cpu" in
15059   ia64*)
15060     shrext_cmds='.so'
15061     hardcode_into_libs=yes
15062     dynamic_linker="$host_os dld.so"
15063     shlibpath_var=LD_LIBRARY_PATH
15064     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15065     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15066     soname_spec='${libname}${release}${shared_ext}$major'
15067     if test "X$HPUX_IA64_MODE" = X32; then
15068       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15069     else
15070       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15071     fi
15072     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15073     ;;
15074    hppa*64*)
15075      shrext_cmds='.sl'
15076      hardcode_into_libs=yes
15077      dynamic_linker="$host_os dld.sl"
15078      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15079      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15080      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15081      soname_spec='${libname}${release}${shared_ext}$major'
15082      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15083      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15084      ;;
15085    *)
15086     shrext_cmds='.sl'
15087     dynamic_linker="$host_os dld.sl"
15088     shlibpath_var=SHLIB_PATH
15089     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15090     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15091     soname_spec='${libname}${release}${shared_ext}$major'
15092     ;;
15093   esac
15094   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15095   postinstall_cmds='chmod 555 $lib'
15096   ;;
15097
15098 irix5* | irix6* | nonstopux*)
15099   case $host_os in
15100     nonstopux*) version_type=nonstopux ;;
15101     *)
15102         if test "$lt_cv_prog_gnu_ld" = yes; then
15103                 version_type=linux
15104         else
15105                 version_type=irix
15106         fi ;;
15107   esac
15108   need_lib_prefix=no
15109   need_version=no
15110   soname_spec='${libname}${release}${shared_ext}$major'
15111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15112   case $host_os in
15113   irix5* | nonstopux*)
15114     libsuff= shlibsuff=
15115     ;;
15116   *)
15117     case $LD in # libtool.m4 will add one of these switches to LD
15118     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15119       libsuff= shlibsuff= libmagic=32-bit;;
15120     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15121       libsuff=32 shlibsuff=N32 libmagic=N32;;
15122     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15123       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15124     *) libsuff= shlibsuff= libmagic=never-match;;
15125     esac
15126     ;;
15127   esac
15128   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15129   shlibpath_overrides_runpath=no
15130   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15131   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15132   hardcode_into_libs=yes
15133   ;;
15134
15135 # No shared lib support for Linux oldld, aout, or coff.
15136 linux*oldld* | linux*aout* | linux*coff*)
15137   dynamic_linker=no
15138   ;;
15139
15140 # This must be Linux ELF.
15141 linux*)
15142   version_type=linux
15143   need_lib_prefix=no
15144   need_version=no
15145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15146   soname_spec='${libname}${release}${shared_ext}$major'
15147   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15148   shlibpath_var=LD_LIBRARY_PATH
15149   shlibpath_overrides_runpath=no
15150   # This implies no fast_install, which is unacceptable.
15151   # Some rework will be needed to allow for fast_install
15152   # before this can be enabled.
15153   hardcode_into_libs=yes
15154
15155   # Append ld.so.conf contents to the search path
15156   if test -f /etc/ld.so.conf; then
15157     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/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15158     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15159   fi
15160
15161   # We used to test for /lib/ld.so.1 and disable shared libraries on
15162   # powerpc, because MkLinux only supported shared libraries with the
15163   # GNU dynamic linker.  Since this was broken with cross compilers,
15164   # most powerpc-linux boxes support dynamic linking these days and
15165   # people can always --disable-shared, the test was removed, and we
15166   # assume the GNU/Linux dynamic linker is in use.
15167   dynamic_linker='GNU/Linux ld.so'
15168   ;;
15169
15170 knetbsd*-gnu)
15171   version_type=linux
15172   need_lib_prefix=no
15173   need_version=no
15174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15175   soname_spec='${libname}${release}${shared_ext}$major'
15176   shlibpath_var=LD_LIBRARY_PATH
15177   shlibpath_overrides_runpath=no
15178   hardcode_into_libs=yes
15179   dynamic_linker='GNU ld.so'
15180   ;;
15181
15182 netbsd*)
15183   version_type=sunos
15184   need_lib_prefix=no
15185   need_version=no
15186   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15187     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15188     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15189     dynamic_linker='NetBSD (a.out) ld.so'
15190   else
15191     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15192     soname_spec='${libname}${release}${shared_ext}$major'
15193     dynamic_linker='NetBSD ld.elf_so'
15194   fi
15195   shlibpath_var=LD_LIBRARY_PATH
15196   shlibpath_overrides_runpath=yes
15197   hardcode_into_libs=yes
15198   ;;
15199
15200 newsos6)
15201   version_type=linux
15202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15203   shlibpath_var=LD_LIBRARY_PATH
15204   shlibpath_overrides_runpath=yes
15205   ;;
15206
15207 nto-qnx*)
15208   version_type=linux
15209   need_lib_prefix=no
15210   need_version=no
15211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15212   soname_spec='${libname}${release}${shared_ext}$major'
15213   shlibpath_var=LD_LIBRARY_PATH
15214   shlibpath_overrides_runpath=yes
15215   ;;
15216
15217 openbsd*)
15218   version_type=sunos
15219   need_lib_prefix=no
15220   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15221   case $host_os in
15222     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15223     *)                         need_version=no  ;;
15224   esac
15225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15226   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15227   shlibpath_var=LD_LIBRARY_PATH
15228   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15229     case $host_os in
15230       openbsd2.[89] | openbsd2.[89].*)
15231         shlibpath_overrides_runpath=no
15232         ;;
15233       *)
15234         shlibpath_overrides_runpath=yes
15235         ;;
15236       esac
15237   else
15238     shlibpath_overrides_runpath=yes
15239   fi
15240   ;;
15241
15242 os2*)
15243   libname_spec='$name'
15244   shrext_cmds=".dll"
15245   need_lib_prefix=no
15246   library_names_spec='$libname${shared_ext} $libname.a'
15247   dynamic_linker='OS/2 ld.exe'
15248   shlibpath_var=LIBPATH
15249   ;;
15250
15251 osf3* | osf4* | osf5*)
15252   version_type=osf
15253   need_lib_prefix=no
15254   need_version=no
15255   soname_spec='${libname}${release}${shared_ext}$major'
15256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15257   shlibpath_var=LD_LIBRARY_PATH
15258   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15259   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15260   ;;
15261
15262 sco3.2v5*)
15263   version_type=osf
15264   soname_spec='${libname}${release}${shared_ext}$major'
15265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15266   shlibpath_var=LD_LIBRARY_PATH
15267   ;;
15268
15269 solaris*)
15270   version_type=linux
15271   need_lib_prefix=no
15272   need_version=no
15273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15274   soname_spec='${libname}${release}${shared_ext}$major'
15275   shlibpath_var=LD_LIBRARY_PATH
15276   shlibpath_overrides_runpath=yes
15277   hardcode_into_libs=yes
15278   # ldd complains unless libraries are executable
15279   postinstall_cmds='chmod +x $lib'
15280   ;;
15281
15282 sunos4*)
15283   version_type=sunos
15284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15285   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15286   shlibpath_var=LD_LIBRARY_PATH
15287   shlibpath_overrides_runpath=yes
15288   if test "$with_gnu_ld" = yes; then
15289     need_lib_prefix=no
15290   fi
15291   need_version=yes
15292   ;;
15293
15294 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15295   version_type=linux
15296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15297   soname_spec='${libname}${release}${shared_ext}$major'
15298   shlibpath_var=LD_LIBRARY_PATH
15299   case $host_vendor in
15300     sni)
15301       shlibpath_overrides_runpath=no
15302       need_lib_prefix=no
15303       export_dynamic_flag_spec='${wl}-Blargedynsym'
15304       runpath_var=LD_RUN_PATH
15305       ;;
15306     siemens)
15307       need_lib_prefix=no
15308       ;;
15309     motorola)
15310       need_lib_prefix=no
15311       need_version=no
15312       shlibpath_overrides_runpath=no
15313       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15314       ;;
15315   esac
15316   ;;
15317
15318 sysv4*MP*)
15319   if test -d /usr/nec ;then
15320     version_type=linux
15321     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15322     soname_spec='$libname${shared_ext}.$major'
15323     shlibpath_var=LD_LIBRARY_PATH
15324   fi
15325   ;;
15326
15327 uts4*)
15328   version_type=linux
15329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15330   soname_spec='${libname}${release}${shared_ext}$major'
15331   shlibpath_var=LD_LIBRARY_PATH
15332   ;;
15333
15334 *)
15335   dynamic_linker=no
15336   ;;
15337 esac
15338 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15339 echo "${ECHO_T}$dynamic_linker" >&6
15340 test "$dynamic_linker" = no && can_build_shared=no
15341
15342 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15343 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15344 hardcode_action_F77=
15345 if test -n "$hardcode_libdir_flag_spec_F77" || \
15346    test -n "$runpath_var_F77" || \
15347    test "X$hardcode_automatic_F77" = "Xyes" ; then
15348
15349   # We can hardcode non-existant directories.
15350   if test "$hardcode_direct_F77" != no &&
15351      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15352      # have to relink, otherwise we might link with an installed library
15353      # when we should be linking with a yet-to-be-installed one
15354      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15355      test "$hardcode_minus_L_F77" != no; then
15356     # Linking always hardcodes the temporary library directory.
15357     hardcode_action_F77=relink
15358   else
15359     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15360     hardcode_action_F77=immediate
15361   fi
15362 else
15363   # We cannot hardcode anything, or else we can only hardcode existing
15364   # directories.
15365   hardcode_action_F77=unsupported
15366 fi
15367 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15368 echo "${ECHO_T}$hardcode_action_F77" >&6
15369
15370 if test "$hardcode_action_F77" = relink; then
15371   # Fast installation is not supported
15372   enable_fast_install=no
15373 elif test "$shlibpath_overrides_runpath" = yes ||
15374      test "$enable_shared" = no; then
15375   # Fast installation is not necessary
15376   enable_fast_install=needless
15377 fi
15378
15379 striplib=
15380 old_striplib=
15381 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15382 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15383 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15384   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15385   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15386   echo "$as_me:$LINENO: result: yes" >&5
15387 echo "${ECHO_T}yes" >&6
15388 else
15389 # FIXME - insert some real tests, host_os isn't really good enough
15390   case $host_os in
15391    darwin*)
15392        if test -n "$STRIP" ; then
15393          striplib="$STRIP -x"
15394          echo "$as_me:$LINENO: result: yes" >&5
15395 echo "${ECHO_T}yes" >&6
15396        else
15397   echo "$as_me:$LINENO: result: no" >&5
15398 echo "${ECHO_T}no" >&6
15399 fi
15400        ;;
15401    *)
15402   echo "$as_me:$LINENO: result: no" >&5
15403 echo "${ECHO_T}no" >&6
15404     ;;
15405   esac
15406 fi
15407
15408
15409
15410 # The else clause should only fire when bootstrapping the
15411 # libtool distribution, otherwise you forgot to ship ltmain.sh
15412 # with your package, and you will get complaints that there are
15413 # no rules to generate ltmain.sh.
15414 if test -f "$ltmain"; then
15415   # See if we are running on zsh, and set the options which allow our commands through
15416   # without removal of \ escapes.
15417   if test -n "${ZSH_VERSION+set}" ; then
15418     setopt NO_GLOB_SUBST
15419   fi
15420   # Now quote all the things that may contain metacharacters while being
15421   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15422   # variables and quote the copies for generation of the libtool script.
15423   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15424     SED SHELL STRIP \
15425     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15426     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15427     deplibs_check_method reload_flag reload_cmds need_locks \
15428     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15429     lt_cv_sys_global_symbol_to_c_name_address \
15430     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15431     old_postinstall_cmds old_postuninstall_cmds \
15432     compiler_F77 \
15433     CC_F77 \
15434     LD_F77 \
15435     lt_prog_compiler_wl_F77 \
15436     lt_prog_compiler_pic_F77 \
15437     lt_prog_compiler_static_F77 \
15438     lt_prog_compiler_no_builtin_flag_F77 \
15439     export_dynamic_flag_spec_F77 \
15440     thread_safe_flag_spec_F77 \
15441     whole_archive_flag_spec_F77 \
15442     enable_shared_with_static_runtimes_F77 \
15443     old_archive_cmds_F77 \
15444     old_archive_from_new_cmds_F77 \
15445     predep_objects_F77 \
15446     postdep_objects_F77 \
15447     predeps_F77 \
15448     postdeps_F77 \
15449     compiler_lib_search_path_F77 \
15450     archive_cmds_F77 \
15451     archive_expsym_cmds_F77 \
15452     postinstall_cmds_F77 \
15453     postuninstall_cmds_F77 \
15454     old_archive_from_expsyms_cmds_F77 \
15455     allow_undefined_flag_F77 \
15456     no_undefined_flag_F77 \
15457     export_symbols_cmds_F77 \
15458     hardcode_libdir_flag_spec_F77 \
15459     hardcode_libdir_flag_spec_ld_F77 \
15460     hardcode_libdir_separator_F77 \
15461     hardcode_automatic_F77 \
15462     module_cmds_F77 \
15463     module_expsym_cmds_F77 \
15464     lt_cv_prog_compiler_c_o_F77 \
15465     exclude_expsyms_F77 \
15466     include_expsyms_F77; do
15467
15468     case $var in
15469     old_archive_cmds_F77 | \
15470     old_archive_from_new_cmds_F77 | \
15471     archive_cmds_F77 | \
15472     archive_expsym_cmds_F77 | \
15473     module_cmds_F77 | \
15474     module_expsym_cmds_F77 | \
15475     old_archive_from_expsyms_cmds_F77 | \
15476     export_symbols_cmds_F77 | \
15477     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15478     postinstall_cmds | postuninstall_cmds | \
15479     old_postinstall_cmds | old_postuninstall_cmds | \
15480     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15481       # Double-quote double-evaled strings.
15482       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15483       ;;
15484     *)
15485       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15486       ;;
15487     esac
15488   done
15489
15490   case $lt_echo in
15491   *'\$0 --fallback-echo"')
15492     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15493     ;;
15494   esac
15495
15496 cfgfile="$ofile"
15497
15498   cat <<__EOF__ >> "$cfgfile"
15499 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15500
15501 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15502
15503 # Shell to use when invoking shell scripts.
15504 SHELL=$lt_SHELL
15505
15506 # Whether or not to build shared libraries.
15507 build_libtool_libs=$enable_shared
15508
15509 # Whether or not to build static libraries.
15510 build_old_libs=$enable_static
15511
15512 # Whether or not to add -lc for building shared libraries.
15513 build_libtool_need_lc=$archive_cmds_need_lc_F77
15514
15515 # Whether or not to disallow shared libs when runtime libs are static
15516 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15517
15518 # Whether or not to optimize for fast installation.
15519 fast_install=$enable_fast_install
15520
15521 # The host system.
15522 host_alias=$host_alias
15523 host=$host
15524 host_os=$host_os
15525
15526 # The build system.
15527 build_alias=$build_alias
15528 build=$build
15529 build_os=$build_os
15530
15531 # An echo program that does not interpret backslashes.
15532 echo=$lt_echo
15533
15534 # The archiver.
15535 AR=$lt_AR
15536 AR_FLAGS=$lt_AR_FLAGS
15537
15538 # A C compiler.
15539 LTCC=$lt_LTCC
15540
15541 # A language-specific compiler.
15542 CC=$lt_compiler_F77
15543
15544 # Is the compiler the GNU C compiler?
15545 with_gcc=$GCC_F77
15546
15547 # An ERE matcher.
15548 EGREP=$lt_EGREP
15549
15550 # The linker used to build libraries.
15551 LD=$lt_LD_F77
15552
15553 # Whether we need hard or soft links.
15554 LN_S=$lt_LN_S
15555
15556 # A BSD-compatible nm program.
15557 NM=$lt_NM
15558
15559 # A symbol stripping program
15560 STRIP=$lt_STRIP
15561
15562 # Used to examine libraries when file_magic_cmd begins "file"
15563 MAGIC_CMD=$MAGIC_CMD
15564
15565 # Used on cygwin: DLL creation program.
15566 DLLTOOL="$DLLTOOL"
15567
15568 # Used on cygwin: object dumper.
15569 OBJDUMP="$OBJDUMP"
15570
15571 # Used on cygwin: assembler.
15572 AS="$AS"
15573
15574 # The name of the directory that contains temporary libtool files.
15575 objdir=$objdir
15576
15577 # How to create reloadable object files.
15578 reload_flag=$lt_reload_flag
15579 reload_cmds=$lt_reload_cmds
15580
15581 # How to pass a linker flag through the compiler.
15582 wl=$lt_lt_prog_compiler_wl_F77
15583
15584 # Object file suffix (normally "o").
15585 objext="$ac_objext"
15586
15587 # Old archive suffix (normally "a").
15588 libext="$libext"
15589
15590 # Shared library suffix (normally ".so").
15591 shrext_cmds='$shrext_cmds'
15592
15593 # Executable file suffix (normally "").
15594 exeext="$exeext"
15595
15596 # Additional compiler flags for building library objects.
15597 pic_flag=$lt_lt_prog_compiler_pic_F77
15598 pic_mode=$pic_mode
15599
15600 # What is the maximum length of a command?
15601 max_cmd_len=$lt_cv_sys_max_cmd_len
15602
15603 # Does compiler simultaneously support -c and -o options?
15604 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15605
15606 # Must we lock files when doing compilation?
15607 need_locks=$lt_need_locks
15608
15609 # Do we need the lib prefix for modules?
15610 need_lib_prefix=$need_lib_prefix
15611
15612 # Do we need a version for libraries?
15613 need_version=$need_version
15614
15615 # Whether dlopen is supported.
15616 dlopen_support=$enable_dlopen
15617
15618 # Whether dlopen of programs is supported.
15619 dlopen_self=$enable_dlopen_self
15620
15621 # Whether dlopen of statically linked programs is supported.
15622 dlopen_self_static=$enable_dlopen_self_static
15623
15624 # Compiler flag to prevent dynamic linking.
15625 link_static_flag=$lt_lt_prog_compiler_static_F77
15626
15627 # Compiler flag to turn off builtin functions.
15628 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15629
15630 # Compiler flag to allow reflexive dlopens.
15631 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15632
15633 # Compiler flag to generate shared objects directly from archives.
15634 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15635
15636 # Compiler flag to generate thread-safe objects.
15637 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15638
15639 # Library versioning type.
15640 version_type=$version_type
15641
15642 # Format of library name prefix.
15643 libname_spec=$lt_libname_spec
15644
15645 # List of archive names.  First name is the real one, the rest are links.
15646 # The last name is the one that the linker finds with -lNAME.
15647 library_names_spec=$lt_library_names_spec
15648
15649 # The coded name of the library, if different from the real name.
15650 soname_spec=$lt_soname_spec
15651
15652 # Commands used to build and install an old-style archive.
15653 RANLIB=$lt_RANLIB
15654 old_archive_cmds=$lt_old_archive_cmds_F77
15655 old_postinstall_cmds=$lt_old_postinstall_cmds
15656 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15657
15658 # Create an old-style archive from a shared archive.
15659 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15660
15661 # Create a temporary old-style archive to link instead of a shared archive.
15662 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15663
15664 # Commands used to build and install a shared archive.
15665 archive_cmds=$lt_archive_cmds_F77
15666 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15667 postinstall_cmds=$lt_postinstall_cmds
15668 postuninstall_cmds=$lt_postuninstall_cmds
15669
15670 # Commands used to build a loadable module (assumed same as above if empty)
15671 module_cmds=$lt_module_cmds_F77
15672 module_expsym_cmds=$lt_module_expsym_cmds_F77
15673
15674 # Commands to strip libraries.
15675 old_striplib=$lt_old_striplib
15676 striplib=$lt_striplib
15677
15678 # Dependencies to place before the objects being linked to create a
15679 # shared library.
15680 predep_objects=$lt_predep_objects_F77
15681
15682 # Dependencies to place after the objects being linked to create a
15683 # shared library.
15684 postdep_objects=$lt_postdep_objects_F77
15685
15686 # Dependencies to place before the objects being linked to create a
15687 # shared library.
15688 predeps=$lt_predeps_F77
15689
15690 # Dependencies to place after the objects being linked to create a
15691 # shared library.
15692 postdeps=$lt_postdeps_F77
15693
15694 # The library search path used internally by the compiler when linking
15695 # a shared library.
15696 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15697
15698 # Method to check whether dependent libraries are shared objects.
15699 deplibs_check_method=$lt_deplibs_check_method
15700
15701 # Command to use when deplibs_check_method == file_magic.
15702 file_magic_cmd=$lt_file_magic_cmd
15703
15704 # Flag that allows shared libraries with undefined symbols to be built.
15705 allow_undefined_flag=$lt_allow_undefined_flag_F77
15706
15707 # Flag that forces no undefined symbols.
15708 no_undefined_flag=$lt_no_undefined_flag_F77
15709
15710 # Commands used to finish a libtool library installation in a directory.
15711 finish_cmds=$lt_finish_cmds
15712
15713 # Same as above, but a single script fragment to be evaled but not shown.
15714 finish_eval=$lt_finish_eval
15715
15716 # Take the output of nm and produce a listing of raw symbols and C names.
15717 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15718
15719 # Transform the output of nm in a proper C declaration
15720 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15721
15722 # Transform the output of nm in a C name address pair
15723 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15724
15725 # This is the shared library runtime path variable.
15726 runpath_var=$runpath_var
15727
15728 # This is the shared library path variable.
15729 shlibpath_var=$shlibpath_var
15730
15731 # Is shlibpath searched before the hard-coded library search path?
15732 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15733
15734 # How to hardcode a shared library path into an executable.
15735 hardcode_action=$hardcode_action_F77
15736
15737 # Whether we should hardcode library paths into libraries.
15738 hardcode_into_libs=$hardcode_into_libs
15739
15740 # Flag to hardcode \$libdir into a binary during linking.
15741 # This must work even if \$libdir does not exist.
15742 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15743
15744 # If ld is used when linking, flag to hardcode \$libdir into
15745 # a binary during linking. This must work even if \$libdir does
15746 # not exist.
15747 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15748
15749 # Whether we need a single -rpath flag with a separated argument.
15750 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15751
15752 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15753 # resulting binary.
15754 hardcode_direct=$hardcode_direct_F77
15755
15756 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15757 # resulting binary.
15758 hardcode_minus_L=$hardcode_minus_L_F77
15759
15760 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15761 # the resulting binary.
15762 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15763
15764 # Set to yes if building a shared library automatically hardcodes DIR into the library
15765 # and all subsequent libraries and executables linked against it.
15766 hardcode_automatic=$hardcode_automatic_F77
15767
15768 # Variables whose values should be saved in libtool wrapper scripts and
15769 # restored at relink time.
15770 variables_saved_for_relink="$variables_saved_for_relink"
15771
15772 # Whether libtool must link a program against all its dependency libraries.
15773 link_all_deplibs=$link_all_deplibs_F77
15774
15775 # Compile-time system search path for libraries
15776 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15777
15778 # Run-time system search path for libraries
15779 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15780
15781 # Fix the shell variable \$srcfile for the compiler.
15782 fix_srcfile_path="$fix_srcfile_path_F77"
15783
15784 # Set to yes if exported symbols are required.
15785 always_export_symbols=$always_export_symbols_F77
15786
15787 # The commands to list exported symbols.
15788 export_symbols_cmds=$lt_export_symbols_cmds_F77
15789
15790 # The commands to extract the exported symbol list from a shared archive.
15791 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15792
15793 # Symbols that should not be listed in the preloaded symbols.
15794 exclude_expsyms=$lt_exclude_expsyms_F77
15795
15796 # Symbols that must always be exported.
15797 include_expsyms=$lt_include_expsyms_F77
15798
15799 # ### END LIBTOOL TAG CONFIG: $tagname
15800
15801 __EOF__
15802
15803
15804 else
15805   # If there is no Makefile yet, we rely on a make rule to execute
15806   # `config.status --recheck' to rerun these tests and create the
15807   # libtool script then.
15808   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15809   if test -f "$ltmain_in"; then
15810     test -f Makefile && make "$ltmain"
15811   fi
15812 fi
15813
15814
15815 ac_ext=c
15816 ac_cpp='$CPP $CPPFLAGS'
15817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15820
15821 CC="$lt_save_CC"
15822
15823         else
15824           tagname=""
15825         fi
15826         ;;
15827
15828       GCJ)
15829         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15830
15831
15832
15833 # Source file extension for Java test sources.
15834 ac_ext=java
15835
15836 # Object file extension for compiled Java test sources.
15837 objext=o
15838 objext_GCJ=$objext
15839
15840 # Code to be used in simple compile tests
15841 lt_simple_compile_test_code="class foo {}\n"
15842
15843 # Code to be used in simple link tests
15844 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15845
15846 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15847
15848 # If no C compiler was specified, use CC.
15849 LTCC=${LTCC-"$CC"}
15850
15851 # Allow CC to be a program name with arguments.
15852 compiler=$CC
15853
15854
15855 # save warnings/boilerplate of simple test code
15856 ac_outfile=conftest.$ac_objext
15857 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15858 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15859 _lt_compiler_boilerplate=`cat conftest.err`
15860 $rm conftest*
15861
15862 ac_outfile=conftest.$ac_objext
15863 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15864 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15865 _lt_linker_boilerplate=`cat conftest.err`
15866 $rm conftest*
15867
15868
15869 # Allow CC to be a program name with arguments.
15870 lt_save_CC="$CC"
15871 CC=${GCJ-"gcj"}
15872 compiler=$CC
15873 compiler_GCJ=$CC
15874 for cc_temp in $compiler""; do
15875   case $cc_temp in
15876     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15877     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15878     \-*) ;;
15879     *) break;;
15880   esac
15881 done
15882 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15883
15884
15885 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15886 archive_cmds_need_lc_GCJ=no
15887
15888 old_archive_cmds_GCJ=$old_archive_cmds
15889
15890
15891 lt_prog_compiler_no_builtin_flag_GCJ=
15892
15893 if test "$GCC" = yes; then
15894   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15895
15896
15897 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15898 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15899 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15900   echo $ECHO_N "(cached) $ECHO_C" >&6
15901 else
15902   lt_cv_prog_compiler_rtti_exceptions=no
15903   ac_outfile=conftest.$ac_objext
15904    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15905    lt_compiler_flag="-fno-rtti -fno-exceptions"
15906    # Insert the option either (1) after the last *FLAGS variable, or
15907    # (2) before a word containing "conftest.", or (3) at the end.
15908    # Note that $ac_compile itself does not contain backslashes and begins
15909    # with a dollar sign (not a hyphen), so the echo should work correctly.
15910    # The option is referenced via a variable to avoid confusing sed.
15911    lt_compile=`echo "$ac_compile" | $SED \
15912    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15913    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15914    -e 's:$: $lt_compiler_flag:'`
15915    (eval echo "\"\$as_me:15915: $lt_compile\"" >&5)
15916    (eval "$lt_compile" 2>conftest.err)
15917    ac_status=$?
15918    cat conftest.err >&5
15919    echo "$as_me:15919: \$? = $ac_status" >&5
15920    if (exit $ac_status) && test -s "$ac_outfile"; then
15921      # The compiler can only warn and ignore the option if not recognized
15922      # So say no if there are warnings other than the usual output.
15923      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15924      $SED '/^$/d' conftest.err >conftest.er2
15925      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15926        lt_cv_prog_compiler_rtti_exceptions=yes
15927      fi
15928    fi
15929    $rm conftest*
15930
15931 fi
15932 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15933 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15934
15935 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15936     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15937 else
15938     :
15939 fi
15940
15941 fi
15942
15943 lt_prog_compiler_wl_GCJ=
15944 lt_prog_compiler_pic_GCJ=
15945 lt_prog_compiler_static_GCJ=
15946
15947 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15948 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15949
15950   if test "$GCC" = yes; then
15951     lt_prog_compiler_wl_GCJ='-Wl,'
15952     lt_prog_compiler_static_GCJ='-static'
15953
15954     case $host_os in
15955       aix*)
15956       # All AIX code is PIC.
15957       if test "$host_cpu" = ia64; then
15958         # AIX 5 now supports IA64 processor
15959         lt_prog_compiler_static_GCJ='-Bstatic'
15960       fi
15961       ;;
15962
15963     amigaos*)
15964       # FIXME: we need at least 68020 code to build shared libraries, but
15965       # adding the `-m68020' flag to GCC prevents building anything better,
15966       # like `-m68040'.
15967       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15968       ;;
15969
15970     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15971       # PIC is the default for these OSes.
15972       ;;
15973
15974     mingw* | pw32* | os2*)
15975       # This hack is so that the source file can tell whether it is being
15976       # built for inclusion in a dll (and should export symbols for example).
15977       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15978       ;;
15979
15980     darwin* | rhapsody*)
15981       # PIC is the default on this platform
15982       # Common symbols not allowed in MH_DYLIB files
15983       lt_prog_compiler_pic_GCJ='-fno-common'
15984       ;;
15985
15986     msdosdjgpp*)
15987       # Just because we use GCC doesn't mean we suddenly get shared libraries
15988       # on systems that don't support them.
15989       lt_prog_compiler_can_build_shared_GCJ=no
15990       enable_shared=no
15991       ;;
15992
15993     sysv4*MP*)
15994       if test -d /usr/nec; then
15995         lt_prog_compiler_pic_GCJ=-Kconform_pic
15996       fi
15997       ;;
15998
15999     hpux*)
16000       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16001       # not for PA HP-UX.
16002       case "$host_cpu" in
16003       hppa*64*|ia64*)
16004         # +Z the default
16005         ;;
16006       *)
16007         lt_prog_compiler_pic_GCJ='-fPIC'
16008         ;;
16009       esac
16010       ;;
16011
16012     *)
16013       lt_prog_compiler_pic_GCJ='-fPIC'
16014       ;;
16015     esac
16016   else
16017     # PORTME Check for flag to pass linker flags through the system compiler.
16018     case $host_os in
16019     aix*)
16020       lt_prog_compiler_wl_GCJ='-Wl,'
16021       if test "$host_cpu" = ia64; then
16022         # AIX 5 now supports IA64 processor
16023         lt_prog_compiler_static_GCJ='-Bstatic'
16024       else
16025         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16026       fi
16027       ;;
16028       darwin*)
16029         # PIC is the default on this platform
16030         # Common symbols not allowed in MH_DYLIB files
16031        case $cc_basename in
16032          xlc*)
16033          lt_prog_compiler_pic_GCJ='-qnocommon'
16034          lt_prog_compiler_wl_GCJ='-Wl,'
16035          ;;
16036        esac
16037        ;;
16038
16039     mingw* | pw32* | os2*)
16040       # This hack is so that the source file can tell whether it is being
16041       # built for inclusion in a dll (and should export symbols for example).
16042       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16043       ;;
16044
16045     hpux9* | hpux10* | hpux11*)
16046       lt_prog_compiler_wl_GCJ='-Wl,'
16047       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16048       # not for PA HP-UX.
16049       case "$host_cpu" in
16050       hppa*64*|ia64*)
16051         # +Z the default
16052         ;;
16053       *)
16054         lt_prog_compiler_pic_GCJ='+Z'
16055         ;;
16056       esac
16057       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16058       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16059       ;;
16060
16061     irix5* | irix6* | nonstopux*)
16062       lt_prog_compiler_wl_GCJ='-Wl,'
16063       # PIC (with -KPIC) is the default.
16064       lt_prog_compiler_static_GCJ='-non_shared'
16065       ;;
16066
16067     newsos6)
16068       lt_prog_compiler_pic_GCJ='-KPIC'
16069       lt_prog_compiler_static_GCJ='-Bstatic'
16070       ;;
16071
16072     linux*)
16073       case $cc_basename in
16074       icc* | ecc*)
16075         lt_prog_compiler_wl_GCJ='-Wl,'
16076         lt_prog_compiler_pic_GCJ='-KPIC'
16077         lt_prog_compiler_static_GCJ='-static'
16078         ;;
16079       pgcc* | pgf77* | pgf90*)
16080         # Portland Group compilers (*not* the Pentium gcc compiler,
16081         # which looks to be a dead project)
16082         lt_prog_compiler_wl_GCJ='-Wl,'
16083         lt_prog_compiler_pic_GCJ='-fpic'
16084         lt_prog_compiler_static_GCJ='-static'
16085         ;;
16086       ccc*)
16087         lt_prog_compiler_wl_GCJ='-Wl,'
16088         # All Alpha code is PIC.
16089         lt_prog_compiler_static_GCJ='-non_shared'
16090         ;;
16091       esac
16092       ;;
16093
16094     osf3* | osf4* | osf5*)
16095       lt_prog_compiler_wl_GCJ='-Wl,'
16096       # All OSF/1 code is PIC.
16097       lt_prog_compiler_static_GCJ='-non_shared'
16098       ;;
16099
16100     sco3.2v5*)
16101       lt_prog_compiler_pic_GCJ='-Kpic'
16102       lt_prog_compiler_static_GCJ='-dn'
16103       ;;
16104
16105     solaris*)
16106       lt_prog_compiler_pic_GCJ='-KPIC'
16107       lt_prog_compiler_static_GCJ='-Bstatic'
16108       case $cc_basename in
16109       f77* | f90* | f95*)
16110         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16111       *)
16112         lt_prog_compiler_wl_GCJ='-Wl,';;
16113       esac
16114       ;;
16115
16116     sunos4*)
16117       lt_prog_compiler_wl_GCJ='-Qoption ld '
16118       lt_prog_compiler_pic_GCJ='-PIC'
16119       lt_prog_compiler_static_GCJ='-Bstatic'
16120       ;;
16121
16122     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16123       lt_prog_compiler_wl_GCJ='-Wl,'
16124       lt_prog_compiler_pic_GCJ='-KPIC'
16125       lt_prog_compiler_static_GCJ='-Bstatic'
16126       ;;
16127
16128     sysv4*MP*)
16129       if test -d /usr/nec ;then
16130         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16131         lt_prog_compiler_static_GCJ='-Bstatic'
16132       fi
16133       ;;
16134
16135     unicos*)
16136       lt_prog_compiler_wl_GCJ='-Wl,'
16137       lt_prog_compiler_can_build_shared_GCJ=no
16138       ;;
16139
16140     uts4*)
16141       lt_prog_compiler_pic_GCJ='-pic'
16142       lt_prog_compiler_static_GCJ='-Bstatic'
16143       ;;
16144
16145     *)
16146       lt_prog_compiler_can_build_shared_GCJ=no
16147       ;;
16148     esac
16149   fi
16150
16151 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16152 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16153
16154 #
16155 # Check to make sure the PIC flag actually works.
16156 #
16157 if test -n "$lt_prog_compiler_pic_GCJ"; then
16158
16159 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16160 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16161 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16162   echo $ECHO_N "(cached) $ECHO_C" >&6
16163 else
16164   lt_prog_compiler_pic_works_GCJ=no
16165   ac_outfile=conftest.$ac_objext
16166    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16167    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16168    # Insert the option either (1) after the last *FLAGS variable, or
16169    # (2) before a word containing "conftest.", or (3) at the end.
16170    # Note that $ac_compile itself does not contain backslashes and begins
16171    # with a dollar sign (not a hyphen), so the echo should work correctly.
16172    # The option is referenced via a variable to avoid confusing sed.
16173    lt_compile=`echo "$ac_compile" | $SED \
16174    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16175    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16176    -e 's:$: $lt_compiler_flag:'`
16177    (eval echo "\"\$as_me:16177: $lt_compile\"" >&5)
16178    (eval "$lt_compile" 2>conftest.err)
16179    ac_status=$?
16180    cat conftest.err >&5
16181    echo "$as_me:16181: \$? = $ac_status" >&5
16182    if (exit $ac_status) && test -s "$ac_outfile"; then
16183      # The compiler can only warn and ignore the option if not recognized
16184      # So say no if there are warnings other than the usual output.
16185      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16186      $SED '/^$/d' conftest.err >conftest.er2
16187      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16188        lt_prog_compiler_pic_works_GCJ=yes
16189      fi
16190    fi
16191    $rm conftest*
16192
16193 fi
16194 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16195 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16196
16197 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16198     case $lt_prog_compiler_pic_GCJ in
16199      "" | " "*) ;;
16200      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16201      esac
16202 else
16203     lt_prog_compiler_pic_GCJ=
16204      lt_prog_compiler_can_build_shared_GCJ=no
16205 fi
16206
16207 fi
16208 case "$host_os" in
16209   # For platforms which do not support PIC, -DPIC is meaningless:
16210   *djgpp*)
16211     lt_prog_compiler_pic_GCJ=
16212     ;;
16213   *)
16214     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16215     ;;
16216 esac
16217
16218 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16219 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16220 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16221   echo $ECHO_N "(cached) $ECHO_C" >&6
16222 else
16223   lt_cv_prog_compiler_c_o_GCJ=no
16224    $rm -r conftest 2>/dev/null
16225    mkdir conftest
16226    cd conftest
16227    mkdir out
16228    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16229
16230    lt_compiler_flag="-o out/conftest2.$ac_objext"
16231    # Insert the option either (1) after the last *FLAGS variable, or
16232    # (2) before a word containing "conftest.", or (3) at the end.
16233    # Note that $ac_compile itself does not contain backslashes and begins
16234    # with a dollar sign (not a hyphen), so the echo should work correctly.
16235    lt_compile=`echo "$ac_compile" | $SED \
16236    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16237    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16238    -e 's:$: $lt_compiler_flag:'`
16239    (eval echo "\"\$as_me:16239: $lt_compile\"" >&5)
16240    (eval "$lt_compile" 2>out/conftest.err)
16241    ac_status=$?
16242    cat out/conftest.err >&5
16243    echo "$as_me:16243: \$? = $ac_status" >&5
16244    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16245    then
16246      # The compiler can only warn and ignore the option if not recognized
16247      # So say no if there are warnings
16248      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16249      $SED '/^$/d' out/conftest.err >out/conftest.er2
16250      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16251        lt_cv_prog_compiler_c_o_GCJ=yes
16252      fi
16253    fi
16254    chmod u+w .
16255    $rm conftest*
16256    # SGI C++ compiler will create directory out/ii_files/ for
16257    # template instantiation
16258    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16259    $rm out/* && rmdir out
16260    cd ..
16261    rmdir conftest
16262    $rm conftest*
16263
16264 fi
16265 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16266 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16267
16268
16269 hard_links="nottested"
16270 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16271   # do not overwrite the value of need_locks provided by the user
16272   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16273 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16274   hard_links=yes
16275   $rm conftest*
16276   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16277   touch conftest.a
16278   ln conftest.a conftest.b 2>&5 || hard_links=no
16279   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16280   echo "$as_me:$LINENO: result: $hard_links" >&5
16281 echo "${ECHO_T}$hard_links" >&6
16282   if test "$hard_links" = no; then
16283     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16284 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16285     need_locks=warn
16286   fi
16287 else
16288   need_locks=no
16289 fi
16290
16291 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16292 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16293
16294   runpath_var=
16295   allow_undefined_flag_GCJ=
16296   enable_shared_with_static_runtimes_GCJ=no
16297   archive_cmds_GCJ=
16298   archive_expsym_cmds_GCJ=
16299   old_archive_From_new_cmds_GCJ=
16300   old_archive_from_expsyms_cmds_GCJ=
16301   export_dynamic_flag_spec_GCJ=
16302   whole_archive_flag_spec_GCJ=
16303   thread_safe_flag_spec_GCJ=
16304   hardcode_libdir_flag_spec_GCJ=
16305   hardcode_libdir_flag_spec_ld_GCJ=
16306   hardcode_libdir_separator_GCJ=
16307   hardcode_direct_GCJ=no
16308   hardcode_minus_L_GCJ=no
16309   hardcode_shlibpath_var_GCJ=unsupported
16310   link_all_deplibs_GCJ=unknown
16311   hardcode_automatic_GCJ=no
16312   module_cmds_GCJ=
16313   module_expsym_cmds_GCJ=
16314   always_export_symbols_GCJ=no
16315   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16316   # include_expsyms should be a list of space-separated symbols to be *always*
16317   # included in the symbol list
16318   include_expsyms_GCJ=
16319   # exclude_expsyms can be an extended regexp of symbols to exclude
16320   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16321   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16322   # as well as any symbol that contains `d'.
16323   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16324   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16325   # platforms (ab)use it in PIC code, but their linkers get confused if
16326   # the symbol is explicitly referenced.  Since portable code cannot
16327   # rely on this symbol name, it's probably fine to never include it in
16328   # preloaded symbol tables.
16329   extract_expsyms_cmds=
16330   # Just being paranoid about ensuring that cc_basename is set.
16331   for cc_temp in $compiler""; do
16332   case $cc_temp in
16333     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16334     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16335     \-*) ;;
16336     *) break;;
16337   esac
16338 done
16339 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16340
16341   case $host_os in
16342   cygwin* | mingw* | pw32*)
16343     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16344     # When not using gcc, we currently assume that we are using
16345     # Microsoft Visual C++.
16346     if test "$GCC" != yes; then
16347       with_gnu_ld=no
16348     fi
16349     ;;
16350   openbsd*)
16351     with_gnu_ld=no
16352     ;;
16353   esac
16354
16355   ld_shlibs_GCJ=yes
16356   if test "$with_gnu_ld" = yes; then
16357     # If archive_cmds runs LD, not CC, wlarc should be empty
16358     wlarc='${wl}'
16359
16360     # Set some defaults for GNU ld with shared library support. These
16361     # are reset later if shared libraries are not supported. Putting them
16362     # here allows them to be overridden if necessary.
16363     runpath_var=LD_RUN_PATH
16364     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16365     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16366     # ancient GNU ld didn't support --whole-archive et. al.
16367     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16368         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16369       else
16370         whole_archive_flag_spec_GCJ=
16371     fi
16372     supports_anon_versioning=no
16373     case `$LD -v 2>/dev/null` in
16374       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16375       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16376       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16377       *\ 2.11.*) ;; # other 2.11 versions
16378       *) supports_anon_versioning=yes ;;
16379     esac
16380
16381     # See if GNU ld supports shared libraries.
16382     case $host_os in
16383     aix3* | aix4* | aix5*)
16384       # On AIX/PPC, the GNU linker is very broken
16385       if test "$host_cpu" != ia64; then
16386         ld_shlibs_GCJ=no
16387         cat <<EOF 1>&2
16388
16389 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16390 *** to be unable to reliably create shared libraries on AIX.
16391 *** Therefore, libtool is disabling shared libraries support.  If you
16392 *** really care for shared libraries, you may want to modify your PATH
16393 *** so that a non-GNU linker is found, and then restart.
16394
16395 EOF
16396       fi
16397       ;;
16398
16399     amigaos*)
16400       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)'
16401       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16402       hardcode_minus_L_GCJ=yes
16403
16404       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16405       # that the semantics of dynamic libraries on AmigaOS, at least up
16406       # to version 4, is to share data among multiple programs linked
16407       # with the same dynamic library.  Since this doesn't match the
16408       # behavior of shared libraries on other platforms, we can't use
16409       # them.
16410       ld_shlibs_GCJ=no
16411       ;;
16412
16413     beos*)
16414       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16415         allow_undefined_flag_GCJ=unsupported
16416         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16417         # support --undefined.  This deserves some investigation.  FIXME
16418         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16419       else
16420         ld_shlibs_GCJ=no
16421       fi
16422       ;;
16423
16424     cygwin* | mingw* | pw32*)
16425       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16426       # as there is no search path for DLLs.
16427       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16428       allow_undefined_flag_GCJ=unsupported
16429       always_export_symbols_GCJ=no
16430       enable_shared_with_static_runtimes_GCJ=yes
16431       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16432
16433       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16434         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16435         # If the export-symbols file already is a .def file (1st line
16436         # is EXPORTS), use it as is; otherwise, prepend...
16437         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16438           cp $export_symbols $output_objdir/$soname.def;
16439         else
16440           echo EXPORTS > $output_objdir/$soname.def;
16441           cat $export_symbols >> $output_objdir/$soname.def;
16442         fi~
16443         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16444       else
16445         ld_shlibs_GCJ=no
16446       fi
16447       ;;
16448
16449     linux*)
16450       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16451         tmp_addflag=
16452         case $cc_basename,$host_cpu in
16453         pgcc*)                          # Portland Group C compiler
16454           whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16455           tmp_addflag=' $pic_flag'
16456           ;;
16457         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
16458           whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16459           tmp_addflag=' $pic_flag -Mnomain' ;;
16460         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16461           tmp_addflag=' -i_dynamic' ;;
16462         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16463           tmp_addflag=' -i_dynamic -nofor_main' ;;
16464         ifc* | ifort*)                  # Intel Fortran compiler
16465           tmp_addflag=' -nofor_main' ;;
16466         esac
16467         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16468
16469         if test $supports_anon_versioning = yes; then
16470           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16471   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16472   $echo "local: *; };" >> $output_objdir/$libname.ver~
16473           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16474         fi
16475       else
16476         ld_shlibs_GCJ=no
16477       fi
16478       ;;
16479
16480     netbsd*)
16481       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16482         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16483         wlarc=
16484       else
16485         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16486         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16487       fi
16488       ;;
16489
16490     solaris* | sysv5*)
16491       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16492         ld_shlibs_GCJ=no
16493         cat <<EOF 1>&2
16494
16495 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16496 *** create shared libraries on Solaris systems.  Therefore, libtool
16497 *** is disabling shared libraries support.  We urge you to upgrade GNU
16498 *** binutils to release 2.9.1 or newer.  Another option is to modify
16499 *** your PATH or compiler configuration so that the native linker is
16500 *** used, and then restart.
16501
16502 EOF
16503       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16504         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16505         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16506       else
16507         ld_shlibs_GCJ=no
16508       fi
16509       ;;
16510
16511     sunos4*)
16512       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16513       wlarc=
16514       hardcode_direct_GCJ=yes
16515       hardcode_shlibpath_var_GCJ=no
16516       ;;
16517
16518     *)
16519       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16520         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16521         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16522       else
16523         ld_shlibs_GCJ=no
16524       fi
16525       ;;
16526     esac
16527
16528     if test "$ld_shlibs_GCJ" = no; then
16529       runpath_var=
16530       hardcode_libdir_flag_spec_GCJ=
16531       export_dynamic_flag_spec_GCJ=
16532       whole_archive_flag_spec_GCJ=
16533     fi
16534   else
16535     # PORTME fill in a description of your system's linker (not GNU ld)
16536     case $host_os in
16537     aix3*)
16538       allow_undefined_flag_GCJ=unsupported
16539       always_export_symbols_GCJ=yes
16540       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'
16541       # Note: this linker hardcodes the directories in LIBPATH if there
16542       # are no directories specified by -L.
16543       hardcode_minus_L_GCJ=yes
16544       if test "$GCC" = yes && test -z "$link_static_flag"; then
16545         # Neither direct hardcoding nor static linking is supported with a
16546         # broken collect2.
16547         hardcode_direct_GCJ=unsupported
16548       fi
16549       ;;
16550
16551     aix4* | aix5*)
16552       if test "$host_cpu" = ia64; then
16553         # On IA64, the linker does run time linking by default, so we don't
16554         # have to do anything special.
16555         aix_use_runtimelinking=no
16556         exp_sym_flag='-Bexport'
16557         no_entry_flag=""
16558       else
16559         # If we're using GNU nm, then we don't want the "-C" option.
16560         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16561         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16562           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'
16563         else
16564           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'
16565         fi
16566         aix_use_runtimelinking=no
16567
16568         # Test if we are trying to use run time linking or normal
16569         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16570         # need to do runtime linking.
16571         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16572           for ld_flag in $LDFLAGS; do
16573           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16574             aix_use_runtimelinking=yes
16575             break
16576           fi
16577           done
16578         esac
16579
16580         exp_sym_flag='-bexport'
16581         no_entry_flag='-bnoentry'
16582       fi
16583
16584       # When large executables or shared objects are built, AIX ld can
16585       # have problems creating the table of contents.  If linking a library
16586       # or program results in "error TOC overflow" add -mminimal-toc to
16587       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16588       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16589
16590       archive_cmds_GCJ=''
16591       hardcode_direct_GCJ=yes
16592       hardcode_libdir_separator_GCJ=':'
16593       link_all_deplibs_GCJ=yes
16594
16595       if test "$GCC" = yes; then
16596         case $host_os in aix4.[012]|aix4.[012].*)
16597         # We only want to do this on AIX 4.2 and lower, the check
16598         # below for broken collect2 doesn't work under 4.3+
16599           collect2name=`${CC} -print-prog-name=collect2`
16600           if test -f "$collect2name" && \
16601            strings "$collect2name" | grep resolve_lib_name >/dev/null
16602           then
16603           # We have reworked collect2
16604           hardcode_direct_GCJ=yes
16605           else
16606           # We have old collect2
16607           hardcode_direct_GCJ=unsupported
16608           # It fails to find uninstalled libraries when the uninstalled
16609           # path is not listed in the libpath.  Setting hardcode_minus_L
16610           # to unsupported forces relinking
16611           hardcode_minus_L_GCJ=yes
16612           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16613           hardcode_libdir_separator_GCJ=
16614           fi
16615         esac
16616         shared_flag='-shared'
16617         if test "$aix_use_runtimelinking" = yes; then
16618           shared_flag="$shared_flag "'${wl}-G'
16619         fi
16620       else
16621         # not using gcc
16622         if test "$host_cpu" = ia64; then
16623         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16624         # chokes on -Wl,-G. The following line is correct:
16625           shared_flag='-G'
16626         else
16627         if test "$aix_use_runtimelinking" = yes; then
16628             shared_flag='${wl}-G'
16629           else
16630             shared_flag='${wl}-bM:SRE'
16631         fi
16632         fi
16633       fi
16634
16635       # It seems that -bexpall does not export symbols beginning with
16636       # underscore (_), so it is better to generate a list of symbols to export.
16637       always_export_symbols_GCJ=yes
16638       if test "$aix_use_runtimelinking" = yes; then
16639         # Warning - without using the other runtime loading flags (-brtl),
16640         # -berok will link without error, but may produce a broken library.
16641         allow_undefined_flag_GCJ='-berok'
16642        # Determine the default libpath from the value encoded in an empty executable.
16643        cat >conftest.$ac_ext <<_ACEOF
16644 /* confdefs.h.  */
16645 _ACEOF
16646 cat confdefs.h >>conftest.$ac_ext
16647 cat >>conftest.$ac_ext <<_ACEOF
16648 /* end confdefs.h.  */
16649
16650 int
16651 main ()
16652 {
16653
16654   ;
16655   return 0;
16656 }
16657 _ACEOF
16658 rm -f conftest.$ac_objext conftest$ac_exeext
16659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16660   (eval $ac_link) 2>conftest.er1
16661   ac_status=$?
16662   grep -v '^ *+' conftest.er1 >conftest.err
16663   rm -f conftest.er1
16664   cat conftest.err >&5
16665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666   (exit $ac_status); } &&
16667          { ac_try='test -z "$ac_c_werror_flag"
16668                          || test ! -s conftest.err'
16669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16670   (eval $ac_try) 2>&5
16671   ac_status=$?
16672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673   (exit $ac_status); }; } &&
16674          { ac_try='test -s conftest$ac_exeext'
16675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16676   (eval $ac_try) 2>&5
16677   ac_status=$?
16678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679   (exit $ac_status); }; }; then
16680
16681 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16682 }'`
16683 # Check for a 64-bit object if we didn't find anything.
16684 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; }
16685 }'`; fi
16686 else
16687   echo "$as_me: failed program was:" >&5
16688 sed 's/^/| /' conftest.$ac_ext >&5
16689
16690 fi
16691 rm -f conftest.err conftest.$ac_objext \
16692       conftest$ac_exeext conftest.$ac_ext
16693 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16694
16695        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16696         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"
16697        else
16698         if test "$host_cpu" = ia64; then
16699           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16700           allow_undefined_flag_GCJ="-z nodefs"
16701           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"
16702         else
16703          # Determine the default libpath from the value encoded in an empty executable.
16704          cat >conftest.$ac_ext <<_ACEOF
16705 /* confdefs.h.  */
16706 _ACEOF
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h.  */
16710
16711 int
16712 main ()
16713 {
16714
16715   ;
16716   return 0;
16717 }
16718 _ACEOF
16719 rm -f conftest.$ac_objext conftest$ac_exeext
16720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16721   (eval $ac_link) 2>conftest.er1
16722   ac_status=$?
16723   grep -v '^ *+' conftest.er1 >conftest.err
16724   rm -f conftest.er1
16725   cat conftest.err >&5
16726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727   (exit $ac_status); } &&
16728          { ac_try='test -z "$ac_c_werror_flag"
16729                          || test ! -s conftest.err'
16730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731   (eval $ac_try) 2>&5
16732   ac_status=$?
16733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734   (exit $ac_status); }; } &&
16735          { ac_try='test -s conftest$ac_exeext'
16736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16737   (eval $ac_try) 2>&5
16738   ac_status=$?
16739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740   (exit $ac_status); }; }; then
16741
16742 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16743 }'`
16744 # Check for a 64-bit object if we didn't find anything.
16745 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; }
16746 }'`; fi
16747 else
16748   echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16750
16751 fi
16752 rm -f conftest.err conftest.$ac_objext \
16753       conftest$ac_exeext conftest.$ac_ext
16754 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16755
16756          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16757           # Warning - without using the other run time loading flags,
16758           # -berok will link without error, but may produce a broken library.
16759           no_undefined_flag_GCJ=' ${wl}-bernotok'
16760           allow_undefined_flag_GCJ=' ${wl}-berok'
16761           # -bexpall does not export symbols beginning with underscore (_)
16762           always_export_symbols_GCJ=yes
16763           # Exported symbols can be pulled into shared objects from archives
16764           whole_archive_flag_spec_GCJ=' '
16765           archive_cmds_need_lc_GCJ=yes
16766           # This is similar to how AIX traditionally builds it's shared libraries.
16767           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'
16768         fi
16769       fi
16770       ;;
16771
16772     amigaos*)
16773       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)'
16774       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16775       hardcode_minus_L_GCJ=yes
16776       # see comment about different semantics on the GNU ld section
16777       ld_shlibs_GCJ=no
16778       ;;
16779
16780     bsdi[45]*)
16781       export_dynamic_flag_spec_GCJ=-rdynamic
16782       ;;
16783
16784     cygwin* | mingw* | pw32*)
16785       # When not using gcc, we currently assume that we are using
16786       # Microsoft Visual C++.
16787       # hardcode_libdir_flag_spec is actually meaningless, as there is
16788       # no search path for DLLs.
16789       hardcode_libdir_flag_spec_GCJ=' '
16790       allow_undefined_flag_GCJ=unsupported
16791       # Tell ltmain to make .lib files, not .a files.
16792       libext=lib
16793       # Tell ltmain to make .dll files, not .so files.
16794       shrext_cmds=".dll"
16795       # FIXME: Setting linknames here is a bad hack.
16796       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16797       # The linker will automatically build a .lib file if we build a DLL.
16798       old_archive_From_new_cmds_GCJ='true'
16799       # FIXME: Should let the user specify the lib program.
16800       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16801       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16802       enable_shared_with_static_runtimes_GCJ=yes
16803       ;;
16804
16805     darwin* | rhapsody*)
16806       case "$host_os" in
16807         rhapsody* | darwin1.[012])
16808          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16809          ;;
16810        *) # Darwin 1.3 on
16811          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16812            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16813          else
16814            case ${MACOSX_DEPLOYMENT_TARGET} in
16815              10.[012])
16816                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16817                ;;
16818              10.*)
16819                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16820                ;;
16821            esac
16822          fi
16823          ;;
16824       esac
16825       archive_cmds_need_lc_GCJ=no
16826       hardcode_direct_GCJ=no
16827       hardcode_automatic_GCJ=yes
16828       hardcode_shlibpath_var_GCJ=unsupported
16829       whole_archive_flag_spec_GCJ=''
16830       link_all_deplibs_GCJ=yes
16831     if test "$GCC" = yes ; then
16832         output_verbose_link_cmd='echo'
16833         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16834       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16835       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16836       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}'
16837       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}'
16838     else
16839       case $cc_basename in
16840         xlc*)
16841          output_verbose_link_cmd='echo'
16842          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16843          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16844           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16845          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}'
16846           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}'
16847           ;;
16848        *)
16849          ld_shlibs_GCJ=no
16850           ;;
16851       esac
16852     fi
16853       ;;
16854
16855     dgux*)
16856       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16857       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16858       hardcode_shlibpath_var_GCJ=no
16859       ;;
16860
16861     freebsd1*)
16862       ld_shlibs_GCJ=no
16863       ;;
16864
16865     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16866     # support.  Future versions do this automatically, but an explicit c++rt0.o
16867     # does not break anything, and helps significantly (at the cost of a little
16868     # extra space).
16869     freebsd2.2*)
16870       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16871       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16872       hardcode_direct_GCJ=yes
16873       hardcode_shlibpath_var_GCJ=no
16874       ;;
16875
16876     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16877     freebsd2*)
16878       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16879       hardcode_direct_GCJ=yes
16880       hardcode_minus_L_GCJ=yes
16881       hardcode_shlibpath_var_GCJ=no
16882       ;;
16883
16884     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16885     freebsd* | kfreebsd*-gnu | dragonfly*)
16886       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16887       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16888       hardcode_direct_GCJ=yes
16889       hardcode_shlibpath_var_GCJ=no
16890       ;;
16891
16892     hpux9*)
16893       if test "$GCC" = yes; then
16894         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'
16895       else
16896         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'
16897       fi
16898       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16899       hardcode_libdir_separator_GCJ=:
16900       hardcode_direct_GCJ=yes
16901
16902       # hardcode_minus_L: Not really in the search PATH,
16903       # but as the default location of the library.
16904       hardcode_minus_L_GCJ=yes
16905       export_dynamic_flag_spec_GCJ='${wl}-E'
16906       ;;
16907
16908     hpux10* | hpux11*)
16909       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16910         case "$host_cpu" in
16911         hppa*64*|ia64*)
16912           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16913           ;;
16914         *)
16915           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16916           ;;
16917         esac
16918       else
16919         case "$host_cpu" in
16920         hppa*64*|ia64*)
16921           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16922           ;;
16923         *)
16924           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16925           ;;
16926         esac
16927       fi
16928       if test "$with_gnu_ld" = no; then
16929         case "$host_cpu" in
16930         hppa*64*)
16931           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16932           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16933           hardcode_libdir_separator_GCJ=:
16934           hardcode_direct_GCJ=no
16935           hardcode_shlibpath_var_GCJ=no
16936           ;;
16937         ia64*)
16938           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16939           hardcode_direct_GCJ=no
16940           hardcode_shlibpath_var_GCJ=no
16941
16942           # hardcode_minus_L: Not really in the search PATH,
16943           # but as the default location of the library.
16944           hardcode_minus_L_GCJ=yes
16945           ;;
16946         *)
16947           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16948           hardcode_libdir_separator_GCJ=:
16949           hardcode_direct_GCJ=yes
16950           export_dynamic_flag_spec_GCJ='${wl}-E'
16951
16952           # hardcode_minus_L: Not really in the search PATH,
16953           # but as the default location of the library.
16954           hardcode_minus_L_GCJ=yes
16955           ;;
16956         esac
16957       fi
16958       ;;
16959
16960     irix5* | irix6* | nonstopux*)
16961       if test "$GCC" = yes; then
16962         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'
16963       else
16964         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'
16965         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16966       fi
16967       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16968       hardcode_libdir_separator_GCJ=:
16969       link_all_deplibs_GCJ=yes
16970       ;;
16971
16972     netbsd*)
16973       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16974         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16975       else
16976         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16977       fi
16978       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16979       hardcode_direct_GCJ=yes
16980       hardcode_shlibpath_var_GCJ=no
16981       ;;
16982
16983     newsos6)
16984       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16985       hardcode_direct_GCJ=yes
16986       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16987       hardcode_libdir_separator_GCJ=:
16988       hardcode_shlibpath_var_GCJ=no
16989       ;;
16990
16991     openbsd*)
16992       hardcode_direct_GCJ=yes
16993       hardcode_shlibpath_var_GCJ=no
16994       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16995         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16996         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16997         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16998         export_dynamic_flag_spec_GCJ='${wl}-E'
16999       else
17000        case $host_os in
17001          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17002            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17003            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17004            ;;
17005          *)
17006            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17007            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17008            ;;
17009        esac
17010       fi
17011       ;;
17012
17013     os2*)
17014       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17015       hardcode_minus_L_GCJ=yes
17016       allow_undefined_flag_GCJ=unsupported
17017       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'
17018       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17019       ;;
17020
17021     osf3*)
17022       if test "$GCC" = yes; then
17023         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17024         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'
17025       else
17026         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17027         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'
17028       fi
17029       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17030       hardcode_libdir_separator_GCJ=:
17031       ;;
17032
17033     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17034       if test "$GCC" = yes; then
17035         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17036         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'
17037         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17038       else
17039         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17040         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'
17041         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~
17042         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17043
17044         # Both c and cxx compiler support -rpath directly
17045         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17046       fi
17047       hardcode_libdir_separator_GCJ=:
17048       ;;
17049
17050     sco3.2v5*)
17051       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17052       hardcode_shlibpath_var_GCJ=no
17053       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17054       runpath_var=LD_RUN_PATH
17055       hardcode_runpath_var=yes
17056       ;;
17057
17058     solaris*)
17059       no_undefined_flag_GCJ=' -z text'
17060       if test "$GCC" = yes; then
17061         wlarc='${wl}'
17062         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17063         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17064           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17065       else
17066         wlarc=''
17067         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17068         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17069         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17070       fi
17071       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17072       hardcode_shlibpath_var_GCJ=no
17073       case $host_os in
17074       solaris2.[0-5] | solaris2.[0-5].*) ;;
17075       *)
17076         # The compiler driver will combine linker options so we
17077         # cannot just pass the convience library names through
17078         # without $wl, iff we do not link with $LD.
17079         # Luckily, gcc supports the same syntax we need for Sun Studio.
17080         # Supported since Solaris 2.6 (maybe 2.5.1?)
17081         case $wlarc in
17082         '')
17083           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17084         *)
17085           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17086         esac ;;
17087       esac
17088       link_all_deplibs_GCJ=yes
17089       ;;
17090
17091     sunos4*)
17092       if test "x$host_vendor" = xsequent; then
17093         # Use $CC to link under sequent, because it throws in some extra .o
17094         # files that make .init and .fini sections work.
17095         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17096       else
17097         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17098       fi
17099       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17100       hardcode_direct_GCJ=yes
17101       hardcode_minus_L_GCJ=yes
17102       hardcode_shlibpath_var_GCJ=no
17103       ;;
17104
17105     sysv4)
17106       case $host_vendor in
17107         sni)
17108           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17109           hardcode_direct_GCJ=yes # is this really true???
17110         ;;
17111         siemens)
17112           ## LD is ld it makes a PLAMLIB
17113           ## CC just makes a GrossModule.
17114           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17115           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17116           hardcode_direct_GCJ=no
17117         ;;
17118         motorola)
17119           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17120           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17121         ;;
17122       esac
17123       runpath_var='LD_RUN_PATH'
17124       hardcode_shlibpath_var_GCJ=no
17125       ;;
17126
17127     sysv4.3*)
17128       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17129       hardcode_shlibpath_var_GCJ=no
17130       export_dynamic_flag_spec_GCJ='-Bexport'
17131       ;;
17132
17133     sysv4*MP*)
17134       if test -d /usr/nec; then
17135         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17136         hardcode_shlibpath_var_GCJ=no
17137         runpath_var=LD_RUN_PATH
17138         hardcode_runpath_var=yes
17139         ld_shlibs_GCJ=yes
17140       fi
17141       ;;
17142
17143     sysv4.2uw2*)
17144       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17145       hardcode_direct_GCJ=yes
17146       hardcode_minus_L_GCJ=no
17147       hardcode_shlibpath_var_GCJ=no
17148       hardcode_runpath_var=yes
17149       runpath_var=LD_RUN_PATH
17150       ;;
17151
17152    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17153       no_undefined_flag_GCJ='${wl}-z ${wl}text'
17154       if test "$GCC" = yes; then
17155         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17156       else
17157         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17158       fi
17159       runpath_var='LD_RUN_PATH'
17160       hardcode_shlibpath_var_GCJ=no
17161       ;;
17162
17163     sysv5*)
17164       no_undefined_flag_GCJ=' -z text'
17165       # $CC -shared without GNU ld will not create a library from C++
17166       # object files and a static libstdc++, better avoid it by now
17167       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17168       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17169                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17170       hardcode_libdir_flag_spec_GCJ=
17171       hardcode_shlibpath_var_GCJ=no
17172       runpath_var='LD_RUN_PATH'
17173       ;;
17174
17175     uts4*)
17176       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17177       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17178       hardcode_shlibpath_var_GCJ=no
17179       ;;
17180
17181     *)
17182       ld_shlibs_GCJ=no
17183       ;;
17184     esac
17185   fi
17186
17187 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17188 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17189 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17190
17191 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17192 if test "$GCC" = yes; then
17193   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17194 fi
17195
17196 #
17197 # Do we need to explicitly link libc?
17198 #
17199 case "x$archive_cmds_need_lc_GCJ" in
17200 x|xyes)
17201   # Assume -lc should be added
17202   archive_cmds_need_lc_GCJ=yes
17203
17204   if test "$enable_shared" = yes && test "$GCC" = yes; then
17205     case $archive_cmds_GCJ in
17206     *'~'*)
17207       # FIXME: we may have to deal with multi-command sequences.
17208       ;;
17209     '$CC '*)
17210       # Test whether the compiler implicitly links with -lc since on some
17211       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17212       # to ld, don't add -lc before -lgcc.
17213       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17214 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17215       $rm conftest*
17216       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17217
17218       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17219   (eval $ac_compile) 2>&5
17220   ac_status=$?
17221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222   (exit $ac_status); } 2>conftest.err; then
17223         soname=conftest
17224         lib=conftest
17225         libobjs=conftest.$ac_objext
17226         deplibs=
17227         wl=$lt_prog_compiler_wl_GCJ
17228         compiler_flags=-v
17229         linker_flags=-v
17230         verstring=
17231         output_objdir=.
17232         libname=conftest
17233         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17234         allow_undefined_flag_GCJ=
17235         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17236   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17237   ac_status=$?
17238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239   (exit $ac_status); }
17240         then
17241           archive_cmds_need_lc_GCJ=no
17242         else
17243           archive_cmds_need_lc_GCJ=yes
17244         fi
17245         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17246       else
17247         cat conftest.err 1>&5
17248       fi
17249       $rm conftest*
17250       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17251 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17252       ;;
17253     esac
17254   fi
17255   ;;
17256 esac
17257
17258 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17259 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17260 library_names_spec=
17261 libname_spec='lib$name'
17262 soname_spec=
17263 shrext_cmds=".so"
17264 postinstall_cmds=
17265 postuninstall_cmds=
17266 finish_cmds=
17267 finish_eval=
17268 shlibpath_var=
17269 shlibpath_overrides_runpath=unknown
17270 version_type=none
17271 dynamic_linker="$host_os ld.so"
17272 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17273 if test "$GCC" = yes; then
17274   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17275   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17276     # if the path contains ";" then we assume it to be the separator
17277     # otherwise default to the standard path separator (i.e. ":") - it is
17278     # assumed that no part of a normal pathname contains ";" but that should
17279     # okay in the real world where ";" in dirpaths is itself problematic.
17280     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17281   else
17282     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17283   fi
17284 else
17285   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17286 fi
17287 need_lib_prefix=unknown
17288 hardcode_into_libs=no
17289
17290 # when you set need_version to no, make sure it does not cause -set_version
17291 # flags to be left without arguments
17292 need_version=unknown
17293
17294 case $host_os in
17295 aix3*)
17296   version_type=linux
17297   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17298   shlibpath_var=LIBPATH
17299
17300   # AIX 3 has no versioning support, so we append a major version to the name.
17301   soname_spec='${libname}${release}${shared_ext}$major'
17302   ;;
17303
17304 aix4* | aix5*)
17305   version_type=linux
17306   need_lib_prefix=no
17307   need_version=no
17308   hardcode_into_libs=yes
17309   if test "$host_cpu" = ia64; then
17310     # AIX 5 supports IA64
17311     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17312     shlibpath_var=LD_LIBRARY_PATH
17313   else
17314     # With GCC up to 2.95.x, collect2 would create an import file
17315     # for dependence libraries.  The import file would start with
17316     # the line `#! .'.  This would cause the generated library to
17317     # depend on `.', always an invalid library.  This was fixed in
17318     # development snapshots of GCC prior to 3.0.
17319     case $host_os in
17320       aix4 | aix4.[01] | aix4.[01].*)
17321       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17322            echo ' yes '
17323            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17324         :
17325       else
17326         can_build_shared=no
17327       fi
17328       ;;
17329     esac
17330     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17331     # soname into executable. Probably we can add versioning support to
17332     # collect2, so additional links can be useful in future.
17333     if test "$aix_use_runtimelinking" = yes; then
17334       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17335       # instead of lib<name>.a to let people know that these are not
17336       # typical AIX shared libraries.
17337       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17338     else
17339       # We preserve .a as extension for shared libraries through AIX4.2
17340       # and later when we are not doing run time linking.
17341       library_names_spec='${libname}${release}.a $libname.a'
17342       soname_spec='${libname}${release}${shared_ext}$major'
17343     fi
17344     shlibpath_var=LIBPATH
17345   fi
17346   ;;
17347
17348 amigaos*)
17349   library_names_spec='$libname.ixlibrary $libname.a'
17350   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17351   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'
17352   ;;
17353
17354 beos*)
17355   library_names_spec='${libname}${shared_ext}'
17356   dynamic_linker="$host_os ld.so"
17357   shlibpath_var=LIBRARY_PATH
17358   ;;
17359
17360 bsdi[45]*)
17361   version_type=linux
17362   need_version=no
17363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17364   soname_spec='${libname}${release}${shared_ext}$major'
17365   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17366   shlibpath_var=LD_LIBRARY_PATH
17367   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17368   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17369   # the default ld.so.conf also contains /usr/contrib/lib and
17370   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17371   # libtool to hard-code these into programs
17372   ;;
17373
17374 cygwin* | mingw* | pw32*)
17375   version_type=windows
17376   shrext_cmds=".dll"
17377   need_version=no
17378   need_lib_prefix=no
17379
17380   case $GCC,$host_os in
17381   yes,cygwin* | yes,mingw* | yes,pw32*)
17382     library_names_spec='$libname.dll.a'
17383     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17384     postinstall_cmds='base_file=`basename \${file}`~
17385       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17386       dldir=$destdir/`dirname \$dlpath`~
17387       test -d \$dldir || mkdir -p \$dldir~
17388       $install_prog $dir/$dlname \$dldir/$dlname'
17389     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17390       dlpath=$dir/\$dldll~
17391        $rm \$dlpath'
17392     shlibpath_overrides_runpath=yes
17393
17394     case $host_os in
17395     cygwin*)
17396       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17397       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17398       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17399       ;;
17400     mingw*)
17401       # MinGW DLLs use traditional 'lib' prefix
17402       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17403       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17404       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17405         # It is most probably a Windows format PATH printed by
17406         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17407         # path with ; separators, and with drive letters. We can handle the
17408         # drive letters (cygwin fileutils understands them), so leave them,
17409         # especially as we might pass files found there to a mingw objdump,
17410         # which wouldn't understand a cygwinified path. Ahh.
17411         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17412       else
17413         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17414       fi
17415       ;;
17416     pw32*)
17417       # pw32 DLLs use 'pw' prefix rather than 'lib'
17418       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17419       ;;
17420     esac
17421     ;;
17422
17423   *)
17424     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17425     ;;
17426   esac
17427   dynamic_linker='Win32 ld.exe'
17428   # FIXME: first we should search . and the directory the executable is in
17429   shlibpath_var=PATH
17430   ;;
17431
17432 darwin* | rhapsody*)
17433   dynamic_linker="$host_os dyld"
17434   version_type=darwin
17435   need_lib_prefix=no
17436   need_version=no
17437   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17438   soname_spec='${libname}${release}${major}$shared_ext'
17439   shlibpath_overrides_runpath=yes
17440   shlibpath_var=DYLD_LIBRARY_PATH
17441   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17442   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17443   if test "$GCC" = yes; then
17444     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"`
17445   else
17446     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17447   fi
17448   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17449   ;;
17450
17451 dgux*)
17452   version_type=linux
17453   need_lib_prefix=no
17454   need_version=no
17455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17456   soname_spec='${libname}${release}${shared_ext}$major'
17457   shlibpath_var=LD_LIBRARY_PATH
17458   ;;
17459
17460 freebsd1*)
17461   dynamic_linker=no
17462   ;;
17463
17464 kfreebsd*-gnu)
17465   version_type=linux
17466   need_lib_prefix=no
17467   need_version=no
17468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17469   soname_spec='${libname}${release}${shared_ext}$major'
17470   shlibpath_var=LD_LIBRARY_PATH
17471   shlibpath_overrides_runpath=no
17472   hardcode_into_libs=yes
17473   dynamic_linker='GNU ld.so'
17474   ;;
17475
17476 freebsd* | dragonfly*)
17477   # DragonFly does not have aout.  When/if they implement a new
17478   # versioning mechanism, adjust this.
17479   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17480   version_type=freebsd-$objformat
17481   case $version_type in
17482     freebsd-elf*)
17483       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17484       need_version=no
17485       need_lib_prefix=no
17486       ;;
17487     freebsd-*)
17488       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17489       need_version=yes
17490       ;;
17491   esac
17492   shlibpath_var=LD_LIBRARY_PATH
17493   case $host_os in
17494   freebsd2*)
17495     shlibpath_overrides_runpath=yes
17496     ;;
17497   freebsd3.[01]* | freebsdelf3.[01]*)
17498     shlibpath_overrides_runpath=yes
17499     hardcode_into_libs=yes
17500     ;;
17501   *) # from 3.2 on
17502     shlibpath_overrides_runpath=no
17503     hardcode_into_libs=yes
17504     ;;
17505   esac
17506   ;;
17507
17508 gnu*)
17509   version_type=linux
17510   need_lib_prefix=no
17511   need_version=no
17512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17513   soname_spec='${libname}${release}${shared_ext}$major'
17514   shlibpath_var=LD_LIBRARY_PATH
17515   hardcode_into_libs=yes
17516   ;;
17517
17518 hpux9* | hpux10* | hpux11*)
17519   # Give a soname corresponding to the major version so that dld.sl refuses to
17520   # link against other versions.
17521   version_type=sunos
17522   need_lib_prefix=no
17523   need_version=no
17524   case "$host_cpu" in
17525   ia64*)
17526     shrext_cmds='.so'
17527     hardcode_into_libs=yes
17528     dynamic_linker="$host_os dld.so"
17529     shlibpath_var=LD_LIBRARY_PATH
17530     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17531     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17532     soname_spec='${libname}${release}${shared_ext}$major'
17533     if test "X$HPUX_IA64_MODE" = X32; then
17534       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17535     else
17536       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17537     fi
17538     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17539     ;;
17540    hppa*64*)
17541      shrext_cmds='.sl'
17542      hardcode_into_libs=yes
17543      dynamic_linker="$host_os dld.sl"
17544      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17545      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17546      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17547      soname_spec='${libname}${release}${shared_ext}$major'
17548      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17549      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17550      ;;
17551    *)
17552     shrext_cmds='.sl'
17553     dynamic_linker="$host_os dld.sl"
17554     shlibpath_var=SHLIB_PATH
17555     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17556     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17557     soname_spec='${libname}${release}${shared_ext}$major'
17558     ;;
17559   esac
17560   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17561   postinstall_cmds='chmod 555 $lib'
17562   ;;
17563
17564 irix5* | irix6* | nonstopux*)
17565   case $host_os in
17566     nonstopux*) version_type=nonstopux ;;
17567     *)
17568         if test "$lt_cv_prog_gnu_ld" = yes; then
17569                 version_type=linux
17570         else
17571                 version_type=irix
17572         fi ;;
17573   esac
17574   need_lib_prefix=no
17575   need_version=no
17576   soname_spec='${libname}${release}${shared_ext}$major'
17577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17578   case $host_os in
17579   irix5* | nonstopux*)
17580     libsuff= shlibsuff=
17581     ;;
17582   *)
17583     case $LD in # libtool.m4 will add one of these switches to LD
17584     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17585       libsuff= shlibsuff= libmagic=32-bit;;
17586     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17587       libsuff=32 shlibsuff=N32 libmagic=N32;;
17588     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17589       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17590     *) libsuff= shlibsuff= libmagic=never-match;;
17591     esac
17592     ;;
17593   esac
17594   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17595   shlibpath_overrides_runpath=no
17596   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17597   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17598   hardcode_into_libs=yes
17599   ;;
17600
17601 # No shared lib support for Linux oldld, aout, or coff.
17602 linux*oldld* | linux*aout* | linux*coff*)
17603   dynamic_linker=no
17604   ;;
17605
17606 # This must be Linux ELF.
17607 linux*)
17608   version_type=linux
17609   need_lib_prefix=no
17610   need_version=no
17611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17612   soname_spec='${libname}${release}${shared_ext}$major'
17613   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17614   shlibpath_var=LD_LIBRARY_PATH
17615   shlibpath_overrides_runpath=no
17616   # This implies no fast_install, which is unacceptable.
17617   # Some rework will be needed to allow for fast_install
17618   # before this can be enabled.
17619   hardcode_into_libs=yes
17620
17621   # Append ld.so.conf contents to the search path
17622   if test -f /etc/ld.so.conf; then
17623     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/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17624     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17625   fi
17626
17627   # We used to test for /lib/ld.so.1 and disable shared libraries on
17628   # powerpc, because MkLinux only supported shared libraries with the
17629   # GNU dynamic linker.  Since this was broken with cross compilers,
17630   # most powerpc-linux boxes support dynamic linking these days and
17631   # people can always --disable-shared, the test was removed, and we
17632   # assume the GNU/Linux dynamic linker is in use.
17633   dynamic_linker='GNU/Linux ld.so'
17634   ;;
17635
17636 knetbsd*-gnu)
17637   version_type=linux
17638   need_lib_prefix=no
17639   need_version=no
17640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17641   soname_spec='${libname}${release}${shared_ext}$major'
17642   shlibpath_var=LD_LIBRARY_PATH
17643   shlibpath_overrides_runpath=no
17644   hardcode_into_libs=yes
17645   dynamic_linker='GNU ld.so'
17646   ;;
17647
17648 netbsd*)
17649   version_type=sunos
17650   need_lib_prefix=no
17651   need_version=no
17652   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17653     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17654     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17655     dynamic_linker='NetBSD (a.out) ld.so'
17656   else
17657     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17658     soname_spec='${libname}${release}${shared_ext}$major'
17659     dynamic_linker='NetBSD ld.elf_so'
17660   fi
17661   shlibpath_var=LD_LIBRARY_PATH
17662   shlibpath_overrides_runpath=yes
17663   hardcode_into_libs=yes
17664   ;;
17665
17666 newsos6)
17667   version_type=linux
17668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17669   shlibpath_var=LD_LIBRARY_PATH
17670   shlibpath_overrides_runpath=yes
17671   ;;
17672
17673 nto-qnx*)
17674   version_type=linux
17675   need_lib_prefix=no
17676   need_version=no
17677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17678   soname_spec='${libname}${release}${shared_ext}$major'
17679   shlibpath_var=LD_LIBRARY_PATH
17680   shlibpath_overrides_runpath=yes
17681   ;;
17682
17683 openbsd*)
17684   version_type=sunos
17685   need_lib_prefix=no
17686   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17687   case $host_os in
17688     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17689     *)                         need_version=no  ;;
17690   esac
17691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17692   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17693   shlibpath_var=LD_LIBRARY_PATH
17694   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17695     case $host_os in
17696       openbsd2.[89] | openbsd2.[89].*)
17697         shlibpath_overrides_runpath=no
17698         ;;
17699       *)
17700         shlibpath_overrides_runpath=yes
17701         ;;
17702       esac
17703   else
17704     shlibpath_overrides_runpath=yes
17705   fi
17706   ;;
17707
17708 os2*)
17709   libname_spec='$name'
17710   shrext_cmds=".dll"
17711   need_lib_prefix=no
17712   library_names_spec='$libname${shared_ext} $libname.a'
17713   dynamic_linker='OS/2 ld.exe'
17714   shlibpath_var=LIBPATH
17715   ;;
17716
17717 osf3* | osf4* | osf5*)
17718   version_type=osf
17719   need_lib_prefix=no
17720   need_version=no
17721   soname_spec='${libname}${release}${shared_ext}$major'
17722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17723   shlibpath_var=LD_LIBRARY_PATH
17724   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17725   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17726   ;;
17727
17728 sco3.2v5*)
17729   version_type=osf
17730   soname_spec='${libname}${release}${shared_ext}$major'
17731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17732   shlibpath_var=LD_LIBRARY_PATH
17733   ;;
17734
17735 solaris*)
17736   version_type=linux
17737   need_lib_prefix=no
17738   need_version=no
17739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17740   soname_spec='${libname}${release}${shared_ext}$major'
17741   shlibpath_var=LD_LIBRARY_PATH
17742   shlibpath_overrides_runpath=yes
17743   hardcode_into_libs=yes
17744   # ldd complains unless libraries are executable
17745   postinstall_cmds='chmod +x $lib'
17746   ;;
17747
17748 sunos4*)
17749   version_type=sunos
17750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17751   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17752   shlibpath_var=LD_LIBRARY_PATH
17753   shlibpath_overrides_runpath=yes
17754   if test "$with_gnu_ld" = yes; then
17755     need_lib_prefix=no
17756   fi
17757   need_version=yes
17758   ;;
17759
17760 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17761   version_type=linux
17762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17763   soname_spec='${libname}${release}${shared_ext}$major'
17764   shlibpath_var=LD_LIBRARY_PATH
17765   case $host_vendor in
17766     sni)
17767       shlibpath_overrides_runpath=no
17768       need_lib_prefix=no
17769       export_dynamic_flag_spec='${wl}-Blargedynsym'
17770       runpath_var=LD_RUN_PATH
17771       ;;
17772     siemens)
17773       need_lib_prefix=no
17774       ;;
17775     motorola)
17776       need_lib_prefix=no
17777       need_version=no
17778       shlibpath_overrides_runpath=no
17779       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17780       ;;
17781   esac
17782   ;;
17783
17784 sysv4*MP*)
17785   if test -d /usr/nec ;then
17786     version_type=linux
17787     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17788     soname_spec='$libname${shared_ext}.$major'
17789     shlibpath_var=LD_LIBRARY_PATH
17790   fi
17791   ;;
17792
17793 uts4*)
17794   version_type=linux
17795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17796   soname_spec='${libname}${release}${shared_ext}$major'
17797   shlibpath_var=LD_LIBRARY_PATH
17798   ;;
17799
17800 *)
17801   dynamic_linker=no
17802   ;;
17803 esac
17804 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17805 echo "${ECHO_T}$dynamic_linker" >&6
17806 test "$dynamic_linker" = no && can_build_shared=no
17807
17808 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17809 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17810 hardcode_action_GCJ=
17811 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17812    test -n "$runpath_var_GCJ" || \
17813    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17814
17815   # We can hardcode non-existant directories.
17816   if test "$hardcode_direct_GCJ" != no &&
17817      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17818      # have to relink, otherwise we might link with an installed library
17819      # when we should be linking with a yet-to-be-installed one
17820      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17821      test "$hardcode_minus_L_GCJ" != no; then
17822     # Linking always hardcodes the temporary library directory.
17823     hardcode_action_GCJ=relink
17824   else
17825     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17826     hardcode_action_GCJ=immediate
17827   fi
17828 else
17829   # We cannot hardcode anything, or else we can only hardcode existing
17830   # directories.
17831   hardcode_action_GCJ=unsupported
17832 fi
17833 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17834 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17835
17836 if test "$hardcode_action_GCJ" = relink; then
17837   # Fast installation is not supported
17838   enable_fast_install=no
17839 elif test "$shlibpath_overrides_runpath" = yes ||
17840      test "$enable_shared" = no; then
17841   # Fast installation is not necessary
17842   enable_fast_install=needless
17843 fi
17844
17845 striplib=
17846 old_striplib=
17847 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17848 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17849 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17850   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17851   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17852   echo "$as_me:$LINENO: result: yes" >&5
17853 echo "${ECHO_T}yes" >&6
17854 else
17855 # FIXME - insert some real tests, host_os isn't really good enough
17856   case $host_os in
17857    darwin*)
17858        if test -n "$STRIP" ; then
17859          striplib="$STRIP -x"
17860          echo "$as_me:$LINENO: result: yes" >&5
17861 echo "${ECHO_T}yes" >&6
17862        else
17863   echo "$as_me:$LINENO: result: no" >&5
17864 echo "${ECHO_T}no" >&6
17865 fi
17866        ;;
17867    *)
17868   echo "$as_me:$LINENO: result: no" >&5
17869 echo "${ECHO_T}no" >&6
17870     ;;
17871   esac
17872 fi
17873
17874 if test "x$enable_dlopen" != xyes; then
17875   enable_dlopen=unknown
17876   enable_dlopen_self=unknown
17877   enable_dlopen_self_static=unknown
17878 else
17879   lt_cv_dlopen=no
17880   lt_cv_dlopen_libs=
17881
17882   case $host_os in
17883   beos*)
17884     lt_cv_dlopen="load_add_on"
17885     lt_cv_dlopen_libs=
17886     lt_cv_dlopen_self=yes
17887     ;;
17888
17889   mingw* | pw32*)
17890     lt_cv_dlopen="LoadLibrary"
17891     lt_cv_dlopen_libs=
17892    ;;
17893
17894   cygwin*)
17895     lt_cv_dlopen="dlopen"
17896     lt_cv_dlopen_libs=
17897    ;;
17898
17899   darwin*)
17900   # if libdl is installed we need to link against it
17901     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17902 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17903 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17904   echo $ECHO_N "(cached) $ECHO_C" >&6
17905 else
17906   ac_check_lib_save_LIBS=$LIBS
17907 LIBS="-ldl  $LIBS"
17908 cat >conftest.$ac_ext <<_ACEOF
17909 /* confdefs.h.  */
17910 _ACEOF
17911 cat confdefs.h >>conftest.$ac_ext
17912 cat >>conftest.$ac_ext <<_ACEOF
17913 /* end confdefs.h.  */
17914
17915 /* Override any gcc2 internal prototype to avoid an error.  */
17916 #ifdef __cplusplus
17917 extern "C"
17918 #endif
17919 /* We use char because int might match the return type of a gcc2
17920    builtin and then its argument prototype would still apply.  */
17921 char dlopen ();
17922 int
17923 main ()
17924 {
17925 dlopen ();
17926   ;
17927   return 0;
17928 }
17929 _ACEOF
17930 rm -f conftest.$ac_objext conftest$ac_exeext
17931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17932   (eval $ac_link) 2>conftest.er1
17933   ac_status=$?
17934   grep -v '^ *+' conftest.er1 >conftest.err
17935   rm -f conftest.er1
17936   cat conftest.err >&5
17937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938   (exit $ac_status); } &&
17939          { ac_try='test -z "$ac_c_werror_flag"
17940                          || test ! -s conftest.err'
17941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17942   (eval $ac_try) 2>&5
17943   ac_status=$?
17944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945   (exit $ac_status); }; } &&
17946          { ac_try='test -s conftest$ac_exeext'
17947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17948   (eval $ac_try) 2>&5
17949   ac_status=$?
17950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951   (exit $ac_status); }; }; then
17952   ac_cv_lib_dl_dlopen=yes
17953 else
17954   echo "$as_me: failed program was:" >&5
17955 sed 's/^/| /' conftest.$ac_ext >&5
17956
17957 ac_cv_lib_dl_dlopen=no
17958 fi
17959 rm -f conftest.err conftest.$ac_objext \
17960       conftest$ac_exeext conftest.$ac_ext
17961 LIBS=$ac_check_lib_save_LIBS
17962 fi
17963 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17964 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17965 if test $ac_cv_lib_dl_dlopen = yes; then
17966   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17967 else
17968
17969     lt_cv_dlopen="dyld"
17970     lt_cv_dlopen_libs=
17971     lt_cv_dlopen_self=yes
17972
17973 fi
17974
17975    ;;
17976
17977   *)
17978     echo "$as_me:$LINENO: checking for shl_load" >&5
17979 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17980 if test "${ac_cv_func_shl_load+set}" = set; then
17981   echo $ECHO_N "(cached) $ECHO_C" >&6
17982 else
17983   cat >conftest.$ac_ext <<_ACEOF
17984 /* confdefs.h.  */
17985 _ACEOF
17986 cat confdefs.h >>conftest.$ac_ext
17987 cat >>conftest.$ac_ext <<_ACEOF
17988 /* end confdefs.h.  */
17989 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17990    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17991 #define shl_load innocuous_shl_load
17992
17993 /* System header to define __stub macros and hopefully few prototypes,
17994     which can conflict with char shl_load (); below.
17995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17996     <limits.h> exists even on freestanding compilers.  */
17997
17998 #ifdef __STDC__
17999 # include <limits.h>
18000 #else
18001 # include <assert.h>
18002 #endif
18003
18004 #undef shl_load
18005
18006 /* Override any gcc2 internal prototype to avoid an error.  */
18007 #ifdef __cplusplus
18008 extern "C"
18009 {
18010 #endif
18011 /* We use char because int might match the return type of a gcc2
18012    builtin and then its argument prototype would still apply.  */
18013 char shl_load ();
18014 /* The GNU C library defines this for functions which it implements
18015     to always fail with ENOSYS.  Some functions are actually named
18016     something starting with __ and the normal name is an alias.  */
18017 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18018 choke me
18019 #else
18020 char (*f) () = shl_load;
18021 #endif
18022 #ifdef __cplusplus
18023 }
18024 #endif
18025
18026 int
18027 main ()
18028 {
18029 return f != shl_load;
18030   ;
18031   return 0;
18032 }
18033 _ACEOF
18034 rm -f conftest.$ac_objext conftest$ac_exeext
18035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18036   (eval $ac_link) 2>conftest.er1
18037   ac_status=$?
18038   grep -v '^ *+' conftest.er1 >conftest.err
18039   rm -f conftest.er1
18040   cat conftest.err >&5
18041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042   (exit $ac_status); } &&
18043          { ac_try='test -z "$ac_c_werror_flag"
18044                          || test ! -s conftest.err'
18045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18046   (eval $ac_try) 2>&5
18047   ac_status=$?
18048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049   (exit $ac_status); }; } &&
18050          { ac_try='test -s conftest$ac_exeext'
18051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18052   (eval $ac_try) 2>&5
18053   ac_status=$?
18054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055   (exit $ac_status); }; }; then
18056   ac_cv_func_shl_load=yes
18057 else
18058   echo "$as_me: failed program was:" >&5
18059 sed 's/^/| /' conftest.$ac_ext >&5
18060
18061 ac_cv_func_shl_load=no
18062 fi
18063 rm -f conftest.err conftest.$ac_objext \
18064       conftest$ac_exeext conftest.$ac_ext
18065 fi
18066 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18067 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18068 if test $ac_cv_func_shl_load = yes; then
18069   lt_cv_dlopen="shl_load"
18070 else
18071   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18072 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18073 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18074   echo $ECHO_N "(cached) $ECHO_C" >&6
18075 else
18076   ac_check_lib_save_LIBS=$LIBS
18077 LIBS="-ldld  $LIBS"
18078 cat >conftest.$ac_ext <<_ACEOF
18079 /* confdefs.h.  */
18080 _ACEOF
18081 cat confdefs.h >>conftest.$ac_ext
18082 cat >>conftest.$ac_ext <<_ACEOF
18083 /* end confdefs.h.  */
18084
18085 /* Override any gcc2 internal prototype to avoid an error.  */
18086 #ifdef __cplusplus
18087 extern "C"
18088 #endif
18089 /* We use char because int might match the return type of a gcc2
18090    builtin and then its argument prototype would still apply.  */
18091 char shl_load ();
18092 int
18093 main ()
18094 {
18095 shl_load ();
18096   ;
18097   return 0;
18098 }
18099 _ACEOF
18100 rm -f conftest.$ac_objext conftest$ac_exeext
18101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18102   (eval $ac_link) 2>conftest.er1
18103   ac_status=$?
18104   grep -v '^ *+' conftest.er1 >conftest.err
18105   rm -f conftest.er1
18106   cat conftest.err >&5
18107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108   (exit $ac_status); } &&
18109          { ac_try='test -z "$ac_c_werror_flag"
18110                          || test ! -s conftest.err'
18111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18112   (eval $ac_try) 2>&5
18113   ac_status=$?
18114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115   (exit $ac_status); }; } &&
18116          { ac_try='test -s conftest$ac_exeext'
18117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118   (eval $ac_try) 2>&5
18119   ac_status=$?
18120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121   (exit $ac_status); }; }; then
18122   ac_cv_lib_dld_shl_load=yes
18123 else
18124   echo "$as_me: failed program was:" >&5
18125 sed 's/^/| /' conftest.$ac_ext >&5
18126
18127 ac_cv_lib_dld_shl_load=no
18128 fi
18129 rm -f conftest.err conftest.$ac_objext \
18130       conftest$ac_exeext conftest.$ac_ext
18131 LIBS=$ac_check_lib_save_LIBS
18132 fi
18133 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18134 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18135 if test $ac_cv_lib_dld_shl_load = yes; then
18136   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18137 else
18138   echo "$as_me:$LINENO: checking for dlopen" >&5
18139 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18140 if test "${ac_cv_func_dlopen+set}" = set; then
18141   echo $ECHO_N "(cached) $ECHO_C" >&6
18142 else
18143   cat >conftest.$ac_ext <<_ACEOF
18144 /* confdefs.h.  */
18145 _ACEOF
18146 cat confdefs.h >>conftest.$ac_ext
18147 cat >>conftest.$ac_ext <<_ACEOF
18148 /* end confdefs.h.  */
18149 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18150    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18151 #define dlopen innocuous_dlopen
18152
18153 /* System header to define __stub macros and hopefully few prototypes,
18154     which can conflict with char dlopen (); below.
18155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18156     <limits.h> exists even on freestanding compilers.  */
18157
18158 #ifdef __STDC__
18159 # include <limits.h>
18160 #else
18161 # include <assert.h>
18162 #endif
18163
18164 #undef dlopen
18165
18166 /* Override any gcc2 internal prototype to avoid an error.  */
18167 #ifdef __cplusplus
18168 extern "C"
18169 {
18170 #endif
18171 /* We use char because int might match the return type of a gcc2
18172    builtin and then its argument prototype would still apply.  */
18173 char dlopen ();
18174 /* The GNU C library defines this for functions which it implements
18175     to always fail with ENOSYS.  Some functions are actually named
18176     something starting with __ and the normal name is an alias.  */
18177 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18178 choke me
18179 #else
18180 char (*f) () = dlopen;
18181 #endif
18182 #ifdef __cplusplus
18183 }
18184 #endif
18185
18186 int
18187 main ()
18188 {
18189 return f != dlopen;
18190   ;
18191   return 0;
18192 }
18193 _ACEOF
18194 rm -f conftest.$ac_objext conftest$ac_exeext
18195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18196   (eval $ac_link) 2>conftest.er1
18197   ac_status=$?
18198   grep -v '^ *+' conftest.er1 >conftest.err
18199   rm -f conftest.er1
18200   cat conftest.err >&5
18201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202   (exit $ac_status); } &&
18203          { ac_try='test -z "$ac_c_werror_flag"
18204                          || test ! -s conftest.err'
18205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206   (eval $ac_try) 2>&5
18207   ac_status=$?
18208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209   (exit $ac_status); }; } &&
18210          { ac_try='test -s conftest$ac_exeext'
18211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212   (eval $ac_try) 2>&5
18213   ac_status=$?
18214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215   (exit $ac_status); }; }; then
18216   ac_cv_func_dlopen=yes
18217 else
18218   echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18220
18221 ac_cv_func_dlopen=no
18222 fi
18223 rm -f conftest.err conftest.$ac_objext \
18224       conftest$ac_exeext conftest.$ac_ext
18225 fi
18226 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18227 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18228 if test $ac_cv_func_dlopen = yes; then
18229   lt_cv_dlopen="dlopen"
18230 else
18231   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18232 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18233 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18234   echo $ECHO_N "(cached) $ECHO_C" >&6
18235 else
18236   ac_check_lib_save_LIBS=$LIBS
18237 LIBS="-ldl  $LIBS"
18238 cat >conftest.$ac_ext <<_ACEOF
18239 /* confdefs.h.  */
18240 _ACEOF
18241 cat confdefs.h >>conftest.$ac_ext
18242 cat >>conftest.$ac_ext <<_ACEOF
18243 /* end confdefs.h.  */
18244
18245 /* Override any gcc2 internal prototype to avoid an error.  */
18246 #ifdef __cplusplus
18247 extern "C"
18248 #endif
18249 /* We use char because int might match the return type of a gcc2
18250    builtin and then its argument prototype would still apply.  */
18251 char dlopen ();
18252 int
18253 main ()
18254 {
18255 dlopen ();
18256   ;
18257   return 0;
18258 }
18259 _ACEOF
18260 rm -f conftest.$ac_objext conftest$ac_exeext
18261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18262   (eval $ac_link) 2>conftest.er1
18263   ac_status=$?
18264   grep -v '^ *+' conftest.er1 >conftest.err
18265   rm -f conftest.er1
18266   cat conftest.err >&5
18267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268   (exit $ac_status); } &&
18269          { ac_try='test -z "$ac_c_werror_flag"
18270                          || test ! -s conftest.err'
18271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18272   (eval $ac_try) 2>&5
18273   ac_status=$?
18274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275   (exit $ac_status); }; } &&
18276          { ac_try='test -s conftest$ac_exeext'
18277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278   (eval $ac_try) 2>&5
18279   ac_status=$?
18280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281   (exit $ac_status); }; }; then
18282   ac_cv_lib_dl_dlopen=yes
18283 else
18284   echo "$as_me: failed program was:" >&5
18285 sed 's/^/| /' conftest.$ac_ext >&5
18286
18287 ac_cv_lib_dl_dlopen=no
18288 fi
18289 rm -f conftest.err conftest.$ac_objext \
18290       conftest$ac_exeext conftest.$ac_ext
18291 LIBS=$ac_check_lib_save_LIBS
18292 fi
18293 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18294 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18295 if test $ac_cv_lib_dl_dlopen = yes; then
18296   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18297 else
18298   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18299 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18300 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18301   echo $ECHO_N "(cached) $ECHO_C" >&6
18302 else
18303   ac_check_lib_save_LIBS=$LIBS
18304 LIBS="-lsvld  $LIBS"
18305 cat >conftest.$ac_ext <<_ACEOF
18306 /* confdefs.h.  */
18307 _ACEOF
18308 cat confdefs.h >>conftest.$ac_ext
18309 cat >>conftest.$ac_ext <<_ACEOF
18310 /* end confdefs.h.  */
18311
18312 /* Override any gcc2 internal prototype to avoid an error.  */
18313 #ifdef __cplusplus
18314 extern "C"
18315 #endif
18316 /* We use char because int might match the return type of a gcc2
18317    builtin and then its argument prototype would still apply.  */
18318 char dlopen ();
18319 int
18320 main ()
18321 {
18322 dlopen ();
18323   ;
18324   return 0;
18325 }
18326 _ACEOF
18327 rm -f conftest.$ac_objext conftest$ac_exeext
18328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18329   (eval $ac_link) 2>conftest.er1
18330   ac_status=$?
18331   grep -v '^ *+' conftest.er1 >conftest.err
18332   rm -f conftest.er1
18333   cat conftest.err >&5
18334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335   (exit $ac_status); } &&
18336          { ac_try='test -z "$ac_c_werror_flag"
18337                          || test ! -s conftest.err'
18338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339   (eval $ac_try) 2>&5
18340   ac_status=$?
18341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342   (exit $ac_status); }; } &&
18343          { ac_try='test -s conftest$ac_exeext'
18344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345   (eval $ac_try) 2>&5
18346   ac_status=$?
18347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348   (exit $ac_status); }; }; then
18349   ac_cv_lib_svld_dlopen=yes
18350 else
18351   echo "$as_me: failed program was:" >&5
18352 sed 's/^/| /' conftest.$ac_ext >&5
18353
18354 ac_cv_lib_svld_dlopen=no
18355 fi
18356 rm -f conftest.err conftest.$ac_objext \
18357       conftest$ac_exeext conftest.$ac_ext
18358 LIBS=$ac_check_lib_save_LIBS
18359 fi
18360 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18361 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18362 if test $ac_cv_lib_svld_dlopen = yes; then
18363   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18364 else
18365   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18366 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18367 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18368   echo $ECHO_N "(cached) $ECHO_C" >&6
18369 else
18370   ac_check_lib_save_LIBS=$LIBS
18371 LIBS="-ldld  $LIBS"
18372 cat >conftest.$ac_ext <<_ACEOF
18373 /* confdefs.h.  */
18374 _ACEOF
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h.  */
18378
18379 /* Override any gcc2 internal prototype to avoid an error.  */
18380 #ifdef __cplusplus
18381 extern "C"
18382 #endif
18383 /* We use char because int might match the return type of a gcc2
18384    builtin and then its argument prototype would still apply.  */
18385 char dld_link ();
18386 int
18387 main ()
18388 {
18389 dld_link ();
18390   ;
18391   return 0;
18392 }
18393 _ACEOF
18394 rm -f conftest.$ac_objext conftest$ac_exeext
18395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18396   (eval $ac_link) 2>conftest.er1
18397   ac_status=$?
18398   grep -v '^ *+' conftest.er1 >conftest.err
18399   rm -f conftest.er1
18400   cat conftest.err >&5
18401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402   (exit $ac_status); } &&
18403          { ac_try='test -z "$ac_c_werror_flag"
18404                          || test ! -s conftest.err'
18405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18406   (eval $ac_try) 2>&5
18407   ac_status=$?
18408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409   (exit $ac_status); }; } &&
18410          { ac_try='test -s conftest$ac_exeext'
18411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412   (eval $ac_try) 2>&5
18413   ac_status=$?
18414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415   (exit $ac_status); }; }; then
18416   ac_cv_lib_dld_dld_link=yes
18417 else
18418   echo "$as_me: failed program was:" >&5
18419 sed 's/^/| /' conftest.$ac_ext >&5
18420
18421 ac_cv_lib_dld_dld_link=no
18422 fi
18423 rm -f conftest.err conftest.$ac_objext \
18424       conftest$ac_exeext conftest.$ac_ext
18425 LIBS=$ac_check_lib_save_LIBS
18426 fi
18427 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18428 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18429 if test $ac_cv_lib_dld_dld_link = yes; then
18430   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18431 fi
18432
18433
18434 fi
18435
18436
18437 fi
18438
18439
18440 fi
18441
18442
18443 fi
18444
18445
18446 fi
18447
18448     ;;
18449   esac
18450
18451   if test "x$lt_cv_dlopen" != xno; then
18452     enable_dlopen=yes
18453   else
18454     enable_dlopen=no
18455   fi
18456
18457   case $lt_cv_dlopen in
18458   dlopen)
18459     save_CPPFLAGS="$CPPFLAGS"
18460     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18461
18462     save_LDFLAGS="$LDFLAGS"
18463     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18464
18465     save_LIBS="$LIBS"
18466     LIBS="$lt_cv_dlopen_libs $LIBS"
18467
18468     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18469 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18470 if test "${lt_cv_dlopen_self+set}" = set; then
18471   echo $ECHO_N "(cached) $ECHO_C" >&6
18472 else
18473           if test "$cross_compiling" = yes; then :
18474   lt_cv_dlopen_self=cross
18475 else
18476   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18477   lt_status=$lt_dlunknown
18478   cat > conftest.$ac_ext <<EOF
18479 #line 18479 "configure"
18480 #include "confdefs.h"
18481
18482 #if HAVE_DLFCN_H
18483 #include <dlfcn.h>
18484 #endif
18485
18486 #include <stdio.h>
18487
18488 #ifdef RTLD_GLOBAL
18489 #  define LT_DLGLOBAL           RTLD_GLOBAL
18490 #else
18491 #  ifdef DL_GLOBAL
18492 #    define LT_DLGLOBAL         DL_GLOBAL
18493 #  else
18494 #    define LT_DLGLOBAL         0
18495 #  endif
18496 #endif
18497
18498 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18499    find out it does not work in some platform. */
18500 #ifndef LT_DLLAZY_OR_NOW
18501 #  ifdef RTLD_LAZY
18502 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18503 #  else
18504 #    ifdef DL_LAZY
18505 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18506 #    else
18507 #      ifdef RTLD_NOW
18508 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18509 #      else
18510 #        ifdef DL_NOW
18511 #          define LT_DLLAZY_OR_NOW      DL_NOW
18512 #        else
18513 #          define LT_DLLAZY_OR_NOW      0
18514 #        endif
18515 #      endif
18516 #    endif
18517 #  endif
18518 #endif
18519
18520 #ifdef __cplusplus
18521 extern "C" void exit (int);
18522 #endif
18523
18524 void fnord() { int i=42;}
18525 int main ()
18526 {
18527   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18528   int status = $lt_dlunknown;
18529
18530   if (self)
18531     {
18532       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18533       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18534       /* dlclose (self); */
18535     }
18536
18537     exit (status);
18538 }
18539 EOF
18540   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18541   (eval $ac_link) 2>&5
18542   ac_status=$?
18543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18545     (./conftest; exit; ) 2>/dev/null
18546     lt_status=$?
18547     case x$lt_status in
18548       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18549       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18550       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18551     esac
18552   else :
18553     # compilation failed
18554     lt_cv_dlopen_self=no
18555   fi
18556 fi
18557 rm -fr conftest*
18558
18559
18560 fi
18561 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18562 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18563
18564     if test "x$lt_cv_dlopen_self" = xyes; then
18565       LDFLAGS="$LDFLAGS $link_static_flag"
18566       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18567 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18568 if test "${lt_cv_dlopen_self_static+set}" = set; then
18569   echo $ECHO_N "(cached) $ECHO_C" >&6
18570 else
18571           if test "$cross_compiling" = yes; then :
18572   lt_cv_dlopen_self_static=cross
18573 else
18574   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18575   lt_status=$lt_dlunknown
18576   cat > conftest.$ac_ext <<EOF
18577 #line 18577 "configure"
18578 #include "confdefs.h"
18579
18580 #if HAVE_DLFCN_H
18581 #include <dlfcn.h>
18582 #endif
18583
18584 #include <stdio.h>
18585
18586 #ifdef RTLD_GLOBAL
18587 #  define LT_DLGLOBAL           RTLD_GLOBAL
18588 #else
18589 #  ifdef DL_GLOBAL
18590 #    define LT_DLGLOBAL         DL_GLOBAL
18591 #  else
18592 #    define LT_DLGLOBAL         0
18593 #  endif
18594 #endif
18595
18596 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18597    find out it does not work in some platform. */
18598 #ifndef LT_DLLAZY_OR_NOW
18599 #  ifdef RTLD_LAZY
18600 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18601 #  else
18602 #    ifdef DL_LAZY
18603 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18604 #    else
18605 #      ifdef RTLD_NOW
18606 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18607 #      else
18608 #        ifdef DL_NOW
18609 #          define LT_DLLAZY_OR_NOW      DL_NOW
18610 #        else
18611 #          define LT_DLLAZY_OR_NOW      0
18612 #        endif
18613 #      endif
18614 #    endif
18615 #  endif
18616 #endif
18617
18618 #ifdef __cplusplus
18619 extern "C" void exit (int);
18620 #endif
18621
18622 void fnord() { int i=42;}
18623 int main ()
18624 {
18625   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18626   int status = $lt_dlunknown;
18627
18628   if (self)
18629     {
18630       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18631       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18632       /* dlclose (self); */
18633     }
18634
18635     exit (status);
18636 }
18637 EOF
18638   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18639   (eval $ac_link) 2>&5
18640   ac_status=$?
18641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18643     (./conftest; exit; ) 2>/dev/null
18644     lt_status=$?
18645     case x$lt_status in
18646       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18647       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18648       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18649     esac
18650   else :
18651     # compilation failed
18652     lt_cv_dlopen_self_static=no
18653   fi
18654 fi
18655 rm -fr conftest*
18656
18657
18658 fi
18659 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18660 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18661     fi
18662
18663     CPPFLAGS="$save_CPPFLAGS"
18664     LDFLAGS="$save_LDFLAGS"
18665     LIBS="$save_LIBS"
18666     ;;
18667   esac
18668
18669   case $lt_cv_dlopen_self in
18670   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18671   *) enable_dlopen_self=unknown ;;
18672   esac
18673
18674   case $lt_cv_dlopen_self_static in
18675   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18676   *) enable_dlopen_self_static=unknown ;;
18677   esac
18678 fi
18679
18680
18681 # The else clause should only fire when bootstrapping the
18682 # libtool distribution, otherwise you forgot to ship ltmain.sh
18683 # with your package, and you will get complaints that there are
18684 # no rules to generate ltmain.sh.
18685 if test -f "$ltmain"; then
18686   # See if we are running on zsh, and set the options which allow our commands through
18687   # without removal of \ escapes.
18688   if test -n "${ZSH_VERSION+set}" ; then
18689     setopt NO_GLOB_SUBST
18690   fi
18691   # Now quote all the things that may contain metacharacters while being
18692   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18693   # variables and quote the copies for generation of the libtool script.
18694   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18695     SED SHELL STRIP \
18696     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18697     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18698     deplibs_check_method reload_flag reload_cmds need_locks \
18699     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18700     lt_cv_sys_global_symbol_to_c_name_address \
18701     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18702     old_postinstall_cmds old_postuninstall_cmds \
18703     compiler_GCJ \
18704     CC_GCJ \
18705     LD_GCJ \
18706     lt_prog_compiler_wl_GCJ \
18707     lt_prog_compiler_pic_GCJ \
18708     lt_prog_compiler_static_GCJ \
18709     lt_prog_compiler_no_builtin_flag_GCJ \
18710     export_dynamic_flag_spec_GCJ \
18711     thread_safe_flag_spec_GCJ \
18712     whole_archive_flag_spec_GCJ \
18713     enable_shared_with_static_runtimes_GCJ \
18714     old_archive_cmds_GCJ \
18715     old_archive_from_new_cmds_GCJ \
18716     predep_objects_GCJ \
18717     postdep_objects_GCJ \
18718     predeps_GCJ \
18719     postdeps_GCJ \
18720     compiler_lib_search_path_GCJ \
18721     archive_cmds_GCJ \
18722     archive_expsym_cmds_GCJ \
18723     postinstall_cmds_GCJ \
18724     postuninstall_cmds_GCJ \
18725     old_archive_from_expsyms_cmds_GCJ \
18726     allow_undefined_flag_GCJ \
18727     no_undefined_flag_GCJ \
18728     export_symbols_cmds_GCJ \
18729     hardcode_libdir_flag_spec_GCJ \
18730     hardcode_libdir_flag_spec_ld_GCJ \
18731     hardcode_libdir_separator_GCJ \
18732     hardcode_automatic_GCJ \
18733     module_cmds_GCJ \
18734     module_expsym_cmds_GCJ \
18735     lt_cv_prog_compiler_c_o_GCJ \
18736     exclude_expsyms_GCJ \
18737     include_expsyms_GCJ; do
18738
18739     case $var in
18740     old_archive_cmds_GCJ | \
18741     old_archive_from_new_cmds_GCJ | \
18742     archive_cmds_GCJ | \
18743     archive_expsym_cmds_GCJ | \
18744     module_cmds_GCJ | \
18745     module_expsym_cmds_GCJ | \
18746     old_archive_from_expsyms_cmds_GCJ | \
18747     export_symbols_cmds_GCJ | \
18748     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18749     postinstall_cmds | postuninstall_cmds | \
18750     old_postinstall_cmds | old_postuninstall_cmds | \
18751     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18752       # Double-quote double-evaled strings.
18753       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18754       ;;
18755     *)
18756       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18757       ;;
18758     esac
18759   done
18760
18761   case $lt_echo in
18762   *'\$0 --fallback-echo"')
18763     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18764     ;;
18765   esac
18766
18767 cfgfile="$ofile"
18768
18769   cat <<__EOF__ >> "$cfgfile"
18770 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18771
18772 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18773
18774 # Shell to use when invoking shell scripts.
18775 SHELL=$lt_SHELL
18776
18777 # Whether or not to build shared libraries.
18778 build_libtool_libs=$enable_shared
18779
18780 # Whether or not to build static libraries.
18781 build_old_libs=$enable_static
18782
18783 # Whether or not to add -lc for building shared libraries.
18784 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18785
18786 # Whether or not to disallow shared libs when runtime libs are static
18787 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18788
18789 # Whether or not to optimize for fast installation.
18790 fast_install=$enable_fast_install
18791
18792 # The host system.
18793 host_alias=$host_alias
18794 host=$host
18795 host_os=$host_os
18796
18797 # The build system.
18798 build_alias=$build_alias
18799 build=$build
18800 build_os=$build_os
18801
18802 # An echo program that does not interpret backslashes.
18803 echo=$lt_echo
18804
18805 # The archiver.
18806 AR=$lt_AR
18807 AR_FLAGS=$lt_AR_FLAGS
18808
18809 # A C compiler.
18810 LTCC=$lt_LTCC
18811
18812 # A language-specific compiler.
18813 CC=$lt_compiler_GCJ
18814
18815 # Is the compiler the GNU C compiler?
18816 with_gcc=$GCC_GCJ
18817
18818 # An ERE matcher.
18819 EGREP=$lt_EGREP
18820
18821 # The linker used to build libraries.
18822 LD=$lt_LD_GCJ
18823
18824 # Whether we need hard or soft links.
18825 LN_S=$lt_LN_S
18826
18827 # A BSD-compatible nm program.
18828 NM=$lt_NM
18829
18830 # A symbol stripping program
18831 STRIP=$lt_STRIP
18832
18833 # Used to examine libraries when file_magic_cmd begins "file"
18834 MAGIC_CMD=$MAGIC_CMD
18835
18836 # Used on cygwin: DLL creation program.
18837 DLLTOOL="$DLLTOOL"
18838
18839 # Used on cygwin: object dumper.
18840 OBJDUMP="$OBJDUMP"
18841
18842 # Used on cygwin: assembler.
18843 AS="$AS"
18844
18845 # The name of the directory that contains temporary libtool files.
18846 objdir=$objdir
18847
18848 # How to create reloadable object files.
18849 reload_flag=$lt_reload_flag
18850 reload_cmds=$lt_reload_cmds
18851
18852 # How to pass a linker flag through the compiler.
18853 wl=$lt_lt_prog_compiler_wl_GCJ
18854
18855 # Object file suffix (normally "o").
18856 objext="$ac_objext"
18857
18858 # Old archive suffix (normally "a").
18859 libext="$libext"
18860
18861 # Shared library suffix (normally ".so").
18862 shrext_cmds='$shrext_cmds'
18863
18864 # Executable file suffix (normally "").
18865 exeext="$exeext"
18866
18867 # Additional compiler flags for building library objects.
18868 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18869 pic_mode=$pic_mode
18870
18871 # What is the maximum length of a command?
18872 max_cmd_len=$lt_cv_sys_max_cmd_len
18873
18874 # Does compiler simultaneously support -c and -o options?
18875 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18876
18877 # Must we lock files when doing compilation?
18878 need_locks=$lt_need_locks
18879
18880 # Do we need the lib prefix for modules?
18881 need_lib_prefix=$need_lib_prefix
18882
18883 # Do we need a version for libraries?
18884 need_version=$need_version
18885
18886 # Whether dlopen is supported.
18887 dlopen_support=$enable_dlopen
18888
18889 # Whether dlopen of programs is supported.
18890 dlopen_self=$enable_dlopen_self
18891
18892 # Whether dlopen of statically linked programs is supported.
18893 dlopen_self_static=$enable_dlopen_self_static
18894
18895 # Compiler flag to prevent dynamic linking.
18896 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18897
18898 # Compiler flag to turn off builtin functions.
18899 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18900
18901 # Compiler flag to allow reflexive dlopens.
18902 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18903
18904 # Compiler flag to generate shared objects directly from archives.
18905 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18906
18907 # Compiler flag to generate thread-safe objects.
18908 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18909
18910 # Library versioning type.
18911 version_type=$version_type
18912
18913 # Format of library name prefix.
18914 libname_spec=$lt_libname_spec
18915
18916 # List of archive names.  First name is the real one, the rest are links.
18917 # The last name is the one that the linker finds with -lNAME.
18918 library_names_spec=$lt_library_names_spec
18919
18920 # The coded name of the library, if different from the real name.
18921 soname_spec=$lt_soname_spec
18922
18923 # Commands used to build and install an old-style archive.
18924 RANLIB=$lt_RANLIB
18925 old_archive_cmds=$lt_old_archive_cmds_GCJ
18926 old_postinstall_cmds=$lt_old_postinstall_cmds
18927 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18928
18929 # Create an old-style archive from a shared archive.
18930 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18931
18932 # Create a temporary old-style archive to link instead of a shared archive.
18933 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18934
18935 # Commands used to build and install a shared archive.
18936 archive_cmds=$lt_archive_cmds_GCJ
18937 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18938 postinstall_cmds=$lt_postinstall_cmds
18939 postuninstall_cmds=$lt_postuninstall_cmds
18940
18941 # Commands used to build a loadable module (assumed same as above if empty)
18942 module_cmds=$lt_module_cmds_GCJ
18943 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18944
18945 # Commands to strip libraries.
18946 old_striplib=$lt_old_striplib
18947 striplib=$lt_striplib
18948
18949 # Dependencies to place before the objects being linked to create a
18950 # shared library.
18951 predep_objects=$lt_predep_objects_GCJ
18952
18953 # Dependencies to place after the objects being linked to create a
18954 # shared library.
18955 postdep_objects=$lt_postdep_objects_GCJ
18956
18957 # Dependencies to place before the objects being linked to create a
18958 # shared library.
18959 predeps=$lt_predeps_GCJ
18960
18961 # Dependencies to place after the objects being linked to create a
18962 # shared library.
18963 postdeps=$lt_postdeps_GCJ
18964
18965 # The library search path used internally by the compiler when linking
18966 # a shared library.
18967 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18968
18969 # Method to check whether dependent libraries are shared objects.
18970 deplibs_check_method=$lt_deplibs_check_method
18971
18972 # Command to use when deplibs_check_method == file_magic.
18973 file_magic_cmd=$lt_file_magic_cmd
18974
18975 # Flag that allows shared libraries with undefined symbols to be built.
18976 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18977
18978 # Flag that forces no undefined symbols.
18979 no_undefined_flag=$lt_no_undefined_flag_GCJ
18980
18981 # Commands used to finish a libtool library installation in a directory.
18982 finish_cmds=$lt_finish_cmds
18983
18984 # Same as above, but a single script fragment to be evaled but not shown.
18985 finish_eval=$lt_finish_eval
18986
18987 # Take the output of nm and produce a listing of raw symbols and C names.
18988 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18989
18990 # Transform the output of nm in a proper C declaration
18991 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18992
18993 # Transform the output of nm in a C name address pair
18994 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18995
18996 # This is the shared library runtime path variable.
18997 runpath_var=$runpath_var
18998
18999 # This is the shared library path variable.
19000 shlibpath_var=$shlibpath_var
19001
19002 # Is shlibpath searched before the hard-coded library search path?
19003 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19004
19005 # How to hardcode a shared library path into an executable.
19006 hardcode_action=$hardcode_action_GCJ
19007
19008 # Whether we should hardcode library paths into libraries.
19009 hardcode_into_libs=$hardcode_into_libs
19010
19011 # Flag to hardcode \$libdir into a binary during linking.
19012 # This must work even if \$libdir does not exist.
19013 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19014
19015 # If ld is used when linking, flag to hardcode \$libdir into
19016 # a binary during linking. This must work even if \$libdir does
19017 # not exist.
19018 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19019
19020 # Whether we need a single -rpath flag with a separated argument.
19021 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19022
19023 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19024 # resulting binary.
19025 hardcode_direct=$hardcode_direct_GCJ
19026
19027 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19028 # resulting binary.
19029 hardcode_minus_L=$hardcode_minus_L_GCJ
19030
19031 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19032 # the resulting binary.
19033 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19034
19035 # Set to yes if building a shared library automatically hardcodes DIR into the library
19036 # and all subsequent libraries and executables linked against it.
19037 hardcode_automatic=$hardcode_automatic_GCJ
19038
19039 # Variables whose values should be saved in libtool wrapper scripts and
19040 # restored at relink time.
19041 variables_saved_for_relink="$variables_saved_for_relink"
19042
19043 # Whether libtool must link a program against all its dependency libraries.
19044 link_all_deplibs=$link_all_deplibs_GCJ
19045
19046 # Compile-time system search path for libraries
19047 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19048
19049 # Run-time system search path for libraries
19050 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19051
19052 # Fix the shell variable \$srcfile for the compiler.
19053 fix_srcfile_path="$fix_srcfile_path_GCJ"
19054
19055 # Set to yes if exported symbols are required.
19056 always_export_symbols=$always_export_symbols_GCJ
19057
19058 # The commands to list exported symbols.
19059 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19060
19061 # The commands to extract the exported symbol list from a shared archive.
19062 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19063
19064 # Symbols that should not be listed in the preloaded symbols.
19065 exclude_expsyms=$lt_exclude_expsyms_GCJ
19066
19067 # Symbols that must always be exported.
19068 include_expsyms=$lt_include_expsyms_GCJ
19069
19070 # ### END LIBTOOL TAG CONFIG: $tagname
19071
19072 __EOF__
19073
19074
19075 else
19076   # If there is no Makefile yet, we rely on a make rule to execute
19077   # `config.status --recheck' to rerun these tests and create the
19078   # libtool script then.
19079   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19080   if test -f "$ltmain_in"; then
19081     test -f Makefile && make "$ltmain"
19082   fi
19083 fi
19084
19085
19086 ac_ext=c
19087 ac_cpp='$CPP $CPPFLAGS'
19088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19091
19092 CC="$lt_save_CC"
19093
19094         else
19095           tagname=""
19096         fi
19097         ;;
19098
19099       RC)
19100
19101
19102
19103 # Source file extension for RC test sources.
19104 ac_ext=rc
19105
19106 # Object file extension for compiled RC test sources.
19107 objext=o
19108 objext_RC=$objext
19109
19110 # Code to be used in simple compile tests
19111 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19112
19113 # Code to be used in simple link tests
19114 lt_simple_link_test_code="$lt_simple_compile_test_code"
19115
19116 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19117
19118 # If no C compiler was specified, use CC.
19119 LTCC=${LTCC-"$CC"}
19120
19121 # Allow CC to be a program name with arguments.
19122 compiler=$CC
19123
19124
19125 # save warnings/boilerplate of simple test code
19126 ac_outfile=conftest.$ac_objext
19127 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19128 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19129 _lt_compiler_boilerplate=`cat conftest.err`
19130 $rm conftest*
19131
19132 ac_outfile=conftest.$ac_objext
19133 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19134 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19135 _lt_linker_boilerplate=`cat conftest.err`
19136 $rm conftest*
19137
19138
19139 # Allow CC to be a program name with arguments.
19140 lt_save_CC="$CC"
19141 CC=${RC-"windres"}
19142 compiler=$CC
19143 compiler_RC=$CC
19144 for cc_temp in $compiler""; do
19145   case $cc_temp in
19146     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19147     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19148     \-*) ;;
19149     *) break;;
19150   esac
19151 done
19152 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19153
19154 lt_cv_prog_compiler_c_o_RC=yes
19155
19156 # The else clause should only fire when bootstrapping the
19157 # libtool distribution, otherwise you forgot to ship ltmain.sh
19158 # with your package, and you will get complaints that there are
19159 # no rules to generate ltmain.sh.
19160 if test -f "$ltmain"; then
19161   # See if we are running on zsh, and set the options which allow our commands through
19162   # without removal of \ escapes.
19163   if test -n "${ZSH_VERSION+set}" ; then
19164     setopt NO_GLOB_SUBST
19165   fi
19166   # Now quote all the things that may contain metacharacters while being
19167   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19168   # variables and quote the copies for generation of the libtool script.
19169   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19170     SED SHELL STRIP \
19171     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19172     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19173     deplibs_check_method reload_flag reload_cmds need_locks \
19174     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19175     lt_cv_sys_global_symbol_to_c_name_address \
19176     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19177     old_postinstall_cmds old_postuninstall_cmds \
19178     compiler_RC \
19179     CC_RC \
19180     LD_RC \
19181     lt_prog_compiler_wl_RC \
19182     lt_prog_compiler_pic_RC \
19183     lt_prog_compiler_static_RC \
19184     lt_prog_compiler_no_builtin_flag_RC \
19185     export_dynamic_flag_spec_RC \
19186     thread_safe_flag_spec_RC \
19187     whole_archive_flag_spec_RC \
19188     enable_shared_with_static_runtimes_RC \
19189     old_archive_cmds_RC \
19190     old_archive_from_new_cmds_RC \
19191     predep_objects_RC \
19192     postdep_objects_RC \
19193     predeps_RC \
19194     postdeps_RC \
19195     compiler_lib_search_path_RC \
19196     archive_cmds_RC \
19197     archive_expsym_cmds_RC \
19198     postinstall_cmds_RC \
19199     postuninstall_cmds_RC \
19200     old_archive_from_expsyms_cmds_RC \
19201     allow_undefined_flag_RC \
19202     no_undefined_flag_RC \
19203     export_symbols_cmds_RC \
19204     hardcode_libdir_flag_spec_RC \
19205     hardcode_libdir_flag_spec_ld_RC \
19206     hardcode_libdir_separator_RC \
19207     hardcode_automatic_RC \
19208     module_cmds_RC \
19209     module_expsym_cmds_RC \
19210     lt_cv_prog_compiler_c_o_RC \
19211     exclude_expsyms_RC \
19212     include_expsyms_RC; do
19213
19214     case $var in
19215     old_archive_cmds_RC | \
19216     old_archive_from_new_cmds_RC | \
19217     archive_cmds_RC | \
19218     archive_expsym_cmds_RC | \
19219     module_cmds_RC | \
19220     module_expsym_cmds_RC | \
19221     old_archive_from_expsyms_cmds_RC | \
19222     export_symbols_cmds_RC | \
19223     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19224     postinstall_cmds | postuninstall_cmds | \
19225     old_postinstall_cmds | old_postuninstall_cmds | \
19226     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19227       # Double-quote double-evaled strings.
19228       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19229       ;;
19230     *)
19231       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19232       ;;
19233     esac
19234   done
19235
19236   case $lt_echo in
19237   *'\$0 --fallback-echo"')
19238     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19239     ;;
19240   esac
19241
19242 cfgfile="$ofile"
19243
19244   cat <<__EOF__ >> "$cfgfile"
19245 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19246
19247 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19248
19249 # Shell to use when invoking shell scripts.
19250 SHELL=$lt_SHELL
19251
19252 # Whether or not to build shared libraries.
19253 build_libtool_libs=$enable_shared
19254
19255 # Whether or not to build static libraries.
19256 build_old_libs=$enable_static
19257
19258 # Whether or not to add -lc for building shared libraries.
19259 build_libtool_need_lc=$archive_cmds_need_lc_RC
19260
19261 # Whether or not to disallow shared libs when runtime libs are static
19262 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19263
19264 # Whether or not to optimize for fast installation.
19265 fast_install=$enable_fast_install
19266
19267 # The host system.
19268 host_alias=$host_alias
19269 host=$host
19270 host_os=$host_os
19271
19272 # The build system.
19273 build_alias=$build_alias
19274 build=$build
19275 build_os=$build_os
19276
19277 # An echo program that does not interpret backslashes.
19278 echo=$lt_echo
19279
19280 # The archiver.
19281 AR=$lt_AR
19282 AR_FLAGS=$lt_AR_FLAGS
19283
19284 # A C compiler.
19285 LTCC=$lt_LTCC
19286
19287 # A language-specific compiler.
19288 CC=$lt_compiler_RC
19289
19290 # Is the compiler the GNU C compiler?
19291 with_gcc=$GCC_RC
19292
19293 # An ERE matcher.
19294 EGREP=$lt_EGREP
19295
19296 # The linker used to build libraries.
19297 LD=$lt_LD_RC
19298
19299 # Whether we need hard or soft links.
19300 LN_S=$lt_LN_S
19301
19302 # A BSD-compatible nm program.
19303 NM=$lt_NM
19304
19305 # A symbol stripping program
19306 STRIP=$lt_STRIP
19307
19308 # Used to examine libraries when file_magic_cmd begins "file"
19309 MAGIC_CMD=$MAGIC_CMD
19310
19311 # Used on cygwin: DLL creation program.
19312 DLLTOOL="$DLLTOOL"
19313
19314 # Used on cygwin: object dumper.
19315 OBJDUMP="$OBJDUMP"
19316
19317 # Used on cygwin: assembler.
19318 AS="$AS"
19319
19320 # The name of the directory that contains temporary libtool files.
19321 objdir=$objdir
19322
19323 # How to create reloadable object files.
19324 reload_flag=$lt_reload_flag
19325 reload_cmds=$lt_reload_cmds
19326
19327 # How to pass a linker flag through the compiler.
19328 wl=$lt_lt_prog_compiler_wl_RC
19329
19330 # Object file suffix (normally "o").
19331 objext="$ac_objext"
19332
19333 # Old archive suffix (normally "a").
19334 libext="$libext"
19335
19336 # Shared library suffix (normally ".so").
19337 shrext_cmds='$shrext_cmds'
19338
19339 # Executable file suffix (normally "").
19340 exeext="$exeext"
19341
19342 # Additional compiler flags for building library objects.
19343 pic_flag=$lt_lt_prog_compiler_pic_RC
19344 pic_mode=$pic_mode
19345
19346 # What is the maximum length of a command?
19347 max_cmd_len=$lt_cv_sys_max_cmd_len
19348
19349 # Does compiler simultaneously support -c and -o options?
19350 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19351
19352 # Must we lock files when doing compilation?
19353 need_locks=$lt_need_locks
19354
19355 # Do we need the lib prefix for modules?
19356 need_lib_prefix=$need_lib_prefix
19357
19358 # Do we need a version for libraries?
19359 need_version=$need_version
19360
19361 # Whether dlopen is supported.
19362 dlopen_support=$enable_dlopen
19363
19364 # Whether dlopen of programs is supported.
19365 dlopen_self=$enable_dlopen_self
19366
19367 # Whether dlopen of statically linked programs is supported.
19368 dlopen_self_static=$enable_dlopen_self_static
19369
19370 # Compiler flag to prevent dynamic linking.
19371 link_static_flag=$lt_lt_prog_compiler_static_RC
19372
19373 # Compiler flag to turn off builtin functions.
19374 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19375
19376 # Compiler flag to allow reflexive dlopens.
19377 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19378
19379 # Compiler flag to generate shared objects directly from archives.
19380 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19381
19382 # Compiler flag to generate thread-safe objects.
19383 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19384
19385 # Library versioning type.
19386 version_type=$version_type
19387
19388 # Format of library name prefix.
19389 libname_spec=$lt_libname_spec
19390
19391 # List of archive names.  First name is the real one, the rest are links.
19392 # The last name is the one that the linker finds with -lNAME.
19393 library_names_spec=$lt_library_names_spec
19394
19395 # The coded name of the library, if different from the real name.
19396 soname_spec=$lt_soname_spec
19397
19398 # Commands used to build and install an old-style archive.
19399 RANLIB=$lt_RANLIB
19400 old_archive_cmds=$lt_old_archive_cmds_RC
19401 old_postinstall_cmds=$lt_old_postinstall_cmds
19402 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19403
19404 # Create an old-style archive from a shared archive.
19405 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19406
19407 # Create a temporary old-style archive to link instead of a shared archive.
19408 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19409
19410 # Commands used to build and install a shared archive.
19411 archive_cmds=$lt_archive_cmds_RC
19412 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19413 postinstall_cmds=$lt_postinstall_cmds
19414 postuninstall_cmds=$lt_postuninstall_cmds
19415
19416 # Commands used to build a loadable module (assumed same as above if empty)
19417 module_cmds=$lt_module_cmds_RC
19418 module_expsym_cmds=$lt_module_expsym_cmds_RC
19419
19420 # Commands to strip libraries.
19421 old_striplib=$lt_old_striplib
19422 striplib=$lt_striplib
19423
19424 # Dependencies to place before the objects being linked to create a
19425 # shared library.
19426 predep_objects=$lt_predep_objects_RC
19427
19428 # Dependencies to place after the objects being linked to create a
19429 # shared library.
19430 postdep_objects=$lt_postdep_objects_RC
19431
19432 # Dependencies to place before the objects being linked to create a
19433 # shared library.
19434 predeps=$lt_predeps_RC
19435
19436 # Dependencies to place after the objects being linked to create a
19437 # shared library.
19438 postdeps=$lt_postdeps_RC
19439
19440 # The library search path used internally by the compiler when linking
19441 # a shared library.
19442 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19443
19444 # Method to check whether dependent libraries are shared objects.
19445 deplibs_check_method=$lt_deplibs_check_method
19446
19447 # Command to use when deplibs_check_method == file_magic.
19448 file_magic_cmd=$lt_file_magic_cmd
19449
19450 # Flag that allows shared libraries with undefined symbols to be built.
19451 allow_undefined_flag=$lt_allow_undefined_flag_RC
19452
19453 # Flag that forces no undefined symbols.
19454 no_undefined_flag=$lt_no_undefined_flag_RC
19455
19456 # Commands used to finish a libtool library installation in a directory.
19457 finish_cmds=$lt_finish_cmds
19458
19459 # Same as above, but a single script fragment to be evaled but not shown.
19460 finish_eval=$lt_finish_eval
19461
19462 # Take the output of nm and produce a listing of raw symbols and C names.
19463 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19464
19465 # Transform the output of nm in a proper C declaration
19466 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19467
19468 # Transform the output of nm in a C name address pair
19469 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19470
19471 # This is the shared library runtime path variable.
19472 runpath_var=$runpath_var
19473
19474 # This is the shared library path variable.
19475 shlibpath_var=$shlibpath_var
19476
19477 # Is shlibpath searched before the hard-coded library search path?
19478 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19479
19480 # How to hardcode a shared library path into an executable.
19481 hardcode_action=$hardcode_action_RC
19482
19483 # Whether we should hardcode library paths into libraries.
19484 hardcode_into_libs=$hardcode_into_libs
19485
19486 # Flag to hardcode \$libdir into a binary during linking.
19487 # This must work even if \$libdir does not exist.
19488 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19489
19490 # If ld is used when linking, flag to hardcode \$libdir into
19491 # a binary during linking. This must work even if \$libdir does
19492 # not exist.
19493 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19494
19495 # Whether we need a single -rpath flag with a separated argument.
19496 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19497
19498 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19499 # resulting binary.
19500 hardcode_direct=$hardcode_direct_RC
19501
19502 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19503 # resulting binary.
19504 hardcode_minus_L=$hardcode_minus_L_RC
19505
19506 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19507 # the resulting binary.
19508 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19509
19510 # Set to yes if building a shared library automatically hardcodes DIR into the library
19511 # and all subsequent libraries and executables linked against it.
19512 hardcode_automatic=$hardcode_automatic_RC
19513
19514 # Variables whose values should be saved in libtool wrapper scripts and
19515 # restored at relink time.
19516 variables_saved_for_relink="$variables_saved_for_relink"
19517
19518 # Whether libtool must link a program against all its dependency libraries.
19519 link_all_deplibs=$link_all_deplibs_RC
19520
19521 # Compile-time system search path for libraries
19522 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19523
19524 # Run-time system search path for libraries
19525 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19526
19527 # Fix the shell variable \$srcfile for the compiler.
19528 fix_srcfile_path="$fix_srcfile_path_RC"
19529
19530 # Set to yes if exported symbols are required.
19531 always_export_symbols=$always_export_symbols_RC
19532
19533 # The commands to list exported symbols.
19534 export_symbols_cmds=$lt_export_symbols_cmds_RC
19535
19536 # The commands to extract the exported symbol list from a shared archive.
19537 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19538
19539 # Symbols that should not be listed in the preloaded symbols.
19540 exclude_expsyms=$lt_exclude_expsyms_RC
19541
19542 # Symbols that must always be exported.
19543 include_expsyms=$lt_include_expsyms_RC
19544
19545 # ### END LIBTOOL TAG CONFIG: $tagname
19546
19547 __EOF__
19548
19549
19550 else
19551   # If there is no Makefile yet, we rely on a make rule to execute
19552   # `config.status --recheck' to rerun these tests and create the
19553   # libtool script then.
19554   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19555   if test -f "$ltmain_in"; then
19556     test -f Makefile && make "$ltmain"
19557   fi
19558 fi
19559
19560
19561 ac_ext=c
19562 ac_cpp='$CPP $CPPFLAGS'
19563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19566
19567 CC="$lt_save_CC"
19568
19569         ;;
19570
19571       *)
19572         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19573 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19574    { (exit 1); exit 1; }; }
19575         ;;
19576       esac
19577
19578       # Append the new tag name to the list of available tags.
19579       if test -n "$tagname" ; then
19580       available_tags="$available_tags $tagname"
19581     fi
19582     fi
19583   done
19584   IFS="$lt_save_ifs"
19585
19586   # Now substitute the updated list of available tags.
19587   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19588     mv "${ofile}T" "$ofile"
19589     chmod +x "$ofile"
19590   else
19591     rm -f "${ofile}T"
19592     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19593 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19594    { (exit 1); exit 1; }; }
19595   fi
19596 fi
19597
19598
19599
19600 # This can be used to rebuild libtool when needed
19601 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19602
19603 # Always use our own libtool.
19604 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19605
19606 # Prevent multiple expansion
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627 # Check whether --enable-debug or --disable-debug was given.
19628 if test "${enable_debug+set}" = set; then
19629   enableval="$enable_debug"
19630
19631         CXXFLAGS="-g -O0 -Wall"
19632     cat >>confdefs.h <<\_ACEOF
19633 #define WITH_DEBUG 1
19634 _ACEOF
19635
19636
19637 else
19638
19639         CXXFLAGS="-O0"
19640
19641
19642 fi;
19643
19644
19645 # Check whether --with-libldap or --without-libldap was given.
19646 if test "${with_libldap+set}" = set; then
19647   withval="$with_libldap"
19648
19649         LIBS="-L$with_libldap $LIBS "
19650
19651 else
19652
19653         LIBS="-L/usr/local/lib $LIBS "
19654
19655
19656 fi;
19657
19658
19659 # Check whether --with-ldap-includes or --without-ldap-includes was given.
19660 if test "${with_ldap_includes+set}" = set; then
19661   withval="$with_ldap_includes"
19662
19663         CPPFLAGS="-I$with_ldap_includes $CPPFLAGS "
19664
19665 else
19666
19667         CPPFLAGS="-I/usr/local/include $CPPFLAGS "
19668
19669
19670 fi;
19671
19672 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
19673 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
19674 if test "${ac_cv_lib_resolv_main+set}" = set; then
19675   echo $ECHO_N "(cached) $ECHO_C" >&6
19676 else
19677   ac_check_lib_save_LIBS=$LIBS
19678 LIBS="-lresolv  $LIBS"
19679 cat >conftest.$ac_ext <<_ACEOF
19680 /* confdefs.h.  */
19681 _ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h.  */
19685
19686
19687 int
19688 main ()
19689 {
19690 main ();
19691   ;
19692   return 0;
19693 }
19694 _ACEOF
19695 rm -f conftest.$ac_objext conftest$ac_exeext
19696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19697   (eval $ac_link) 2>conftest.er1
19698   ac_status=$?
19699   grep -v '^ *+' conftest.er1 >conftest.err
19700   rm -f conftest.er1
19701   cat conftest.err >&5
19702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703   (exit $ac_status); } &&
19704          { ac_try='test -z "$ac_c_werror_flag"
19705                          || test ! -s conftest.err'
19706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19707   (eval $ac_try) 2>&5
19708   ac_status=$?
19709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710   (exit $ac_status); }; } &&
19711          { ac_try='test -s conftest$ac_exeext'
19712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19713   (eval $ac_try) 2>&5
19714   ac_status=$?
19715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716   (exit $ac_status); }; }; then
19717   ac_cv_lib_resolv_main=yes
19718 else
19719   echo "$as_me: failed program was:" >&5
19720 sed 's/^/| /' conftest.$ac_ext >&5
19721
19722 ac_cv_lib_resolv_main=no
19723 fi
19724 rm -f conftest.err conftest.$ac_objext \
19725       conftest$ac_exeext conftest.$ac_ext
19726 LIBS=$ac_check_lib_save_LIBS
19727 fi
19728 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
19729 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
19730 if test $ac_cv_lib_resolv_main = yes; then
19731   cat >>confdefs.h <<_ACEOF
19732 #define HAVE_LIBRESOLV 1
19733 _ACEOF
19734
19735   LIBS="-lresolv $LIBS"
19736
19737 fi
19738
19739 echo "$as_me:$LINENO: checking for ber_strdup in -llber" >&5
19740 echo $ECHO_N "checking for ber_strdup in -llber... $ECHO_C" >&6
19741 if test "${ac_cv_lib_lber_ber_strdup+set}" = set; then
19742   echo $ECHO_N "(cached) $ECHO_C" >&6
19743 else
19744   ac_check_lib_save_LIBS=$LIBS
19745 LIBS="-llber  $LIBS"
19746 cat >conftest.$ac_ext <<_ACEOF
19747 /* confdefs.h.  */
19748 _ACEOF
19749 cat confdefs.h >>conftest.$ac_ext
19750 cat >>conftest.$ac_ext <<_ACEOF
19751 /* end confdefs.h.  */
19752
19753 /* Override any gcc2 internal prototype to avoid an error.  */
19754 #ifdef __cplusplus
19755 extern "C"
19756 #endif
19757 /* We use char because int might match the return type of a gcc2
19758    builtin and then its argument prototype would still apply.  */
19759 char ber_strdup ();
19760 int
19761 main ()
19762 {
19763 ber_strdup ();
19764   ;
19765   return 0;
19766 }
19767 _ACEOF
19768 rm -f conftest.$ac_objext conftest$ac_exeext
19769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19770   (eval $ac_link) 2>conftest.er1
19771   ac_status=$?
19772   grep -v '^ *+' conftest.er1 >conftest.err
19773   rm -f conftest.er1
19774   cat conftest.err >&5
19775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776   (exit $ac_status); } &&
19777          { ac_try='test -z "$ac_c_werror_flag"
19778                          || test ! -s conftest.err'
19779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780   (eval $ac_try) 2>&5
19781   ac_status=$?
19782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783   (exit $ac_status); }; } &&
19784          { ac_try='test -s conftest$ac_exeext'
19785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19786   (eval $ac_try) 2>&5
19787   ac_status=$?
19788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789   (exit $ac_status); }; }; then
19790   ac_cv_lib_lber_ber_strdup=yes
19791 else
19792   echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.$ac_ext >&5
19794
19795 ac_cv_lib_lber_ber_strdup=no
19796 fi
19797 rm -f conftest.err conftest.$ac_objext \
19798       conftest$ac_exeext conftest.$ac_ext
19799 LIBS=$ac_check_lib_save_LIBS
19800 fi
19801 echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_strdup" >&5
19802 echo "${ECHO_T}$ac_cv_lib_lber_ber_strdup" >&6
19803 if test $ac_cv_lib_lber_ber_strdup = yes; then
19804
19805         :
19806
19807 else
19808
19809         echo "        didn't find ber_strdup in liblber !";
19810         echo "        Check for the right version (>= 2.0) of the OpenLDAP libraries";
19811         echo "        or try the --with-libldap option.";
19812         exit
19813
19814 fi
19815
19816 echo "$as_me:$LINENO: checking for ldap_add_ext in -lldap" >&5
19817 echo $ECHO_N "checking for ldap_add_ext in -lldap... $ECHO_C" >&6
19818 if test "${ac_cv_lib_ldap_ldap_add_ext+set}" = set; then
19819   echo $ECHO_N "(cached) $ECHO_C" >&6
19820 else
19821   ac_check_lib_save_LIBS=$LIBS
19822 LIBS="-lldap
19823     -llber
19824      $LIBS"
19825 cat >conftest.$ac_ext <<_ACEOF
19826 /* confdefs.h.  */
19827 _ACEOF
19828 cat confdefs.h >>conftest.$ac_ext
19829 cat >>conftest.$ac_ext <<_ACEOF
19830 /* end confdefs.h.  */
19831
19832 /* Override any gcc2 internal prototype to avoid an error.  */
19833 #ifdef __cplusplus
19834 extern "C"
19835 #endif
19836 /* We use char because int might match the return type of a gcc2
19837    builtin and then its argument prototype would still apply.  */
19838 char ldap_add_ext ();
19839 int
19840 main ()
19841 {
19842 ldap_add_ext ();
19843   ;
19844   return 0;
19845 }
19846 _ACEOF
19847 rm -f conftest.$ac_objext conftest$ac_exeext
19848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19849   (eval $ac_link) 2>conftest.er1
19850   ac_status=$?
19851   grep -v '^ *+' conftest.er1 >conftest.err
19852   rm -f conftest.er1
19853   cat conftest.err >&5
19854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855   (exit $ac_status); } &&
19856          { ac_try='test -z "$ac_c_werror_flag"
19857                          || test ! -s conftest.err'
19858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19859   (eval $ac_try) 2>&5
19860   ac_status=$?
19861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862   (exit $ac_status); }; } &&
19863          { ac_try='test -s conftest$ac_exeext'
19864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19865   (eval $ac_try) 2>&5
19866   ac_status=$?
19867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868   (exit $ac_status); }; }; then
19869   ac_cv_lib_ldap_ldap_add_ext=yes
19870 else
19871   echo "$as_me: failed program was:" >&5
19872 sed 's/^/| /' conftest.$ac_ext >&5
19873
19874 ac_cv_lib_ldap_ldap_add_ext=no
19875 fi
19876 rm -f conftest.err conftest.$ac_objext \
19877       conftest$ac_exeext conftest.$ac_ext
19878 LIBS=$ac_check_lib_save_LIBS
19879 fi
19880 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_add_ext" >&5
19881 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_add_ext" >&6
19882 if test $ac_cv_lib_ldap_ldap_add_ext = yes; then
19883
19884         :
19885
19886 else
19887
19888         echo "        didn't find ldap_add_ext in libldap !";
19889         echo "        Check for the right version (>= 2.0) of the OpenLDAP libraries";
19890         echo "        or try the --with-libldap option.";
19891         exit
19892
19893 fi
19894
19895 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19896 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19897 if test "${ac_cv_header_time+set}" = set; then
19898   echo $ECHO_N "(cached) $ECHO_C" >&6
19899 else
19900   cat >conftest.$ac_ext <<_ACEOF
19901 /* confdefs.h.  */
19902 _ACEOF
19903 cat confdefs.h >>conftest.$ac_ext
19904 cat >>conftest.$ac_ext <<_ACEOF
19905 /* end confdefs.h.  */
19906 #include <sys/types.h>
19907 #include <sys/time.h>
19908 #include <time.h>
19909
19910 int
19911 main ()
19912 {
19913 if ((struct tm *) 0)
19914 return 0;
19915   ;
19916   return 0;
19917 }
19918 _ACEOF
19919 rm -f conftest.$ac_objext
19920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19921   (eval $ac_compile) 2>conftest.er1
19922   ac_status=$?
19923   grep -v '^ *+' conftest.er1 >conftest.err
19924   rm -f conftest.er1
19925   cat conftest.err >&5
19926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927   (exit $ac_status); } &&
19928          { ac_try='test -z "$ac_c_werror_flag"
19929                          || test ! -s conftest.err'
19930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19931   (eval $ac_try) 2>&5
19932   ac_status=$?
19933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934   (exit $ac_status); }; } &&
19935          { ac_try='test -s conftest.$ac_objext'
19936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19937   (eval $ac_try) 2>&5
19938   ac_status=$?
19939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940   (exit $ac_status); }; }; then
19941   ac_cv_header_time=yes
19942 else
19943   echo "$as_me: failed program was:" >&5
19944 sed 's/^/| /' conftest.$ac_ext >&5
19945
19946 ac_cv_header_time=no
19947 fi
19948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19949 fi
19950 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19951 echo "${ECHO_T}$ac_cv_header_time" >&6
19952 if test $ac_cv_header_time = yes; then
19953
19954 cat >>confdefs.h <<\_ACEOF
19955 #define TIME_WITH_SYS_TIME 1
19956 _ACEOF
19957
19958 fi
19959
19960 if test "${ac_cv_header_ldap_h+set}" = set; then
19961   echo "$as_me:$LINENO: checking for ldap.h" >&5
19962 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
19963 if test "${ac_cv_header_ldap_h+set}" = set; then
19964   echo $ECHO_N "(cached) $ECHO_C" >&6
19965 fi
19966 echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
19967 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
19968 else
19969   # Is the header compilable?
19970 echo "$as_me:$LINENO: checking ldap.h usability" >&5
19971 echo $ECHO_N "checking ldap.h usability... $ECHO_C" >&6
19972 cat >conftest.$ac_ext <<_ACEOF
19973 /* confdefs.h.  */
19974 _ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h.  */
19978 $ac_includes_default
19979 #include <ldap.h>
19980 _ACEOF
19981 rm -f conftest.$ac_objext
19982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19983   (eval $ac_compile) 2>conftest.er1
19984   ac_status=$?
19985   grep -v '^ *+' conftest.er1 >conftest.err
19986   rm -f conftest.er1
19987   cat conftest.err >&5
19988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989   (exit $ac_status); } &&
19990          { ac_try='test -z "$ac_c_werror_flag"
19991                          || test ! -s conftest.err'
19992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19993   (eval $ac_try) 2>&5
19994   ac_status=$?
19995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996   (exit $ac_status); }; } &&
19997          { ac_try='test -s conftest.$ac_objext'
19998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999   (eval $ac_try) 2>&5
20000   ac_status=$?
20001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002   (exit $ac_status); }; }; then
20003   ac_header_compiler=yes
20004 else
20005   echo "$as_me: failed program was:" >&5
20006 sed 's/^/| /' conftest.$ac_ext >&5
20007
20008 ac_header_compiler=no
20009 fi
20010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20011 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20012 echo "${ECHO_T}$ac_header_compiler" >&6
20013
20014 # Is the header present?
20015 echo "$as_me:$LINENO: checking ldap.h presence" >&5
20016 echo $ECHO_N "checking ldap.h presence... $ECHO_C" >&6
20017 cat >conftest.$ac_ext <<_ACEOF
20018 /* confdefs.h.  */
20019 _ACEOF
20020 cat confdefs.h >>conftest.$ac_ext
20021 cat >>conftest.$ac_ext <<_ACEOF
20022 /* end confdefs.h.  */
20023 #include <ldap.h>
20024 _ACEOF
20025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20026   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20027   ac_status=$?
20028   grep -v '^ *+' conftest.er1 >conftest.err
20029   rm -f conftest.er1
20030   cat conftest.err >&5
20031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032   (exit $ac_status); } >/dev/null; then
20033   if test -s conftest.err; then
20034     ac_cpp_err=$ac_c_preproc_warn_flag
20035     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20036   else
20037     ac_cpp_err=
20038   fi
20039 else
20040   ac_cpp_err=yes
20041 fi
20042 if test -z "$ac_cpp_err"; then
20043   ac_header_preproc=yes
20044 else
20045   echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.$ac_ext >&5
20047
20048   ac_header_preproc=no
20049 fi
20050 rm -f conftest.err conftest.$ac_ext
20051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20052 echo "${ECHO_T}$ac_header_preproc" >&6
20053
20054 # So?  What about this header?
20055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20056   yes:no: )
20057     { echo "$as_me:$LINENO: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&5
20058 echo "$as_me: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20059     { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the compiler's result" >&5
20060 echo "$as_me: WARNING: ldap.h: proceeding with the compiler's result" >&2;}
20061     ac_header_preproc=yes
20062     ;;
20063   no:yes:* )
20064     { echo "$as_me:$LINENO: WARNING: ldap.h: present but cannot be compiled" >&5
20065 echo "$as_me: WARNING: ldap.h: present but cannot be compiled" >&2;}
20066     { echo "$as_me:$LINENO: WARNING: ldap.h:     check for missing prerequisite headers?" >&5
20067 echo "$as_me: WARNING: ldap.h:     check for missing prerequisite headers?" >&2;}
20068     { echo "$as_me:$LINENO: WARNING: ldap.h: see the Autoconf documentation" >&5
20069 echo "$as_me: WARNING: ldap.h: see the Autoconf documentation" >&2;}
20070     { echo "$as_me:$LINENO: WARNING: ldap.h:     section \"Present But Cannot Be Compiled\"" >&5
20071 echo "$as_me: WARNING: ldap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20072     { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the preprocessor's result" >&5
20073 echo "$as_me: WARNING: ldap.h: proceeding with the preprocessor's result" >&2;}
20074     { echo "$as_me:$LINENO: WARNING: ldap.h: in the future, the compiler will take precedence" >&5
20075 echo "$as_me: WARNING: ldap.h: in the future, the compiler will take precedence" >&2;}
20076     (
20077       cat <<\_ASBOX
20078 ## ------------------------------------------ ##
20079 ## Report this to the AC_PACKAGE_NAME lists.  ##
20080 ## ------------------------------------------ ##
20081 _ASBOX
20082     ) |
20083       sed "s/^/$as_me: WARNING:     /" >&2
20084     ;;
20085 esac
20086 echo "$as_me:$LINENO: checking for ldap.h" >&5
20087 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
20088 if test "${ac_cv_header_ldap_h+set}" = set; then
20089   echo $ECHO_N "(cached) $ECHO_C" >&6
20090 else
20091   ac_cv_header_ldap_h=$ac_header_preproc
20092 fi
20093 echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
20094 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
20095
20096 fi
20097
20098
20099 cat >conftest.$ac_ext <<_ACEOF
20100 /* confdefs.h.  */
20101 _ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h.  */
20105 #include <ldap.h>
20106
20107 _ACEOF
20108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20109   $EGREP "ldap_add_ext" >/dev/null 2>&1; then
20110
20111         :
20112
20113 else
20114
20115         echo "        didn't find ldap_add_ext in ldap.h!";
20116         echo "        Check for the right version (>= 2.0) of the OpenLDAP includes";
20117         echo "        or try --with-ldap-includes option.";
20118         exit
20119
20120 fi
20121 rm -f conftest*
20122
20123 if test "${ac_cv_header_lber_h+set}" = set; then
20124   echo "$as_me:$LINENO: checking for lber.h" >&5
20125 echo $ECHO_N "checking for lber.h... $ECHO_C" >&6
20126 if test "${ac_cv_header_lber_h+set}" = set; then
20127   echo $ECHO_N "(cached) $ECHO_C" >&6
20128 fi
20129 echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
20130 echo "${ECHO_T}$ac_cv_header_lber_h" >&6
20131 else
20132   # Is the header compilable?
20133 echo "$as_me:$LINENO: checking lber.h usability" >&5
20134 echo $ECHO_N "checking lber.h usability... $ECHO_C" >&6
20135 cat >conftest.$ac_ext <<_ACEOF
20136 /* confdefs.h.  */
20137 _ACEOF
20138 cat confdefs.h >>conftest.$ac_ext
20139 cat >>conftest.$ac_ext <<_ACEOF
20140 /* end confdefs.h.  */
20141 $ac_includes_default
20142 #include <lber.h>
20143 _ACEOF
20144 rm -f conftest.$ac_objext
20145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20146   (eval $ac_compile) 2>conftest.er1
20147   ac_status=$?
20148   grep -v '^ *+' conftest.er1 >conftest.err
20149   rm -f conftest.er1
20150   cat conftest.err >&5
20151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152   (exit $ac_status); } &&
20153          { ac_try='test -z "$ac_c_werror_flag"
20154                          || test ! -s conftest.err'
20155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20156   (eval $ac_try) 2>&5
20157   ac_status=$?
20158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159   (exit $ac_status); }; } &&
20160          { ac_try='test -s conftest.$ac_objext'
20161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162   (eval $ac_try) 2>&5
20163   ac_status=$?
20164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165   (exit $ac_status); }; }; then
20166   ac_header_compiler=yes
20167 else
20168   echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20170
20171 ac_header_compiler=no
20172 fi
20173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20174 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20175 echo "${ECHO_T}$ac_header_compiler" >&6
20176
20177 # Is the header present?
20178 echo "$as_me:$LINENO: checking lber.h presence" >&5
20179 echo $ECHO_N "checking lber.h presence... $ECHO_C" >&6
20180 cat >conftest.$ac_ext <<_ACEOF
20181 /* confdefs.h.  */
20182 _ACEOF
20183 cat confdefs.h >>conftest.$ac_ext
20184 cat >>conftest.$ac_ext <<_ACEOF
20185 /* end confdefs.h.  */
20186 #include <lber.h>
20187 _ACEOF
20188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20189   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20190   ac_status=$?
20191   grep -v '^ *+' conftest.er1 >conftest.err
20192   rm -f conftest.er1
20193   cat conftest.err >&5
20194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195   (exit $ac_status); } >/dev/null; then
20196   if test -s conftest.err; then
20197     ac_cpp_err=$ac_c_preproc_warn_flag
20198     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20199   else
20200     ac_cpp_err=
20201   fi
20202 else
20203   ac_cpp_err=yes
20204 fi
20205 if test -z "$ac_cpp_err"; then
20206   ac_header_preproc=yes
20207 else
20208   echo "$as_me: failed program was:" >&5
20209 sed 's/^/| /' conftest.$ac_ext >&5
20210
20211   ac_header_preproc=no
20212 fi
20213 rm -f conftest.err conftest.$ac_ext
20214 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20215 echo "${ECHO_T}$ac_header_preproc" >&6
20216
20217 # So?  What about this header?
20218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20219   yes:no: )
20220     { echo "$as_me:$LINENO: WARNING: lber.h: accepted by the compiler, rejected by the preprocessor!" >&5
20221 echo "$as_me: WARNING: lber.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20222     { echo "$as_me:$LINENO: WARNING: lber.h: proceeding with the compiler's result" >&5
20223 echo "$as_me: WARNING: lber.h: proceeding with the compiler's result" >&2;}
20224     ac_header_preproc=yes
20225     ;;
20226   no:yes:* )
20227     { echo "$as_me:$LINENO: WARNING: lber.h: present but cannot be compiled" >&5
20228 echo "$as_me: WARNING: lber.h: present but cannot be compiled" >&2;}
20229     { echo "$as_me:$LINENO: WARNING: lber.h:     check for missing prerequisite headers?" >&5
20230 echo "$as_me: WARNING: lber.h:     check for missing prerequisite headers?" >&2;}
20231     { echo "$as_me:$LINENO: WARNING: lber.h: see the Autoconf documentation" >&5
20232 echo "$as_me: WARNING: lber.h: see the Autoconf documentation" >&2;}
20233     { echo "$as_me:$LINENO: WARNING: lber.h:     section \"Present But Cannot Be Compiled\"" >&5
20234 echo "$as_me: WARNING: lber.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20235     { echo "$as_me:$LINENO: WARNING: lber.h: proceeding with the preprocessor's result" >&5
20236 echo "$as_me: WARNING: lber.h: proceeding with the preprocessor's result" >&2;}
20237     { echo "$as_me:$LINENO: WARNING: lber.h: in the future, the compiler will take precedence" >&5
20238 echo "$as_me: WARNING: lber.h: in the future, the compiler will take precedence" >&2;}
20239     (
20240       cat <<\_ASBOX
20241 ## ------------------------------------------ ##
20242 ## Report this to the AC_PACKAGE_NAME lists.  ##
20243 ## ------------------------------------------ ##
20244 _ASBOX
20245     ) |
20246       sed "s/^/$as_me: WARNING:     /" >&2
20247     ;;
20248 esac
20249 echo "$as_me:$LINENO: checking for lber.h" >&5
20250 echo $ECHO_N "checking for lber.h... $ECHO_C" >&6
20251 if test "${ac_cv_header_lber_h+set}" = set; then
20252   echo $ECHO_N "(cached) $ECHO_C" >&6
20253 else
20254   ac_cv_header_lber_h=$ac_header_preproc
20255 fi
20256 echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
20257 echo "${ECHO_T}$ac_cv_header_lber_h" >&6
20258
20259 fi
20260
20261
20262 cat >conftest.$ac_ext <<_ACEOF
20263 /* confdefs.h.  */
20264 _ACEOF
20265 cat confdefs.h >>conftest.$ac_ext
20266 cat >>conftest.$ac_ext <<_ACEOF
20267 /* end confdefs.h.  */
20268 #include <lber.h>
20269
20270 _ACEOF
20271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20272   $EGREP "ber_strdup" >/dev/null 2>&1; then
20273
20274         :
20275
20276 else
20277
20278         echo "        didn't find ber_strdup in lber.h!";
20279         echo "        Check for the right version (>= 2.0) of the OpenLDAP includes";
20280         echo "        or try --with-ldap-includes option.";
20281         exit
20282
20283 fi
20284 rm -f conftest*
20285
20286
20287
20288
20289                               ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile"
20290 cat >confcache <<\_ACEOF
20291 # This file is a shell script that caches the results of configure
20292 # tests run on this system so they can be shared between configure
20293 # scripts and configure runs, see configure's option --config-cache.
20294 # It is not useful on other systems.  If it contains results you don't
20295 # want to keep, you may remove or edit it.
20296 #
20297 # config.status only pays attention to the cache file if you give it
20298 # the --recheck option to rerun configure.
20299 #
20300 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20301 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20302 # following values.
20303
20304 _ACEOF
20305
20306 # The following way of writing the cache mishandles newlines in values,
20307 # but we know of no workaround that is simple, portable, and efficient.
20308 # So, don't put newlines in cache variables' values.
20309 # Ultrix sh set writes to stderr and can't be redirected directly,
20310 # and sets the high bit in the cache file unless we assign to the vars.
20311 {
20312   (set) 2>&1 |
20313     case `(ac_space=' '; set | grep ac_space) 2>&1` in
20314     *ac_space=\ *)
20315       # `set' does not quote correctly, so add quotes (double-quote
20316       # substitution turns \\\\ into \\, and sed turns \\ into \).
20317       sed -n \
20318         "s/'/'\\\\''/g;
20319           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20320       ;;
20321     *)
20322       # `set' quotes correctly as required by POSIX, so do not add quotes.
20323       sed -n \
20324         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20325       ;;
20326     esac;
20327 } |
20328   sed '
20329      t clear
20330      : clear
20331      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20332      t end
20333      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20334      : end' >>confcache
20335 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20336   if test -w $cache_file; then
20337     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20338     cat confcache >$cache_file
20339   else
20340     echo "not updating unwritable cache $cache_file"
20341   fi
20342 fi
20343 rm -f confcache
20344
20345 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20346 # Let make expand exec_prefix.
20347 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20348
20349 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20350 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20351 # trailing colons and then remove the whole line if VPATH becomes empty
20352 # (actually we leave an empty line to preserve line numbers).
20353 if test "x$srcdir" = x.; then
20354   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20355 s/:*\$(srcdir):*/:/;
20356 s/:*\${srcdir}:*/:/;
20357 s/:*@srcdir@:*/:/;
20358 s/^\([^=]*=[     ]*\):*/\1/;
20359 s/:*$//;
20360 s/^[^=]*=[       ]*$//;
20361 }'
20362 fi
20363
20364 DEFS=-DHAVE_CONFIG_H
20365
20366 ac_libobjs=
20367 ac_ltlibobjs=
20368 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20369   # 1. Remove the extension, and $U if already installed.
20370   ac_i=`echo "$ac_i" |
20371          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20372   # 2. Add them.
20373   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20374   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20375 done
20376 LIBOBJS=$ac_libobjs
20377
20378 LTLIBOBJS=$ac_ltlibobjs
20379
20380
20381 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20382   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20383 Usually this means the macro was only invoked conditionally." >&5
20384 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20385 Usually this means the macro was only invoked conditionally." >&2;}
20386    { (exit 1); exit 1; }; }
20387 fi
20388 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20389   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20390 Usually this means the macro was only invoked conditionally." >&5
20391 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20392 Usually this means the macro was only invoked conditionally." >&2;}
20393    { (exit 1); exit 1; }; }
20394 fi
20395 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20396   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20397 Usually this means the macro was only invoked conditionally." >&5
20398 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20399 Usually this means the macro was only invoked conditionally." >&2;}
20400    { (exit 1); exit 1; }; }
20401 fi
20402
20403 : ${CONFIG_STATUS=./config.status}
20404 ac_clean_files_save=$ac_clean_files
20405 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20406 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20407 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20408 cat >$CONFIG_STATUS <<_ACEOF
20409 #! $SHELL
20410 # Generated by $as_me.
20411 # Run this file to recreate the current configuration.
20412 # Compiler output produced by configure, useful for debugging
20413 # configure, is in config.log if it exists.
20414
20415 debug=false
20416 ac_cs_recheck=false
20417 ac_cs_silent=false
20418 SHELL=\${CONFIG_SHELL-$SHELL}
20419 _ACEOF
20420
20421 cat >>$CONFIG_STATUS <<\_ACEOF
20422 ## --------------------- ##
20423 ## M4sh Initialization.  ##
20424 ## --------------------- ##
20425
20426 # Be Bourne compatible
20427 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20428   emulate sh
20429   NULLCMD=:
20430   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20431   # is contrary to our usage.  Disable this feature.
20432   alias -g '${1+"$@"}'='"$@"'
20433 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20434   set -o posix
20435 fi
20436 DUALCASE=1; export DUALCASE # for MKS sh
20437
20438 # Support unset when possible.
20439 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20440   as_unset=unset
20441 else
20442   as_unset=false
20443 fi
20444
20445
20446 # Work around bugs in pre-3.0 UWIN ksh.
20447 $as_unset ENV MAIL MAILPATH
20448 PS1='$ '
20449 PS2='> '
20450 PS4='+ '
20451
20452 # NLS nuisances.
20453 for as_var in \
20454   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20455   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20456   LC_TELEPHONE LC_TIME
20457 do
20458   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20459     eval $as_var=C; export $as_var
20460   else
20461     $as_unset $as_var
20462   fi
20463 done
20464
20465 # Required to use basename.
20466 if expr a : '\(a\)' >/dev/null 2>&1; then
20467   as_expr=expr
20468 else
20469   as_expr=false
20470 fi
20471
20472 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20473   as_basename=basename
20474 else
20475   as_basename=false
20476 fi
20477
20478
20479 # Name of the executable.
20480 as_me=`$as_basename "$0" ||
20481 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20482          X"$0" : 'X\(//\)$' \| \
20483          X"$0" : 'X\(/\)$' \| \
20484          .     : '\(.\)' 2>/dev/null ||
20485 echo X/"$0" |
20486     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20487           /^X\/\(\/\/\)$/{ s//\1/; q; }
20488           /^X\/\(\/\).*/{ s//\1/; q; }
20489           s/.*/./; q'`
20490
20491
20492 # PATH needs CR, and LINENO needs CR and PATH.
20493 # Avoid depending upon Character Ranges.
20494 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20495 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20496 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20497 as_cr_digits='0123456789'
20498 as_cr_alnum=$as_cr_Letters$as_cr_digits
20499
20500 # The user is always right.
20501 if test "${PATH_SEPARATOR+set}" != set; then
20502   echo "#! /bin/sh" >conf$$.sh
20503   echo  "exit 0"   >>conf$$.sh
20504   chmod +x conf$$.sh
20505   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20506     PATH_SEPARATOR=';'
20507   else
20508     PATH_SEPARATOR=:
20509   fi
20510   rm -f conf$$.sh
20511 fi
20512
20513
20514   as_lineno_1=$LINENO
20515   as_lineno_2=$LINENO
20516   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20517   test "x$as_lineno_1" != "x$as_lineno_2" &&
20518   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20519   # Find who we are.  Look in the path if we contain no path at all
20520   # relative or not.
20521   case $0 in
20522     *[\\/]* ) as_myself=$0 ;;
20523     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20524 for as_dir in $PATH
20525 do
20526   IFS=$as_save_IFS
20527   test -z "$as_dir" && as_dir=.
20528   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20529 done
20530
20531        ;;
20532   esac
20533   # We did not find ourselves, most probably we were run as `sh COMMAND'
20534   # in which case we are not to be found in the path.
20535   if test "x$as_myself" = x; then
20536     as_myself=$0
20537   fi
20538   if test ! -f "$as_myself"; then
20539     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20540 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20541    { (exit 1); exit 1; }; }
20542   fi
20543   case $CONFIG_SHELL in
20544   '')
20545     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20546 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20547 do
20548   IFS=$as_save_IFS
20549   test -z "$as_dir" && as_dir=.
20550   for as_base in sh bash ksh sh5; do
20551          case $as_dir in
20552          /*)
20553            if ("$as_dir/$as_base" -c '
20554   as_lineno_1=$LINENO
20555   as_lineno_2=$LINENO
20556   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20557   test "x$as_lineno_1" != "x$as_lineno_2" &&
20558   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20559              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20560              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20561              CONFIG_SHELL=$as_dir/$as_base
20562              export CONFIG_SHELL
20563              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20564            fi;;
20565          esac
20566        done
20567 done
20568 ;;
20569   esac
20570
20571   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20572   # uniformly replaced by the line number.  The first 'sed' inserts a
20573   # line-number line before each line; the second 'sed' does the real
20574   # work.  The second script uses 'N' to pair each line-number line
20575   # with the numbered line, and appends trailing '-' during
20576   # substitution so that $LINENO is not a special case at line end.
20577   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20578   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20579   sed '=' <$as_myself |
20580     sed '
20581       N
20582       s,$,-,
20583       : loop
20584       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20585       t loop
20586       s,-$,,
20587       s,^['$as_cr_digits']*\n,,
20588     ' >$as_me.lineno &&
20589   chmod +x $as_me.lineno ||
20590     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20591 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20592    { (exit 1); exit 1; }; }
20593
20594   # Don't try to exec as it changes $[0], causing all sort of problems
20595   # (the dirname of $[0] is not the place where we might find the
20596   # original and so on.  Autoconf is especially sensible to this).
20597   . ./$as_me.lineno
20598   # Exit status is that of the last command.
20599   exit
20600 }
20601
20602
20603 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20604   *c*,-n*) ECHO_N= ECHO_C='
20605 ' ECHO_T='      ' ;;
20606   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20607   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20608 esac
20609
20610 if expr a : '\(a\)' >/dev/null 2>&1; then
20611   as_expr=expr
20612 else
20613   as_expr=false
20614 fi
20615
20616 rm -f conf$$ conf$$.exe conf$$.file
20617 echo >conf$$.file
20618 if ln -s conf$$.file conf$$ 2>/dev/null; then
20619   # We could just check for DJGPP; but this test a) works b) is more generic
20620   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20621   if test -f conf$$.exe; then
20622     # Don't use ln at all; we don't have any links
20623     as_ln_s='cp -p'
20624   else
20625     as_ln_s='ln -s'
20626   fi
20627 elif ln conf$$.file conf$$ 2>/dev/null; then
20628   as_ln_s=ln
20629 else
20630   as_ln_s='cp -p'
20631 fi
20632 rm -f conf$$ conf$$.exe conf$$.file
20633
20634 if mkdir -p . 2>/dev/null; then
20635   as_mkdir_p=:
20636 else
20637   test -d ./-p && rmdir ./-p
20638   as_mkdir_p=false
20639 fi
20640
20641 as_executable_p="test -f"
20642
20643 # Sed expression to map a string onto a valid CPP name.
20644 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20645
20646 # Sed expression to map a string onto a valid variable name.
20647 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20648
20649
20650 # IFS
20651 # We need space, tab and new line, in precisely that order.
20652 as_nl='
20653 '
20654 IFS="   $as_nl"
20655
20656 # CDPATH.
20657 $as_unset CDPATH
20658
20659 exec 6>&1
20660
20661 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20662 # report actual input values of CONFIG_FILES etc. instead of their
20663 # values after options handling.  Logging --version etc. is OK.
20664 exec 5>>config.log
20665 {
20666   echo
20667   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20668 ## Running $as_me. ##
20669 _ASBOX
20670 } >&5
20671 cat >&5 <<_CSEOF
20672
20673 This file was extended by $as_me, which was
20674 generated by GNU Autoconf 2.59.  Invocation command line was
20675
20676   CONFIG_FILES    = $CONFIG_FILES
20677   CONFIG_HEADERS  = $CONFIG_HEADERS
20678   CONFIG_LINKS    = $CONFIG_LINKS
20679   CONFIG_COMMANDS = $CONFIG_COMMANDS
20680   $ $0 $@
20681
20682 _CSEOF
20683 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20684 echo >&5
20685 _ACEOF
20686
20687 # Files that config.status was made for.
20688 if test -n "$ac_config_files"; then
20689   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20690 fi
20691
20692 if test -n "$ac_config_headers"; then
20693   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20694 fi
20695
20696 if test -n "$ac_config_links"; then
20697   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20698 fi
20699
20700 if test -n "$ac_config_commands"; then
20701   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20702 fi
20703
20704 cat >>$CONFIG_STATUS <<\_ACEOF
20705
20706 ac_cs_usage="\
20707 \`$as_me' instantiates files from templates according to the
20708 current configuration.
20709
20710 Usage: $0 [OPTIONS] [FILE]...
20711
20712   -h, --help       print this help, then exit
20713   -V, --version    print version number, then exit
20714   -q, --quiet      do not print progress messages
20715   -d, --debug      don't remove temporary files
20716       --recheck    update $as_me by reconfiguring in the same conditions
20717   --file=FILE[:TEMPLATE]
20718                    instantiate the configuration file FILE
20719   --header=FILE[:TEMPLATE]
20720                    instantiate the configuration header FILE
20721
20722 Configuration files:
20723 $config_files
20724
20725 Configuration headers:
20726 $config_headers
20727
20728 Configuration commands:
20729 $config_commands
20730
20731 Report bugs to <bug-autoconf@gnu.org>."
20732 _ACEOF
20733
20734 cat >>$CONFIG_STATUS <<_ACEOF
20735 ac_cs_version="\\
20736 config.status
20737 configured by $0, generated by GNU Autoconf 2.59,
20738   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20739
20740 Copyright (C) 2003 Free Software Foundation, Inc.
20741 This config.status script is free software; the Free Software Foundation
20742 gives unlimited permission to copy, distribute and modify it."
20743 srcdir=$srcdir
20744 INSTALL="$INSTALL"
20745 _ACEOF
20746
20747 cat >>$CONFIG_STATUS <<\_ACEOF
20748 # If no file are specified by the user, then we need to provide default
20749 # value.  By we need to know if files were specified by the user.
20750 ac_need_defaults=:
20751 while test $# != 0
20752 do
20753   case $1 in
20754   --*=*)
20755     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20756     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20757     ac_shift=:
20758     ;;
20759   -*)
20760     ac_option=$1
20761     ac_optarg=$2
20762     ac_shift=shift
20763     ;;
20764   *) # This is not an option, so the user has probably given explicit
20765      # arguments.
20766      ac_option=$1
20767      ac_need_defaults=false;;
20768   esac
20769
20770   case $ac_option in
20771   # Handling of the options.
20772 _ACEOF
20773 cat >>$CONFIG_STATUS <<\_ACEOF
20774   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20775     ac_cs_recheck=: ;;
20776   --version | --vers* | -V )
20777     echo "$ac_cs_version"; exit 0 ;;
20778   --he | --h)
20779     # Conflict between --help and --header
20780     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20781 Try \`$0 --help' for more information." >&5
20782 echo "$as_me: error: ambiguous option: $1
20783 Try \`$0 --help' for more information." >&2;}
20784    { (exit 1); exit 1; }; };;
20785   --help | --hel | -h )
20786     echo "$ac_cs_usage"; exit 0 ;;
20787   --debug | --d* | -d )
20788     debug=: ;;
20789   --file | --fil | --fi | --f )
20790     $ac_shift
20791     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20792     ac_need_defaults=false;;
20793   --header | --heade | --head | --hea )
20794     $ac_shift
20795     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20796     ac_need_defaults=false;;
20797   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20798   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20799     ac_cs_silent=: ;;
20800
20801   # This is an error.
20802   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20803 Try \`$0 --help' for more information." >&5
20804 echo "$as_me: error: unrecognized option: $1
20805 Try \`$0 --help' for more information." >&2;}
20806    { (exit 1); exit 1; }; } ;;
20807
20808   *) ac_config_targets="$ac_config_targets $1" ;;
20809
20810   esac
20811   shift
20812 done
20813
20814 ac_configure_extra_args=
20815
20816 if $ac_cs_silent; then
20817   exec 6>/dev/null
20818   ac_configure_extra_args="$ac_configure_extra_args --silent"
20819 fi
20820
20821 _ACEOF
20822 cat >>$CONFIG_STATUS <<_ACEOF
20823 if \$ac_cs_recheck; then
20824   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20825   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20826 fi
20827
20828 _ACEOF
20829
20830 cat >>$CONFIG_STATUS <<_ACEOF
20831 #
20832 # INIT-COMMANDS section.
20833 #
20834
20835 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20836
20837 _ACEOF
20838
20839
20840
20841 cat >>$CONFIG_STATUS <<\_ACEOF
20842 for ac_config_target in $ac_config_targets
20843 do
20844   case "$ac_config_target" in
20845   # Handling of arguments.
20846   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20847   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20848   "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
20849   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20850   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
20851   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20852 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20853    { (exit 1); exit 1; }; };;
20854   esac
20855 done
20856
20857 # If the user did not use the arguments to specify the items to instantiate,
20858 # then the envvar interface is used.  Set only those that are not.
20859 # We use the long form for the default assignment because of an extremely
20860 # bizarre bug on SunOS 4.1.3.
20861 if $ac_need_defaults; then
20862   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20863   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20864   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20865 fi
20866
20867 # Have a temporary directory for convenience.  Make it in the build tree
20868 # simply because there is no reason to put it here, and in addition,
20869 # creating and moving files from /tmp can sometimes cause problems.
20870 # Create a temporary directory, and hook for its removal unless debugging.
20871 $debug ||
20872 {
20873   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20874   trap '{ (exit 1); exit 1; }' 1 2 13 15
20875 }
20876
20877 # Create a (secure) tmp directory for tmp files.
20878
20879 {
20880   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20881   test -n "$tmp" && test -d "$tmp"
20882 }  ||
20883 {
20884   tmp=./confstat$$-$RANDOM
20885   (umask 077 && mkdir $tmp)
20886 } ||
20887 {
20888    echo "$me: cannot create a temporary directory in ." >&2
20889    { (exit 1); exit 1; }
20890 }
20891
20892 _ACEOF
20893
20894 cat >>$CONFIG_STATUS <<_ACEOF
20895
20896 #
20897 # CONFIG_FILES section.
20898 #
20899
20900 # No need to generate the scripts if there are no CONFIG_FILES.
20901 # This happens for instance when ./config.status config.h
20902 if test -n "\$CONFIG_FILES"; then
20903   # Protect against being on the right side of a sed subst in config.status.
20904   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20905    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20906 s,@SHELL@,$SHELL,;t t
20907 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20908 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20909 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20910 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20911 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20912 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20913 s,@exec_prefix@,$exec_prefix,;t t
20914 s,@prefix@,$prefix,;t t
20915 s,@program_transform_name@,$program_transform_name,;t t
20916 s,@bindir@,$bindir,;t t
20917 s,@sbindir@,$sbindir,;t t
20918 s,@libexecdir@,$libexecdir,;t t
20919 s,@datadir@,$datadir,;t t
20920 s,@sysconfdir@,$sysconfdir,;t t
20921 s,@sharedstatedir@,$sharedstatedir,;t t
20922 s,@localstatedir@,$localstatedir,;t t
20923 s,@libdir@,$libdir,;t t
20924 s,@includedir@,$includedir,;t t
20925 s,@oldincludedir@,$oldincludedir,;t t
20926 s,@infodir@,$infodir,;t t
20927 s,@mandir@,$mandir,;t t
20928 s,@build_alias@,$build_alias,;t t
20929 s,@host_alias@,$host_alias,;t t
20930 s,@target_alias@,$target_alias,;t t
20931 s,@DEFS@,$DEFS,;t t
20932 s,@ECHO_C@,$ECHO_C,;t t
20933 s,@ECHO_N@,$ECHO_N,;t t
20934 s,@ECHO_T@,$ECHO_T,;t t
20935 s,@LIBS@,$LIBS,;t t
20936 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20937 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20938 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20939 s,@CYGPATH_W@,$CYGPATH_W,;t t
20940 s,@PACKAGE@,$PACKAGE,;t t
20941 s,@VERSION@,$VERSION,;t t
20942 s,@ACLOCAL@,$ACLOCAL,;t t
20943 s,@AUTOCONF@,$AUTOCONF,;t t
20944 s,@AUTOMAKE@,$AUTOMAKE,;t t
20945 s,@AUTOHEADER@,$AUTOHEADER,;t t
20946 s,@MAKEINFO@,$MAKEINFO,;t t
20947 s,@install_sh@,$install_sh,;t t
20948 s,@STRIP@,$STRIP,;t t
20949 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20950 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20951 s,@mkdir_p@,$mkdir_p,;t t
20952 s,@AWK@,$AWK,;t t
20953 s,@SET_MAKE@,$SET_MAKE,;t t
20954 s,@am__leading_dot@,$am__leading_dot,;t t
20955 s,@AMTAR@,$AMTAR,;t t
20956 s,@am__tar@,$am__tar,;t t
20957 s,@am__untar@,$am__untar,;t t
20958 s,@CXX@,$CXX,;t t
20959 s,@CXXFLAGS@,$CXXFLAGS,;t t
20960 s,@LDFLAGS@,$LDFLAGS,;t t
20961 s,@CPPFLAGS@,$CPPFLAGS,;t t
20962 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20963 s,@EXEEXT@,$EXEEXT,;t t
20964 s,@OBJEXT@,$OBJEXT,;t t
20965 s,@DEPDIR@,$DEPDIR,;t t
20966 s,@am__include@,$am__include,;t t
20967 s,@am__quote@,$am__quote,;t t
20968 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20969 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20970 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20971 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20972 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20973 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20974 s,@build@,$build,;t t
20975 s,@build_cpu@,$build_cpu,;t t
20976 s,@build_vendor@,$build_vendor,;t t
20977 s,@build_os@,$build_os,;t t
20978 s,@host@,$host,;t t
20979 s,@host_cpu@,$host_cpu,;t t
20980 s,@host_vendor@,$host_vendor,;t t
20981 s,@host_os@,$host_os,;t t
20982 s,@CC@,$CC,;t t
20983 s,@CFLAGS@,$CFLAGS,;t t
20984 s,@ac_ct_CC@,$ac_ct_CC,;t t
20985 s,@CCDEPMODE@,$CCDEPMODE,;t t
20986 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20987 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20988 s,@EGREP@,$EGREP,;t t
20989 s,@LN_S@,$LN_S,;t t
20990 s,@ECHO@,$ECHO,;t t
20991 s,@AR@,$AR,;t t
20992 s,@ac_ct_AR@,$ac_ct_AR,;t t
20993 s,@RANLIB@,$RANLIB,;t t
20994 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20995 s,@CPP@,$CPP,;t t
20996 s,@CXXCPP@,$CXXCPP,;t t
20997 s,@F77@,$F77,;t t
20998 s,@FFLAGS@,$FFLAGS,;t t
20999 s,@ac_ct_F77@,$ac_ct_F77,;t t
21000 s,@LIBTOOL@,$LIBTOOL,;t t
21001 s,@LIBOBJS@,$LIBOBJS,;t t
21002 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21003 CEOF
21004
21005 _ACEOF
21006
21007   cat >>$CONFIG_STATUS <<\_ACEOF
21008   # Split the substitutions into bite-sized pieces for seds with
21009   # small command number limits, like on Digital OSF/1 and HP-UX.
21010   ac_max_sed_lines=48
21011   ac_sed_frag=1 # Number of current file.
21012   ac_beg=1 # First line for current file.
21013   ac_end=$ac_max_sed_lines # Line after last line for current file.
21014   ac_more_lines=:
21015   ac_sed_cmds=
21016   while $ac_more_lines; do
21017     if test $ac_beg -gt 1; then
21018       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21019     else
21020       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21021     fi
21022     if test ! -s $tmp/subs.frag; then
21023       ac_more_lines=false
21024     else
21025       # The purpose of the label and of the branching condition is to
21026       # speed up the sed processing (if there are no `@' at all, there
21027       # is no need to browse any of the substitutions).
21028       # These are the two extra sed commands mentioned above.
21029       (echo ':t
21030   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21031       if test -z "$ac_sed_cmds"; then
21032         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21033       else
21034         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21035       fi
21036       ac_sed_frag=`expr $ac_sed_frag + 1`
21037       ac_beg=$ac_end
21038       ac_end=`expr $ac_end + $ac_max_sed_lines`
21039     fi
21040   done
21041   if test -z "$ac_sed_cmds"; then
21042     ac_sed_cmds=cat
21043   fi
21044 fi # test -n "$CONFIG_FILES"
21045
21046 _ACEOF
21047 cat >>$CONFIG_STATUS <<\_ACEOF
21048 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21049   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21050   case $ac_file in
21051   - | *:- | *:-:* ) # input from stdin
21052         cat >$tmp/stdin
21053         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21054         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21055   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21056         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21057   * )   ac_file_in=$ac_file.in ;;
21058   esac
21059
21060   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21061   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21062 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21063          X"$ac_file" : 'X\(//\)[^/]' \| \
21064          X"$ac_file" : 'X\(//\)$' \| \
21065          X"$ac_file" : 'X\(/\)' \| \
21066          .     : '\(.\)' 2>/dev/null ||
21067 echo X"$ac_file" |
21068     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21069           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21070           /^X\(\/\/\)$/{ s//\1/; q; }
21071           /^X\(\/\).*/{ s//\1/; q; }
21072           s/.*/./; q'`
21073   { if $as_mkdir_p; then
21074     mkdir -p "$ac_dir"
21075   else
21076     as_dir="$ac_dir"
21077     as_dirs=
21078     while test ! -d "$as_dir"; do
21079       as_dirs="$as_dir $as_dirs"
21080       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21081 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21082          X"$as_dir" : 'X\(//\)[^/]' \| \
21083          X"$as_dir" : 'X\(//\)$' \| \
21084          X"$as_dir" : 'X\(/\)' \| \
21085          .     : '\(.\)' 2>/dev/null ||
21086 echo X"$as_dir" |
21087     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21088           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21089           /^X\(\/\/\)$/{ s//\1/; q; }
21090           /^X\(\/\).*/{ s//\1/; q; }
21091           s/.*/./; q'`
21092     done
21093     test ! -n "$as_dirs" || mkdir $as_dirs
21094   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21095 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21096    { (exit 1); exit 1; }; }; }
21097
21098   ac_builddir=.
21099
21100 if test "$ac_dir" != .; then
21101   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21102   # A "../" for each directory in $ac_dir_suffix.
21103   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21104 else
21105   ac_dir_suffix= ac_top_builddir=
21106 fi
21107
21108 case $srcdir in
21109   .)  # No --srcdir option.  We are building in place.
21110     ac_srcdir=.
21111     if test -z "$ac_top_builddir"; then
21112        ac_top_srcdir=.
21113     else
21114        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21115     fi ;;
21116   [\\/]* | ?:[\\/]* )  # Absolute path.
21117     ac_srcdir=$srcdir$ac_dir_suffix;
21118     ac_top_srcdir=$srcdir ;;
21119   *) # Relative path.
21120     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21121     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21122 esac
21123
21124 # Do not use `cd foo && pwd` to compute absolute paths, because
21125 # the directories may not exist.
21126 case `pwd` in
21127 .) ac_abs_builddir="$ac_dir";;
21128 *)
21129   case "$ac_dir" in
21130   .) ac_abs_builddir=`pwd`;;
21131   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21132   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21133   esac;;
21134 esac
21135 case $ac_abs_builddir in
21136 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21137 *)
21138   case ${ac_top_builddir}. in
21139   .) ac_abs_top_builddir=$ac_abs_builddir;;
21140   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21141   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21142   esac;;
21143 esac
21144 case $ac_abs_builddir in
21145 .) ac_abs_srcdir=$ac_srcdir;;
21146 *)
21147   case $ac_srcdir in
21148   .) ac_abs_srcdir=$ac_abs_builddir;;
21149   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21150   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21151   esac;;
21152 esac
21153 case $ac_abs_builddir in
21154 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21155 *)
21156   case $ac_top_srcdir in
21157   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21158   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21159   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21160   esac;;
21161 esac
21162
21163
21164   case $INSTALL in
21165   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21166   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21167   esac
21168
21169   if test x"$ac_file" != x-; then
21170     { echo "$as_me:$LINENO: creating $ac_file" >&5
21171 echo "$as_me: creating $ac_file" >&6;}
21172     rm -f "$ac_file"
21173   fi
21174   # Let's still pretend it is `configure' which instantiates (i.e., don't
21175   # use $as_me), people would be surprised to read:
21176   #    /* config.h.  Generated by config.status.  */
21177   if test x"$ac_file" = x-; then
21178     configure_input=
21179   else
21180     configure_input="$ac_file.  "
21181   fi
21182   configure_input=$configure_input"Generated from `echo $ac_file_in |
21183                                      sed 's,.*/,,'` by configure."
21184
21185   # First look for the input files in the build tree, otherwise in the
21186   # src tree.
21187   ac_file_inputs=`IFS=:
21188     for f in $ac_file_in; do
21189       case $f in
21190       -) echo $tmp/stdin ;;
21191       [\\/$]*)
21192          # Absolute (can't be DOS-style, as IFS=:)
21193          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21194 echo "$as_me: error: cannot find input file: $f" >&2;}
21195    { (exit 1); exit 1; }; }
21196          echo "$f";;
21197       *) # Relative
21198          if test -f "$f"; then
21199            # Build tree
21200            echo "$f"
21201          elif test -f "$srcdir/$f"; then
21202            # Source tree
21203            echo "$srcdir/$f"
21204          else
21205            # /dev/null tree
21206            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21207 echo "$as_me: error: cannot find input file: $f" >&2;}
21208    { (exit 1); exit 1; }; }
21209          fi;;
21210       esac
21211     done` || { (exit 1); exit 1; }
21212 _ACEOF
21213 cat >>$CONFIG_STATUS <<_ACEOF
21214   sed "$ac_vpsub
21215 $extrasub
21216 _ACEOF
21217 cat >>$CONFIG_STATUS <<\_ACEOF
21218 :t
21219 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21220 s,@configure_input@,$configure_input,;t t
21221 s,@srcdir@,$ac_srcdir,;t t
21222 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21223 s,@top_srcdir@,$ac_top_srcdir,;t t
21224 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21225 s,@builddir@,$ac_builddir,;t t
21226 s,@abs_builddir@,$ac_abs_builddir,;t t
21227 s,@top_builddir@,$ac_top_builddir,;t t
21228 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21229 s,@INSTALL@,$ac_INSTALL,;t t
21230 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21231   rm -f $tmp/stdin
21232   if test x"$ac_file" != x-; then
21233     mv $tmp/out $ac_file
21234   else
21235     cat $tmp/out
21236     rm -f $tmp/out
21237   fi
21238
21239 done
21240 _ACEOF
21241 cat >>$CONFIG_STATUS <<\_ACEOF
21242
21243 #
21244 # CONFIG_HEADER section.
21245 #
21246
21247 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21248 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21249 #
21250 # ac_d sets the value in "#define NAME VALUE" lines.
21251 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
21252 ac_dB='[         ].*$,\1#\2'
21253 ac_dC=' '
21254 ac_dD=',;t'
21255 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21256 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21257 ac_uB='$,\1#\2define\3'
21258 ac_uC=' '
21259 ac_uD=',;t'
21260
21261 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21262   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21263   case $ac_file in
21264   - | *:- | *:-:* ) # input from stdin
21265         cat >$tmp/stdin
21266         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21267         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21268   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21269         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21270   * )   ac_file_in=$ac_file.in ;;
21271   esac
21272
21273   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21274 echo "$as_me: creating $ac_file" >&6;}
21275
21276   # First look for the input files in the build tree, otherwise in the
21277   # src tree.
21278   ac_file_inputs=`IFS=:
21279     for f in $ac_file_in; do
21280       case $f in
21281       -) echo $tmp/stdin ;;
21282       [\\/$]*)
21283          # Absolute (can't be DOS-style, as IFS=:)
21284          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21285 echo "$as_me: error: cannot find input file: $f" >&2;}
21286    { (exit 1); exit 1; }; }
21287          # Do quote $f, to prevent DOS paths from being IFS'd.
21288          echo "$f";;
21289       *) # Relative
21290          if test -f "$f"; then
21291            # Build tree
21292            echo "$f"
21293          elif test -f "$srcdir/$f"; then
21294            # Source tree
21295            echo "$srcdir/$f"
21296          else
21297            # /dev/null tree
21298            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21299 echo "$as_me: error: cannot find input file: $f" >&2;}
21300    { (exit 1); exit 1; }; }
21301          fi;;
21302       esac
21303     done` || { (exit 1); exit 1; }
21304   # Remove the trailing spaces.
21305   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
21306
21307 _ACEOF
21308
21309 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21310 # `conftest.undefs', that substitutes the proper values into
21311 # config.h.in to produce config.h.  The first handles `#define'
21312 # templates, and the second `#undef' templates.
21313 # And first: Protect against being on the right side of a sed subst in
21314 # config.status.  Protect against being in an unquoted here document
21315 # in config.status.
21316 rm -f conftest.defines conftest.undefs
21317 # Using a here document instead of a string reduces the quoting nightmare.
21318 # Putting comments in sed scripts is not portable.
21319 #
21320 # `end' is used to avoid that the second main sed command (meant for
21321 # 0-ary CPP macros) applies to n-ary macro definitions.
21322 # See the Autoconf documentation for `clear'.
21323 cat >confdef2sed.sed <<\_ACEOF
21324 s/[\\&,]/\\&/g
21325 s,[\\$`],\\&,g
21326 t clear
21327 : clear
21328 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21329 t end
21330 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21331 : end
21332 _ACEOF
21333 # If some macros were called several times there might be several times
21334 # the same #defines, which is useless.  Nevertheless, we may not want to
21335 # sort them, since we want the *last* AC-DEFINE to be honored.
21336 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21337 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21338 rm -f confdef2sed.sed
21339
21340 # This sed command replaces #undef with comments.  This is necessary, for
21341 # example, in the case of _POSIX_SOURCE, which is predefined and required
21342 # on some systems where configure will not decide to define it.
21343 cat >>conftest.undefs <<\_ACEOF
21344 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21345 _ACEOF
21346
21347 # Break up conftest.defines because some shells have a limit on the size
21348 # of here documents, and old seds have small limits too (100 cmds).
21349 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21350 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21351 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21352 echo '  :' >>$CONFIG_STATUS
21353 rm -f conftest.tail
21354 while grep . conftest.defines >/dev/null
21355 do
21356   # Write a limited-size here document to $tmp/defines.sed.
21357   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21358   # Speed up: don't consider the non `#define' lines.
21359   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
21360   # Work around the forget-to-reset-the-flag bug.
21361   echo 't clr' >>$CONFIG_STATUS
21362   echo ': clr' >>$CONFIG_STATUS
21363   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21364   echo 'CEOF
21365   sed -f $tmp/defines.sed $tmp/in >$tmp/out
21366   rm -f $tmp/in
21367   mv $tmp/out $tmp/in
21368 ' >>$CONFIG_STATUS
21369   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21370   rm -f conftest.defines
21371   mv conftest.tail conftest.defines
21372 done
21373 rm -f conftest.defines
21374 echo '  fi # grep' >>$CONFIG_STATUS
21375 echo >>$CONFIG_STATUS
21376
21377 # Break up conftest.undefs because some shells have a limit on the size
21378 # of here documents, and old seds have small limits too (100 cmds).
21379 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21380 rm -f conftest.tail
21381 while grep . conftest.undefs >/dev/null
21382 do
21383   # Write a limited-size here document to $tmp/undefs.sed.
21384   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21385   # Speed up: don't consider the non `#undef'
21386   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21387   # Work around the forget-to-reset-the-flag bug.
21388   echo 't clr' >>$CONFIG_STATUS
21389   echo ': clr' >>$CONFIG_STATUS
21390   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21391   echo 'CEOF
21392   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21393   rm -f $tmp/in
21394   mv $tmp/out $tmp/in
21395 ' >>$CONFIG_STATUS
21396   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21397   rm -f conftest.undefs
21398   mv conftest.tail conftest.undefs
21399 done
21400 rm -f conftest.undefs
21401
21402 cat >>$CONFIG_STATUS <<\_ACEOF
21403   # Let's still pretend it is `configure' which instantiates (i.e., don't
21404   # use $as_me), people would be surprised to read:
21405   #    /* config.h.  Generated by config.status.  */
21406   if test x"$ac_file" = x-; then
21407     echo "/* Generated by configure.  */" >$tmp/config.h
21408   else
21409     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21410   fi
21411   cat $tmp/in >>$tmp/config.h
21412   rm -f $tmp/in
21413   if test x"$ac_file" != x-; then
21414     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21415       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21416 echo "$as_me: $ac_file is unchanged" >&6;}
21417     else
21418       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21419 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21420          X"$ac_file" : 'X\(//\)[^/]' \| \
21421          X"$ac_file" : 'X\(//\)$' \| \
21422          X"$ac_file" : 'X\(/\)' \| \
21423          .     : '\(.\)' 2>/dev/null ||
21424 echo X"$ac_file" |
21425     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21426           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21427           /^X\(\/\/\)$/{ s//\1/; q; }
21428           /^X\(\/\).*/{ s//\1/; q; }
21429           s/.*/./; q'`
21430       { if $as_mkdir_p; then
21431     mkdir -p "$ac_dir"
21432   else
21433     as_dir="$ac_dir"
21434     as_dirs=
21435     while test ! -d "$as_dir"; do
21436       as_dirs="$as_dir $as_dirs"
21437       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21438 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21439          X"$as_dir" : 'X\(//\)[^/]' \| \
21440          X"$as_dir" : 'X\(//\)$' \| \
21441          X"$as_dir" : 'X\(/\)' \| \
21442          .     : '\(.\)' 2>/dev/null ||
21443 echo X"$as_dir" |
21444     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21445           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21446           /^X\(\/\/\)$/{ s//\1/; q; }
21447           /^X\(\/\).*/{ s//\1/; q; }
21448           s/.*/./; q'`
21449     done
21450     test ! -n "$as_dirs" || mkdir $as_dirs
21451   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21452 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21453    { (exit 1); exit 1; }; }; }
21454
21455       rm -f $ac_file
21456       mv $tmp/config.h $ac_file
21457     fi
21458   else
21459     cat $tmp/config.h
21460     rm -f $tmp/config.h
21461   fi
21462 # Compute $ac_file's index in $config_headers.
21463 _am_stamp_count=1
21464 for _am_header in $config_headers :; do
21465   case $_am_header in
21466     $ac_file | $ac_file:* )
21467       break ;;
21468     * )
21469       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21470   esac
21471 done
21472 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21473 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21474          X$ac_file : 'X\(//\)[^/]' \| \
21475          X$ac_file : 'X\(//\)$' \| \
21476          X$ac_file : 'X\(/\)' \| \
21477          .     : '\(.\)' 2>/dev/null ||
21478 echo X$ac_file |
21479     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21480           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21481           /^X\(\/\/\)$/{ s//\1/; q; }
21482           /^X\(\/\).*/{ s//\1/; q; }
21483           s/.*/./; q'`/stamp-h$_am_stamp_count
21484 done
21485 _ACEOF
21486 cat >>$CONFIG_STATUS <<\_ACEOF
21487
21488 #
21489 # CONFIG_COMMANDS section.
21490 #
21491 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21492   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21493   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21494   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21495 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21496          X"$ac_dest" : 'X\(//\)[^/]' \| \
21497          X"$ac_dest" : 'X\(//\)$' \| \
21498          X"$ac_dest" : 'X\(/\)' \| \
21499          .     : '\(.\)' 2>/dev/null ||
21500 echo X"$ac_dest" |
21501     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21502           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21503           /^X\(\/\/\)$/{ s//\1/; q; }
21504           /^X\(\/\).*/{ s//\1/; q; }
21505           s/.*/./; q'`
21506   { if $as_mkdir_p; then
21507     mkdir -p "$ac_dir"
21508   else
21509     as_dir="$ac_dir"
21510     as_dirs=
21511     while test ! -d "$as_dir"; do
21512       as_dirs="$as_dir $as_dirs"
21513       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21514 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21515          X"$as_dir" : 'X\(//\)[^/]' \| \
21516          X"$as_dir" : 'X\(//\)$' \| \
21517          X"$as_dir" : 'X\(/\)' \| \
21518          .     : '\(.\)' 2>/dev/null ||
21519 echo X"$as_dir" |
21520     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21521           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21522           /^X\(\/\/\)$/{ s//\1/; q; }
21523           /^X\(\/\).*/{ s//\1/; q; }
21524           s/.*/./; q'`
21525     done
21526     test ! -n "$as_dirs" || mkdir $as_dirs
21527   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21528 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21529    { (exit 1); exit 1; }; }; }
21530
21531   ac_builddir=.
21532
21533 if test "$ac_dir" != .; then
21534   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21535   # A "../" for each directory in $ac_dir_suffix.
21536   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21537 else
21538   ac_dir_suffix= ac_top_builddir=
21539 fi
21540
21541 case $srcdir in
21542   .)  # No --srcdir option.  We are building in place.
21543     ac_srcdir=.
21544     if test -z "$ac_top_builddir"; then
21545        ac_top_srcdir=.
21546     else
21547        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21548     fi ;;
21549   [\\/]* | ?:[\\/]* )  # Absolute path.
21550     ac_srcdir=$srcdir$ac_dir_suffix;
21551     ac_top_srcdir=$srcdir ;;
21552   *) # Relative path.
21553     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21554     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21555 esac
21556
21557 # Do not use `cd foo && pwd` to compute absolute paths, because
21558 # the directories may not exist.
21559 case `pwd` in
21560 .) ac_abs_builddir="$ac_dir";;
21561 *)
21562   case "$ac_dir" in
21563   .) ac_abs_builddir=`pwd`;;
21564   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21565   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21566   esac;;
21567 esac
21568 case $ac_abs_builddir in
21569 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21570 *)
21571   case ${ac_top_builddir}. in
21572   .) ac_abs_top_builddir=$ac_abs_builddir;;
21573   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21574   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21575   esac;;
21576 esac
21577 case $ac_abs_builddir in
21578 .) ac_abs_srcdir=$ac_srcdir;;
21579 *)
21580   case $ac_srcdir in
21581   .) ac_abs_srcdir=$ac_abs_builddir;;
21582   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21583   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21584   esac;;
21585 esac
21586 case $ac_abs_builddir in
21587 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21588 *)
21589   case $ac_top_srcdir in
21590   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21591   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21592   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21593   esac;;
21594 esac
21595
21596
21597   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21598 echo "$as_me: executing $ac_dest commands" >&6;}
21599   case $ac_dest in
21600     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21601   # Strip MF so we end up with the name of the file.
21602   mf=`echo "$mf" | sed -e 's/:.*$//'`
21603   # Check whether this is an Automake generated Makefile or not.
21604   # We used to match only the files named `Makefile.in', but
21605   # some people rename them; so instead we look at the file content.
21606   # Grep'ing the first line is not enough: some people post-process
21607   # each Makefile.in and add a new line on top of each file to say so.
21608   # So let's grep whole file.
21609   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21610     dirpart=`(dirname "$mf") 2>/dev/null ||
21611 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21612          X"$mf" : 'X\(//\)[^/]' \| \
21613          X"$mf" : 'X\(//\)$' \| \
21614          X"$mf" : 'X\(/\)' \| \
21615          .     : '\(.\)' 2>/dev/null ||
21616 echo X"$mf" |
21617     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21618           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21619           /^X\(\/\/\)$/{ s//\1/; q; }
21620           /^X\(\/\).*/{ s//\1/; q; }
21621           s/.*/./; q'`
21622   else
21623     continue
21624   fi
21625   # Extract the definition of DEPDIR, am__include, and am__quote
21626   # from the Makefile without running `make'.
21627   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21628   test -z "$DEPDIR" && continue
21629   am__include=`sed -n 's/^am__include = //p' < "$mf"`
21630   test -z "am__include" && continue
21631   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21632   # When using ansi2knr, U may be empty or an underscore; expand it
21633   U=`sed -n 's/^U = //p' < "$mf"`
21634   # Find all dependency output files, they are included files with
21635   # $(DEPDIR) in their names.  We invoke sed twice because it is the
21636   # simplest approach to changing $(DEPDIR) to its actual value in the
21637   # expansion.
21638   for file in `sed -n "
21639     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21640        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21641     # Make sure the directory exists.
21642     test -f "$dirpart/$file" && continue
21643     fdir=`(dirname "$file") 2>/dev/null ||
21644 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21645          X"$file" : 'X\(//\)[^/]' \| \
21646          X"$file" : 'X\(//\)$' \| \
21647          X"$file" : 'X\(/\)' \| \
21648          .     : '\(.\)' 2>/dev/null ||
21649 echo X"$file" |
21650     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21651           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21652           /^X\(\/\/\)$/{ s//\1/; q; }
21653           /^X\(\/\).*/{ s//\1/; q; }
21654           s/.*/./; q'`
21655     { if $as_mkdir_p; then
21656     mkdir -p $dirpart/$fdir
21657   else
21658     as_dir=$dirpart/$fdir
21659     as_dirs=
21660     while test ! -d "$as_dir"; do
21661       as_dirs="$as_dir $as_dirs"
21662       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21663 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21664          X"$as_dir" : 'X\(//\)[^/]' \| \
21665          X"$as_dir" : 'X\(//\)$' \| \
21666          X"$as_dir" : 'X\(/\)' \| \
21667          .     : '\(.\)' 2>/dev/null ||
21668 echo X"$as_dir" |
21669     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21670           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21671           /^X\(\/\/\)$/{ s//\1/; q; }
21672           /^X\(\/\).*/{ s//\1/; q; }
21673           s/.*/./; q'`
21674     done
21675     test ! -n "$as_dirs" || mkdir $as_dirs
21676   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21677 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21678    { (exit 1); exit 1; }; }; }
21679
21680     # echo "creating $dirpart/$file"
21681     echo '# dummy' > "$dirpart/$file"
21682   done
21683 done
21684  ;;
21685   esac
21686 done
21687 _ACEOF
21688
21689 cat >>$CONFIG_STATUS <<\_ACEOF
21690
21691 { (exit 0); exit 0; }
21692 _ACEOF
21693 chmod +x $CONFIG_STATUS
21694 ac_clean_files=$ac_clean_files_save
21695
21696
21697 # configure is writing to config.log, and then calls config.status.
21698 # config.status does its own redirection, appending to config.log.
21699 # Unfortunately, on DOS this fails, as config.log is still kept open
21700 # by configure, so config.status won't be able to write to it; its
21701 # output is simply discarded.  So we exec the FD to /dev/null,
21702 # effectively closing config.log, so it can be properly (re)opened and
21703 # appended to by config.status.  When coming back to configure, we
21704 # need to make the FD available again.
21705 if test "$no_create" != yes; then
21706   ac_cs_success=:
21707   ac_config_status_args=
21708   test "$silent" = yes &&
21709     ac_config_status_args="$ac_config_status_args --quiet"
21710   exec 5>/dev/null
21711   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21712   exec 5>>config.log
21713   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21714   # would make configure fail if this is the last instruction.
21715   $ac_cs_success || { (exit 1); exit 1; }
21716 fi
21717