OSDN Git Service

Added autostart setting
[ultramonkey-l7/ultramonkey-l7-v2.git] / 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="l7vsd"
429 ac_unique_file="config.h.in"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 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 SED EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG GLIB_CFLAGS GLIB_LIBS GLIB_GENMARSHAL GOBJECT_QUERY GLIB_MKENUMS LIBOBJS l7vsadm_sockdir l7vs_moddir l7vs_maxvs MANDIR snmpagent_libs LTLIBOBJS'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511   # If the previous option needs an argument, assign it.
512   if test -n "$ac_prev"; then
513     eval "$ac_prev=\$ac_option"
514     ac_prev=
515     continue
516   fi
517
518   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520   # Accept the important Cygnus configure options, so we can diagnose typos.
521
522   case $ac_option in
523
524   -bindir | --bindir | --bindi | --bind | --bin | --bi)
525     ac_prev=bindir ;;
526   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527     bindir=$ac_optarg ;;
528
529   -build | --build | --buil | --bui | --bu)
530     ac_prev=build_alias ;;
531   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532     build_alias=$ac_optarg ;;
533
534   -cache-file | --cache-file | --cache-fil | --cache-fi \
535   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536     ac_prev=cache_file ;;
537   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539     cache_file=$ac_optarg ;;
540
541   --config-cache | -C)
542     cache_file=config.cache ;;
543
544   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545     ac_prev=datadir ;;
546   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547   | --da=*)
548     datadir=$ac_optarg ;;
549
550   -disable-* | --disable-*)
551     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555    { (exit 1); exit 1; }; }
556     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557     eval "enable_$ac_feature=no" ;;
558
559   -enable-* | --enable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     case $ac_option in
567       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568       *) ac_optarg=yes ;;
569     esac
570     eval "enable_$ac_feature='$ac_optarg'" ;;
571
572   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574   | --exec | --exe | --ex)
575     ac_prev=exec_prefix ;;
576   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578   | --exec=* | --exe=* | --ex=*)
579     exec_prefix=$ac_optarg ;;
580
581   -gas | --gas | --ga | --g)
582     # Obsolete; use --with-gas.
583     with_gas=yes ;;
584
585   -help | --help | --hel | --he | -h)
586     ac_init_help=long ;;
587   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588     ac_init_help=recursive ;;
589   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590     ac_init_help=short ;;
591
592   -host | --host | --hos | --ho)
593     ac_prev=host_alias ;;
594   -host=* | --host=* | --hos=* | --ho=*)
595     host_alias=$ac_optarg ;;
596
597   -includedir | --includedir | --includedi | --included | --include \
598   | --includ | --inclu | --incl | --inc)
599     ac_prev=includedir ;;
600   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601   | --includ=* | --inclu=* | --incl=* | --inc=*)
602     includedir=$ac_optarg ;;
603
604   -infodir | --infodir | --infodi | --infod | --info | --inf)
605     ac_prev=infodir ;;
606   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607     infodir=$ac_optarg ;;
608
609   -libdir | --libdir | --libdi | --libd)
610     ac_prev=libdir ;;
611   -libdir=* | --libdir=* | --libdi=* | --libd=*)
612     libdir=$ac_optarg ;;
613
614   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615   | --libexe | --libex | --libe)
616     ac_prev=libexecdir ;;
617   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618   | --libexe=* | --libex=* | --libe=*)
619     libexecdir=$ac_optarg ;;
620
621   -localstatedir | --localstatedir | --localstatedi | --localstated \
622   | --localstate | --localstat | --localsta | --localst \
623   | --locals | --local | --loca | --loc | --lo)
624     ac_prev=localstatedir ;;
625   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628     localstatedir=$ac_optarg ;;
629
630   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631     ac_prev=mandir ;;
632   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633     mandir=$ac_optarg ;;
634
635   -nfp | --nfp | --nf)
636     # Obsolete; use --without-fp.
637     with_fp=no ;;
638
639   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640   | --no-cr | --no-c | -n)
641     no_create=yes ;;
642
643   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645     no_recursion=yes ;;
646
647   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649   | --oldin | --oldi | --old | --ol | --o)
650     ac_prev=oldincludedir ;;
651   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654     oldincludedir=$ac_optarg ;;
655
656   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657     ac_prev=prefix ;;
658   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659     prefix=$ac_optarg ;;
660
661   -program-prefix | --program-prefix | --program-prefi | --program-pref \
662   | --program-pre | --program-pr | --program-p)
663     ac_prev=program_prefix ;;
664   -program-prefix=* | --program-prefix=* | --program-prefi=* \
665   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666     program_prefix=$ac_optarg ;;
667
668   -program-suffix | --program-suffix | --program-suffi | --program-suff \
669   | --program-suf | --program-su | --program-s)
670     ac_prev=program_suffix ;;
671   -program-suffix=* | --program-suffix=* | --program-suffi=* \
672   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673     program_suffix=$ac_optarg ;;
674
675   -program-transform-name | --program-transform-name \
676   | --program-transform-nam | --program-transform-na \
677   | --program-transform-n | --program-transform- \
678   | --program-transform | --program-transfor \
679   | --program-transfo | --program-transf \
680   | --program-trans | --program-tran \
681   | --progr-tra | --program-tr | --program-t)
682     ac_prev=program_transform_name ;;
683   -program-transform-name=* | --program-transform-name=* \
684   | --program-transform-nam=* | --program-transform-na=* \
685   | --program-transform-n=* | --program-transform-=* \
686   | --program-transform=* | --program-transfor=* \
687   | --program-transfo=* | --program-transf=* \
688   | --program-trans=* | --program-tran=* \
689   | --progr-tra=* | --program-tr=* | --program-t=*)
690     program_transform_name=$ac_optarg ;;
691
692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693   | -silent | --silent | --silen | --sile | --sil)
694     silent=yes ;;
695
696   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697     ac_prev=sbindir ;;
698   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699   | --sbi=* | --sb=*)
700     sbindir=$ac_optarg ;;
701
702   -sharedstatedir | --sharedstatedir | --sharedstatedi \
703   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704   | --sharedst | --shareds | --shared | --share | --shar \
705   | --sha | --sh)
706     ac_prev=sharedstatedir ;;
707   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710   | --sha=* | --sh=*)
711     sharedstatedir=$ac_optarg ;;
712
713   -site | --site | --sit)
714     ac_prev=site ;;
715   -site=* | --site=* | --sit=*)
716     site=$ac_optarg ;;
717
718   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719     ac_prev=srcdir ;;
720   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721     srcdir=$ac_optarg ;;
722
723   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724   | --syscon | --sysco | --sysc | --sys | --sy)
725     ac_prev=sysconfdir ;;
726   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728     sysconfdir=$ac_optarg ;;
729
730   -target | --target | --targe | --targ | --tar | --ta | --t)
731     ac_prev=target_alias ;;
732   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733     target_alias=$ac_optarg ;;
734
735   -v | -verbose | --verbose | --verbos | --verbo | --verb)
736     verbose=yes ;;
737
738   -version | --version | --versio | --versi | --vers | -V)
739     ac_init_version=: ;;
740
741   -with-* | --with-*)
742     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743     # Reject names that are not valid shell variable names.
744     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745       { echo "$as_me: error: invalid package name: $ac_package" >&2
746    { (exit 1); exit 1; }; }
747     ac_package=`echo $ac_package| sed 's/-/_/g'`
748     case $ac_option in
749       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750       *) ac_optarg=yes ;;
751     esac
752     eval "with_$ac_package='$ac_optarg'" ;;
753
754   -without-* | --without-*)
755     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package | sed 's/-/_/g'`
761     eval "with_$ac_package=no" ;;
762
763   --x)
764     # Obsolete; use --with-x.
765     with_x=yes ;;
766
767   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768   | --x-incl | --x-inc | --x-in | --x-i)
769     ac_prev=x_includes ;;
770   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772     x_includes=$ac_optarg ;;
773
774   -x-libraries | --x-libraries | --x-librarie | --x-librari \
775   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776     ac_prev=x_libraries ;;
777   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779     x_libraries=$ac_optarg ;;
780
781   -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783    { (exit 1); exit 1; }; }
784     ;;
785
786   *=*)
787     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788     # Reject names that are not valid shell variable names.
789     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791    { (exit 1); exit 1; }; }
792     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793     eval "$ac_envvar='$ac_optarg'"
794     export $ac_envvar ;;
795
796   *)
797     # FIXME: should be removed in autoconf 3.0.
798     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802     ;;
803
804   esac
805 done
806
807 if test -n "$ac_prev"; then
808   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809   { echo "$as_me: error: missing argument to $ac_option" >&2
810    { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816   eval ac_val=$`echo $ac_var`
817   case $ac_val in
818     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820    { (exit 1); exit 1; }; };;
821   esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826               localstatedir libdir includedir oldincludedir infodir mandir
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845   if test "x$build_alias" = x; then
846     cross_compiling=maybe
847     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848     If a cross compiler is detected then cross compile mode will be used." >&2
849   elif test "x$build_alias" != "x$host_alias"; then
850     cross_compiling=yes
851   fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862   ac_srcdir_defaulted=yes
863   # Try the directory containing this script, then its parent.
864   ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866          X"$0" : 'X\(//\)[^/]' \| \
867          X"$0" : 'X\(//\)$' \| \
868          X"$0" : 'X\(/\)' \| \
869          .     : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873           /^X\(\/\/\)$/{ s//\1/; q; }
874           /^X\(\/\).*/{ s//\1/; q; }
875           s/.*/./; q'`
876   srcdir=$ac_confdir
877   if test ! -r $srcdir/$ac_unique_file; then
878     srcdir=..
879   fi
880 else
881   ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884   if test "$ac_srcdir_defaulted" = yes; then
885     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886    { (exit 1); exit 1; }; }
887   else
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889    { (exit 1); exit 1; }; }
890   fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894    { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CXX_set=${CXX+set}
909 ac_env_CXX_value=$CXX
910 ac_cv_env_CXX_set=${CXX+set}
911 ac_cv_env_CXX_value=$CXX
912 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
913 ac_env_CXXFLAGS_value=$CXXFLAGS
914 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CC_set=${CC+set}
925 ac_env_CC_value=$CC
926 ac_cv_env_CC_set=${CC+set}
927 ac_cv_env_CC_value=$CC
928 ac_env_CFLAGS_set=${CFLAGS+set}
929 ac_env_CFLAGS_value=$CFLAGS
930 ac_cv_env_CFLAGS_set=${CFLAGS+set}
931 ac_cv_env_CFLAGS_value=$CFLAGS
932 ac_env_CPP_set=${CPP+set}
933 ac_env_CPP_value=$CPP
934 ac_cv_env_CPP_set=${CPP+set}
935 ac_cv_env_CPP_value=$CPP
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
948
949 #
950 # Report the --help message.
951 #
952 if test "$ac_init_help" = "long"; then
953   # Omit some internal or obsolete options to make the list less imposing.
954   # This message is too long to be a string in the A/UX 3.1 sh.
955   cat <<_ACEOF
956 \`configure' configures this package to adapt to many kinds of systems.
957
958 Usage: $0 [OPTION]... [VAR=VALUE]...
959
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963 Defaults for the options are specified in brackets.
964
965 Configuration:
966   -h, --help              display this help and exit
967       --help=short        display options specific to this package
968       --help=recursive    display the short help of all the included packages
969   -V, --version           display version information and exit
970   -q, --quiet, --silent   do not print \`checking...' messages
971       --cache-file=FILE   cache test results in FILE [disabled]
972   -C, --config-cache      alias for \`--cache-file=config.cache'
973   -n, --no-create         do not create output files
974       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976 _ACEOF
977
978   cat <<_ACEOF
979 Installation directories:
980   --prefix=PREFIX         install architecture-independent files in PREFIX
981                           [$ac_default_prefix]
982   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983                           [PREFIX]
984
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
989
990 For better control, use the options below.
991
992 Fine tuning of the installation directories:
993   --bindir=DIR           user executables [EPREFIX/bin]
994   --sbindir=DIR          system admin executables [EPREFIX/sbin]
995   --libexecdir=DIR       program executables [EPREFIX/libexec]
996   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000   --libdir=DIR           object code libraries [EPREFIX/lib]
1001   --includedir=DIR       C header files [PREFIX/include]
1002   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003   --infodir=DIR          info documentation [PREFIX/info]
1004   --mandir=DIR           man documentation [PREFIX/man]
1005 _ACEOF
1006
1007   cat <<\_ACEOF
1008
1009 Program names:
1010   --program-prefix=PREFIX            prepend PREFIX to installed program names
1011   --program-suffix=SUFFIX            append SUFFIX to installed program names
1012   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1013
1014 System types:
1015   --build=BUILD     configure for building on BUILD [guessed]
1016   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1017 _ACEOF
1018 fi
1019
1020 if test -n "$ac_init_help"; then
1021
1022   cat <<\_ACEOF
1023
1024 Optional Features:
1025   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1026   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1027   --disable-dependency-tracking  speeds up one-time build
1028   --enable-dependency-tracking   do not reject slow dependency extractors
1029   --enable-shared[=PKGS]
1030                           build shared libraries [default=yes]
1031   --enable-static[=PKGS]
1032                           build static libraries [default=yes]
1033   --enable-fast-install[=PKGS]
1034                           optimize for fast installation [default=yes]
1035   --disable-libtool-lock  avoid locking (might break parallel builds)
1036   --disable-glibtest      do not try to compile and run a test GLIB program
1037
1038 Optional Packages:
1039   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1040   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1041   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1042   --with-pic              try to use only PIC/non-PIC objects [default=use
1043                           both]
1044   --with-tags[=TAGS]
1045                           include additional configurations [automatic]
1046   --with-l7vs-moddir=DIR  l7vs modules is to be installed in DIR.
1047                              default=LIBDIR/l7vs
1048   --with-l7vsadm-sockdir=DIR l7vsadm sockfile path.
1049                              default=/var/run/l7vs
1050   --with-l7vs-maxvs=NUM l7vsd virtual service max size in NUM.
1051                              default=64
1052
1053 Some influential environment variables:
1054   CXX         C++ compiler command
1055   CXXFLAGS    C++ compiler flags
1056   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1057               nonstandard directory <lib dir>
1058   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1059               headers in a nonstandard directory <include dir>
1060   CC          C compiler command
1061   CFLAGS      C compiler flags
1062   CPP         C preprocessor
1063   CXXCPP      C++ preprocessor
1064   F77         Fortran 77 compiler command
1065   FFLAGS      Fortran 77 compiler flags
1066
1067 Use these variables to override the choices made by `configure' or to help
1068 it to find libraries and programs with nonstandard names/locations.
1069
1070 _ACEOF
1071 fi
1072
1073 if test "$ac_init_help" = "recursive"; then
1074   # If there are subdirs, report their specific --help.
1075   ac_popdir=`pwd`
1076   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1077     test -d $ac_dir || continue
1078     ac_builddir=.
1079
1080 if test "$ac_dir" != .; then
1081   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1082   # A "../" for each directory in $ac_dir_suffix.
1083   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1084 else
1085   ac_dir_suffix= ac_top_builddir=
1086 fi
1087
1088 case $srcdir in
1089   .)  # No --srcdir option.  We are building in place.
1090     ac_srcdir=.
1091     if test -z "$ac_top_builddir"; then
1092        ac_top_srcdir=.
1093     else
1094        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1095     fi ;;
1096   [\\/]* | ?:[\\/]* )  # Absolute path.
1097     ac_srcdir=$srcdir$ac_dir_suffix;
1098     ac_top_srcdir=$srcdir ;;
1099   *) # Relative path.
1100     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1101     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1102 esac
1103
1104 # Do not use `cd foo && pwd` to compute absolute paths, because
1105 # the directories may not exist.
1106 case `pwd` in
1107 .) ac_abs_builddir="$ac_dir";;
1108 *)
1109   case "$ac_dir" in
1110   .) ac_abs_builddir=`pwd`;;
1111   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1112   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1113   esac;;
1114 esac
1115 case $ac_abs_builddir in
1116 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1117 *)
1118   case ${ac_top_builddir}. in
1119   .) ac_abs_top_builddir=$ac_abs_builddir;;
1120   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1121   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1122   esac;;
1123 esac
1124 case $ac_abs_builddir in
1125 .) ac_abs_srcdir=$ac_srcdir;;
1126 *)
1127   case $ac_srcdir in
1128   .) ac_abs_srcdir=$ac_abs_builddir;;
1129   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1130   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1131   esac;;
1132 esac
1133 case $ac_abs_builddir in
1134 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1135 *)
1136   case $ac_top_srcdir in
1137   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1138   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1139   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1140   esac;;
1141 esac
1142
1143     cd $ac_dir
1144     # Check for guested configure; otherwise get Cygnus style configure.
1145     if test -f $ac_srcdir/configure.gnu; then
1146       echo
1147       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1148     elif test -f $ac_srcdir/configure; then
1149       echo
1150       $SHELL $ac_srcdir/configure  --help=recursive
1151     elif test -f $ac_srcdir/configure.ac ||
1152            test -f $ac_srcdir/configure.in; then
1153       echo
1154       $ac_configure --help
1155     else
1156       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1157     fi
1158     cd $ac_popdir
1159   done
1160 fi
1161
1162 test -n "$ac_init_help" && exit 0
1163 if $ac_init_version; then
1164   cat <<\_ACEOF
1165
1166 Copyright (C) 2003 Free Software Foundation, Inc.
1167 This configure script is free software; the Free Software Foundation
1168 gives unlimited permission to copy, distribute and modify it.
1169 _ACEOF
1170   exit 0
1171 fi
1172 exec 5>config.log
1173 cat >&5 <<_ACEOF
1174 This file contains any messages produced by compilers while
1175 running configure, to aid debugging if configure makes a mistake.
1176
1177 It was created by $as_me, which was
1178 generated by GNU Autoconf 2.59.  Invocation command line was
1179
1180   $ $0 $@
1181
1182 _ACEOF
1183 {
1184 cat <<_ASUNAME
1185 ## --------- ##
1186 ## Platform. ##
1187 ## --------- ##
1188
1189 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1190 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1191 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1192 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1193 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1194
1195 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1196 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1197
1198 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1199 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1200 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1201 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1202 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1203 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1204 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1205
1206 _ASUNAME
1207
1208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1209 for as_dir in $PATH
1210 do
1211   IFS=$as_save_IFS
1212   test -z "$as_dir" && as_dir=.
1213   echo "PATH: $as_dir"
1214 done
1215
1216 } >&5
1217
1218 cat >&5 <<_ACEOF
1219
1220
1221 ## ----------- ##
1222 ## Core tests. ##
1223 ## ----------- ##
1224
1225 _ACEOF
1226
1227
1228 # Keep a trace of the command line.
1229 # Strip out --no-create and --no-recursion so they do not pile up.
1230 # Strip out --silent because we don't want to record it for future runs.
1231 # Also quote any args containing shell meta-characters.
1232 # Make two passes to allow for proper duplicate-argument suppression.
1233 ac_configure_args=
1234 ac_configure_args0=
1235 ac_configure_args1=
1236 ac_sep=
1237 ac_must_keep_next=false
1238 for ac_pass in 1 2
1239 do
1240   for ac_arg
1241   do
1242     case $ac_arg in
1243     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1244     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245     | -silent | --silent | --silen | --sile | --sil)
1246       continue ;;
1247     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1248       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1249     esac
1250     case $ac_pass in
1251     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1252     2)
1253       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1254       if test $ac_must_keep_next = true; then
1255         ac_must_keep_next=false # Got value, back to normal.
1256       else
1257         case $ac_arg in
1258           *=* | --config-cache | -C | -disable-* | --disable-* \
1259           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1260           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1261           | -with-* | --with-* | -without-* | --without-* | --x)
1262             case "$ac_configure_args0 " in
1263               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1264             esac
1265             ;;
1266           -* ) ac_must_keep_next=true ;;
1267         esac
1268       fi
1269       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1270       # Get rid of the leading space.
1271       ac_sep=" "
1272       ;;
1273     esac
1274   done
1275 done
1276 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1277 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1278
1279 # When interrupted or exit'd, cleanup temporary files, and complete
1280 # config.log.  We remove comments because anyway the quotes in there
1281 # would cause problems or look ugly.
1282 # WARNING: Be sure not to use single quotes in there, as some shells,
1283 # such as our DU 5.0 friend, will then `close' the trap.
1284 trap 'exit_status=$?
1285   # Save into config.log some information that might help in debugging.
1286   {
1287     echo
1288
1289     cat <<\_ASBOX
1290 ## ---------------- ##
1291 ## Cache variables. ##
1292 ## ---------------- ##
1293 _ASBOX
1294     echo
1295     # The following way of writing the cache mishandles newlines in values,
1296 {
1297   (set) 2>&1 |
1298     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1299     *ac_space=\ *)
1300       sed -n \
1301         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1302           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1303       ;;
1304     *)
1305       sed -n \
1306         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1307       ;;
1308     esac;
1309 }
1310     echo
1311
1312     cat <<\_ASBOX
1313 ## ----------------- ##
1314 ## Output variables. ##
1315 ## ----------------- ##
1316 _ASBOX
1317     echo
1318     for ac_var in $ac_subst_vars
1319     do
1320       eval ac_val=$`echo $ac_var`
1321       echo "$ac_var='"'"'$ac_val'"'"'"
1322     done | sort
1323     echo
1324
1325     if test -n "$ac_subst_files"; then
1326       cat <<\_ASBOX
1327 ## ------------- ##
1328 ## Output files. ##
1329 ## ------------- ##
1330 _ASBOX
1331       echo
1332       for ac_var in $ac_subst_files
1333       do
1334         eval ac_val=$`echo $ac_var`
1335         echo "$ac_var='"'"'$ac_val'"'"'"
1336       done | sort
1337       echo
1338     fi
1339
1340     if test -s confdefs.h; then
1341       cat <<\_ASBOX
1342 ## ----------- ##
1343 ## confdefs.h. ##
1344 ## ----------- ##
1345 _ASBOX
1346       echo
1347       sed "/^$/d" confdefs.h | sort
1348       echo
1349     fi
1350     test "$ac_signal" != 0 &&
1351       echo "$as_me: caught signal $ac_signal"
1352     echo "$as_me: exit $exit_status"
1353   } >&5
1354   rm -f core *.core &&
1355   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1356     exit $exit_status
1357      ' 0
1358 for ac_signal in 1 2 13 15; do
1359   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1360 done
1361 ac_signal=0
1362
1363 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1364 rm -rf conftest* confdefs.h
1365 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1366 echo >confdefs.h
1367
1368 # Predefined preprocessor variables.
1369
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_NAME "$PACKAGE_NAME"
1372 _ACEOF
1373
1374
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1377 _ACEOF
1378
1379
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1382 _ACEOF
1383
1384
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_STRING "$PACKAGE_STRING"
1387 _ACEOF
1388
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1392 _ACEOF
1393
1394
1395 # Let the site file select an alternate cache file if it wants to.
1396 # Prefer explicitly selected file to automatically selected ones.
1397 if test -z "$CONFIG_SITE"; then
1398   if test "x$prefix" != xNONE; then
1399     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1400   else
1401     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1402   fi
1403 fi
1404 for ac_site_file in $CONFIG_SITE; do
1405   if test -r "$ac_site_file"; then
1406     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1407 echo "$as_me: loading site script $ac_site_file" >&6;}
1408     sed 's/^/| /' "$ac_site_file" >&5
1409     . "$ac_site_file"
1410   fi
1411 done
1412
1413 if test -r "$cache_file"; then
1414   # Some versions of bash will fail to source /dev/null (special
1415   # files actually), so we avoid doing that.
1416   if test -f "$cache_file"; then
1417     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1418 echo "$as_me: loading cache $cache_file" >&6;}
1419     case $cache_file in
1420       [\\/]* | ?:[\\/]* ) . $cache_file;;
1421       *)                      . ./$cache_file;;
1422     esac
1423   fi
1424 else
1425   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1426 echo "$as_me: creating cache $cache_file" >&6;}
1427   >$cache_file
1428 fi
1429
1430 # Check that the precious variables saved in the cache have kept the same
1431 # value.
1432 ac_cache_corrupted=false
1433 for ac_var in `(set) 2>&1 |
1434                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1435   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1436   eval ac_new_set=\$ac_env_${ac_var}_set
1437   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1438   eval ac_new_val="\$ac_env_${ac_var}_value"
1439   case $ac_old_set,$ac_new_set in
1440     set,)
1441       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1443       ac_cache_corrupted=: ;;
1444     ,set)
1445       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1446 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1447       ac_cache_corrupted=: ;;
1448     ,);;
1449     *)
1450       if test "x$ac_old_val" != "x$ac_new_val"; then
1451         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1452 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1453         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1454 echo "$as_me:   former value:  $ac_old_val" >&2;}
1455         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1456 echo "$as_me:   current value: $ac_new_val" >&2;}
1457         ac_cache_corrupted=:
1458       fi;;
1459   esac
1460   # Pass precious variables to config.status.
1461   if test "$ac_new_set" = set; then
1462     case $ac_new_val in
1463     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1464       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1465     *) ac_arg=$ac_var=$ac_new_val ;;
1466     esac
1467     case " $ac_configure_args " in
1468       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1469       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1470     esac
1471   fi
1472 done
1473 if $ac_cache_corrupted; then
1474   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1475 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1476   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1477 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1478    { (exit 1); exit 1; }; }
1479 fi
1480
1481 ac_ext=c
1482 ac_cpp='$CPP $CPPFLAGS'
1483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505 PACKAGENAME=l7vsd
1506 VERSION=2.1.1-0
1507 GLIB_REQUIRED_VERSION=2.0.0
1508
1509 am__api_version="1.9"
1510 ac_aux_dir=
1511 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1512   if test -f $ac_dir/install-sh; then
1513     ac_aux_dir=$ac_dir
1514     ac_install_sh="$ac_aux_dir/install-sh -c"
1515     break
1516   elif test -f $ac_dir/install.sh; then
1517     ac_aux_dir=$ac_dir
1518     ac_install_sh="$ac_aux_dir/install.sh -c"
1519     break
1520   elif test -f $ac_dir/shtool; then
1521     ac_aux_dir=$ac_dir
1522     ac_install_sh="$ac_aux_dir/shtool install -c"
1523     break
1524   fi
1525 done
1526 if test -z "$ac_aux_dir"; then
1527   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1528 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1529    { (exit 1); exit 1; }; }
1530 fi
1531 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1532 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1533 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1534
1535 # Find a good install program.  We prefer a C program (faster),
1536 # so one script is as good as another.  But avoid the broken or
1537 # incompatible versions:
1538 # SysV /etc/install, /usr/sbin/install
1539 # SunOS /usr/etc/install
1540 # IRIX /sbin/install
1541 # AIX /bin/install
1542 # AmigaOS /C/install, which installs bootblocks on floppy discs
1543 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1544 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1545 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1546 # OS/2's system install, which has a completely different semantic
1547 # ./install, which can be erroneously created by make from ./install.sh.
1548 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1549 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1550 if test -z "$INSTALL"; then
1551 if test "${ac_cv_path_install+set}" = set; then
1552   echo $ECHO_N "(cached) $ECHO_C" >&6
1553 else
1554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555 for as_dir in $PATH
1556 do
1557   IFS=$as_save_IFS
1558   test -z "$as_dir" && as_dir=.
1559   # Account for people who put trailing slashes in PATH elements.
1560 case $as_dir/ in
1561   ./ | .// | /cC/* | \
1562   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1563   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1564   /usr/ucb/* ) ;;
1565   *)
1566     # OSF1 and SCO ODT 3.0 have their own names for install.
1567     # Don't use installbsd from OSF since it installs stuff as root
1568     # by default.
1569     for ac_prog in ginstall scoinst install; do
1570       for ac_exec_ext in '' $ac_executable_extensions; do
1571         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1572           if test $ac_prog = install &&
1573             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1574             # AIX install.  It has an incompatible calling convention.
1575             :
1576           elif test $ac_prog = install &&
1577             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1578             # program-specific install script used by HP pwplus--don't use.
1579             :
1580           else
1581             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1582             break 3
1583           fi
1584         fi
1585       done
1586     done
1587     ;;
1588 esac
1589 done
1590
1591
1592 fi
1593   if test "${ac_cv_path_install+set}" = set; then
1594     INSTALL=$ac_cv_path_install
1595   else
1596     # As a last resort, use the slow shell script.  We don't cache a
1597     # path for INSTALL within a source directory, because that will
1598     # break other packages using the cache if that directory is
1599     # removed, or if the path is relative.
1600     INSTALL=$ac_install_sh
1601   fi
1602 fi
1603 echo "$as_me:$LINENO: result: $INSTALL" >&5
1604 echo "${ECHO_T}$INSTALL" >&6
1605
1606 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1607 # It thinks the first close brace ends the variable substitution.
1608 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1609
1610 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1611
1612 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1613
1614 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1615 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1616 # Just in case
1617 sleep 1
1618 echo timestamp > conftest.file
1619 # Do `set' in a subshell so we don't clobber the current shell's
1620 # arguments.  Must try -L first in case configure is actually a
1621 # symlink; some systems play weird games with the mod time of symlinks
1622 # (eg FreeBSD returns the mod time of the symlink's containing
1623 # directory).
1624 if (
1625    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1626    if test "$*" = "X"; then
1627       # -L didn't work.
1628       set X `ls -t $srcdir/configure conftest.file`
1629    fi
1630    rm -f conftest.file
1631    if test "$*" != "X $srcdir/configure conftest.file" \
1632       && test "$*" != "X conftest.file $srcdir/configure"; then
1633
1634       # If neither matched, then we have a broken ls.  This can happen
1635       # if, for instance, CONFIG_SHELL is bash and it inherits a
1636       # broken ls alias from the environment.  This has actually
1637       # happened.  Such a system could not be considered "sane".
1638       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1639 alias in your environment" >&5
1640 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1641 alias in your environment" >&2;}
1642    { (exit 1); exit 1; }; }
1643    fi
1644
1645    test "$2" = conftest.file
1646    )
1647 then
1648    # Ok.
1649    :
1650 else
1651    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1652 Check your system clock" >&5
1653 echo "$as_me: error: newly created file is older than distributed files!
1654 Check your system clock" >&2;}
1655    { (exit 1); exit 1; }; }
1656 fi
1657 echo "$as_me:$LINENO: result: yes" >&5
1658 echo "${ECHO_T}yes" >&6
1659 test "$program_prefix" != NONE &&
1660   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1661 # Use a double $ so make ignores it.
1662 test "$program_suffix" != NONE &&
1663   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1664 # Double any \ or $.  echo might interpret backslashes.
1665 # By default was `s,x,x', remove it if useless.
1666 cat <<\_ACEOF >conftest.sed
1667 s/[\\$]/&&/g;s/;s,x,x,$//
1668 _ACEOF
1669 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1670 rm conftest.sed
1671
1672 # expand $ac_aux_dir to an absolute path
1673 am_aux_dir=`cd $ac_aux_dir && pwd`
1674
1675 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1676 # Use eval to expand $SHELL
1677 if eval "$MISSING --run true"; then
1678   am_missing_run="$MISSING --run "
1679 else
1680   am_missing_run=
1681   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1682 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1683 fi
1684
1685 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1686   # We used to keeping the `.' as first argument, in order to
1687   # allow $(mkdir_p) to be used without argument.  As in
1688   #   $(mkdir_p) $(somedir)
1689   # where $(somedir) is conditionally defined.  However this is wrong
1690   # for two reasons:
1691   #  1. if the package is installed by a user who cannot write `.'
1692   #     make install will fail,
1693   #  2. the above comment should most certainly read
1694   #     $(mkdir_p) $(DESTDIR)$(somedir)
1695   #     so it does not work when $(somedir) is undefined and
1696   #     $(DESTDIR) is not.
1697   #  To support the latter case, we have to write
1698   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1699   #  so the `.' trick is pointless.
1700   mkdir_p='mkdir -p --'
1701 else
1702   # On NextStep and OpenStep, the `mkdir' command does not
1703   # recognize any option.  It will interpret all options as
1704   # directories to create, and then abort because `.' already
1705   # exists.
1706   for d in ./-p ./--version;
1707   do
1708     test -d $d && rmdir $d
1709   done
1710   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1711   if test -f "$ac_aux_dir/mkinstalldirs"; then
1712     mkdir_p='$(mkinstalldirs)'
1713   else
1714     mkdir_p='$(install_sh) -d'
1715   fi
1716 fi
1717
1718 for ac_prog in gawk mawk nawk awk
1719 do
1720   # Extract the first word of "$ac_prog", so it can be a program name with args.
1721 set dummy $ac_prog; ac_word=$2
1722 echo "$as_me:$LINENO: checking for $ac_word" >&5
1723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724 if test "${ac_cv_prog_AWK+set}" = set; then
1725   echo $ECHO_N "(cached) $ECHO_C" >&6
1726 else
1727   if test -n "$AWK"; then
1728   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1729 else
1730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 for as_dir in $PATH
1732 do
1733   IFS=$as_save_IFS
1734   test -z "$as_dir" && as_dir=.
1735   for ac_exec_ext in '' $ac_executable_extensions; do
1736   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737     ac_cv_prog_AWK="$ac_prog"
1738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739     break 2
1740   fi
1741 done
1742 done
1743
1744 fi
1745 fi
1746 AWK=$ac_cv_prog_AWK
1747 if test -n "$AWK"; then
1748   echo "$as_me:$LINENO: result: $AWK" >&5
1749 echo "${ECHO_T}$AWK" >&6
1750 else
1751   echo "$as_me:$LINENO: result: no" >&5
1752 echo "${ECHO_T}no" >&6
1753 fi
1754
1755   test -n "$AWK" && break
1756 done
1757
1758 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1759 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1760 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1761 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1762   echo $ECHO_N "(cached) $ECHO_C" >&6
1763 else
1764   cat >conftest.make <<\_ACEOF
1765 all:
1766         @echo 'ac_maketemp="$(MAKE)"'
1767 _ACEOF
1768 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1769 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1770 if test -n "$ac_maketemp"; then
1771   eval ac_cv_prog_make_${ac_make}_set=yes
1772 else
1773   eval ac_cv_prog_make_${ac_make}_set=no
1774 fi
1775 rm -f conftest.make
1776 fi
1777 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1778   echo "$as_me:$LINENO: result: yes" >&5
1779 echo "${ECHO_T}yes" >&6
1780   SET_MAKE=
1781 else
1782   echo "$as_me:$LINENO: result: no" >&5
1783 echo "${ECHO_T}no" >&6
1784   SET_MAKE="MAKE=${MAKE-make}"
1785 fi
1786
1787 rm -rf .tst 2>/dev/null
1788 mkdir .tst 2>/dev/null
1789 if test -d .tst; then
1790   am__leading_dot=.
1791 else
1792   am__leading_dot=_
1793 fi
1794 rmdir .tst 2>/dev/null
1795
1796 # test to see if srcdir already configured
1797 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1798    test -f $srcdir/config.status; then
1799   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1800 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1801    { (exit 1); exit 1; }; }
1802 fi
1803
1804 # test whether we have cygpath
1805 if test -z "$CYGPATH_W"; then
1806   if (cygpath --version) >/dev/null 2>/dev/null; then
1807     CYGPATH_W='cygpath -w'
1808   else
1809     CYGPATH_W=echo
1810   fi
1811 fi
1812
1813
1814 # Define the identity of the package.
1815  PACKAGE=$PACKAGENAME
1816  VERSION=$VERSION
1817
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
1938           ac_config_headers="$ac_config_headers config.h"
1939
1940
1941 # Checks for programs.
1942 ac_ext=cc
1943 ac_cpp='$CXXCPP $CPPFLAGS'
1944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1947 if test -n "$ac_tool_prefix"; then
1948   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1949   do
1950     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1951 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1952 echo "$as_me:$LINENO: checking for $ac_word" >&5
1953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1954 if test "${ac_cv_prog_CXX+set}" = set; then
1955   echo $ECHO_N "(cached) $ECHO_C" >&6
1956 else
1957   if test -n "$CXX"; then
1958   ac_cv_prog_CXX="$CXX" # Let the user override the test.
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   for ac_exec_ext in '' $ac_executable_extensions; do
1966   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1967     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969     break 2
1970   fi
1971 done
1972 done
1973
1974 fi
1975 fi
1976 CXX=$ac_cv_prog_CXX
1977 if test -n "$CXX"; then
1978   echo "$as_me:$LINENO: result: $CXX" >&5
1979 echo "${ECHO_T}$CXX" >&6
1980 else
1981   echo "$as_me:$LINENO: result: no" >&5
1982 echo "${ECHO_T}no" >&6
1983 fi
1984
1985     test -n "$CXX" && break
1986   done
1987 fi
1988 if test -z "$CXX"; then
1989   ac_ct_CXX=$CXX
1990   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1991 do
1992   # Extract the first word of "$ac_prog", so it can be a program name with args.
1993 set dummy $ac_prog; ac_word=$2
1994 echo "$as_me:$LINENO: checking for $ac_word" >&5
1995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1996 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1997   echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999   if test -n "$ac_ct_CXX"; then
2000   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2001 else
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 for as_dir in $PATH
2004 do
2005   IFS=$as_save_IFS
2006   test -z "$as_dir" && as_dir=.
2007   for ac_exec_ext in '' $ac_executable_extensions; do
2008   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009     ac_cv_prog_ac_ct_CXX="$ac_prog"
2010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011     break 2
2012   fi
2013 done
2014 done
2015
2016 fi
2017 fi
2018 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2019 if test -n "$ac_ct_CXX"; then
2020   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2021 echo "${ECHO_T}$ac_ct_CXX" >&6
2022 else
2023   echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6
2025 fi
2026
2027   test -n "$ac_ct_CXX" && break
2028 done
2029 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2030
2031   CXX=$ac_ct_CXX
2032 fi
2033
2034
2035 # Provide some information about the compiler.
2036 echo "$as_me:$LINENO:" \
2037      "checking for C++ compiler version" >&5
2038 ac_compiler=`set X $ac_compile; echo $2`
2039 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2040   (eval $ac_compiler --version </dev/null >&5) 2>&5
2041   ac_status=$?
2042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043   (exit $ac_status); }
2044 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2045   (eval $ac_compiler -v </dev/null >&5) 2>&5
2046   ac_status=$?
2047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048   (exit $ac_status); }
2049 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2050   (eval $ac_compiler -V </dev/null >&5) 2>&5
2051   ac_status=$?
2052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053   (exit $ac_status); }
2054
2055 cat >conftest.$ac_ext <<_ACEOF
2056 /* confdefs.h.  */
2057 _ACEOF
2058 cat confdefs.h >>conftest.$ac_ext
2059 cat >>conftest.$ac_ext <<_ACEOF
2060 /* end confdefs.h.  */
2061
2062 int
2063 main ()
2064 {
2065
2066   ;
2067   return 0;
2068 }
2069 _ACEOF
2070 ac_clean_files_save=$ac_clean_files
2071 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2072 # Try to create an executable without -o first, disregard a.out.
2073 # It will help us diagnose broken compilers, and finding out an intuition
2074 # of exeext.
2075 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2076 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2077 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2078 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2079   (eval $ac_link_default) 2>&5
2080   ac_status=$?
2081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082   (exit $ac_status); }; then
2083   # Find the output, starting from the most likely.  This scheme is
2084 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2085 # resort.
2086
2087 # Be careful to initialize this variable, since it used to be cached.
2088 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2089 ac_cv_exeext=
2090 # b.out is created by i960 compilers.
2091 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2092 do
2093   test -f "$ac_file" || continue
2094   case $ac_file in
2095     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2096         ;;
2097     conftest.$ac_ext )
2098         # This is the source file.
2099         ;;
2100     [ab].out )
2101         # We found the default executable, but exeext='' is most
2102         # certainly right.
2103         break;;
2104     *.* )
2105         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2106         # FIXME: I believe we export ac_cv_exeext for Libtool,
2107         # but it would be cool to find out if it's true.  Does anybody
2108         # maintain Libtool? --akim.
2109         export ac_cv_exeext
2110         break;;
2111     * )
2112         break;;
2113   esac
2114 done
2115 else
2116   echo "$as_me: failed program was:" >&5
2117 sed 's/^/| /' conftest.$ac_ext >&5
2118
2119 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2120 See \`config.log' for more details." >&5
2121 echo "$as_me: error: C++ compiler cannot create executables
2122 See \`config.log' for more details." >&2;}
2123    { (exit 77); exit 77; }; }
2124 fi
2125
2126 ac_exeext=$ac_cv_exeext
2127 echo "$as_me:$LINENO: result: $ac_file" >&5
2128 echo "${ECHO_T}$ac_file" >&6
2129
2130 # Check the compiler produces executables we can run.  If not, either
2131 # the compiler is broken, or we cross compile.
2132 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2133 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2134 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2135 # If not cross compiling, check that we can run a simple program.
2136 if test "$cross_compiling" != yes; then
2137   if { ac_try='./$ac_file'
2138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2139   (eval $ac_try) 2>&5
2140   ac_status=$?
2141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142   (exit $ac_status); }; }; then
2143     cross_compiling=no
2144   else
2145     if test "$cross_compiling" = maybe; then
2146         cross_compiling=yes
2147     else
2148         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2149 If you meant to cross compile, use \`--host'.
2150 See \`config.log' for more details." >&5
2151 echo "$as_me: error: cannot run C++ compiled programs.
2152 If you meant to cross compile, use \`--host'.
2153 See \`config.log' for more details." >&2;}
2154    { (exit 1); exit 1; }; }
2155     fi
2156   fi
2157 fi
2158 echo "$as_me:$LINENO: result: yes" >&5
2159 echo "${ECHO_T}yes" >&6
2160
2161 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2162 ac_clean_files=$ac_clean_files_save
2163 # Check the compiler produces executables we can run.  If not, either
2164 # the compiler is broken, or we cross compile.
2165 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2166 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2167 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2168 echo "${ECHO_T}$cross_compiling" >&6
2169
2170 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2171 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2173   (eval $ac_link) 2>&5
2174   ac_status=$?
2175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176   (exit $ac_status); }; then
2177   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2178 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2179 # work properly (i.e., refer to `conftest.exe'), while it won't with
2180 # `rm'.
2181 for ac_file in conftest.exe conftest conftest.*; do
2182   test -f "$ac_file" || continue
2183   case $ac_file in
2184     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2185     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2186           export ac_cv_exeext
2187           break;;
2188     * ) break;;
2189   esac
2190 done
2191 else
2192   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2193 See \`config.log' for more details." >&5
2194 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2195 See \`config.log' for more details." >&2;}
2196    { (exit 1); exit 1; }; }
2197 fi
2198
2199 rm -f conftest$ac_cv_exeext
2200 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2201 echo "${ECHO_T}$ac_cv_exeext" >&6
2202
2203 rm -f conftest.$ac_ext
2204 EXEEXT=$ac_cv_exeext
2205 ac_exeext=$EXEEXT
2206 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2207 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2208 if test "${ac_cv_objext+set}" = set; then
2209   echo $ECHO_N "(cached) $ECHO_C" >&6
2210 else
2211   cat >conftest.$ac_ext <<_ACEOF
2212 /* confdefs.h.  */
2213 _ACEOF
2214 cat confdefs.h >>conftest.$ac_ext
2215 cat >>conftest.$ac_ext <<_ACEOF
2216 /* end confdefs.h.  */
2217
2218 int
2219 main ()
2220 {
2221
2222   ;
2223   return 0;
2224 }
2225 _ACEOF
2226 rm -f conftest.o conftest.obj
2227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228   (eval $ac_compile) 2>&5
2229   ac_status=$?
2230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231   (exit $ac_status); }; then
2232   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2233   case $ac_file in
2234     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2235     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2236        break;;
2237   esac
2238 done
2239 else
2240   echo "$as_me: failed program was:" >&5
2241 sed 's/^/| /' conftest.$ac_ext >&5
2242
2243 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2246 See \`config.log' for more details." >&2;}
2247    { (exit 1); exit 1; }; }
2248 fi
2249
2250 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2251 fi
2252 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2253 echo "${ECHO_T}$ac_cv_objext" >&6
2254 OBJEXT=$ac_cv_objext
2255 ac_objext=$OBJEXT
2256 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2257 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2258 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2259   echo $ECHO_N "(cached) $ECHO_C" >&6
2260 else
2261   cat >conftest.$ac_ext <<_ACEOF
2262 /* confdefs.h.  */
2263 _ACEOF
2264 cat confdefs.h >>conftest.$ac_ext
2265 cat >>conftest.$ac_ext <<_ACEOF
2266 /* end confdefs.h.  */
2267
2268 int
2269 main ()
2270 {
2271 #ifndef __GNUC__
2272        choke me
2273 #endif
2274
2275   ;
2276   return 0;
2277 }
2278 _ACEOF
2279 rm -f conftest.$ac_objext
2280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2281   (eval $ac_compile) 2>conftest.er1
2282   ac_status=$?
2283   grep -v '^ *+' conftest.er1 >conftest.err
2284   rm -f conftest.er1
2285   cat conftest.err >&5
2286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287   (exit $ac_status); } &&
2288          { ac_try='test -z "$ac_cxx_werror_flag"
2289                          || test ! -s conftest.err'
2290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291   (eval $ac_try) 2>&5
2292   ac_status=$?
2293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294   (exit $ac_status); }; } &&
2295          { ac_try='test -s conftest.$ac_objext'
2296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297   (eval $ac_try) 2>&5
2298   ac_status=$?
2299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300   (exit $ac_status); }; }; then
2301   ac_compiler_gnu=yes
2302 else
2303   echo "$as_me: failed program was:" >&5
2304 sed 's/^/| /' conftest.$ac_ext >&5
2305
2306 ac_compiler_gnu=no
2307 fi
2308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2309 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2310
2311 fi
2312 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2313 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2314 GXX=`test $ac_compiler_gnu = yes && echo yes`
2315 ac_test_CXXFLAGS=${CXXFLAGS+set}
2316 ac_save_CXXFLAGS=$CXXFLAGS
2317 CXXFLAGS="-g"
2318 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2319 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2320 if test "${ac_cv_prog_cxx_g+set}" = set; then
2321   echo $ECHO_N "(cached) $ECHO_C" >&6
2322 else
2323   cat >conftest.$ac_ext <<_ACEOF
2324 /* confdefs.h.  */
2325 _ACEOF
2326 cat confdefs.h >>conftest.$ac_ext
2327 cat >>conftest.$ac_ext <<_ACEOF
2328 /* end confdefs.h.  */
2329
2330 int
2331 main ()
2332 {
2333
2334   ;
2335   return 0;
2336 }
2337 _ACEOF
2338 rm -f conftest.$ac_objext
2339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2340   (eval $ac_compile) 2>conftest.er1
2341   ac_status=$?
2342   grep -v '^ *+' conftest.er1 >conftest.err
2343   rm -f conftest.er1
2344   cat conftest.err >&5
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); } &&
2347          { ac_try='test -z "$ac_cxx_werror_flag"
2348                          || test ! -s conftest.err'
2349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2350   (eval $ac_try) 2>&5
2351   ac_status=$?
2352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353   (exit $ac_status); }; } &&
2354          { ac_try='test -s conftest.$ac_objext'
2355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356   (eval $ac_try) 2>&5
2357   ac_status=$?
2358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359   (exit $ac_status); }; }; then
2360   ac_cv_prog_cxx_g=yes
2361 else
2362   echo "$as_me: failed program was:" >&5
2363 sed 's/^/| /' conftest.$ac_ext >&5
2364
2365 ac_cv_prog_cxx_g=no
2366 fi
2367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2368 fi
2369 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2370 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2371 if test "$ac_test_CXXFLAGS" = set; then
2372   CXXFLAGS=$ac_save_CXXFLAGS
2373 elif test $ac_cv_prog_cxx_g = yes; then
2374   if test "$GXX" = yes; then
2375     CXXFLAGS="-g -O2"
2376   else
2377     CXXFLAGS="-g"
2378   fi
2379 else
2380   if test "$GXX" = yes; then
2381     CXXFLAGS="-O2"
2382   else
2383     CXXFLAGS=
2384   fi
2385 fi
2386 for ac_declaration in \
2387    '' \
2388    'extern "C" void std::exit (int) throw (); using std::exit;' \
2389    'extern "C" void std::exit (int); using std::exit;' \
2390    'extern "C" void exit (int) throw ();' \
2391    'extern "C" void exit (int);' \
2392    'void exit (int);'
2393 do
2394   cat >conftest.$ac_ext <<_ACEOF
2395 /* confdefs.h.  */
2396 _ACEOF
2397 cat confdefs.h >>conftest.$ac_ext
2398 cat >>conftest.$ac_ext <<_ACEOF
2399 /* end confdefs.h.  */
2400 $ac_declaration
2401 #include <stdlib.h>
2402 int
2403 main ()
2404 {
2405 exit (42);
2406   ;
2407   return 0;
2408 }
2409 _ACEOF
2410 rm -f conftest.$ac_objext
2411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2412   (eval $ac_compile) 2>conftest.er1
2413   ac_status=$?
2414   grep -v '^ *+' conftest.er1 >conftest.err
2415   rm -f conftest.er1
2416   cat conftest.err >&5
2417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418   (exit $ac_status); } &&
2419          { ac_try='test -z "$ac_cxx_werror_flag"
2420                          || test ! -s conftest.err'
2421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422   (eval $ac_try) 2>&5
2423   ac_status=$?
2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425   (exit $ac_status); }; } &&
2426          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2432   :
2433 else
2434   echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2436
2437 continue
2438 fi
2439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2440   cat >conftest.$ac_ext <<_ACEOF
2441 /* confdefs.h.  */
2442 _ACEOF
2443 cat confdefs.h >>conftest.$ac_ext
2444 cat >>conftest.$ac_ext <<_ACEOF
2445 /* end confdefs.h.  */
2446 $ac_declaration
2447 int
2448 main ()
2449 {
2450 exit (42);
2451   ;
2452   return 0;
2453 }
2454 _ACEOF
2455 rm -f conftest.$ac_objext
2456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2457   (eval $ac_compile) 2>conftest.er1
2458   ac_status=$?
2459   grep -v '^ *+' conftest.er1 >conftest.err
2460   rm -f conftest.er1
2461   cat conftest.err >&5
2462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463   (exit $ac_status); } &&
2464          { ac_try='test -z "$ac_cxx_werror_flag"
2465                          || test ! -s conftest.err'
2466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467   (eval $ac_try) 2>&5
2468   ac_status=$?
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); }; } &&
2471          { ac_try='test -s conftest.$ac_objext'
2472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473   (eval $ac_try) 2>&5
2474   ac_status=$?
2475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476   (exit $ac_status); }; }; then
2477   break
2478 else
2479   echo "$as_me: failed program was:" >&5
2480 sed 's/^/| /' conftest.$ac_ext >&5
2481
2482 fi
2483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2484 done
2485 rm -f conftest*
2486 if test -n "$ac_declaration"; then
2487   echo '#ifdef __cplusplus' >>confdefs.h
2488   echo $ac_declaration      >>confdefs.h
2489   echo '#endif'             >>confdefs.h
2490 fi
2491
2492 ac_ext=c
2493 ac_cpp='$CPP $CPPFLAGS'
2494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2497 DEPDIR="${am__leading_dot}deps"
2498
2499           ac_config_commands="$ac_config_commands depfiles"
2500
2501
2502 am_make=${MAKE-make}
2503 cat > confinc << 'END'
2504 am__doit:
2505         @echo done
2506 .PHONY: am__doit
2507 END
2508 # If we don't find an include directive, just comment out the code.
2509 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2510 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2511 am__include="#"
2512 am__quote=
2513 _am_result=none
2514 # First try GNU make style include.
2515 echo "include confinc" > confmf
2516 # We grep out `Entering directory' and `Leaving directory'
2517 # messages which can occur if `w' ends up in MAKEFLAGS.
2518 # In particular we don't look at `^make:' because GNU make might
2519 # be invoked under some other name (usually "gmake"), in which
2520 # case it prints its new name instead of `make'.
2521 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2522    am__include=include
2523    am__quote=
2524    _am_result=GNU
2525 fi
2526 # Now try BSD make style include.
2527 if test "$am__include" = "#"; then
2528    echo '.include "confinc"' > confmf
2529    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2530       am__include=.include
2531       am__quote="\""
2532       _am_result=BSD
2533    fi
2534 fi
2535
2536
2537 echo "$as_me:$LINENO: result: $_am_result" >&5
2538 echo "${ECHO_T}$_am_result" >&6
2539 rm -f confinc confmf
2540
2541 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2542 if test "${enable_dependency_tracking+set}" = set; then
2543   enableval="$enable_dependency_tracking"
2544
2545 fi;
2546 if test "x$enable_dependency_tracking" != xno; then
2547   am_depcomp="$ac_aux_dir/depcomp"
2548   AMDEPBACKSLASH='\'
2549 fi
2550
2551
2552 if test "x$enable_dependency_tracking" != xno; then
2553   AMDEP_TRUE=
2554   AMDEP_FALSE='#'
2555 else
2556   AMDEP_TRUE='#'
2557   AMDEP_FALSE=
2558 fi
2559
2560
2561
2562
2563 depcc="$CXX"  am_compiler_list=
2564
2565 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2566 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2567 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2568   echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2571   # We make a subdir and do the tests there.  Otherwise we can end up
2572   # making bogus files that we don't know about and never remove.  For
2573   # instance it was reported that on HP-UX the gcc test will end up
2574   # making a dummy file named `D' -- because `-MD' means `put the output
2575   # in D'.
2576   mkdir conftest.dir
2577   # Copy depcomp to subdir because otherwise we won't find it if we're
2578   # using a relative directory.
2579   cp "$am_depcomp" conftest.dir
2580   cd conftest.dir
2581   # We will build objects and dependencies in a subdirectory because
2582   # it helps to detect inapplicable dependency modes.  For instance
2583   # both Tru64's cc and ICC support -MD to output dependencies as a
2584   # side effect of compilation, but ICC will put the dependencies in
2585   # the current directory while Tru64 will put them in the object
2586   # directory.
2587   mkdir sub
2588
2589   am_cv_CXX_dependencies_compiler_type=none
2590   if test "$am_compiler_list" = ""; then
2591      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2592   fi
2593   for depmode in $am_compiler_list; do
2594     # Setup a source with many dependencies, because some compilers
2595     # like to wrap large dependency lists on column 80 (with \), and
2596     # we should not choose a depcomp mode which is confused by this.
2597     #
2598     # We need to recreate these files for each test, as the compiler may
2599     # overwrite some of them when testing with obscure command lines.
2600     # This happens at least with the AIX C compiler.
2601     : > sub/conftest.c
2602     for i in 1 2 3 4 5 6; do
2603       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2604       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2605       # Solaris 8's {/usr,}/bin/sh.
2606       touch sub/conftst$i.h
2607     done
2608     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2609
2610     case $depmode in
2611     nosideeffect)
2612       # after this tag, mechanisms are not by side-effect, so they'll
2613       # only be used when explicitly requested
2614       if test "x$enable_dependency_tracking" = xyes; then
2615         continue
2616       else
2617         break
2618       fi
2619       ;;
2620     none) break ;;
2621     esac
2622     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2623     # mode.  It turns out that the SunPro C++ compiler does not properly
2624     # handle `-M -o', and we need to detect this.
2625     if depmode=$depmode \
2626        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2627        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2628        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2629          >/dev/null 2>conftest.err &&
2630        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2631        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2632        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2633       # icc doesn't choke on unknown options, it will just issue warnings
2634       # or remarks (even with -Werror).  So we grep stderr for any message
2635       # that says an option was ignored or not supported.
2636       # When given -MP, icc 7.0 and 7.1 complain thusly:
2637       #   icc: Command line warning: ignoring option '-M'; no argument required
2638       # The diagnosis changed in icc 8.0:
2639       #   icc: Command line remark: option '-MP' not supported
2640       if (grep 'ignoring option' conftest.err ||
2641           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2642         am_cv_CXX_dependencies_compiler_type=$depmode
2643         break
2644       fi
2645     fi
2646   done
2647
2648   cd ..
2649   rm -rf conftest.dir
2650 else
2651   am_cv_CXX_dependencies_compiler_type=none
2652 fi
2653
2654 fi
2655 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2656 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2657 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2658
2659
2660
2661 if
2662   test "x$enable_dependency_tracking" != xno \
2663   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2664   am__fastdepCXX_TRUE=
2665   am__fastdepCXX_FALSE='#'
2666 else
2667   am__fastdepCXX_TRUE='#'
2668   am__fastdepCXX_FALSE=
2669 fi
2670
2671
2672 # Check whether --enable-shared or --disable-shared was given.
2673 if test "${enable_shared+set}" = set; then
2674   enableval="$enable_shared"
2675   p=${PACKAGE-default}
2676     case $enableval in
2677     yes) enable_shared=yes ;;
2678     no) enable_shared=no ;;
2679     *)
2680       enable_shared=no
2681       # Look at the argument we got.  We use all the common list separators.
2682       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2683       for pkg in $enableval; do
2684         IFS="$lt_save_ifs"
2685         if test "X$pkg" = "X$p"; then
2686           enable_shared=yes
2687         fi
2688       done
2689       IFS="$lt_save_ifs"
2690       ;;
2691     esac
2692 else
2693   enable_shared=yes
2694 fi;
2695
2696 # Check whether --enable-static or --disable-static was given.
2697 if test "${enable_static+set}" = set; then
2698   enableval="$enable_static"
2699   p=${PACKAGE-default}
2700     case $enableval in
2701     yes) enable_static=yes ;;
2702     no) enable_static=no ;;
2703     *)
2704      enable_static=no
2705       # Look at the argument we got.  We use all the common list separators.
2706       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2707       for pkg in $enableval; do
2708         IFS="$lt_save_ifs"
2709         if test "X$pkg" = "X$p"; then
2710           enable_static=yes
2711         fi
2712       done
2713       IFS="$lt_save_ifs"
2714       ;;
2715     esac
2716 else
2717   enable_static=yes
2718 fi;
2719
2720 # Check whether --enable-fast-install or --disable-fast-install was given.
2721 if test "${enable_fast_install+set}" = set; then
2722   enableval="$enable_fast_install"
2723   p=${PACKAGE-default}
2724     case $enableval in
2725     yes) enable_fast_install=yes ;;
2726     no) enable_fast_install=no ;;
2727     *)
2728       enable_fast_install=no
2729       # Look at the argument we got.  We use all the common list separators.
2730       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2731       for pkg in $enableval; do
2732         IFS="$lt_save_ifs"
2733         if test "X$pkg" = "X$p"; then
2734           enable_fast_install=yes
2735         fi
2736       done
2737       IFS="$lt_save_ifs"
2738       ;;
2739     esac
2740 else
2741   enable_fast_install=yes
2742 fi;
2743
2744 # Make sure we can run config.sub.
2745 $ac_config_sub sun4 >/dev/null 2>&1 ||
2746   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2747 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2748    { (exit 1); exit 1; }; }
2749
2750 echo "$as_me:$LINENO: checking build system type" >&5
2751 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2752 if test "${ac_cv_build+set}" = set; then
2753   echo $ECHO_N "(cached) $ECHO_C" >&6
2754 else
2755   ac_cv_build_alias=$build_alias
2756 test -z "$ac_cv_build_alias" &&
2757   ac_cv_build_alias=`$ac_config_guess`
2758 test -z "$ac_cv_build_alias" &&
2759   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2760 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2761    { (exit 1); exit 1; }; }
2762 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2763   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2764 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2765    { (exit 1); exit 1; }; }
2766
2767 fi
2768 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2769 echo "${ECHO_T}$ac_cv_build" >&6
2770 build=$ac_cv_build
2771 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2772 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2773 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2774
2775
2776 echo "$as_me:$LINENO: checking host system type" >&5
2777 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2778 if test "${ac_cv_host+set}" = set; then
2779   echo $ECHO_N "(cached) $ECHO_C" >&6
2780 else
2781   ac_cv_host_alias=$host_alias
2782 test -z "$ac_cv_host_alias" &&
2783   ac_cv_host_alias=$ac_cv_build_alias
2784 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2785   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2786 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2787    { (exit 1); exit 1; }; }
2788
2789 fi
2790 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2791 echo "${ECHO_T}$ac_cv_host" >&6
2792 host=$ac_cv_host
2793 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2794 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2795 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2796
2797
2798 ac_ext=c
2799 ac_cpp='$CPP $CPPFLAGS'
2800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2803 if test -n "$ac_tool_prefix"; then
2804   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2805 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2806 echo "$as_me:$LINENO: checking for $ac_word" >&5
2807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2808 if test "${ac_cv_prog_CC+set}" = set; then
2809   echo $ECHO_N "(cached) $ECHO_C" >&6
2810 else
2811   if test -n "$CC"; then
2812   ac_cv_prog_CC="$CC" # Let the user override the test.
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2816 do
2817   IFS=$as_save_IFS
2818   test -z "$as_dir" && as_dir=.
2819   for ac_exec_ext in '' $ac_executable_extensions; do
2820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823     break 2
2824   fi
2825 done
2826 done
2827
2828 fi
2829 fi
2830 CC=$ac_cv_prog_CC
2831 if test -n "$CC"; then
2832   echo "$as_me:$LINENO: result: $CC" >&5
2833 echo "${ECHO_T}$CC" >&6
2834 else
2835   echo "$as_me:$LINENO: result: no" >&5
2836 echo "${ECHO_T}no" >&6
2837 fi
2838
2839 fi
2840 if test -z "$ac_cv_prog_CC"; then
2841   ac_ct_CC=$CC
2842   # Extract the first word of "gcc", so it can be a program name with args.
2843 set dummy gcc; ac_word=$2
2844 echo "$as_me:$LINENO: checking for $ac_word" >&5
2845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2846 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2847   echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849   if test -n "$ac_ct_CC"; then
2850   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855   IFS=$as_save_IFS
2856   test -z "$as_dir" && as_dir=.
2857   for ac_exec_ext in '' $ac_executable_extensions; do
2858   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859     ac_cv_prog_ac_ct_CC="gcc"
2860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861     break 2
2862   fi
2863 done
2864 done
2865
2866 fi
2867 fi
2868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2869 if test -n "$ac_ct_CC"; then
2870   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2871 echo "${ECHO_T}$ac_ct_CC" >&6
2872 else
2873   echo "$as_me:$LINENO: result: no" >&5
2874 echo "${ECHO_T}no" >&6
2875 fi
2876
2877   CC=$ac_ct_CC
2878 else
2879   CC="$ac_cv_prog_CC"
2880 fi
2881
2882 if test -z "$CC"; then
2883   if test -n "$ac_tool_prefix"; then
2884   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2885 set dummy ${ac_tool_prefix}cc; ac_word=$2
2886 echo "$as_me:$LINENO: checking for $ac_word" >&5
2887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2888 if test "${ac_cv_prog_CC+set}" = set; then
2889   echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891   if test -n "$CC"; then
2892   ac_cv_prog_CC="$CC" # Let the user override the test.
2893 else
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2896 do
2897   IFS=$as_save_IFS
2898   test -z "$as_dir" && as_dir=.
2899   for ac_exec_ext in '' $ac_executable_extensions; do
2900   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901     ac_cv_prog_CC="${ac_tool_prefix}cc"
2902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903     break 2
2904   fi
2905 done
2906 done
2907
2908 fi
2909 fi
2910 CC=$ac_cv_prog_CC
2911 if test -n "$CC"; then
2912   echo "$as_me:$LINENO: result: $CC" >&5
2913 echo "${ECHO_T}$CC" >&6
2914 else
2915   echo "$as_me:$LINENO: result: no" >&5
2916 echo "${ECHO_T}no" >&6
2917 fi
2918
2919 fi
2920 if test -z "$ac_cv_prog_CC"; then
2921   ac_ct_CC=$CC
2922   # Extract the first word of "cc", so it can be a program name with args.
2923 set dummy cc; ac_word=$2
2924 echo "$as_me:$LINENO: checking for $ac_word" >&5
2925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2926 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2927   echo $ECHO_N "(cached) $ECHO_C" >&6
2928 else
2929   if test -n "$ac_ct_CC"; then
2930   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2931 else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2934 do
2935   IFS=$as_save_IFS
2936   test -z "$as_dir" && as_dir=.
2937   for ac_exec_ext in '' $ac_executable_extensions; do
2938   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2939     ac_cv_prog_ac_ct_CC="cc"
2940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2941     break 2
2942   fi
2943 done
2944 done
2945
2946 fi
2947 fi
2948 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2949 if test -n "$ac_ct_CC"; then
2950   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2951 echo "${ECHO_T}$ac_ct_CC" >&6
2952 else
2953   echo "$as_me:$LINENO: result: no" >&5
2954 echo "${ECHO_T}no" >&6
2955 fi
2956
2957   CC=$ac_ct_CC
2958 else
2959   CC="$ac_cv_prog_CC"
2960 fi
2961
2962 fi
2963 if test -z "$CC"; then
2964   # Extract the first word of "cc", so it can be a program name with args.
2965 set dummy cc; ac_word=$2
2966 echo "$as_me:$LINENO: checking for $ac_word" >&5
2967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2968 if test "${ac_cv_prog_CC+set}" = set; then
2969   echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
2971   if test -n "$CC"; then
2972   ac_cv_prog_CC="$CC" # Let the user override the test.
2973 else
2974   ac_prog_rejected=no
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH
2977 do
2978   IFS=$as_save_IFS
2979   test -z "$as_dir" && as_dir=.
2980   for ac_exec_ext in '' $ac_executable_extensions; do
2981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2982     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2983        ac_prog_rejected=yes
2984        continue
2985      fi
2986     ac_cv_prog_CC="cc"
2987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2988     break 2
2989   fi
2990 done
2991 done
2992
2993 if test $ac_prog_rejected = yes; then
2994   # We found a bogon in the path, so make sure we never use it.
2995   set dummy $ac_cv_prog_CC
2996   shift
2997   if test $# != 0; then
2998     # We chose a different compiler from the bogus one.
2999     # However, it has the same basename, so the bogon will be chosen
3000     # first if we set CC to just the basename; use the full file name.
3001     shift
3002     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3003   fi
3004 fi
3005 fi
3006 fi
3007 CC=$ac_cv_prog_CC
3008 if test -n "$CC"; then
3009   echo "$as_me:$LINENO: result: $CC" >&5
3010 echo "${ECHO_T}$CC" >&6
3011 else
3012   echo "$as_me:$LINENO: result: no" >&5
3013 echo "${ECHO_T}no" >&6
3014 fi
3015
3016 fi
3017 if test -z "$CC"; then
3018   if test -n "$ac_tool_prefix"; then
3019   for ac_prog in cl
3020   do
3021     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3022 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3023 echo "$as_me:$LINENO: checking for $ac_word" >&5
3024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3025 if test "${ac_cv_prog_CC+set}" = set; then
3026   echo $ECHO_N "(cached) $ECHO_C" >&6
3027 else
3028   if test -n "$CC"; then
3029   ac_cv_prog_CC="$CC" # Let the user override the test.
3030 else
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH
3033 do
3034   IFS=$as_save_IFS
3035   test -z "$as_dir" && as_dir=.
3036   for ac_exec_ext in '' $ac_executable_extensions; do
3037   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3040     break 2
3041   fi
3042 done
3043 done
3044
3045 fi
3046 fi
3047 CC=$ac_cv_prog_CC
3048 if test -n "$CC"; then
3049   echo "$as_me:$LINENO: result: $CC" >&5
3050 echo "${ECHO_T}$CC" >&6
3051 else
3052   echo "$as_me:$LINENO: result: no" >&5
3053 echo "${ECHO_T}no" >&6
3054 fi
3055
3056     test -n "$CC" && break
3057   done
3058 fi
3059 if test -z "$CC"; then
3060   ac_ct_CC=$CC
3061   for ac_prog in cl
3062 do
3063   # Extract the first word of "$ac_prog", so it can be a program name with args.
3064 set dummy $ac_prog; ac_word=$2
3065 echo "$as_me:$LINENO: checking for $ac_word" >&5
3066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3067 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3068   echo $ECHO_N "(cached) $ECHO_C" >&6
3069 else
3070   if test -n "$ac_ct_CC"; then
3071   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3072 else
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH
3075 do
3076   IFS=$as_save_IFS
3077   test -z "$as_dir" && as_dir=.
3078   for ac_exec_ext in '' $ac_executable_extensions; do
3079   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080     ac_cv_prog_ac_ct_CC="$ac_prog"
3081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082     break 2
3083   fi
3084 done
3085 done
3086
3087 fi
3088 fi
3089 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3090 if test -n "$ac_ct_CC"; then
3091   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3092 echo "${ECHO_T}$ac_ct_CC" >&6
3093 else
3094   echo "$as_me:$LINENO: result: no" >&5
3095 echo "${ECHO_T}no" >&6
3096 fi
3097
3098   test -n "$ac_ct_CC" && break
3099 done
3100
3101   CC=$ac_ct_CC
3102 fi
3103
3104 fi
3105
3106
3107 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3108 See \`config.log' for more details." >&5
3109 echo "$as_me: error: no acceptable C compiler found in \$PATH
3110 See \`config.log' for more details." >&2;}
3111    { (exit 1); exit 1; }; }
3112
3113 # Provide some information about the compiler.
3114 echo "$as_me:$LINENO:" \
3115      "checking for C compiler version" >&5
3116 ac_compiler=`set X $ac_compile; echo $2`
3117 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3118   (eval $ac_compiler --version </dev/null >&5) 2>&5
3119   ac_status=$?
3120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121   (exit $ac_status); }
3122 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3123   (eval $ac_compiler -v </dev/null >&5) 2>&5
3124   ac_status=$?
3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); }
3127 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3128   (eval $ac_compiler -V </dev/null >&5) 2>&5
3129   ac_status=$?
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); }
3132
3133 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3134 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3135 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3136   echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138   cat >conftest.$ac_ext <<_ACEOF
3139 /* confdefs.h.  */
3140 _ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h.  */
3144
3145 int
3146 main ()
3147 {
3148 #ifndef __GNUC__
3149        choke me
3150 #endif
3151
3152   ;
3153   return 0;
3154 }
3155 _ACEOF
3156 rm -f conftest.$ac_objext
3157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3158   (eval $ac_compile) 2>conftest.er1
3159   ac_status=$?
3160   grep -v '^ *+' conftest.er1 >conftest.err
3161   rm -f conftest.er1
3162   cat conftest.err >&5
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); } &&
3165          { ac_try='test -z "$ac_c_werror_flag"
3166                          || test ! -s conftest.err'
3167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3168   (eval $ac_try) 2>&5
3169   ac_status=$?
3170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171   (exit $ac_status); }; } &&
3172          { ac_try='test -s conftest.$ac_objext'
3173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174   (eval $ac_try) 2>&5
3175   ac_status=$?
3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177   (exit $ac_status); }; }; then
3178   ac_compiler_gnu=yes
3179 else
3180   echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3182
3183 ac_compiler_gnu=no
3184 fi
3185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3186 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3187
3188 fi
3189 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3190 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3191 GCC=`test $ac_compiler_gnu = yes && echo yes`
3192 ac_test_CFLAGS=${CFLAGS+set}
3193 ac_save_CFLAGS=$CFLAGS
3194 CFLAGS="-g"
3195 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3196 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3197 if test "${ac_cv_prog_cc_g+set}" = set; then
3198   echo $ECHO_N "(cached) $ECHO_C" >&6
3199 else
3200   cat >conftest.$ac_ext <<_ACEOF
3201 /* confdefs.h.  */
3202 _ACEOF
3203 cat confdefs.h >>conftest.$ac_ext
3204 cat >>conftest.$ac_ext <<_ACEOF
3205 /* end confdefs.h.  */
3206
3207 int
3208 main ()
3209 {
3210
3211   ;
3212   return 0;
3213 }
3214 _ACEOF
3215 rm -f conftest.$ac_objext
3216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3217   (eval $ac_compile) 2>conftest.er1
3218   ac_status=$?
3219   grep -v '^ *+' conftest.er1 >conftest.err
3220   rm -f conftest.er1
3221   cat conftest.err >&5
3222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223   (exit $ac_status); } &&
3224          { ac_try='test -z "$ac_c_werror_flag"
3225                          || test ! -s conftest.err'
3226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227   (eval $ac_try) 2>&5
3228   ac_status=$?
3229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230   (exit $ac_status); }; } &&
3231          { ac_try='test -s conftest.$ac_objext'
3232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233   (eval $ac_try) 2>&5
3234   ac_status=$?
3235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236   (exit $ac_status); }; }; then
3237   ac_cv_prog_cc_g=yes
3238 else
3239   echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3241
3242 ac_cv_prog_cc_g=no
3243 fi
3244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3245 fi
3246 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3247 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3248 if test "$ac_test_CFLAGS" = set; then
3249   CFLAGS=$ac_save_CFLAGS
3250 elif test $ac_cv_prog_cc_g = yes; then
3251   if test "$GCC" = yes; then
3252     CFLAGS="-g -O2"
3253   else
3254     CFLAGS="-g"
3255   fi
3256 else
3257   if test "$GCC" = yes; then
3258     CFLAGS="-O2"
3259   else
3260     CFLAGS=
3261   fi
3262 fi
3263 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3264 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3265 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3266   echo $ECHO_N "(cached) $ECHO_C" >&6
3267 else
3268   ac_cv_prog_cc_stdc=no
3269 ac_save_CC=$CC
3270 cat >conftest.$ac_ext <<_ACEOF
3271 /* confdefs.h.  */
3272 _ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h.  */
3276 #include <stdarg.h>
3277 #include <stdio.h>
3278 #include <sys/types.h>
3279 #include <sys/stat.h>
3280 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3281 struct buf { int x; };
3282 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3283 static char *e (p, i)
3284      char **p;
3285      int i;
3286 {
3287   return p[i];
3288 }
3289 static char *f (char * (*g) (char **, int), char **p, ...)
3290 {
3291   char *s;
3292   va_list v;
3293   va_start (v,p);
3294   s = g (p, va_arg (v,int));
3295   va_end (v);
3296   return s;
3297 }
3298
3299 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3300    function prototypes and stuff, but not '\xHH' hex character constants.
3301    These don't provoke an error unfortunately, instead are silently treated
3302    as 'x'.  The following induces an error, until -std1 is added to get
3303    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3304    array size at least.  It's necessary to write '\x00'==0 to get something
3305    that's true only with -std1.  */
3306 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3307
3308 int test (int i, double x);
3309 struct s1 {int (*f) (int a);};
3310 struct s2 {int (*f) (double a);};
3311 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3312 int argc;
3313 char **argv;
3314 int
3315 main ()
3316 {
3317 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3318   ;
3319   return 0;
3320 }
3321 _ACEOF
3322 # Don't try gcc -ansi; that turns off useful extensions and
3323 # breaks some systems' header files.
3324 # AIX                   -qlanglvl=ansi
3325 # Ultrix and OSF/1      -std1
3326 # HP-UX 10.20 and later -Ae
3327 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3328 # SVR4                  -Xc -D__EXTENSIONS__
3329 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3330 do
3331   CC="$ac_save_CC $ac_arg"
3332   rm -f conftest.$ac_objext
3333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3334   (eval $ac_compile) 2>conftest.er1
3335   ac_status=$?
3336   grep -v '^ *+' conftest.er1 >conftest.err
3337   rm -f conftest.er1
3338   cat conftest.err >&5
3339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340   (exit $ac_status); } &&
3341          { ac_try='test -z "$ac_c_werror_flag"
3342                          || test ! -s conftest.err'
3343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344   (eval $ac_try) 2>&5
3345   ac_status=$?
3346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347   (exit $ac_status); }; } &&
3348          { ac_try='test -s conftest.$ac_objext'
3349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350   (eval $ac_try) 2>&5
3351   ac_status=$?
3352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353   (exit $ac_status); }; }; then
3354   ac_cv_prog_cc_stdc=$ac_arg
3355 break
3356 else
3357   echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3359
3360 fi
3361 rm -f conftest.err conftest.$ac_objext
3362 done
3363 rm -f conftest.$ac_ext conftest.$ac_objext
3364 CC=$ac_save_CC
3365
3366 fi
3367
3368 case "x$ac_cv_prog_cc_stdc" in
3369   x|xno)
3370     echo "$as_me:$LINENO: result: none needed" >&5
3371 echo "${ECHO_T}none needed" >&6 ;;
3372   *)
3373     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3374 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3375     CC="$CC $ac_cv_prog_cc_stdc" ;;
3376 esac
3377
3378 # Some people use a C++ compiler to compile C.  Since we use `exit',
3379 # in C++ we need to declare it.  In case someone uses the same compiler
3380 # for both compiling C and C++ we need to have the C++ compiler decide
3381 # the declaration of exit, since it's the most demanding environment.
3382 cat >conftest.$ac_ext <<_ACEOF
3383 #ifndef __cplusplus
3384   choke me
3385 #endif
3386 _ACEOF
3387 rm -f conftest.$ac_objext
3388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3389   (eval $ac_compile) 2>conftest.er1
3390   ac_status=$?
3391   grep -v '^ *+' conftest.er1 >conftest.err
3392   rm -f conftest.er1
3393   cat conftest.err >&5
3394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395   (exit $ac_status); } &&
3396          { ac_try='test -z "$ac_c_werror_flag"
3397                          || test ! -s conftest.err'
3398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399   (eval $ac_try) 2>&5
3400   ac_status=$?
3401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402   (exit $ac_status); }; } &&
3403          { ac_try='test -s conftest.$ac_objext'
3404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405   (eval $ac_try) 2>&5
3406   ac_status=$?
3407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408   (exit $ac_status); }; }; then
3409   for ac_declaration in \
3410    '' \
3411    'extern "C" void std::exit (int) throw (); using std::exit;' \
3412    'extern "C" void std::exit (int); using std::exit;' \
3413    'extern "C" void exit (int) throw ();' \
3414    'extern "C" void exit (int);' \
3415    'void exit (int);'
3416 do
3417   cat >conftest.$ac_ext <<_ACEOF
3418 /* confdefs.h.  */
3419 _ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h.  */
3423 $ac_declaration
3424 #include <stdlib.h>
3425 int
3426 main ()
3427 {
3428 exit (42);
3429   ;
3430   return 0;
3431 }
3432 _ACEOF
3433 rm -f conftest.$ac_objext
3434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3435   (eval $ac_compile) 2>conftest.er1
3436   ac_status=$?
3437   grep -v '^ *+' conftest.er1 >conftest.err
3438   rm -f conftest.er1
3439   cat conftest.err >&5
3440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441   (exit $ac_status); } &&
3442          { ac_try='test -z "$ac_c_werror_flag"
3443                          || test ! -s conftest.err'
3444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445   (eval $ac_try) 2>&5
3446   ac_status=$?
3447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448   (exit $ac_status); }; } &&
3449          { ac_try='test -s conftest.$ac_objext'
3450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451   (eval $ac_try) 2>&5
3452   ac_status=$?
3453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454   (exit $ac_status); }; }; then
3455   :
3456 else
3457   echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3459
3460 continue
3461 fi
3462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3463   cat >conftest.$ac_ext <<_ACEOF
3464 /* confdefs.h.  */
3465 _ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h.  */
3469 $ac_declaration
3470 int
3471 main ()
3472 {
3473 exit (42);
3474   ;
3475   return 0;
3476 }
3477 _ACEOF
3478 rm -f conftest.$ac_objext
3479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3480   (eval $ac_compile) 2>conftest.er1
3481   ac_status=$?
3482   grep -v '^ *+' conftest.er1 >conftest.err
3483   rm -f conftest.er1
3484   cat conftest.err >&5
3485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); } &&
3487          { ac_try='test -z "$ac_c_werror_flag"
3488                          || test ! -s conftest.err'
3489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490   (eval $ac_try) 2>&5
3491   ac_status=$?
3492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493   (exit $ac_status); }; } &&
3494          { ac_try='test -s conftest.$ac_objext'
3495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496   (eval $ac_try) 2>&5
3497   ac_status=$?
3498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499   (exit $ac_status); }; }; then
3500   break
3501 else
3502   echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3504
3505 fi
3506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3507 done
3508 rm -f conftest*
3509 if test -n "$ac_declaration"; then
3510   echo '#ifdef __cplusplus' >>confdefs.h
3511   echo $ac_declaration      >>confdefs.h
3512   echo '#endif'             >>confdefs.h
3513 fi
3514
3515 else
3516   echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3518
3519 fi
3520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3521 ac_ext=c
3522 ac_cpp='$CPP $CPPFLAGS'
3523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3526
3527 depcc="$CC"   am_compiler_list=
3528
3529 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3530 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3531 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3532   echo $ECHO_N "(cached) $ECHO_C" >&6
3533 else
3534   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3535   # We make a subdir and do the tests there.  Otherwise we can end up
3536   # making bogus files that we don't know about and never remove.  For
3537   # instance it was reported that on HP-UX the gcc test will end up
3538   # making a dummy file named `D' -- because `-MD' means `put the output
3539   # in D'.
3540   mkdir conftest.dir
3541   # Copy depcomp to subdir because otherwise we won't find it if we're
3542   # using a relative directory.
3543   cp "$am_depcomp" conftest.dir
3544   cd conftest.dir
3545   # We will build objects and dependencies in a subdirectory because
3546   # it helps to detect inapplicable dependency modes.  For instance
3547   # both Tru64's cc and ICC support -MD to output dependencies as a
3548   # side effect of compilation, but ICC will put the dependencies in
3549   # the current directory while Tru64 will put them in the object
3550   # directory.
3551   mkdir sub
3552
3553   am_cv_CC_dependencies_compiler_type=none
3554   if test "$am_compiler_list" = ""; then
3555      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3556   fi
3557   for depmode in $am_compiler_list; do
3558     # Setup a source with many dependencies, because some compilers
3559     # like to wrap large dependency lists on column 80 (with \), and
3560     # we should not choose a depcomp mode which is confused by this.
3561     #
3562     # We need to recreate these files for each test, as the compiler may
3563     # overwrite some of them when testing with obscure command lines.
3564     # This happens at least with the AIX C compiler.
3565     : > sub/conftest.c
3566     for i in 1 2 3 4 5 6; do
3567       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3568       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3569       # Solaris 8's {/usr,}/bin/sh.
3570       touch sub/conftst$i.h
3571     done
3572     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3573
3574     case $depmode in
3575     nosideeffect)
3576       # after this tag, mechanisms are not by side-effect, so they'll
3577       # only be used when explicitly requested
3578       if test "x$enable_dependency_tracking" = xyes; then
3579         continue
3580       else
3581         break
3582       fi
3583       ;;
3584     none) break ;;
3585     esac
3586     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3587     # mode.  It turns out that the SunPro C++ compiler does not properly
3588     # handle `-M -o', and we need to detect this.
3589     if depmode=$depmode \
3590        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3591        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3592        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3593          >/dev/null 2>conftest.err &&
3594        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3595        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3596        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3597       # icc doesn't choke on unknown options, it will just issue warnings
3598       # or remarks (even with -Werror).  So we grep stderr for any message
3599       # that says an option was ignored or not supported.
3600       # When given -MP, icc 7.0 and 7.1 complain thusly:
3601       #   icc: Command line warning: ignoring option '-M'; no argument required
3602       # The diagnosis changed in icc 8.0:
3603       #   icc: Command line remark: option '-MP' not supported
3604       if (grep 'ignoring option' conftest.err ||
3605           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3606         am_cv_CC_dependencies_compiler_type=$depmode
3607         break
3608       fi
3609     fi
3610   done
3611
3612   cd ..
3613   rm -rf conftest.dir
3614 else
3615   am_cv_CC_dependencies_compiler_type=none
3616 fi
3617
3618 fi
3619 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3620 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3621 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3622
3623
3624
3625 if
3626   test "x$enable_dependency_tracking" != xno \
3627   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3628   am__fastdepCC_TRUE=
3629   am__fastdepCC_FALSE='#'
3630 else
3631   am__fastdepCC_TRUE='#'
3632   am__fastdepCC_FALSE=
3633 fi
3634
3635
3636 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3637 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3638 if test "${lt_cv_path_SED+set}" = set; then
3639   echo $ECHO_N "(cached) $ECHO_C" >&6
3640 else
3641   # Loop through the user's path and test for sed and gsed.
3642 # Then use that list of sed's as ones to test for truncation.
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 for as_dir in $PATH
3645 do
3646   IFS=$as_save_IFS
3647   test -z "$as_dir" && as_dir=.
3648   for lt_ac_prog in sed gsed; do
3649     for ac_exec_ext in '' $ac_executable_extensions; do
3650       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3651         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3652       fi
3653     done
3654   done
3655 done
3656 IFS=$as_save_IFS
3657 lt_ac_max=0
3658 lt_ac_count=0
3659 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3660 # along with /bin/sed that truncates output.
3661 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3662   test ! -f $lt_ac_sed && continue
3663   cat /dev/null > conftest.in
3664   lt_ac_count=0
3665   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3666   # Check for GNU sed and select it if it is found.
3667   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3668     lt_cv_path_SED=$lt_ac_sed
3669     break
3670   fi
3671   while true; do
3672     cat conftest.in conftest.in >conftest.tmp
3673     mv conftest.tmp conftest.in
3674     cp conftest.in conftest.nl
3675     echo >>conftest.nl
3676     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3677     cmp -s conftest.out conftest.nl || break
3678     # 10000 chars as input seems more than enough
3679     test $lt_ac_count -gt 10 && break
3680     lt_ac_count=`expr $lt_ac_count + 1`
3681     if test $lt_ac_count -gt $lt_ac_max; then
3682       lt_ac_max=$lt_ac_count
3683       lt_cv_path_SED=$lt_ac_sed
3684     fi
3685   done
3686 done
3687
3688 fi
3689
3690 SED=$lt_cv_path_SED
3691
3692 echo "$as_me:$LINENO: result: $SED" >&5
3693 echo "${ECHO_T}$SED" >&6
3694
3695 echo "$as_me:$LINENO: checking for egrep" >&5
3696 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3697 if test "${ac_cv_prog_egrep+set}" = set; then
3698   echo $ECHO_N "(cached) $ECHO_C" >&6
3699 else
3700   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3701     then ac_cv_prog_egrep='grep -E'
3702     else ac_cv_prog_egrep='egrep'
3703     fi
3704 fi
3705 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3706 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3707  EGREP=$ac_cv_prog_egrep
3708
3709
3710
3711 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3712 if test "${with_gnu_ld+set}" = set; then
3713   withval="$with_gnu_ld"
3714   test "$withval" = no || with_gnu_ld=yes
3715 else
3716   with_gnu_ld=no
3717 fi;
3718 ac_prog=ld
3719 if test "$GCC" = yes; then
3720   # Check if gcc -print-prog-name=ld gives a path.
3721   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3722 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3723   case $host in
3724   *-*-mingw*)
3725     # gcc leaves a trailing carriage return which upsets mingw
3726     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3727   *)
3728     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3729   esac
3730   case $ac_prog in
3731     # Accept absolute paths.
3732     [\\/]* | ?:[\\/]*)
3733       re_direlt='/[^/][^/]*/\.\./'
3734       # Canonicalize the pathname of ld
3735       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3736       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3737         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3738       done
3739       test -z "$LD" && LD="$ac_prog"
3740       ;;
3741   "")
3742     # If it fails, then pretend we aren't using GCC.
3743     ac_prog=ld
3744     ;;
3745   *)
3746     # If it is relative, then search for the first ld in PATH.
3747     with_gnu_ld=unknown
3748     ;;
3749   esac
3750 elif test "$with_gnu_ld" = yes; then
3751   echo "$as_me:$LINENO: checking for GNU ld" >&5
3752 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3753 else
3754   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3755 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3756 fi
3757 if test "${lt_cv_path_LD+set}" = set; then
3758   echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760   if test -z "$LD"; then
3761   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3762   for ac_dir in $PATH; do
3763     IFS="$lt_save_ifs"
3764     test -z "$ac_dir" && ac_dir=.
3765     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3766       lt_cv_path_LD="$ac_dir/$ac_prog"
3767       # Check to see if the program is GNU ld.  I'd rather use --version,
3768       # but apparently some variants of GNU ld only accept -v.
3769       # Break only if it was the GNU/non-GNU ld that we prefer.
3770       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3771       *GNU* | *'with BFD'*)
3772         test "$with_gnu_ld" != no && break
3773         ;;
3774       *)
3775         test "$with_gnu_ld" != yes && break
3776         ;;
3777       esac
3778     fi
3779   done
3780   IFS="$lt_save_ifs"
3781 else
3782   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3783 fi
3784 fi
3785
3786 LD="$lt_cv_path_LD"
3787 if test -n "$LD"; then
3788   echo "$as_me:$LINENO: result: $LD" >&5
3789 echo "${ECHO_T}$LD" >&6
3790 else
3791   echo "$as_me:$LINENO: result: no" >&5
3792 echo "${ECHO_T}no" >&6
3793 fi
3794 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3795 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3796    { (exit 1); exit 1; }; }
3797 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3798 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3799 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3800   echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3803 case `$LD -v 2>&1 </dev/null` in
3804 *GNU* | *'with BFD'*)
3805   lt_cv_prog_gnu_ld=yes
3806   ;;
3807 *)
3808   lt_cv_prog_gnu_ld=no
3809   ;;
3810 esac
3811 fi
3812 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3813 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3814 with_gnu_ld=$lt_cv_prog_gnu_ld
3815
3816
3817 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3818 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3819 if test "${lt_cv_ld_reload_flag+set}" = set; then
3820   echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822   lt_cv_ld_reload_flag='-r'
3823 fi
3824 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3825 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3826 reload_flag=$lt_cv_ld_reload_flag
3827 case $reload_flag in
3828 "" | " "*) ;;
3829 *) reload_flag=" $reload_flag" ;;
3830 esac
3831 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3832 case $host_os in
3833   darwin*)
3834     if test "$GCC" = yes; then
3835       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3836     else
3837       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3838     fi
3839     ;;
3840 esac
3841
3842 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3843 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3844 if test "${lt_cv_path_NM+set}" = set; then
3845   echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847   if test -n "$NM"; then
3848   # Let the user override the test.
3849   lt_cv_path_NM="$NM"
3850 else
3851   lt_nm_to_check="${ac_tool_prefix}nm"
3852   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3853     lt_nm_to_check="$lt_nm_to_check nm"
3854   fi
3855   for lt_tmp_nm in $lt_nm_to_check; do
3856     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3857     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3858       IFS="$lt_save_ifs"
3859       test -z "$ac_dir" && ac_dir=.
3860       tmp_nm="$ac_dir/$lt_tmp_nm"
3861       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3862         # Check to see if the nm accepts a BSD-compat flag.
3863         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3864         #   nm: unknown option "B" ignored
3865         # Tru64's nm complains that /dev/null is an invalid object file
3866         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3867         */dev/null* | *'Invalid file or object type'*)
3868           lt_cv_path_NM="$tmp_nm -B"
3869           break
3870           ;;
3871         *)
3872           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3873           */dev/null*)
3874             lt_cv_path_NM="$tmp_nm -p"
3875             break
3876             ;;
3877           *)
3878             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3879             continue # so that we can try to find one that supports BSD flags
3880             ;;
3881           esac
3882           ;;
3883         esac
3884       fi
3885     done
3886     IFS="$lt_save_ifs"
3887   done
3888   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3889 fi
3890 fi
3891 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3892 echo "${ECHO_T}$lt_cv_path_NM" >&6
3893 NM="$lt_cv_path_NM"
3894
3895 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3896 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3897 LN_S=$as_ln_s
3898 if test "$LN_S" = "ln -s"; then
3899   echo "$as_me:$LINENO: result: yes" >&5
3900 echo "${ECHO_T}yes" >&6
3901 else
3902   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3903 echo "${ECHO_T}no, using $LN_S" >&6
3904 fi
3905
3906 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3907 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3908 if test "${lt_cv_deplibs_check_method+set}" = set; then
3909   echo $ECHO_N "(cached) $ECHO_C" >&6
3910 else
3911   lt_cv_file_magic_cmd='$MAGIC_CMD'
3912 lt_cv_file_magic_test_file=
3913 lt_cv_deplibs_check_method='unknown'
3914 # Need to set the preceding variable on all platforms that support
3915 # interlibrary dependencies.
3916 # 'none' -- dependencies not supported.
3917 # `unknown' -- same as none, but documents that we really don't know.
3918 # 'pass_all' -- all dependencies passed with no checks.
3919 # 'test_compile' -- check by making test program.
3920 # 'file_magic [[regex]]' -- check by looking for files in library path
3921 # which responds to the $file_magic_cmd with a given extended regex.
3922 # If you have `file' or equivalent on your system and you're not sure
3923 # whether `pass_all' will *always* work, you probably want this one.
3924
3925 case $host_os in
3926 aix4* | aix5*)
3927   lt_cv_deplibs_check_method=pass_all
3928   ;;
3929
3930 beos*)
3931   lt_cv_deplibs_check_method=pass_all
3932   ;;
3933
3934 bsdi[45]*)
3935   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3936   lt_cv_file_magic_cmd='/usr/bin/file -L'
3937   lt_cv_file_magic_test_file=/shlib/libc.so
3938   ;;
3939
3940 cygwin*)
3941   # func_win32_libid is a shell function defined in ltmain.sh
3942   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3943   lt_cv_file_magic_cmd='func_win32_libid'
3944   ;;
3945
3946 mingw* | pw32*)
3947   # Base MSYS/MinGW do not provide the 'file' command needed by
3948   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3949   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3950   lt_cv_file_magic_cmd='$OBJDUMP -f'
3951   ;;
3952
3953 darwin* | rhapsody*)
3954   lt_cv_deplibs_check_method=pass_all
3955   ;;
3956
3957 freebsd* | kfreebsd*-gnu | dragonfly*)
3958   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3959     case $host_cpu in
3960     i*86 )
3961       # Not sure whether the presence of OpenBSD here was a mistake.
3962       # Let's accept both of them until this is cleared up.
3963       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3964       lt_cv_file_magic_cmd=/usr/bin/file
3965       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3966       ;;
3967     esac
3968   else
3969     lt_cv_deplibs_check_method=pass_all
3970   fi
3971   ;;
3972
3973 gnu*)
3974   lt_cv_deplibs_check_method=pass_all
3975   ;;
3976
3977 hpux10.20* | hpux11*)
3978   lt_cv_file_magic_cmd=/usr/bin/file
3979   case $host_cpu in
3980   ia64*)
3981     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3982     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3983     ;;
3984   hppa*64*)
3985     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]'
3986     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3987     ;;
3988   *)
3989     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3990     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3991     ;;
3992   esac
3993   ;;
3994
3995 interix3*)
3996   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3997   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3998   ;;
3999
4000 irix5* | irix6* | nonstopux*)
4001   case $LD in
4002   *-32|*"-32 ") libmagic=32-bit;;
4003   *-n32|*"-n32 ") libmagic=N32;;
4004   *-64|*"-64 ") libmagic=64-bit;;
4005   *) libmagic=never-match;;
4006   esac
4007   lt_cv_deplibs_check_method=pass_all
4008   ;;
4009
4010 # This must be Linux ELF.
4011 linux*)
4012   lt_cv_deplibs_check_method=pass_all
4013   ;;
4014
4015 netbsd*)
4016   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4017     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4018   else
4019     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4020   fi
4021   ;;
4022
4023 newos6*)
4024   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4025   lt_cv_file_magic_cmd=/usr/bin/file
4026   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4027   ;;
4028
4029 nto-qnx*)
4030   lt_cv_deplibs_check_method=unknown
4031   ;;
4032
4033 openbsd*)
4034   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4035     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4036   else
4037     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4038   fi
4039   ;;
4040
4041 osf3* | osf4* | osf5*)
4042   lt_cv_deplibs_check_method=pass_all
4043   ;;
4044
4045 solaris*)
4046   lt_cv_deplibs_check_method=pass_all
4047   ;;
4048
4049 sysv4 | sysv4.3*)
4050   case $host_vendor in
4051   motorola)
4052     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]'
4053     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4054     ;;
4055   ncr)
4056     lt_cv_deplibs_check_method=pass_all
4057     ;;
4058   sequent)
4059     lt_cv_file_magic_cmd='/bin/file'
4060     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4061     ;;
4062   sni)
4063     lt_cv_file_magic_cmd='/bin/file'
4064     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4065     lt_cv_file_magic_test_file=/lib/libc.so
4066     ;;
4067   siemens)
4068     lt_cv_deplibs_check_method=pass_all
4069     ;;
4070   pc)
4071     lt_cv_deplibs_check_method=pass_all
4072     ;;
4073   esac
4074   ;;
4075
4076 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4077   lt_cv_deplibs_check_method=pass_all
4078   ;;
4079 esac
4080
4081 fi
4082 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4083 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4084 file_magic_cmd=$lt_cv_file_magic_cmd
4085 deplibs_check_method=$lt_cv_deplibs_check_method
4086 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4087
4088
4089
4090
4091 # If no C compiler was specified, use CC.
4092 LTCC=${LTCC-"$CC"}
4093
4094 # If no C compiler flags were specified, use CFLAGS.
4095 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4096
4097 # Allow CC to be a program name with arguments.
4098 compiler=$CC
4099
4100
4101 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4102 if test "${enable_libtool_lock+set}" = set; then
4103   enableval="$enable_libtool_lock"
4104
4105 fi;
4106 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4107
4108 # Some flags need to be propagated to the compiler or linker for good
4109 # libtool support.
4110 case $host in
4111 ia64-*-hpux*)
4112   # Find out which ABI we are using.
4113   echo 'int i;' > conftest.$ac_ext
4114   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4115   (eval $ac_compile) 2>&5
4116   ac_status=$?
4117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118   (exit $ac_status); }; then
4119     case `/usr/bin/file conftest.$ac_objext` in
4120     *ELF-32*)
4121       HPUX_IA64_MODE="32"
4122       ;;
4123     *ELF-64*)
4124       HPUX_IA64_MODE="64"
4125       ;;
4126     esac
4127   fi
4128   rm -rf conftest*
4129   ;;
4130 *-*-irix6*)
4131   # Find out which ABI we are using.
4132   echo '#line 4132 "configure"' > conftest.$ac_ext
4133   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4134   (eval $ac_compile) 2>&5
4135   ac_status=$?
4136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137   (exit $ac_status); }; then
4138    if test "$lt_cv_prog_gnu_ld" = yes; then
4139     case `/usr/bin/file conftest.$ac_objext` in
4140     *32-bit*)
4141       LD="${LD-ld} -melf32bsmip"
4142       ;;
4143     *N32*)
4144       LD="${LD-ld} -melf32bmipn32"
4145       ;;
4146     *64-bit*)
4147       LD="${LD-ld} -melf64bmip"
4148       ;;
4149     esac
4150    else
4151     case `/usr/bin/file conftest.$ac_objext` in
4152     *32-bit*)
4153       LD="${LD-ld} -32"
4154       ;;
4155     *N32*)
4156       LD="${LD-ld} -n32"
4157       ;;
4158     *64-bit*)
4159       LD="${LD-ld} -64"
4160       ;;
4161     esac
4162    fi
4163   fi
4164   rm -rf conftest*
4165   ;;
4166
4167 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4168   # Find out which ABI we are using.
4169   echo 'int i;' > conftest.$ac_ext
4170   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4171   (eval $ac_compile) 2>&5
4172   ac_status=$?
4173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174   (exit $ac_status); }; then
4175     case `/usr/bin/file conftest.o` in
4176     *32-bit*)
4177       case $host in
4178         x86_64-*linux*)
4179           LD="${LD-ld} -m elf_i386"
4180           ;;
4181         ppc64-*linux*|powerpc64-*linux*)
4182           LD="${LD-ld} -m elf32ppclinux"
4183           ;;
4184         s390x-*linux*)
4185           LD="${LD-ld} -m elf_s390"
4186           ;;
4187         sparc64-*linux*)
4188           LD="${LD-ld} -m elf32_sparc"
4189           ;;
4190       esac
4191       ;;
4192     *64-bit*)
4193       case $host in
4194         x86_64-*linux*)
4195           LD="${LD-ld} -m elf_x86_64"
4196           ;;
4197         ppc*-*linux*|powerpc*-*linux*)
4198           LD="${LD-ld} -m elf64ppc"
4199           ;;
4200         s390*-*linux*)
4201           LD="${LD-ld} -m elf64_s390"
4202           ;;
4203         sparc*-*linux*)
4204           LD="${LD-ld} -m elf64_sparc"
4205           ;;
4206       esac
4207       ;;
4208     esac
4209   fi
4210   rm -rf conftest*
4211   ;;
4212
4213 *-*-sco3.2v5*)
4214   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4215   SAVE_CFLAGS="$CFLAGS"
4216   CFLAGS="$CFLAGS -belf"
4217   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4218 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4219 if test "${lt_cv_cc_needs_belf+set}" = set; then
4220   echo $ECHO_N "(cached) $ECHO_C" >&6
4221 else
4222   ac_ext=c
4223 ac_cpp='$CPP $CPPFLAGS'
4224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4227
4228      cat >conftest.$ac_ext <<_ACEOF
4229 /* confdefs.h.  */
4230 _ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h.  */
4234
4235 int
4236 main ()
4237 {
4238
4239   ;
4240   return 0;
4241 }
4242 _ACEOF
4243 rm -f conftest.$ac_objext conftest$ac_exeext
4244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4245   (eval $ac_link) 2>conftest.er1
4246   ac_status=$?
4247   grep -v '^ *+' conftest.er1 >conftest.err
4248   rm -f conftest.er1
4249   cat conftest.err >&5
4250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251   (exit $ac_status); } &&
4252          { ac_try='test -z "$ac_c_werror_flag"
4253                          || test ! -s conftest.err'
4254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255   (eval $ac_try) 2>&5
4256   ac_status=$?
4257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258   (exit $ac_status); }; } &&
4259          { ac_try='test -s conftest$ac_exeext'
4260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261   (eval $ac_try) 2>&5
4262   ac_status=$?
4263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264   (exit $ac_status); }; }; then
4265   lt_cv_cc_needs_belf=yes
4266 else
4267   echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.$ac_ext >&5
4269
4270 lt_cv_cc_needs_belf=no
4271 fi
4272 rm -f conftest.err conftest.$ac_objext \
4273       conftest$ac_exeext conftest.$ac_ext
4274      ac_ext=c
4275 ac_cpp='$CPP $CPPFLAGS'
4276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4279
4280 fi
4281 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4282 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4283   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4284     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4285     CFLAGS="$SAVE_CFLAGS"
4286   fi
4287   ;;
4288 sparc*-*solaris*)
4289   # Find out which ABI we are using.
4290   echo 'int i;' > conftest.$ac_ext
4291   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4292   (eval $ac_compile) 2>&5
4293   ac_status=$?
4294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295   (exit $ac_status); }; then
4296     case `/usr/bin/file conftest.o` in
4297     *64-bit*)
4298       case $lt_cv_prog_gnu_ld in
4299       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4300       *)    LD="${LD-ld} -64" ;;
4301       esac
4302       ;;
4303     esac
4304   fi
4305   rm -rf conftest*
4306   ;;
4307
4308
4309 esac
4310
4311 need_locks="$enable_libtool_lock"
4312
4313
4314 ac_ext=c
4315 ac_cpp='$CPP $CPPFLAGS'
4316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4319 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4320 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4321 # On Suns, sometimes $CPP names a directory.
4322 if test -n "$CPP" && test -d "$CPP"; then
4323   CPP=
4324 fi
4325 if test -z "$CPP"; then
4326   if test "${ac_cv_prog_CPP+set}" = set; then
4327   echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329       # Double quotes because CPP needs to be expanded
4330     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4331     do
4332       ac_preproc_ok=false
4333 for ac_c_preproc_warn_flag in '' yes
4334 do
4335   # Use a header file that comes with gcc, so configuring glibc
4336   # with a fresh cross-compiler works.
4337   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4338   # <limits.h> exists even on freestanding compilers.
4339   # On the NeXT, cc -E runs the code through the compiler's parser,
4340   # not just through cpp. "Syntax error" is here to catch this case.
4341   cat >conftest.$ac_ext <<_ACEOF
4342 /* confdefs.h.  */
4343 _ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h.  */
4347 #ifdef __STDC__
4348 # include <limits.h>
4349 #else
4350 # include <assert.h>
4351 #endif
4352                      Syntax error
4353 _ACEOF
4354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4355   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4356   ac_status=$?
4357   grep -v '^ *+' conftest.er1 >conftest.err
4358   rm -f conftest.er1
4359   cat conftest.err >&5
4360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361   (exit $ac_status); } >/dev/null; then
4362   if test -s conftest.err; then
4363     ac_cpp_err=$ac_c_preproc_warn_flag
4364     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4365   else
4366     ac_cpp_err=
4367   fi
4368 else
4369   ac_cpp_err=yes
4370 fi
4371 if test -z "$ac_cpp_err"; then
4372   :
4373 else
4374   echo "$as_me: failed program was:" >&5
4375 sed 's/^/| /' conftest.$ac_ext >&5
4376
4377   # Broken: fails on valid input.
4378 continue
4379 fi
4380 rm -f conftest.err conftest.$ac_ext
4381
4382   # OK, works on sane cases.  Now check whether non-existent headers
4383   # can be detected and how.
4384   cat >conftest.$ac_ext <<_ACEOF
4385 /* confdefs.h.  */
4386 _ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h.  */
4390 #include <ac_nonexistent.h>
4391 _ACEOF
4392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4393   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4394   ac_status=$?
4395   grep -v '^ *+' conftest.er1 >conftest.err
4396   rm -f conftest.er1
4397   cat conftest.err >&5
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); } >/dev/null; then
4400   if test -s conftest.err; then
4401     ac_cpp_err=$ac_c_preproc_warn_flag
4402     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4403   else
4404     ac_cpp_err=
4405   fi
4406 else
4407   ac_cpp_err=yes
4408 fi
4409 if test -z "$ac_cpp_err"; then
4410   # Broken: success on invalid input.
4411 continue
4412 else
4413   echo "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.$ac_ext >&5
4415
4416   # Passes both tests.
4417 ac_preproc_ok=:
4418 break
4419 fi
4420 rm -f conftest.err conftest.$ac_ext
4421
4422 done
4423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4424 rm -f conftest.err conftest.$ac_ext
4425 if $ac_preproc_ok; then
4426   break
4427 fi
4428
4429     done
4430     ac_cv_prog_CPP=$CPP
4431
4432 fi
4433   CPP=$ac_cv_prog_CPP
4434 else
4435   ac_cv_prog_CPP=$CPP
4436 fi
4437 echo "$as_me:$LINENO: result: $CPP" >&5
4438 echo "${ECHO_T}$CPP" >&6
4439 ac_preproc_ok=false
4440 for ac_c_preproc_warn_flag in '' yes
4441 do
4442   # Use a header file that comes with gcc, so configuring glibc
4443   # with a fresh cross-compiler works.
4444   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4445   # <limits.h> exists even on freestanding compilers.
4446   # On the NeXT, cc -E runs the code through the compiler's parser,
4447   # not just through cpp. "Syntax error" is here to catch this case.
4448   cat >conftest.$ac_ext <<_ACEOF
4449 /* confdefs.h.  */
4450 _ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h.  */
4454 #ifdef __STDC__
4455 # include <limits.h>
4456 #else
4457 # include <assert.h>
4458 #endif
4459                      Syntax error
4460 _ACEOF
4461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4462   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4463   ac_status=$?
4464   grep -v '^ *+' conftest.er1 >conftest.err
4465   rm -f conftest.er1
4466   cat conftest.err >&5
4467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468   (exit $ac_status); } >/dev/null; then
4469   if test -s conftest.err; then
4470     ac_cpp_err=$ac_c_preproc_warn_flag
4471     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4472   else
4473     ac_cpp_err=
4474   fi
4475 else
4476   ac_cpp_err=yes
4477 fi
4478 if test -z "$ac_cpp_err"; then
4479   :
4480 else
4481   echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4483
4484   # Broken: fails on valid input.
4485 continue
4486 fi
4487 rm -f conftest.err conftest.$ac_ext
4488
4489   # OK, works on sane cases.  Now check whether non-existent headers
4490   # can be detected and how.
4491   cat >conftest.$ac_ext <<_ACEOF
4492 /* confdefs.h.  */
4493 _ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h.  */
4497 #include <ac_nonexistent.h>
4498 _ACEOF
4499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4500   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4501   ac_status=$?
4502   grep -v '^ *+' conftest.er1 >conftest.err
4503   rm -f conftest.er1
4504   cat conftest.err >&5
4505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506   (exit $ac_status); } >/dev/null; then
4507   if test -s conftest.err; then
4508     ac_cpp_err=$ac_c_preproc_warn_flag
4509     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4510   else
4511     ac_cpp_err=
4512   fi
4513 else
4514   ac_cpp_err=yes
4515 fi
4516 if test -z "$ac_cpp_err"; then
4517   # Broken: success on invalid input.
4518 continue
4519 else
4520   echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4522
4523   # Passes both tests.
4524 ac_preproc_ok=:
4525 break
4526 fi
4527 rm -f conftest.err conftest.$ac_ext
4528
4529 done
4530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4531 rm -f conftest.err conftest.$ac_ext
4532 if $ac_preproc_ok; then
4533   :
4534 else
4535   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4536 See \`config.log' for more details." >&5
4537 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4538 See \`config.log' for more details." >&2;}
4539    { (exit 1); exit 1; }; }
4540 fi
4541
4542 ac_ext=c
4543 ac_cpp='$CPP $CPPFLAGS'
4544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4547
4548
4549 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4550 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4551 if test "${ac_cv_header_stdc+set}" = set; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554   cat >conftest.$ac_ext <<_ACEOF
4555 /* confdefs.h.  */
4556 _ACEOF
4557 cat confdefs.h >>conftest.$ac_ext
4558 cat >>conftest.$ac_ext <<_ACEOF
4559 /* end confdefs.h.  */
4560 #include <stdlib.h>
4561 #include <stdarg.h>
4562 #include <string.h>
4563 #include <float.h>
4564
4565 int
4566 main ()
4567 {
4568
4569   ;
4570   return 0;
4571 }
4572 _ACEOF
4573 rm -f conftest.$ac_objext
4574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4575   (eval $ac_compile) 2>conftest.er1
4576   ac_status=$?
4577   grep -v '^ *+' conftest.er1 >conftest.err
4578   rm -f conftest.er1
4579   cat conftest.err >&5
4580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581   (exit $ac_status); } &&
4582          { ac_try='test -z "$ac_c_werror_flag"
4583                          || test ! -s conftest.err'
4584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585   (eval $ac_try) 2>&5
4586   ac_status=$?
4587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588   (exit $ac_status); }; } &&
4589          { ac_try='test -s conftest.$ac_objext'
4590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591   (eval $ac_try) 2>&5
4592   ac_status=$?
4593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); }; }; then
4595   ac_cv_header_stdc=yes
4596 else
4597   echo "$as_me: failed program was:" >&5
4598 sed 's/^/| /' conftest.$ac_ext >&5
4599
4600 ac_cv_header_stdc=no
4601 fi
4602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4603
4604 if test $ac_cv_header_stdc = yes; then
4605   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4606   cat >conftest.$ac_ext <<_ACEOF
4607 /* confdefs.h.  */
4608 _ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h.  */
4612 #include <string.h>
4613
4614 _ACEOF
4615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4616   $EGREP "memchr" >/dev/null 2>&1; then
4617   :
4618 else
4619   ac_cv_header_stdc=no
4620 fi
4621 rm -f conftest*
4622
4623 fi
4624
4625 if test $ac_cv_header_stdc = yes; then
4626   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4627   cat >conftest.$ac_ext <<_ACEOF
4628 /* confdefs.h.  */
4629 _ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h.  */
4633 #include <stdlib.h>
4634
4635 _ACEOF
4636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4637   $EGREP "free" >/dev/null 2>&1; then
4638   :
4639 else
4640   ac_cv_header_stdc=no
4641 fi
4642 rm -f conftest*
4643
4644 fi
4645
4646 if test $ac_cv_header_stdc = yes; then
4647   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4648   if test "$cross_compiling" = yes; then
4649   :
4650 else
4651   cat >conftest.$ac_ext <<_ACEOF
4652 /* confdefs.h.  */
4653 _ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h.  */
4657 #include <ctype.h>
4658 #if ((' ' & 0x0FF) == 0x020)
4659 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4660 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4661 #else
4662 # define ISLOWER(c) \
4663                    (('a' <= (c) && (c) <= 'i') \
4664                      || ('j' <= (c) && (c) <= 'r') \
4665                      || ('s' <= (c) && (c) <= 'z'))
4666 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4667 #endif
4668
4669 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4670 int
4671 main ()
4672 {
4673   int i;
4674   for (i = 0; i < 256; i++)
4675     if (XOR (islower (i), ISLOWER (i))
4676         || toupper (i) != TOUPPER (i))
4677       exit(2);
4678   exit (0);
4679 }
4680 _ACEOF
4681 rm -f conftest$ac_exeext
4682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4683   (eval $ac_link) 2>&5
4684   ac_status=$?
4685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688   (eval $ac_try) 2>&5
4689   ac_status=$?
4690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691   (exit $ac_status); }; }; then
4692   :
4693 else
4694   echo "$as_me: program exited with status $ac_status" >&5
4695 echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4697
4698 ( exit $ac_status )
4699 ac_cv_header_stdc=no
4700 fi
4701 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4702 fi
4703 fi
4704 fi
4705 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4706 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4707 if test $ac_cv_header_stdc = yes; then
4708
4709 cat >>confdefs.h <<\_ACEOF
4710 #define STDC_HEADERS 1
4711 _ACEOF
4712
4713 fi
4714
4715 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4726                   inttypes.h stdint.h unistd.h
4727 do
4728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4729 echo "$as_me:$LINENO: checking for $ac_header" >&5
4730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4732   echo $ECHO_N "(cached) $ECHO_C" >&6
4733 else
4734   cat >conftest.$ac_ext <<_ACEOF
4735 /* confdefs.h.  */
4736 _ACEOF
4737 cat confdefs.h >>conftest.$ac_ext
4738 cat >>conftest.$ac_ext <<_ACEOF
4739 /* end confdefs.h.  */
4740 $ac_includes_default
4741
4742 #include <$ac_header>
4743 _ACEOF
4744 rm -f conftest.$ac_objext
4745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4746   (eval $ac_compile) 2>conftest.er1
4747   ac_status=$?
4748   grep -v '^ *+' conftest.er1 >conftest.err
4749   rm -f conftest.er1
4750   cat conftest.err >&5
4751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752   (exit $ac_status); } &&
4753          { ac_try='test -z "$ac_c_werror_flag"
4754                          || test ! -s conftest.err'
4755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756   (eval $ac_try) 2>&5
4757   ac_status=$?
4758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); }; } &&
4760          { ac_try='test -s conftest.$ac_objext'
4761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762   (eval $ac_try) 2>&5
4763   ac_status=$?
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); }; }; then
4766   eval "$as_ac_Header=yes"
4767 else
4768   echo "$as_me: failed program was:" >&5
4769 sed 's/^/| /' conftest.$ac_ext >&5
4770
4771 eval "$as_ac_Header=no"
4772 fi
4773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4774 fi
4775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4778   cat >>confdefs.h <<_ACEOF
4779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4780 _ACEOF
4781
4782 fi
4783
4784 done
4785
4786
4787
4788 for ac_header in dlfcn.h
4789 do
4790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4792   echo "$as_me:$LINENO: checking for $ac_header" >&5
4793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4795   echo $ECHO_N "(cached) $ECHO_C" >&6
4796 fi
4797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4799 else
4800   # Is the header compilable?
4801 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4803 cat >conftest.$ac_ext <<_ACEOF
4804 /* confdefs.h.  */
4805 _ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h.  */
4809 $ac_includes_default
4810 #include <$ac_header>
4811 _ACEOF
4812 rm -f conftest.$ac_objext
4813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4814   (eval $ac_compile) 2>conftest.er1
4815   ac_status=$?
4816   grep -v '^ *+' conftest.er1 >conftest.err
4817   rm -f conftest.er1
4818   cat conftest.err >&5
4819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820   (exit $ac_status); } &&
4821          { ac_try='test -z "$ac_c_werror_flag"
4822                          || test ! -s conftest.err'
4823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824   (eval $ac_try) 2>&5
4825   ac_status=$?
4826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827   (exit $ac_status); }; } &&
4828          { ac_try='test -s conftest.$ac_objext'
4829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830   (eval $ac_try) 2>&5
4831   ac_status=$?
4832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833   (exit $ac_status); }; }; then
4834   ac_header_compiler=yes
4835 else
4836   echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4838
4839 ac_header_compiler=no
4840 fi
4841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4842 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4843 echo "${ECHO_T}$ac_header_compiler" >&6
4844
4845 # Is the header present?
4846 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4847 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4848 cat >conftest.$ac_ext <<_ACEOF
4849 /* confdefs.h.  */
4850 _ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h.  */
4854 #include <$ac_header>
4855 _ACEOF
4856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4857   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4858   ac_status=$?
4859   grep -v '^ *+' conftest.er1 >conftest.err
4860   rm -f conftest.er1
4861   cat conftest.err >&5
4862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863   (exit $ac_status); } >/dev/null; then
4864   if test -s conftest.err; then
4865     ac_cpp_err=$ac_c_preproc_warn_flag
4866     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4867   else
4868     ac_cpp_err=
4869   fi
4870 else
4871   ac_cpp_err=yes
4872 fi
4873 if test -z "$ac_cpp_err"; then
4874   ac_header_preproc=yes
4875 else
4876   echo "$as_me: failed program was:" >&5
4877 sed 's/^/| /' conftest.$ac_ext >&5
4878
4879   ac_header_preproc=no
4880 fi
4881 rm -f conftest.err conftest.$ac_ext
4882 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4883 echo "${ECHO_T}$ac_header_preproc" >&6
4884
4885 # So?  What about this header?
4886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4887   yes:no: )
4888     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4889 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4890     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4891 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4892     ac_header_preproc=yes
4893     ;;
4894   no:yes:* )
4895     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4896 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4897     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4898 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4899     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4900 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4901     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4902 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4903     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4905     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4906 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4907     (
4908       cat <<\_ASBOX
4909 ## ------------------------------------------ ##
4910 ## Report this to the AC_PACKAGE_NAME lists.  ##
4911 ## ------------------------------------------ ##
4912 _ASBOX
4913     ) |
4914       sed "s/^/$as_me: WARNING:     /" >&2
4915     ;;
4916 esac
4917 echo "$as_me:$LINENO: checking for $ac_header" >&5
4918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4920   echo $ECHO_N "(cached) $ECHO_C" >&6
4921 else
4922   eval "$as_ac_Header=\$ac_header_preproc"
4923 fi
4924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4926
4927 fi
4928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4929   cat >>confdefs.h <<_ACEOF
4930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4931 _ACEOF
4932
4933 fi
4934
4935 done
4936
4937
4938
4939 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4940     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4941     (test "X$CXX" != "Xg++"))) ; then
4942   ac_ext=cc
4943 ac_cpp='$CXXCPP $CPPFLAGS'
4944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4947 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4948 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4949 if test -z "$CXXCPP"; then
4950   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4951   echo $ECHO_N "(cached) $ECHO_C" >&6
4952 else
4953       # Double quotes because CXXCPP needs to be expanded
4954     for CXXCPP in "$CXX -E" "/lib/cpp"
4955     do
4956       ac_preproc_ok=false
4957 for ac_cxx_preproc_warn_flag in '' yes
4958 do
4959   # Use a header file that comes with gcc, so configuring glibc
4960   # with a fresh cross-compiler works.
4961   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4962   # <limits.h> exists even on freestanding compilers.
4963   # On the NeXT, cc -E runs the code through the compiler's parser,
4964   # not just through cpp. "Syntax error" is here to catch this case.
4965   cat >conftest.$ac_ext <<_ACEOF
4966 /* confdefs.h.  */
4967 _ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h.  */
4971 #ifdef __STDC__
4972 # include <limits.h>
4973 #else
4974 # include <assert.h>
4975 #endif
4976                      Syntax error
4977 _ACEOF
4978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4979   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4980   ac_status=$?
4981   grep -v '^ *+' conftest.er1 >conftest.err
4982   rm -f conftest.er1
4983   cat conftest.err >&5
4984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985   (exit $ac_status); } >/dev/null; then
4986   if test -s conftest.err; then
4987     ac_cpp_err=$ac_cxx_preproc_warn_flag
4988     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4989   else
4990     ac_cpp_err=
4991   fi
4992 else
4993   ac_cpp_err=yes
4994 fi
4995 if test -z "$ac_cpp_err"; then
4996   :
4997 else
4998   echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5000
5001   # Broken: fails on valid input.
5002 continue
5003 fi
5004 rm -f conftest.err conftest.$ac_ext
5005
5006   # OK, works on sane cases.  Now check whether non-existent headers
5007   # can be detected and how.
5008   cat >conftest.$ac_ext <<_ACEOF
5009 /* confdefs.h.  */
5010 _ACEOF
5011 cat confdefs.h >>conftest.$ac_ext
5012 cat >>conftest.$ac_ext <<_ACEOF
5013 /* end confdefs.h.  */
5014 #include <ac_nonexistent.h>
5015 _ACEOF
5016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5017   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5018   ac_status=$?
5019   grep -v '^ *+' conftest.er1 >conftest.err
5020   rm -f conftest.er1
5021   cat conftest.err >&5
5022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023   (exit $ac_status); } >/dev/null; then
5024   if test -s conftest.err; then
5025     ac_cpp_err=$ac_cxx_preproc_warn_flag
5026     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5027   else
5028     ac_cpp_err=
5029   fi
5030 else
5031   ac_cpp_err=yes
5032 fi
5033 if test -z "$ac_cpp_err"; then
5034   # Broken: success on invalid input.
5035 continue
5036 else
5037   echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5039
5040   # Passes both tests.
5041 ac_preproc_ok=:
5042 break
5043 fi
5044 rm -f conftest.err conftest.$ac_ext
5045
5046 done
5047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5048 rm -f conftest.err conftest.$ac_ext
5049 if $ac_preproc_ok; then
5050   break
5051 fi
5052
5053     done
5054     ac_cv_prog_CXXCPP=$CXXCPP
5055
5056 fi
5057   CXXCPP=$ac_cv_prog_CXXCPP
5058 else
5059   ac_cv_prog_CXXCPP=$CXXCPP
5060 fi
5061 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5062 echo "${ECHO_T}$CXXCPP" >&6
5063 ac_preproc_ok=false
5064 for ac_cxx_preproc_warn_flag in '' yes
5065 do
5066   # Use a header file that comes with gcc, so configuring glibc
5067   # with a fresh cross-compiler works.
5068   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5069   # <limits.h> exists even on freestanding compilers.
5070   # On the NeXT, cc -E runs the code through the compiler's parser,
5071   # not just through cpp. "Syntax error" is here to catch this case.
5072   cat >conftest.$ac_ext <<_ACEOF
5073 /* confdefs.h.  */
5074 _ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h.  */
5078 #ifdef __STDC__
5079 # include <limits.h>
5080 #else
5081 # include <assert.h>
5082 #endif
5083                      Syntax error
5084 _ACEOF
5085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5086   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5087   ac_status=$?
5088   grep -v '^ *+' conftest.er1 >conftest.err
5089   rm -f conftest.er1
5090   cat conftest.err >&5
5091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092   (exit $ac_status); } >/dev/null; then
5093   if test -s conftest.err; then
5094     ac_cpp_err=$ac_cxx_preproc_warn_flag
5095     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5096   else
5097     ac_cpp_err=
5098   fi
5099 else
5100   ac_cpp_err=yes
5101 fi
5102 if test -z "$ac_cpp_err"; then
5103   :
5104 else
5105   echo "$as_me: failed program was:" >&5
5106 sed 's/^/| /' conftest.$ac_ext >&5
5107
5108   # Broken: fails on valid input.
5109 continue
5110 fi
5111 rm -f conftest.err conftest.$ac_ext
5112
5113   # OK, works on sane cases.  Now check whether non-existent headers
5114   # can be detected and how.
5115   cat >conftest.$ac_ext <<_ACEOF
5116 /* confdefs.h.  */
5117 _ACEOF
5118 cat confdefs.h >>conftest.$ac_ext
5119 cat >>conftest.$ac_ext <<_ACEOF
5120 /* end confdefs.h.  */
5121 #include <ac_nonexistent.h>
5122 _ACEOF
5123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5124   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5125   ac_status=$?
5126   grep -v '^ *+' conftest.er1 >conftest.err
5127   rm -f conftest.er1
5128   cat conftest.err >&5
5129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130   (exit $ac_status); } >/dev/null; then
5131   if test -s conftest.err; then
5132     ac_cpp_err=$ac_cxx_preproc_warn_flag
5133     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5134   else
5135     ac_cpp_err=
5136   fi
5137 else
5138   ac_cpp_err=yes
5139 fi
5140 if test -z "$ac_cpp_err"; then
5141   # Broken: success on invalid input.
5142 continue
5143 else
5144   echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5146
5147   # Passes both tests.
5148 ac_preproc_ok=:
5149 break
5150 fi
5151 rm -f conftest.err conftest.$ac_ext
5152
5153 done
5154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5155 rm -f conftest.err conftest.$ac_ext
5156 if $ac_preproc_ok; then
5157   :
5158 else
5159   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5160 See \`config.log' for more details." >&5
5161 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5162 See \`config.log' for more details." >&2;}
5163    { (exit 1); exit 1; }; }
5164 fi
5165
5166 ac_ext=cc
5167 ac_cpp='$CXXCPP $CPPFLAGS'
5168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5171
5172 fi
5173
5174
5175 ac_ext=f
5176 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5177 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5178 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5179 if test -n "$ac_tool_prefix"; then
5180   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5181   do
5182     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5184 echo "$as_me:$LINENO: checking for $ac_word" >&5
5185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5186 if test "${ac_cv_prog_F77+set}" = set; then
5187   echo $ECHO_N "(cached) $ECHO_C" >&6
5188 else
5189   if test -n "$F77"; then
5190   ac_cv_prog_F77="$F77" # Let the user override the test.
5191 else
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5194 do
5195   IFS=$as_save_IFS
5196   test -z "$as_dir" && as_dir=.
5197   for ac_exec_ext in '' $ac_executable_extensions; do
5198   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5199     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201     break 2
5202   fi
5203 done
5204 done
5205
5206 fi
5207 fi
5208 F77=$ac_cv_prog_F77
5209 if test -n "$F77"; then
5210   echo "$as_me:$LINENO: result: $F77" >&5
5211 echo "${ECHO_T}$F77" >&6
5212 else
5213   echo "$as_me:$LINENO: result: no" >&5
5214 echo "${ECHO_T}no" >&6
5215 fi
5216
5217     test -n "$F77" && break
5218   done
5219 fi
5220 if test -z "$F77"; then
5221   ac_ct_F77=$F77
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_prog", so it can be a program name with args.
5225 set dummy $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_ac_ct_F77+set}" = set; then
5229   echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231   if test -n "$ac_ct_F77"; then
5232   ac_cv_prog_ac_ct_F77="$ac_ct_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_ac_ct_F77="$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 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5251 if test -n "$ac_ct_F77"; then
5252   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5253 echo "${ECHO_T}$ac_ct_F77" >&6
5254 else
5255   echo "$as_me:$LINENO: result: no" >&5
5256 echo "${ECHO_T}no" >&6
5257 fi
5258
5259   test -n "$ac_ct_F77" && break
5260 done
5261
5262   F77=$ac_ct_F77
5263 fi
5264
5265
5266 # Provide some information about the compiler.
5267 echo "$as_me:5267:" \
5268      "checking for Fortran 77 compiler version" >&5
5269 ac_compiler=`set X $ac_compile; echo $2`
5270 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5271   (eval $ac_compiler --version </dev/null >&5) 2>&5
5272   ac_status=$?
5273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274   (exit $ac_status); }
5275 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5276   (eval $ac_compiler -v </dev/null >&5) 2>&5
5277   ac_status=$?
5278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279   (exit $ac_status); }
5280 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5281   (eval $ac_compiler -V </dev/null >&5) 2>&5
5282   ac_status=$?
5283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284   (exit $ac_status); }
5285 rm -f a.out
5286
5287 # If we don't use `.F' as extension, the preprocessor is not run on the
5288 # input file.  (Note that this only needs to work for GNU compilers.)
5289 ac_save_ext=$ac_ext
5290 ac_ext=F
5291 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5292 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5293 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5294   echo $ECHO_N "(cached) $ECHO_C" >&6
5295 else
5296   cat >conftest.$ac_ext <<_ACEOF
5297       program main
5298 #ifndef __GNUC__
5299        choke me
5300 #endif
5301
5302       end
5303 _ACEOF
5304 rm -f conftest.$ac_objext
5305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5306   (eval $ac_compile) 2>conftest.er1
5307   ac_status=$?
5308   grep -v '^ *+' conftest.er1 >conftest.err
5309   rm -f conftest.er1
5310   cat conftest.err >&5
5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); } &&
5313          { ac_try='test -z "$ac_f77_werror_flag"
5314                          || test ! -s conftest.err'
5315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316   (eval $ac_try) 2>&5
5317   ac_status=$?
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); }; } &&
5320          { ac_try='test -s conftest.$ac_objext'
5321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322   (eval $ac_try) 2>&5
5323   ac_status=$?
5324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325   (exit $ac_status); }; }; then
5326   ac_compiler_gnu=yes
5327 else
5328   echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5330
5331 ac_compiler_gnu=no
5332 fi
5333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5334 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5335
5336 fi
5337 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5338 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5339 ac_ext=$ac_save_ext
5340 ac_test_FFLAGS=${FFLAGS+set}
5341 ac_save_FFLAGS=$FFLAGS
5342 FFLAGS=
5343 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5344 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5345 if test "${ac_cv_prog_f77_g+set}" = set; then
5346   echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348   FFLAGS=-g
5349 cat >conftest.$ac_ext <<_ACEOF
5350       program main
5351
5352       end
5353 _ACEOF
5354 rm -f conftest.$ac_objext
5355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5356   (eval $ac_compile) 2>conftest.er1
5357   ac_status=$?
5358   grep -v '^ *+' conftest.er1 >conftest.err
5359   rm -f conftest.er1
5360   cat conftest.err >&5
5361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362   (exit $ac_status); } &&
5363          { ac_try='test -z "$ac_f77_werror_flag"
5364                          || test ! -s conftest.err'
5365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366   (eval $ac_try) 2>&5
5367   ac_status=$?
5368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369   (exit $ac_status); }; } &&
5370          { ac_try='test -s conftest.$ac_objext'
5371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372   (eval $ac_try) 2>&5
5373   ac_status=$?
5374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375   (exit $ac_status); }; }; then
5376   ac_cv_prog_f77_g=yes
5377 else
5378   echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5380
5381 ac_cv_prog_f77_g=no
5382 fi
5383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5384
5385 fi
5386 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5387 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5388 if test "$ac_test_FFLAGS" = set; then
5389   FFLAGS=$ac_save_FFLAGS
5390 elif test $ac_cv_prog_f77_g = yes; then
5391   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5392     FFLAGS="-g -O2"
5393   else
5394     FFLAGS="-g"
5395   fi
5396 else
5397   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5398     FFLAGS="-O2"
5399   else
5400     FFLAGS=
5401   fi
5402 fi
5403
5404 G77=`test $ac_compiler_gnu = yes && echo yes`
5405 ac_ext=c
5406 ac_cpp='$CPP $CPPFLAGS'
5407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5410
5411
5412
5413 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5414
5415 # find the maximum length of command line arguments
5416 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5417 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5418 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5419   echo $ECHO_N "(cached) $ECHO_C" >&6
5420 else
5421     i=0
5422   teststring="ABCD"
5423
5424   case $build_os in
5425   msdosdjgpp*)
5426     # On DJGPP, this test can blow up pretty badly due to problems in libc
5427     # (any single argument exceeding 2000 bytes causes a buffer overrun
5428     # during glob expansion).  Even if it were fixed, the result of this
5429     # check would be larger than it should be.
5430     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5431     ;;
5432
5433   gnu*)
5434     # Under GNU Hurd, this test is not required because there is
5435     # no limit to the length of command line arguments.
5436     # Libtool will interpret -1 as no limit whatsoever
5437     lt_cv_sys_max_cmd_len=-1;
5438     ;;
5439
5440   cygwin* | mingw*)
5441     # On Win9x/ME, this test blows up -- it succeeds, but takes
5442     # about 5 minutes as the teststring grows exponentially.
5443     # Worse, since 9x/ME are not pre-emptively multitasking,
5444     # you end up with a "frozen" computer, even though with patience
5445     # the test eventually succeeds (with a max line length of 256k).
5446     # Instead, let's just punt: use the minimum linelength reported by
5447     # all of the supported platforms: 8192 (on NT/2K/XP).
5448     lt_cv_sys_max_cmd_len=8192;
5449     ;;
5450
5451   amigaos*)
5452     # On AmigaOS with pdksh, this test takes hours, literally.
5453     # So we just punt and use a minimum line length of 8192.
5454     lt_cv_sys_max_cmd_len=8192;
5455     ;;
5456
5457   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5458     # This has been around since 386BSD, at least.  Likely further.
5459     if test -x /sbin/sysctl; then
5460       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5461     elif test -x /usr/sbin/sysctl; then
5462       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5463     else
5464       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5465     fi
5466     # And add a safety zone
5467     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5468     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5469     ;;
5470
5471   interix*)
5472     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5473     lt_cv_sys_max_cmd_len=196608
5474     ;;
5475
5476   osf*)
5477     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5478     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5479     # nice to cause kernel panics so lets avoid the loop below.
5480     # First set a reasonable default.
5481     lt_cv_sys_max_cmd_len=16384
5482     #
5483     if test -x /sbin/sysconfig; then
5484       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5485         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5486       esac
5487     fi
5488     ;;
5489   sco3.2v5*)
5490     lt_cv_sys_max_cmd_len=102400
5491     ;;
5492   sysv5* | sco5v6* | sysv4.2uw2*)
5493     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5494     if test -n "$kargmax"; then
5495       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5496     else
5497       lt_cv_sys_max_cmd_len=32768
5498     fi
5499     ;;
5500   *)
5501     # If test is not a shell built-in, we'll probably end up computing a
5502     # maximum length that is only half of the actual maximum length, but
5503     # we can't tell.
5504     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5505     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5506                = "XX$teststring") >/dev/null 2>&1 &&
5507             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5508             lt_cv_sys_max_cmd_len=$new_result &&
5509             test $i != 17 # 1/2 MB should be enough
5510     do
5511       i=`expr $i + 1`
5512       teststring=$teststring$teststring
5513     done
5514     teststring=
5515     # Add a significant safety factor because C++ compilers can tack on massive
5516     # amounts of additional arguments before passing them to the linker.
5517     # It appears as though 1/2 is a usable value.
5518     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5519     ;;
5520   esac
5521
5522 fi
5523
5524 if test -n $lt_cv_sys_max_cmd_len ; then
5525   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5526 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5527 else
5528   echo "$as_me:$LINENO: result: none" >&5
5529 echo "${ECHO_T}none" >&6
5530 fi
5531
5532
5533
5534
5535 # Check for command to grab the raw symbol name followed by C symbol from nm.
5536 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5537 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5538 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5539   echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541
5542 # These are sane defaults that work on at least a few old systems.
5543 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5544
5545 # Character class describing NM global symbol codes.
5546 symcode='[BCDEGRST]'
5547
5548 # Regexp to match symbols that can be accessed directly from C.
5549 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5550
5551 # Transform an extracted symbol line into a proper C declaration
5552 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5553
5554 # Transform an extracted symbol line into symbol name and symbol address
5555 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'"
5556
5557 # Define system-specific variables.
5558 case $host_os in
5559 aix*)
5560   symcode='[BCDT]'
5561   ;;
5562 cygwin* | mingw* | pw32*)
5563   symcode='[ABCDGISTW]'
5564   ;;
5565 hpux*) # Its linker distinguishes data from code symbols
5566   if test "$host_cpu" = ia64; then
5567     symcode='[ABCDEGRST]'
5568   fi
5569   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5570   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'"
5571   ;;
5572 linux*)
5573   if test "$host_cpu" = ia64; then
5574     symcode='[ABCDGIRSTW]'
5575     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5576     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'"
5577   fi
5578   ;;
5579 irix* | nonstopux*)
5580   symcode='[BCDEGRST]'
5581   ;;
5582 osf*)
5583   symcode='[BCDEGQRST]'
5584   ;;
5585 solaris*)
5586   symcode='[BDRT]'
5587   ;;
5588 sco3.2v5*)
5589   symcode='[DT]'
5590   ;;
5591 sysv4.2uw2*)
5592   symcode='[DT]'
5593   ;;
5594 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5595   symcode='[ABDT]'
5596   ;;
5597 sysv4)
5598   symcode='[DFNSTU]'
5599   ;;
5600 esac
5601
5602 # Handle CRLF in mingw tool chain
5603 opt_cr=
5604 case $build_os in
5605 mingw*)
5606   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5607   ;;
5608 esac
5609
5610 # If we're using GNU nm, then use its standard symbol codes.
5611 case `$NM -V 2>&1` in
5612 *GNU* | *'with BFD'*)
5613   symcode='[ABCDGIRSTW]' ;;
5614 esac
5615
5616 # Try without a prefix undercore, then with it.
5617 for ac_symprfx in "" "_"; do
5618
5619   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5620   symxfrm="\\1 $ac_symprfx\\2 \\2"
5621
5622   # Write the raw and C identifiers.
5623   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5624
5625   # Check to see that the pipe works correctly.
5626   pipe_works=no
5627
5628   rm -f conftest*
5629   cat > conftest.$ac_ext <<EOF
5630 #ifdef __cplusplus
5631 extern "C" {
5632 #endif
5633 char nm_test_var;
5634 void nm_test_func(){}
5635 #ifdef __cplusplus
5636 }
5637 #endif
5638 int main(){nm_test_var='a';nm_test_func();return(0);}
5639 EOF
5640
5641   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5642   (eval $ac_compile) 2>&5
5643   ac_status=$?
5644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645   (exit $ac_status); }; then
5646     # Now try to grab the symbols.
5647     nlist=conftest.nm
5648     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5649   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5650   ac_status=$?
5651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652   (exit $ac_status); } && test -s "$nlist"; then
5653       # Try sorting and uniquifying the output.
5654       if sort "$nlist" | uniq > "$nlist"T; then
5655         mv -f "$nlist"T "$nlist"
5656       else
5657         rm -f "$nlist"T
5658       fi
5659
5660       # Make sure that we snagged all the symbols we need.
5661       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5662         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5663           cat <<EOF > conftest.$ac_ext
5664 #ifdef __cplusplus
5665 extern "C" {
5666 #endif
5667
5668 EOF
5669           # Now generate the symbol file.
5670           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5671
5672           cat <<EOF >> conftest.$ac_ext
5673 #if defined (__STDC__) && __STDC__
5674 # define lt_ptr_t void *
5675 #else
5676 # define lt_ptr_t char *
5677 # define const
5678 #endif
5679
5680 /* The mapping between symbol names and symbols. */
5681 const struct {
5682   const char *name;
5683   lt_ptr_t address;
5684 }
5685 lt_preloaded_symbols[] =
5686 {
5687 EOF
5688           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5689           cat <<\EOF >> conftest.$ac_ext
5690   {0, (lt_ptr_t) 0}
5691 };
5692
5693 #ifdef __cplusplus
5694 }
5695 #endif
5696 EOF
5697           # Now try linking the two files.
5698           mv conftest.$ac_objext conftstm.$ac_objext
5699           lt_save_LIBS="$LIBS"
5700           lt_save_CFLAGS="$CFLAGS"
5701           LIBS="conftstm.$ac_objext"
5702           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5703           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5704   (eval $ac_link) 2>&5
5705   ac_status=$?
5706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5708             pipe_works=yes
5709           fi
5710           LIBS="$lt_save_LIBS"
5711           CFLAGS="$lt_save_CFLAGS"
5712         else
5713           echo "cannot find nm_test_func in $nlist" >&5
5714         fi
5715       else
5716         echo "cannot find nm_test_var in $nlist" >&5
5717       fi
5718     else
5719       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5720     fi
5721   else
5722     echo "$progname: failed program was:" >&5
5723     cat conftest.$ac_ext >&5
5724   fi
5725   rm -f conftest* conftst*
5726
5727   # Do not use the global_symbol_pipe unless it works.
5728   if test "$pipe_works" = yes; then
5729     break
5730   else
5731     lt_cv_sys_global_symbol_pipe=
5732   fi
5733 done
5734
5735 fi
5736
5737 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5738   lt_cv_sys_global_symbol_to_cdecl=
5739 fi
5740 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5741   echo "$as_me:$LINENO: result: failed" >&5
5742 echo "${ECHO_T}failed" >&6
5743 else
5744   echo "$as_me:$LINENO: result: ok" >&5
5745 echo "${ECHO_T}ok" >&6
5746 fi
5747
5748 echo "$as_me:$LINENO: checking for objdir" >&5
5749 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5750 if test "${lt_cv_objdir+set}" = set; then
5751   echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753   rm -f .libs 2>/dev/null
5754 mkdir .libs 2>/dev/null
5755 if test -d .libs; then
5756   lt_cv_objdir=.libs
5757 else
5758   # MS-DOS does not allow filenames that begin with a dot.
5759   lt_cv_objdir=_libs
5760 fi
5761 rmdir .libs 2>/dev/null
5762 fi
5763 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5764 echo "${ECHO_T}$lt_cv_objdir" >&6
5765 objdir=$lt_cv_objdir
5766
5767
5768
5769
5770
5771 case $host_os in
5772 aix3*)
5773   # AIX sometimes has problems with the GCC collect2 program.  For some
5774   # reason, if we set the COLLECT_NAMES environment variable, the problems
5775   # vanish in a puff of smoke.
5776   if test "X${COLLECT_NAMES+set}" != Xset; then
5777     COLLECT_NAMES=
5778     export COLLECT_NAMES
5779   fi
5780   ;;
5781 esac
5782
5783 # Sed substitution that helps us do robust quoting.  It backslashifies
5784 # metacharacters that are still active within double-quoted strings.
5785 Xsed='sed -e 1s/^X//'
5786 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5787
5788 # Same as above, but do not quote variable references.
5789 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5790
5791 # Sed substitution to delay expansion of an escaped shell variable in a
5792 # double_quote_subst'ed string.
5793 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5794
5795 # Sed substitution to avoid accidental globbing in evaled expressions
5796 no_glob_subst='s/\*/\\\*/g'
5797
5798 # Constants:
5799 rm="rm -f"
5800
5801 # Global variables:
5802 default_ofile=libtool
5803 can_build_shared=yes
5804
5805 # All known linkers require a `.a' archive for static linking (except MSVC,
5806 # which needs '.lib').
5807 libext=a
5808 ltmain="$ac_aux_dir/ltmain.sh"
5809 ofile="$default_ofile"
5810 with_gnu_ld="$lt_cv_prog_gnu_ld"
5811
5812 if test -n "$ac_tool_prefix"; then
5813   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5814 set dummy ${ac_tool_prefix}ar; ac_word=$2
5815 echo "$as_me:$LINENO: checking for $ac_word" >&5
5816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5817 if test "${ac_cv_prog_AR+set}" = set; then
5818   echo $ECHO_N "(cached) $ECHO_C" >&6
5819 else
5820   if test -n "$AR"; then
5821   ac_cv_prog_AR="$AR" # Let the user override the test.
5822 else
5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 for as_dir in $PATH
5825 do
5826   IFS=$as_save_IFS
5827   test -z "$as_dir" && as_dir=.
5828   for ac_exec_ext in '' $ac_executable_extensions; do
5829   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5830     ac_cv_prog_AR="${ac_tool_prefix}ar"
5831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5832     break 2
5833   fi
5834 done
5835 done
5836
5837 fi
5838 fi
5839 AR=$ac_cv_prog_AR
5840 if test -n "$AR"; then
5841   echo "$as_me:$LINENO: result: $AR" >&5
5842 echo "${ECHO_T}$AR" >&6
5843 else
5844   echo "$as_me:$LINENO: result: no" >&5
5845 echo "${ECHO_T}no" >&6
5846 fi
5847
5848 fi
5849 if test -z "$ac_cv_prog_AR"; then
5850   ac_ct_AR=$AR
5851   # Extract the first word of "ar", so it can be a program name with args.
5852 set dummy ar; ac_word=$2
5853 echo "$as_me:$LINENO: checking for $ac_word" >&5
5854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5855 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5856   echo $ECHO_N "(cached) $ECHO_C" >&6
5857 else
5858   if test -n "$ac_ct_AR"; then
5859   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5860 else
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH
5863 do
5864   IFS=$as_save_IFS
5865   test -z "$as_dir" && as_dir=.
5866   for ac_exec_ext in '' $ac_executable_extensions; do
5867   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5868     ac_cv_prog_ac_ct_AR="ar"
5869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5870     break 2
5871   fi
5872 done
5873 done
5874
5875   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5876 fi
5877 fi
5878 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5879 if test -n "$ac_ct_AR"; then
5880   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5881 echo "${ECHO_T}$ac_ct_AR" >&6
5882 else
5883   echo "$as_me:$LINENO: result: no" >&5
5884 echo "${ECHO_T}no" >&6
5885 fi
5886
5887   AR=$ac_ct_AR
5888 else
5889   AR="$ac_cv_prog_AR"
5890 fi
5891
5892 if test -n "$ac_tool_prefix"; then
5893   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5894 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5895 echo "$as_me:$LINENO: checking for $ac_word" >&5
5896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5897 if test "${ac_cv_prog_RANLIB+set}" = set; then
5898   echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900   if test -n "$RANLIB"; then
5901   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5902 else
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH
5905 do
5906   IFS=$as_save_IFS
5907   test -z "$as_dir" && as_dir=.
5908   for ac_exec_ext in '' $ac_executable_extensions; do
5909   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5910     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5912     break 2
5913   fi
5914 done
5915 done
5916
5917 fi
5918 fi
5919 RANLIB=$ac_cv_prog_RANLIB
5920 if test -n "$RANLIB"; then
5921   echo "$as_me:$LINENO: result: $RANLIB" >&5
5922 echo "${ECHO_T}$RANLIB" >&6
5923 else
5924   echo "$as_me:$LINENO: result: no" >&5
5925 echo "${ECHO_T}no" >&6
5926 fi
5927
5928 fi
5929 if test -z "$ac_cv_prog_RANLIB"; then
5930   ac_ct_RANLIB=$RANLIB
5931   # Extract the first word of "ranlib", so it can be a program name with args.
5932 set dummy ranlib; ac_word=$2
5933 echo "$as_me:$LINENO: checking for $ac_word" >&5
5934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5935 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5936   echo $ECHO_N "(cached) $ECHO_C" >&6
5937 else
5938   if test -n "$ac_ct_RANLIB"; then
5939   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5940 else
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 for as_dir in $PATH
5943 do
5944   IFS=$as_save_IFS
5945   test -z "$as_dir" && as_dir=.
5946   for ac_exec_ext in '' $ac_executable_extensions; do
5947   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5948     ac_cv_prog_ac_ct_RANLIB="ranlib"
5949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5950     break 2
5951   fi
5952 done
5953 done
5954
5955   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5956 fi
5957 fi
5958 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5959 if test -n "$ac_ct_RANLIB"; then
5960   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5961 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5962 else
5963   echo "$as_me:$LINENO: result: no" >&5
5964 echo "${ECHO_T}no" >&6
5965 fi
5966
5967   RANLIB=$ac_ct_RANLIB
5968 else
5969   RANLIB="$ac_cv_prog_RANLIB"
5970 fi
5971
5972 if test -n "$ac_tool_prefix"; then
5973   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5974 set dummy ${ac_tool_prefix}strip; ac_word=$2
5975 echo "$as_me:$LINENO: checking for $ac_word" >&5
5976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5977 if test "${ac_cv_prog_STRIP+set}" = set; then
5978   echo $ECHO_N "(cached) $ECHO_C" >&6
5979 else
5980   if test -n "$STRIP"; then
5981   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5982 else
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH
5985 do
5986   IFS=$as_save_IFS
5987   test -z "$as_dir" && as_dir=.
5988   for ac_exec_ext in '' $ac_executable_extensions; do
5989   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5990     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5992     break 2
5993   fi
5994 done
5995 done
5996
5997 fi
5998 fi
5999 STRIP=$ac_cv_prog_STRIP
6000 if test -n "$STRIP"; then
6001   echo "$as_me:$LINENO: result: $STRIP" >&5
6002 echo "${ECHO_T}$STRIP" >&6
6003 else
6004   echo "$as_me:$LINENO: result: no" >&5
6005 echo "${ECHO_T}no" >&6
6006 fi
6007
6008 fi
6009 if test -z "$ac_cv_prog_STRIP"; then
6010   ac_ct_STRIP=$STRIP
6011   # Extract the first word of "strip", so it can be a program name with args.
6012 set dummy strip; ac_word=$2
6013 echo "$as_me:$LINENO: checking for $ac_word" >&5
6014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6015 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6016   echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018   if test -n "$ac_ct_STRIP"; then
6019   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6020 else
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 for as_dir in $PATH
6023 do
6024   IFS=$as_save_IFS
6025   test -z "$as_dir" && as_dir=.
6026   for ac_exec_ext in '' $ac_executable_extensions; do
6027   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6028     ac_cv_prog_ac_ct_STRIP="strip"
6029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6030     break 2
6031   fi
6032 done
6033 done
6034
6035   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6036 fi
6037 fi
6038 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6039 if test -n "$ac_ct_STRIP"; then
6040   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6041 echo "${ECHO_T}$ac_ct_STRIP" >&6
6042 else
6043   echo "$as_me:$LINENO: result: no" >&5
6044 echo "${ECHO_T}no" >&6
6045 fi
6046
6047   STRIP=$ac_ct_STRIP
6048 else
6049   STRIP="$ac_cv_prog_STRIP"
6050 fi
6051
6052
6053 old_CC="$CC"
6054 old_CFLAGS="$CFLAGS"
6055
6056 # Set sane defaults for various variables
6057 test -z "$AR" && AR=ar
6058 test -z "$AR_FLAGS" && AR_FLAGS=cru
6059 test -z "$AS" && AS=as
6060 test -z "$CC" && CC=cc
6061 test -z "$LTCC" && LTCC=$CC
6062 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6063 test -z "$DLLTOOL" && DLLTOOL=dlltool
6064 test -z "$LD" && LD=ld
6065 test -z "$LN_S" && LN_S="ln -s"
6066 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6067 test -z "$NM" && NM=nm
6068 test -z "$SED" && SED=sed
6069 test -z "$OBJDUMP" && OBJDUMP=objdump
6070 test -z "$RANLIB" && RANLIB=:
6071 test -z "$STRIP" && STRIP=:
6072 test -z "$ac_objext" && ac_objext=o
6073
6074 # Determine commands to create old-style static archives.
6075 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6076 old_postinstall_cmds='chmod 644 $oldlib'
6077 old_postuninstall_cmds=
6078
6079 if test -n "$RANLIB"; then
6080   case $host_os in
6081   openbsd*)
6082     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6083     ;;
6084   *)
6085     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6086     ;;
6087   esac
6088   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6089 fi
6090
6091 for cc_temp in $compiler""; do
6092   case $cc_temp in
6093     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6094     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6095     \-*) ;;
6096     *) break;;
6097   esac
6098 done
6099 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6100
6101
6102 # Only perform the check for file, if the check method requires it
6103 case $deplibs_check_method in
6104 file_magic*)
6105   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6106     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6107 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6108 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   case $MAGIC_CMD in
6112 [\\/*] |  ?:[\\/]*)
6113   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6114   ;;
6115 *)
6116   lt_save_MAGIC_CMD="$MAGIC_CMD"
6117   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6118   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6119   for ac_dir in $ac_dummy; do
6120     IFS="$lt_save_ifs"
6121     test -z "$ac_dir" && ac_dir=.
6122     if test -f $ac_dir/${ac_tool_prefix}file; then
6123       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6124       if test -n "$file_magic_test_file"; then
6125         case $deplibs_check_method in
6126         "file_magic "*)
6127           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6128           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6129           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6130             $EGREP "$file_magic_regex" > /dev/null; then
6131             :
6132           else
6133             cat <<EOF 1>&2
6134
6135 *** Warning: the command libtool uses to detect shared libraries,
6136 *** $file_magic_cmd, produces output that libtool cannot recognize.
6137 *** The result is that libtool may fail to recognize shared libraries
6138 *** as such.  This will affect the creation of libtool libraries that
6139 *** depend on shared libraries, but programs linked with such libtool
6140 *** libraries will work regardless of this problem.  Nevertheless, you
6141 *** may want to report the problem to your system manager and/or to
6142 *** bug-libtool@gnu.org
6143
6144 EOF
6145           fi ;;
6146         esac
6147       fi
6148       break
6149     fi
6150   done
6151   IFS="$lt_save_ifs"
6152   MAGIC_CMD="$lt_save_MAGIC_CMD"
6153   ;;
6154 esac
6155 fi
6156
6157 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6158 if test -n "$MAGIC_CMD"; then
6159   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6160 echo "${ECHO_T}$MAGIC_CMD" >&6
6161 else
6162   echo "$as_me:$LINENO: result: no" >&5
6163 echo "${ECHO_T}no" >&6
6164 fi
6165
6166 if test -z "$lt_cv_path_MAGIC_CMD"; then
6167   if test -n "$ac_tool_prefix"; then
6168     echo "$as_me:$LINENO: checking for file" >&5
6169 echo $ECHO_N "checking for file... $ECHO_C" >&6
6170 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6171   echo $ECHO_N "(cached) $ECHO_C" >&6
6172 else
6173   case $MAGIC_CMD in
6174 [\\/*] |  ?:[\\/]*)
6175   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6176   ;;
6177 *)
6178   lt_save_MAGIC_CMD="$MAGIC_CMD"
6179   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6180   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6181   for ac_dir in $ac_dummy; do
6182     IFS="$lt_save_ifs"
6183     test -z "$ac_dir" && ac_dir=.
6184     if test -f $ac_dir/file; then
6185       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6186       if test -n "$file_magic_test_file"; then
6187         case $deplibs_check_method in
6188         "file_magic "*)
6189           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6190           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6191           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6192             $EGREP "$file_magic_regex" > /dev/null; then
6193             :
6194           else
6195             cat <<EOF 1>&2
6196
6197 *** Warning: the command libtool uses to detect shared libraries,
6198 *** $file_magic_cmd, produces output that libtool cannot recognize.
6199 *** The result is that libtool may fail to recognize shared libraries
6200 *** as such.  This will affect the creation of libtool libraries that
6201 *** depend on shared libraries, but programs linked with such libtool
6202 *** libraries will work regardless of this problem.  Nevertheless, you
6203 *** may want to report the problem to your system manager and/or to
6204 *** bug-libtool@gnu.org
6205
6206 EOF
6207           fi ;;
6208         esac
6209       fi
6210       break
6211     fi
6212   done
6213   IFS="$lt_save_ifs"
6214   MAGIC_CMD="$lt_save_MAGIC_CMD"
6215   ;;
6216 esac
6217 fi
6218
6219 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6220 if test -n "$MAGIC_CMD"; then
6221   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6222 echo "${ECHO_T}$MAGIC_CMD" >&6
6223 else
6224   echo "$as_me:$LINENO: result: no" >&5
6225 echo "${ECHO_T}no" >&6
6226 fi
6227
6228   else
6229     MAGIC_CMD=:
6230   fi
6231 fi
6232
6233   fi
6234   ;;
6235 esac
6236
6237 enable_dlopen=no
6238 enable_win32_dll=no
6239
6240 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6241 if test "${enable_libtool_lock+set}" = set; then
6242   enableval="$enable_libtool_lock"
6243
6244 fi;
6245 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6246
6247
6248 # Check whether --with-pic or --without-pic was given.
6249 if test "${with_pic+set}" = set; then
6250   withval="$with_pic"
6251   pic_mode="$withval"
6252 else
6253   pic_mode=default
6254 fi;
6255 test -z "$pic_mode" && pic_mode=default
6256
6257 # Use C for the default configuration in the libtool script
6258 tagname=
6259 lt_save_CC="$CC"
6260 ac_ext=c
6261 ac_cpp='$CPP $CPPFLAGS'
6262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6265
6266
6267 # Source file extension for C test sources.
6268 ac_ext=c
6269
6270 # Object file extension for compiled C test sources.
6271 objext=o
6272 objext=$objext
6273
6274 # Code to be used in simple compile tests
6275 lt_simple_compile_test_code="int some_variable = 0;\n"
6276
6277 # Code to be used in simple link tests
6278 lt_simple_link_test_code='int main(){return(0);}\n'
6279
6280
6281 # If no C compiler was specified, use CC.
6282 LTCC=${LTCC-"$CC"}
6283
6284 # If no C compiler flags were specified, use CFLAGS.
6285 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6286
6287 # Allow CC to be a program name with arguments.
6288 compiler=$CC
6289
6290
6291 # save warnings/boilerplate of simple test code
6292 ac_outfile=conftest.$ac_objext
6293 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6294 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6295 _lt_compiler_boilerplate=`cat conftest.err`
6296 $rm conftest*
6297
6298 ac_outfile=conftest.$ac_objext
6299 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6300 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6301 _lt_linker_boilerplate=`cat conftest.err`
6302 $rm conftest*
6303
6304
6305
6306 lt_prog_compiler_no_builtin_flag=
6307
6308 if test "$GCC" = yes; then
6309   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6310
6311
6312 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6313 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6314 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6315   echo $ECHO_N "(cached) $ECHO_C" >&6
6316 else
6317   lt_cv_prog_compiler_rtti_exceptions=no
6318   ac_outfile=conftest.$ac_objext
6319    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6320    lt_compiler_flag="-fno-rtti -fno-exceptions"
6321    # Insert the option either (1) after the last *FLAGS variable, or
6322    # (2) before a word containing "conftest.", or (3) at the end.
6323    # Note that $ac_compile itself does not contain backslashes and begins
6324    # with a dollar sign (not a hyphen), so the echo should work correctly.
6325    # The option is referenced via a variable to avoid confusing sed.
6326    lt_compile=`echo "$ac_compile" | $SED \
6327    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6328    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6329    -e 's:$: $lt_compiler_flag:'`
6330    (eval echo "\"\$as_me:6330: $lt_compile\"" >&5)
6331    (eval "$lt_compile" 2>conftest.err)
6332    ac_status=$?
6333    cat conftest.err >&5
6334    echo "$as_me:6334: \$? = $ac_status" >&5
6335    if (exit $ac_status) && test -s "$ac_outfile"; then
6336      # The compiler can only warn and ignore the option if not recognized
6337      # So say no if there are warnings other than the usual output.
6338      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6339      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6340      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6341        lt_cv_prog_compiler_rtti_exceptions=yes
6342      fi
6343    fi
6344    $rm conftest*
6345
6346 fi
6347 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6348 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6349
6350 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6351     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6352 else
6353     :
6354 fi
6355
6356 fi
6357
6358 lt_prog_compiler_wl=
6359 lt_prog_compiler_pic=
6360 lt_prog_compiler_static=
6361
6362 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6363 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6364
6365   if test "$GCC" = yes; then
6366     lt_prog_compiler_wl='-Wl,'
6367     lt_prog_compiler_static='-static'
6368
6369     case $host_os in
6370       aix*)
6371       # All AIX code is PIC.
6372       if test "$host_cpu" = ia64; then
6373         # AIX 5 now supports IA64 processor
6374         lt_prog_compiler_static='-Bstatic'
6375       fi
6376       ;;
6377
6378     amigaos*)
6379       # FIXME: we need at least 68020 code to build shared libraries, but
6380       # adding the `-m68020' flag to GCC prevents building anything better,
6381       # like `-m68040'.
6382       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6383       ;;
6384
6385     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6386       # PIC is the default for these OSes.
6387       ;;
6388
6389     mingw* | pw32* | os2*)
6390       # This hack is so that the source file can tell whether it is being
6391       # built for inclusion in a dll (and should export symbols for example).
6392       lt_prog_compiler_pic='-DDLL_EXPORT'
6393       ;;
6394
6395     darwin* | rhapsody*)
6396       # PIC is the default on this platform
6397       # Common symbols not allowed in MH_DYLIB files
6398       lt_prog_compiler_pic='-fno-common'
6399       ;;
6400
6401     interix3*)
6402       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6403       # Instead, we relocate shared libraries at runtime.
6404       ;;
6405
6406     msdosdjgpp*)
6407       # Just because we use GCC doesn't mean we suddenly get shared libraries
6408       # on systems that don't support them.
6409       lt_prog_compiler_can_build_shared=no
6410       enable_shared=no
6411       ;;
6412
6413     sysv4*MP*)
6414       if test -d /usr/nec; then
6415         lt_prog_compiler_pic=-Kconform_pic
6416       fi
6417       ;;
6418
6419     hpux*)
6420       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6421       # not for PA HP-UX.
6422       case $host_cpu in
6423       hppa*64*|ia64*)
6424         # +Z the default
6425         ;;
6426       *)
6427         lt_prog_compiler_pic='-fPIC'
6428         ;;
6429       esac
6430       ;;
6431
6432     *)
6433       lt_prog_compiler_pic='-fPIC'
6434       ;;
6435     esac
6436   else
6437     # PORTME Check for flag to pass linker flags through the system compiler.
6438     case $host_os in
6439     aix*)
6440       lt_prog_compiler_wl='-Wl,'
6441       if test "$host_cpu" = ia64; then
6442         # AIX 5 now supports IA64 processor
6443         lt_prog_compiler_static='-Bstatic'
6444       else
6445         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6446       fi
6447       ;;
6448       darwin*)
6449         # PIC is the default on this platform
6450         # Common symbols not allowed in MH_DYLIB files
6451        case $cc_basename in
6452          xlc*)
6453          lt_prog_compiler_pic='-qnocommon'
6454          lt_prog_compiler_wl='-Wl,'
6455          ;;
6456        esac
6457        ;;
6458
6459     mingw* | pw32* | os2*)
6460       # This hack is so that the source file can tell whether it is being
6461       # built for inclusion in a dll (and should export symbols for example).
6462       lt_prog_compiler_pic='-DDLL_EXPORT'
6463       ;;
6464
6465     hpux9* | hpux10* | hpux11*)
6466       lt_prog_compiler_wl='-Wl,'
6467       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6468       # not for PA HP-UX.
6469       case $host_cpu in
6470       hppa*64*|ia64*)
6471         # +Z the default
6472         ;;
6473       *)
6474         lt_prog_compiler_pic='+Z'
6475         ;;
6476       esac
6477       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6478       lt_prog_compiler_static='${wl}-a ${wl}archive'
6479       ;;
6480
6481     irix5* | irix6* | nonstopux*)
6482       lt_prog_compiler_wl='-Wl,'
6483       # PIC (with -KPIC) is the default.
6484       lt_prog_compiler_static='-non_shared'
6485       ;;
6486
6487     newsos6)
6488       lt_prog_compiler_pic='-KPIC'
6489       lt_prog_compiler_static='-Bstatic'
6490       ;;
6491
6492     linux*)
6493       case $cc_basename in
6494       icc* | ecc*)
6495         lt_prog_compiler_wl='-Wl,'
6496         lt_prog_compiler_pic='-KPIC'
6497         lt_prog_compiler_static='-static'
6498         ;;
6499       pgcc* | pgf77* | pgf90* | pgf95*)
6500         # Portland Group compilers (*not* the Pentium gcc compiler,
6501         # which looks to be a dead project)
6502         lt_prog_compiler_wl='-Wl,'
6503         lt_prog_compiler_pic='-fpic'
6504         lt_prog_compiler_static='-Bstatic'
6505         ;;
6506       ccc*)
6507         lt_prog_compiler_wl='-Wl,'
6508         # All Alpha code is PIC.
6509         lt_prog_compiler_static='-non_shared'
6510         ;;
6511       esac
6512       ;;
6513
6514     osf3* | osf4* | osf5*)
6515       lt_prog_compiler_wl='-Wl,'
6516       # All OSF/1 code is PIC.
6517       lt_prog_compiler_static='-non_shared'
6518       ;;
6519
6520     solaris*)
6521       lt_prog_compiler_pic='-KPIC'
6522       lt_prog_compiler_static='-Bstatic'
6523       case $cc_basename in
6524       f77* | f90* | f95*)
6525         lt_prog_compiler_wl='-Qoption ld ';;
6526       *)
6527         lt_prog_compiler_wl='-Wl,';;
6528       esac
6529       ;;
6530
6531     sunos4*)
6532       lt_prog_compiler_wl='-Qoption ld '
6533       lt_prog_compiler_pic='-PIC'
6534       lt_prog_compiler_static='-Bstatic'
6535       ;;
6536
6537     sysv4 | sysv4.2uw2* | sysv4.3*)
6538       lt_prog_compiler_wl='-Wl,'
6539       lt_prog_compiler_pic='-KPIC'
6540       lt_prog_compiler_static='-Bstatic'
6541       ;;
6542
6543     sysv4*MP*)
6544       if test -d /usr/nec ;then
6545         lt_prog_compiler_pic='-Kconform_pic'
6546         lt_prog_compiler_static='-Bstatic'
6547       fi
6548       ;;
6549
6550     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6551       lt_prog_compiler_wl='-Wl,'
6552       lt_prog_compiler_pic='-KPIC'
6553       lt_prog_compiler_static='-Bstatic'
6554       ;;
6555
6556     unicos*)
6557       lt_prog_compiler_wl='-Wl,'
6558       lt_prog_compiler_can_build_shared=no
6559       ;;
6560
6561     uts4*)
6562       lt_prog_compiler_pic='-pic'
6563       lt_prog_compiler_static='-Bstatic'
6564       ;;
6565
6566     *)
6567       lt_prog_compiler_can_build_shared=no
6568       ;;
6569     esac
6570   fi
6571
6572 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6573 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6574
6575 #
6576 # Check to make sure the PIC flag actually works.
6577 #
6578 if test -n "$lt_prog_compiler_pic"; then
6579
6580 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6581 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6582 if test "${lt_prog_compiler_pic_works+set}" = set; then
6583   echo $ECHO_N "(cached) $ECHO_C" >&6
6584 else
6585   lt_prog_compiler_pic_works=no
6586   ac_outfile=conftest.$ac_objext
6587    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6588    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6589    # Insert the option either (1) after the last *FLAGS variable, or
6590    # (2) before a word containing "conftest.", or (3) at the end.
6591    # Note that $ac_compile itself does not contain backslashes and begins
6592    # with a dollar sign (not a hyphen), so the echo should work correctly.
6593    # The option is referenced via a variable to avoid confusing sed.
6594    lt_compile=`echo "$ac_compile" | $SED \
6595    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6596    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6597    -e 's:$: $lt_compiler_flag:'`
6598    (eval echo "\"\$as_me:6598: $lt_compile\"" >&5)
6599    (eval "$lt_compile" 2>conftest.err)
6600    ac_status=$?
6601    cat conftest.err >&5
6602    echo "$as_me:6602: \$? = $ac_status" >&5
6603    if (exit $ac_status) && test -s "$ac_outfile"; then
6604      # The compiler can only warn and ignore the option if not recognized
6605      # So say no if there are warnings other than the usual output.
6606      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6607      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6608      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6609        lt_prog_compiler_pic_works=yes
6610      fi
6611    fi
6612    $rm conftest*
6613
6614 fi
6615 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6616 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6617
6618 if test x"$lt_prog_compiler_pic_works" = xyes; then
6619     case $lt_prog_compiler_pic in
6620      "" | " "*) ;;
6621      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6622      esac
6623 else
6624     lt_prog_compiler_pic=
6625      lt_prog_compiler_can_build_shared=no
6626 fi
6627
6628 fi
6629 case $host_os in
6630   # For platforms which do not support PIC, -DPIC is meaningless:
6631   *djgpp*)
6632     lt_prog_compiler_pic=
6633     ;;
6634   *)
6635     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6636     ;;
6637 esac
6638
6639 #
6640 # Check to make sure the static flag actually works.
6641 #
6642 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6643 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6644 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6645 if test "${lt_prog_compiler_static_works+set}" = set; then
6646   echo $ECHO_N "(cached) $ECHO_C" >&6
6647 else
6648   lt_prog_compiler_static_works=no
6649    save_LDFLAGS="$LDFLAGS"
6650    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6651    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6652    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6653      # The linker can only warn and ignore the option if not recognized
6654      # So say no if there are warnings
6655      if test -s conftest.err; then
6656        # Append any errors to the config.log.
6657        cat conftest.err 1>&5
6658        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6659        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6660        if diff conftest.exp conftest.er2 >/dev/null; then
6661          lt_prog_compiler_static_works=yes
6662        fi
6663      else
6664        lt_prog_compiler_static_works=yes
6665      fi
6666    fi
6667    $rm conftest*
6668    LDFLAGS="$save_LDFLAGS"
6669
6670 fi
6671 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6672 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6673
6674 if test x"$lt_prog_compiler_static_works" = xyes; then
6675     :
6676 else
6677     lt_prog_compiler_static=
6678 fi
6679
6680
6681 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6682 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6683 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6684   echo $ECHO_N "(cached) $ECHO_C" >&6
6685 else
6686   lt_cv_prog_compiler_c_o=no
6687    $rm -r conftest 2>/dev/null
6688    mkdir conftest
6689    cd conftest
6690    mkdir out
6691    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6692
6693    lt_compiler_flag="-o out/conftest2.$ac_objext"
6694    # Insert the option either (1) after the last *FLAGS variable, or
6695    # (2) before a word containing "conftest.", or (3) at the end.
6696    # Note that $ac_compile itself does not contain backslashes and begins
6697    # with a dollar sign (not a hyphen), so the echo should work correctly.
6698    lt_compile=`echo "$ac_compile" | $SED \
6699    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6700    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6701    -e 's:$: $lt_compiler_flag:'`
6702    (eval echo "\"\$as_me:6702: $lt_compile\"" >&5)
6703    (eval "$lt_compile" 2>out/conftest.err)
6704    ac_status=$?
6705    cat out/conftest.err >&5
6706    echo "$as_me:6706: \$? = $ac_status" >&5
6707    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6708    then
6709      # The compiler can only warn and ignore the option if not recognized
6710      # So say no if there are warnings
6711      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6712      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6713      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6714        lt_cv_prog_compiler_c_o=yes
6715      fi
6716    fi
6717    chmod u+w . 2>&5
6718    $rm conftest*
6719    # SGI C++ compiler will create directory out/ii_files/ for
6720    # template instantiation
6721    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6722    $rm out/* && rmdir out
6723    cd ..
6724    rmdir conftest
6725    $rm conftest*
6726
6727 fi
6728 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6729 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6730
6731
6732 hard_links="nottested"
6733 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6734   # do not overwrite the value of need_locks provided by the user
6735   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6736 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6737   hard_links=yes
6738   $rm conftest*
6739   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6740   touch conftest.a
6741   ln conftest.a conftest.b 2>&5 || hard_links=no
6742   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6743   echo "$as_me:$LINENO: result: $hard_links" >&5
6744 echo "${ECHO_T}$hard_links" >&6
6745   if test "$hard_links" = no; then
6746     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6747 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6748     need_locks=warn
6749   fi
6750 else
6751   need_locks=no
6752 fi
6753
6754 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6755 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6756
6757   runpath_var=
6758   allow_undefined_flag=
6759   enable_shared_with_static_runtimes=no
6760   archive_cmds=
6761   archive_expsym_cmds=
6762   old_archive_From_new_cmds=
6763   old_archive_from_expsyms_cmds=
6764   export_dynamic_flag_spec=
6765   whole_archive_flag_spec=
6766   thread_safe_flag_spec=
6767   hardcode_libdir_flag_spec=
6768   hardcode_libdir_flag_spec_ld=
6769   hardcode_libdir_separator=
6770   hardcode_direct=no
6771   hardcode_minus_L=no
6772   hardcode_shlibpath_var=unsupported
6773   link_all_deplibs=unknown
6774   hardcode_automatic=no
6775   module_cmds=
6776   module_expsym_cmds=
6777   always_export_symbols=no
6778   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6779   # include_expsyms should be a list of space-separated symbols to be *always*
6780   # included in the symbol list
6781   include_expsyms=
6782   # exclude_expsyms can be an extended regexp of symbols to exclude
6783   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6784   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6785   # as well as any symbol that contains `d'.
6786   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6787   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6788   # platforms (ab)use it in PIC code, but their linkers get confused if
6789   # the symbol is explicitly referenced.  Since portable code cannot
6790   # rely on this symbol name, it's probably fine to never include it in
6791   # preloaded symbol tables.
6792   extract_expsyms_cmds=
6793   # Just being paranoid about ensuring that cc_basename is set.
6794   for cc_temp in $compiler""; do
6795   case $cc_temp in
6796     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6797     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6798     \-*) ;;
6799     *) break;;
6800   esac
6801 done
6802 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6803
6804   case $host_os in
6805   cygwin* | mingw* | pw32*)
6806     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6807     # When not using gcc, we currently assume that we are using
6808     # Microsoft Visual C++.
6809     if test "$GCC" != yes; then
6810       with_gnu_ld=no
6811     fi
6812     ;;
6813   interix*)
6814     # we just hope/assume this is gcc and not c89 (= MSVC++)
6815     with_gnu_ld=yes
6816     ;;
6817   openbsd*)
6818     with_gnu_ld=no
6819     ;;
6820   esac
6821
6822   ld_shlibs=yes
6823   if test "$with_gnu_ld" = yes; then
6824     # If archive_cmds runs LD, not CC, wlarc should be empty
6825     wlarc='${wl}'
6826
6827     # Set some defaults for GNU ld with shared library support. These
6828     # are reset later if shared libraries are not supported. Putting them
6829     # here allows them to be overridden if necessary.
6830     runpath_var=LD_RUN_PATH
6831     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6832     export_dynamic_flag_spec='${wl}--export-dynamic'
6833     # ancient GNU ld didn't support --whole-archive et. al.
6834     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6835         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6836       else
6837         whole_archive_flag_spec=
6838     fi
6839     supports_anon_versioning=no
6840     case `$LD -v 2>/dev/null` in
6841       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6842       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6843       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6844       *\ 2.11.*) ;; # other 2.11 versions
6845       *) supports_anon_versioning=yes ;;
6846     esac
6847
6848     # See if GNU ld supports shared libraries.
6849     case $host_os in
6850     aix3* | aix4* | aix5*)
6851       # On AIX/PPC, the GNU linker is very broken
6852       if test "$host_cpu" != ia64; then
6853         ld_shlibs=no
6854         cat <<EOF 1>&2
6855
6856 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6857 *** to be unable to reliably create shared libraries on AIX.
6858 *** Therefore, libtool is disabling shared libraries support.  If you
6859 *** really care for shared libraries, you may want to modify your PATH
6860 *** so that a non-GNU linker is found, and then restart.
6861
6862 EOF
6863       fi
6864       ;;
6865
6866     amigaos*)
6867       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)'
6868       hardcode_libdir_flag_spec='-L$libdir'
6869       hardcode_minus_L=yes
6870
6871       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6872       # that the semantics of dynamic libraries on AmigaOS, at least up
6873       # to version 4, is to share data among multiple programs linked
6874       # with the same dynamic library.  Since this doesn't match the
6875       # behavior of shared libraries on other platforms, we can't use
6876       # them.
6877       ld_shlibs=no
6878       ;;
6879
6880     beos*)
6881       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6882         allow_undefined_flag=unsupported
6883         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6884         # support --undefined.  This deserves some investigation.  FIXME
6885         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6886       else
6887         ld_shlibs=no
6888       fi
6889       ;;
6890
6891     cygwin* | mingw* | pw32*)
6892       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6893       # as there is no search path for DLLs.
6894       hardcode_libdir_flag_spec='-L$libdir'
6895       allow_undefined_flag=unsupported
6896       always_export_symbols=no
6897       enable_shared_with_static_runtimes=yes
6898       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6899
6900       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6901         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6902         # If the export-symbols file already is a .def file (1st line
6903         # is EXPORTS), use it as is; otherwise, prepend...
6904         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6905           cp $export_symbols $output_objdir/$soname.def;
6906         else
6907           echo EXPORTS > $output_objdir/$soname.def;
6908           cat $export_symbols >> $output_objdir/$soname.def;
6909         fi~
6910         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6911       else
6912         ld_shlibs=no
6913       fi
6914       ;;
6915
6916     interix3*)
6917       hardcode_direct=no
6918       hardcode_shlibpath_var=no
6919       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6920       export_dynamic_flag_spec='${wl}-E'
6921       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6922       # Instead, shared libraries are loaded at an image base (0x10000000 by
6923       # default) and relocated if they conflict, which is a slow very memory
6924       # consuming and fragmenting process.  To avoid this, we pick a random,
6925       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6926       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6927       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6928       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6929       ;;
6930
6931     linux*)
6932       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6933         tmp_addflag=
6934         case $cc_basename,$host_cpu in
6935         pgcc*)                          # Portland Group C compiler
6936           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'
6937           tmp_addflag=' $pic_flag'
6938           ;;
6939         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6940           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'
6941           tmp_addflag=' $pic_flag -Mnomain' ;;
6942         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
6943           tmp_addflag=' -i_dynamic' ;;
6944         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6945           tmp_addflag=' -i_dynamic -nofor_main' ;;
6946         ifc* | ifort*)                  # Intel Fortran compiler
6947           tmp_addflag=' -nofor_main' ;;
6948         esac
6949         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6950
6951         if test $supports_anon_versioning = yes; then
6952           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6953   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6954   $echo "local: *; };" >> $output_objdir/$libname.ver~
6955           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6956         fi
6957       else
6958         ld_shlibs=no
6959       fi
6960       ;;
6961
6962     netbsd*)
6963       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6964         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6965         wlarc=
6966       else
6967         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6968         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6969       fi
6970       ;;
6971
6972     solaris*)
6973       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6974         ld_shlibs=no
6975         cat <<EOF 1>&2
6976
6977 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6978 *** create shared libraries on Solaris systems.  Therefore, libtool
6979 *** is disabling shared libraries support.  We urge you to upgrade GNU
6980 *** binutils to release 2.9.1 or newer.  Another option is to modify
6981 *** your PATH or compiler configuration so that the native linker is
6982 *** used, and then restart.
6983
6984 EOF
6985       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6986         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6987         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6988       else
6989         ld_shlibs=no
6990       fi
6991       ;;
6992
6993     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6994       case `$LD -v 2>&1` in
6995         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6996         ld_shlibs=no
6997         cat <<_LT_EOF 1>&2
6998
6999 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7000 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7001 *** is disabling shared libraries support.  We urge you to upgrade GNU
7002 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7003 *** your PATH or compiler configuration so that the native linker is
7004 *** used, and then restart.
7005
7006 _LT_EOF
7007         ;;
7008         *)
7009           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7010             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7011             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7012             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7013           else
7014             ld_shlibs=no
7015           fi
7016         ;;
7017       esac
7018       ;;
7019
7020     sunos4*)
7021       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7022       wlarc=
7023       hardcode_direct=yes
7024       hardcode_shlibpath_var=no
7025       ;;
7026
7027     *)
7028       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7029         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7030         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7031       else
7032         ld_shlibs=no
7033       fi
7034       ;;
7035     esac
7036
7037     if test "$ld_shlibs" = no; then
7038       runpath_var=
7039       hardcode_libdir_flag_spec=
7040       export_dynamic_flag_spec=
7041       whole_archive_flag_spec=
7042     fi
7043   else
7044     # PORTME fill in a description of your system's linker (not GNU ld)
7045     case $host_os in
7046     aix3*)
7047       allow_undefined_flag=unsupported
7048       always_export_symbols=yes
7049       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'
7050       # Note: this linker hardcodes the directories in LIBPATH if there
7051       # are no directories specified by -L.
7052       hardcode_minus_L=yes
7053       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7054         # Neither direct hardcoding nor static linking is supported with a
7055         # broken collect2.
7056         hardcode_direct=unsupported
7057       fi
7058       ;;
7059
7060     aix4* | aix5*)
7061       if test "$host_cpu" = ia64; then
7062         # On IA64, the linker does run time linking by default, so we don't
7063         # have to do anything special.
7064         aix_use_runtimelinking=no
7065         exp_sym_flag='-Bexport'
7066         no_entry_flag=""
7067       else
7068         # If we're using GNU nm, then we don't want the "-C" option.
7069         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7070         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7071           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'
7072         else
7073           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'
7074         fi
7075         aix_use_runtimelinking=no
7076
7077         # Test if we are trying to use run time linking or normal
7078         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7079         # need to do runtime linking.
7080         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7081           for ld_flag in $LDFLAGS; do
7082           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7083             aix_use_runtimelinking=yes
7084             break
7085           fi
7086           done
7087           ;;
7088         esac
7089
7090         exp_sym_flag='-bexport'
7091         no_entry_flag='-bnoentry'
7092       fi
7093
7094       # When large executables or shared objects are built, AIX ld can
7095       # have problems creating the table of contents.  If linking a library
7096       # or program results in "error TOC overflow" add -mminimal-toc to
7097       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7098       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7099
7100       archive_cmds=''
7101       hardcode_direct=yes
7102       hardcode_libdir_separator=':'
7103       link_all_deplibs=yes
7104
7105       if test "$GCC" = yes; then
7106         case $host_os in aix4.[012]|aix4.[012].*)
7107         # We only want to do this on AIX 4.2 and lower, the check
7108         # below for broken collect2 doesn't work under 4.3+
7109           collect2name=`${CC} -print-prog-name=collect2`
7110           if test -f "$collect2name" && \
7111            strings "$collect2name" | grep resolve_lib_name >/dev/null
7112           then
7113           # We have reworked collect2
7114           hardcode_direct=yes
7115           else
7116           # We have old collect2
7117           hardcode_direct=unsupported
7118           # It fails to find uninstalled libraries when the uninstalled
7119           # path is not listed in the libpath.  Setting hardcode_minus_L
7120           # to unsupported forces relinking
7121           hardcode_minus_L=yes
7122           hardcode_libdir_flag_spec='-L$libdir'
7123           hardcode_libdir_separator=
7124           fi
7125           ;;
7126         esac
7127         shared_flag='-shared'
7128         if test "$aix_use_runtimelinking" = yes; then
7129           shared_flag="$shared_flag "'${wl}-G'
7130         fi
7131       else
7132         # not using gcc
7133         if test "$host_cpu" = ia64; then
7134         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7135         # chokes on -Wl,-G. The following line is correct:
7136           shared_flag='-G'
7137         else
7138           if test "$aix_use_runtimelinking" = yes; then
7139             shared_flag='${wl}-G'
7140           else
7141             shared_flag='${wl}-bM:SRE'
7142           fi
7143         fi
7144       fi
7145
7146       # It seems that -bexpall does not export symbols beginning with
7147       # underscore (_), so it is better to generate a list of symbols to export.
7148       always_export_symbols=yes
7149       if test "$aix_use_runtimelinking" = yes; then
7150         # Warning - without using the other runtime loading flags (-brtl),
7151         # -berok will link without error, but may produce a broken library.
7152         allow_undefined_flag='-berok'
7153        # Determine the default libpath from the value encoded in an empty executable.
7154        cat >conftest.$ac_ext <<_ACEOF
7155 /* confdefs.h.  */
7156 _ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h.  */
7160
7161 int
7162 main ()
7163 {
7164
7165   ;
7166   return 0;
7167 }
7168 _ACEOF
7169 rm -f conftest.$ac_objext conftest$ac_exeext
7170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7171   (eval $ac_link) 2>conftest.er1
7172   ac_status=$?
7173   grep -v '^ *+' conftest.er1 >conftest.err
7174   rm -f conftest.er1
7175   cat conftest.err >&5
7176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177   (exit $ac_status); } &&
7178          { ac_try='test -z "$ac_c_werror_flag"
7179                          || test ! -s conftest.err'
7180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181   (eval $ac_try) 2>&5
7182   ac_status=$?
7183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184   (exit $ac_status); }; } &&
7185          { ac_try='test -s conftest$ac_exeext'
7186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7187   (eval $ac_try) 2>&5
7188   ac_status=$?
7189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190   (exit $ac_status); }; }; then
7191
7192 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7193 }'`
7194 # Check for a 64-bit object if we didn't find anything.
7195 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; }
7196 }'`; fi
7197 else
7198   echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7200
7201 fi
7202 rm -f conftest.err conftest.$ac_objext \
7203       conftest$ac_exeext conftest.$ac_ext
7204 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7205
7206        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7207         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7208        else
7209         if test "$host_cpu" = ia64; then
7210           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7211           allow_undefined_flag="-z nodefs"
7212           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7213         else
7214          # Determine the default libpath from the value encoded in an empty executable.
7215          cat >conftest.$ac_ext <<_ACEOF
7216 /* confdefs.h.  */
7217 _ACEOF
7218 cat confdefs.h >>conftest.$ac_ext
7219 cat >>conftest.$ac_ext <<_ACEOF
7220 /* end confdefs.h.  */
7221
7222 int
7223 main ()
7224 {
7225
7226   ;
7227   return 0;
7228 }
7229 _ACEOF
7230 rm -f conftest.$ac_objext conftest$ac_exeext
7231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7232   (eval $ac_link) 2>conftest.er1
7233   ac_status=$?
7234   grep -v '^ *+' conftest.er1 >conftest.err
7235   rm -f conftest.er1
7236   cat conftest.err >&5
7237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238   (exit $ac_status); } &&
7239          { ac_try='test -z "$ac_c_werror_flag"
7240                          || test ! -s conftest.err'
7241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242   (eval $ac_try) 2>&5
7243   ac_status=$?
7244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245   (exit $ac_status); }; } &&
7246          { ac_try='test -s conftest$ac_exeext'
7247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248   (eval $ac_try) 2>&5
7249   ac_status=$?
7250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251   (exit $ac_status); }; }; then
7252
7253 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7254 }'`
7255 # Check for a 64-bit object if we didn't find anything.
7256 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; }
7257 }'`; fi
7258 else
7259   echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.$ac_ext >&5
7261
7262 fi
7263 rm -f conftest.err conftest.$ac_objext \
7264       conftest$ac_exeext conftest.$ac_ext
7265 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7266
7267          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7268           # Warning - without using the other run time loading flags,
7269           # -berok will link without error, but may produce a broken library.
7270           no_undefined_flag=' ${wl}-bernotok'
7271           allow_undefined_flag=' ${wl}-berok'
7272           # Exported symbols can be pulled into shared objects from archives
7273           whole_archive_flag_spec='$convenience'
7274           archive_cmds_need_lc=yes
7275           # This is similar to how AIX traditionally builds its shared libraries.
7276           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7277         fi
7278       fi
7279       ;;
7280
7281     amigaos*)
7282       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)'
7283       hardcode_libdir_flag_spec='-L$libdir'
7284       hardcode_minus_L=yes
7285       # see comment about different semantics on the GNU ld section
7286       ld_shlibs=no
7287       ;;
7288
7289     bsdi[45]*)
7290       export_dynamic_flag_spec=-rdynamic
7291       ;;
7292
7293     cygwin* | mingw* | pw32*)
7294       # When not using gcc, we currently assume that we are using
7295       # Microsoft Visual C++.
7296       # hardcode_libdir_flag_spec is actually meaningless, as there is
7297       # no search path for DLLs.
7298       hardcode_libdir_flag_spec=' '
7299       allow_undefined_flag=unsupported
7300       # Tell ltmain to make .lib files, not .a files.
7301       libext=lib
7302       # Tell ltmain to make .dll files, not .so files.
7303       shrext_cmds=".dll"
7304       # FIXME: Setting linknames here is a bad hack.
7305       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7306       # The linker will automatically build a .lib file if we build a DLL.
7307       old_archive_From_new_cmds='true'
7308       # FIXME: Should let the user specify the lib program.
7309       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7310       fix_srcfile_path='`cygpath -w "$srcfile"`'
7311       enable_shared_with_static_runtimes=yes
7312       ;;
7313
7314     darwin* | rhapsody*)
7315       case $host_os in
7316         rhapsody* | darwin1.[012])
7317          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7318          ;;
7319        *) # Darwin 1.3 on
7320          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7321            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7322          else
7323            case ${MACOSX_DEPLOYMENT_TARGET} in
7324              10.[012])
7325                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7326                ;;
7327              10.*)
7328                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7329                ;;
7330            esac
7331          fi
7332          ;;
7333       esac
7334       archive_cmds_need_lc=no
7335       hardcode_direct=no
7336       hardcode_automatic=yes
7337       hardcode_shlibpath_var=unsupported
7338       whole_archive_flag_spec=''
7339       link_all_deplibs=yes
7340     if test "$GCC" = yes ; then
7341         output_verbose_link_cmd='echo'
7342         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7343       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7344       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7345       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}'
7346       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}'
7347     else
7348       case $cc_basename in
7349         xlc*)
7350          output_verbose_link_cmd='echo'
7351          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7352          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7353           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7354          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}'
7355           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}'
7356           ;;
7357        *)
7358          ld_shlibs=no
7359           ;;
7360       esac
7361     fi
7362       ;;
7363
7364     dgux*)
7365       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7366       hardcode_libdir_flag_spec='-L$libdir'
7367       hardcode_shlibpath_var=no
7368       ;;
7369
7370     freebsd1*)
7371       ld_shlibs=no
7372       ;;
7373
7374     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7375     # support.  Future versions do this automatically, but an explicit c++rt0.o
7376     # does not break anything, and helps significantly (at the cost of a little
7377     # extra space).
7378     freebsd2.2*)
7379       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7380       hardcode_libdir_flag_spec='-R$libdir'
7381       hardcode_direct=yes
7382       hardcode_shlibpath_var=no
7383       ;;
7384
7385     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7386     freebsd2*)
7387       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7388       hardcode_direct=yes
7389       hardcode_minus_L=yes
7390       hardcode_shlibpath_var=no
7391       ;;
7392
7393     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7394     freebsd* | kfreebsd*-gnu | dragonfly*)
7395       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7396       hardcode_libdir_flag_spec='-R$libdir'
7397       hardcode_direct=yes
7398       hardcode_shlibpath_var=no
7399       ;;
7400
7401     hpux9*)
7402       if test "$GCC" = yes; then
7403         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'
7404       else
7405         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'
7406       fi
7407       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7408       hardcode_libdir_separator=:
7409       hardcode_direct=yes
7410
7411       # hardcode_minus_L: Not really in the search PATH,
7412       # but as the default location of the library.
7413       hardcode_minus_L=yes
7414       export_dynamic_flag_spec='${wl}-E'
7415       ;;
7416
7417     hpux10*)
7418       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7419         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7420       else
7421         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7422       fi
7423       if test "$with_gnu_ld" = no; then
7424         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7425         hardcode_libdir_separator=:
7426
7427         hardcode_direct=yes
7428         export_dynamic_flag_spec='${wl}-E'
7429
7430         # hardcode_minus_L: Not really in the search PATH,
7431         # but as the default location of the library.
7432         hardcode_minus_L=yes
7433       fi
7434       ;;
7435
7436     hpux11*)
7437       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7438         case $host_cpu in
7439         hppa*64*)
7440           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7441           ;;
7442         ia64*)
7443           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7444           ;;
7445         *)
7446           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7447           ;;
7448         esac
7449       else
7450         case $host_cpu in
7451         hppa*64*)
7452           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7453           ;;
7454         ia64*)
7455           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7456           ;;
7457         *)
7458           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7459           ;;
7460         esac
7461       fi
7462       if test "$with_gnu_ld" = no; then
7463         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7464         hardcode_libdir_separator=:
7465
7466         case $host_cpu in
7467         hppa*64*|ia64*)
7468           hardcode_libdir_flag_spec_ld='+b $libdir'
7469           hardcode_direct=no
7470           hardcode_shlibpath_var=no
7471           ;;
7472         *)
7473           hardcode_direct=yes
7474           export_dynamic_flag_spec='${wl}-E'
7475
7476           # hardcode_minus_L: Not really in the search PATH,
7477           # but as the default location of the library.
7478           hardcode_minus_L=yes
7479           ;;
7480         esac
7481       fi
7482       ;;
7483
7484     irix5* | irix6* | nonstopux*)
7485       if test "$GCC" = yes; then
7486         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'
7487       else
7488         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'
7489         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7490       fi
7491       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7492       hardcode_libdir_separator=:
7493       link_all_deplibs=yes
7494       ;;
7495
7496     netbsd*)
7497       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7498         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7499       else
7500         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7501       fi
7502       hardcode_libdir_flag_spec='-R$libdir'
7503       hardcode_direct=yes
7504       hardcode_shlibpath_var=no
7505       ;;
7506
7507     newsos6)
7508       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7509       hardcode_direct=yes
7510       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7511       hardcode_libdir_separator=:
7512       hardcode_shlibpath_var=no
7513       ;;
7514
7515     openbsd*)
7516       hardcode_direct=yes
7517       hardcode_shlibpath_var=no
7518       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7519         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7520         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7521         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7522         export_dynamic_flag_spec='${wl}-E'
7523       else
7524        case $host_os in
7525          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7526            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7527            hardcode_libdir_flag_spec='-R$libdir'
7528            ;;
7529          *)
7530            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7531            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7532            ;;
7533        esac
7534       fi
7535       ;;
7536
7537     os2*)
7538       hardcode_libdir_flag_spec='-L$libdir'
7539       hardcode_minus_L=yes
7540       allow_undefined_flag=unsupported
7541       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'
7542       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7543       ;;
7544
7545     osf3*)
7546       if test "$GCC" = yes; then
7547         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7548         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'
7549       else
7550         allow_undefined_flag=' -expect_unresolved \*'
7551         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'
7552       fi
7553       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7554       hardcode_libdir_separator=:
7555       ;;
7556
7557     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7558       if test "$GCC" = yes; then
7559         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7560         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'
7561         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7562       else
7563         allow_undefined_flag=' -expect_unresolved \*'
7564         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'
7565         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7566         $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'
7567
7568         # Both c and cxx compiler support -rpath directly
7569         hardcode_libdir_flag_spec='-rpath $libdir'
7570       fi
7571       hardcode_libdir_separator=:
7572       ;;
7573
7574     solaris*)
7575       no_undefined_flag=' -z text'
7576       if test "$GCC" = yes; then
7577         wlarc='${wl}'
7578         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7579         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7580           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7581       else
7582         wlarc=''
7583         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7584         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7585         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7586       fi
7587       hardcode_libdir_flag_spec='-R$libdir'
7588       hardcode_shlibpath_var=no
7589       case $host_os in
7590       solaris2.[0-5] | solaris2.[0-5].*) ;;
7591       *)
7592         # The compiler driver will combine linker options so we
7593         # cannot just pass the convience library names through
7594         # without $wl, iff we do not link with $LD.
7595         # Luckily, gcc supports the same syntax we need for Sun Studio.
7596         # Supported since Solaris 2.6 (maybe 2.5.1?)
7597         case $wlarc in
7598         '')
7599           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7600         *)
7601           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' ;;
7602         esac ;;
7603       esac
7604       link_all_deplibs=yes
7605       ;;
7606
7607     sunos4*)
7608       if test "x$host_vendor" = xsequent; then
7609         # Use $CC to link under sequent, because it throws in some extra .o
7610         # files that make .init and .fini sections work.
7611         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7612       else
7613         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7614       fi
7615       hardcode_libdir_flag_spec='-L$libdir'
7616       hardcode_direct=yes
7617       hardcode_minus_L=yes
7618       hardcode_shlibpath_var=no
7619       ;;
7620
7621     sysv4)
7622       case $host_vendor in
7623         sni)
7624           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7625           hardcode_direct=yes # is this really true???
7626         ;;
7627         siemens)
7628           ## LD is ld it makes a PLAMLIB
7629           ## CC just makes a GrossModule.
7630           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7631           reload_cmds='$CC -r -o $output$reload_objs'
7632           hardcode_direct=no
7633         ;;
7634         motorola)
7635           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7636           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7637         ;;
7638       esac
7639       runpath_var='LD_RUN_PATH'
7640       hardcode_shlibpath_var=no
7641       ;;
7642
7643     sysv4.3*)
7644       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7645       hardcode_shlibpath_var=no
7646       export_dynamic_flag_spec='-Bexport'
7647       ;;
7648
7649     sysv4*MP*)
7650       if test -d /usr/nec; then
7651         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7652         hardcode_shlibpath_var=no
7653         runpath_var=LD_RUN_PATH
7654         hardcode_runpath_var=yes
7655         ld_shlibs=yes
7656       fi
7657       ;;
7658
7659     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7660       no_undefined_flag='${wl}-z,text'
7661       archive_cmds_need_lc=no
7662       hardcode_shlibpath_var=no
7663       runpath_var='LD_RUN_PATH'
7664
7665       if test "$GCC" = yes; then
7666         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7667         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7668       else
7669         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7670         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7671       fi
7672       ;;
7673
7674     sysv5* | sco3.2v5* | sco5v6*)
7675       # Note: We can NOT use -z defs as we might desire, because we do not
7676       # link with -lc, and that would cause any symbols used from libc to
7677       # always be unresolved, which means just about no library would
7678       # ever link correctly.  If we're not using GNU ld we use -z text
7679       # though, which does catch some bad symbols but isn't as heavy-handed
7680       # as -z defs.
7681       no_undefined_flag='${wl}-z,text'
7682       allow_undefined_flag='${wl}-z,nodefs'
7683       archive_cmds_need_lc=no
7684       hardcode_shlibpath_var=no
7685       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7686       hardcode_libdir_separator=':'
7687       link_all_deplibs=yes
7688       export_dynamic_flag_spec='${wl}-Bexport'
7689       runpath_var='LD_RUN_PATH'
7690
7691       if test "$GCC" = yes; then
7692         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7693         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7694       else
7695         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7696         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7697       fi
7698       ;;
7699
7700     uts4*)
7701       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7702       hardcode_libdir_flag_spec='-L$libdir'
7703       hardcode_shlibpath_var=no
7704       ;;
7705
7706     *)
7707       ld_shlibs=no
7708       ;;
7709     esac
7710   fi
7711
7712 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7713 echo "${ECHO_T}$ld_shlibs" >&6
7714 test "$ld_shlibs" = no && can_build_shared=no
7715
7716 #
7717 # Do we need to explicitly link libc?
7718 #
7719 case "x$archive_cmds_need_lc" in
7720 x|xyes)
7721   # Assume -lc should be added
7722   archive_cmds_need_lc=yes
7723
7724   if test "$enable_shared" = yes && test "$GCC" = yes; then
7725     case $archive_cmds in
7726     *'~'*)
7727       # FIXME: we may have to deal with multi-command sequences.
7728       ;;
7729     '$CC '*)
7730       # Test whether the compiler implicitly links with -lc since on some
7731       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7732       # to ld, don't add -lc before -lgcc.
7733       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7734 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7735       $rm conftest*
7736       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7737
7738       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7739   (eval $ac_compile) 2>&5
7740   ac_status=$?
7741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742   (exit $ac_status); } 2>conftest.err; then
7743         soname=conftest
7744         lib=conftest
7745         libobjs=conftest.$ac_objext
7746         deplibs=
7747         wl=$lt_prog_compiler_wl
7748         pic_flag=$lt_prog_compiler_pic
7749         compiler_flags=-v
7750         linker_flags=-v
7751         verstring=
7752         output_objdir=.
7753         libname=conftest
7754         lt_save_allow_undefined_flag=$allow_undefined_flag
7755         allow_undefined_flag=
7756         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7757   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7758   ac_status=$?
7759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760   (exit $ac_status); }
7761         then
7762           archive_cmds_need_lc=no
7763         else
7764           archive_cmds_need_lc=yes
7765         fi
7766         allow_undefined_flag=$lt_save_allow_undefined_flag
7767       else
7768         cat conftest.err 1>&5
7769       fi
7770       $rm conftest*
7771       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7772 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7773       ;;
7774     esac
7775   fi
7776   ;;
7777 esac
7778
7779 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7780 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7781 library_names_spec=
7782 libname_spec='lib$name'
7783 soname_spec=
7784 shrext_cmds=".so"
7785 postinstall_cmds=
7786 postuninstall_cmds=
7787 finish_cmds=
7788 finish_eval=
7789 shlibpath_var=
7790 shlibpath_overrides_runpath=unknown
7791 version_type=none
7792 dynamic_linker="$host_os ld.so"
7793 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7794 if test "$GCC" = yes; then
7795   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7796   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7797     # if the path contains ";" then we assume it to be the separator
7798     # otherwise default to the standard path separator (i.e. ":") - it is
7799     # assumed that no part of a normal pathname contains ";" but that should
7800     # okay in the real world where ";" in dirpaths is itself problematic.
7801     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7802   else
7803     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7804   fi
7805 else
7806   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7807 fi
7808 need_lib_prefix=unknown
7809 hardcode_into_libs=no
7810
7811 # when you set need_version to no, make sure it does not cause -set_version
7812 # flags to be left without arguments
7813 need_version=unknown
7814
7815 case $host_os in
7816 aix3*)
7817   version_type=linux
7818   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7819   shlibpath_var=LIBPATH
7820
7821   # AIX 3 has no versioning support, so we append a major version to the name.
7822   soname_spec='${libname}${release}${shared_ext}$major'
7823   ;;
7824
7825 aix4* | aix5*)
7826   version_type=linux
7827   need_lib_prefix=no
7828   need_version=no
7829   hardcode_into_libs=yes
7830   if test "$host_cpu" = ia64; then
7831     # AIX 5 supports IA64
7832     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7833     shlibpath_var=LD_LIBRARY_PATH
7834   else
7835     # With GCC up to 2.95.x, collect2 would create an import file
7836     # for dependence libraries.  The import file would start with
7837     # the line `#! .'.  This would cause the generated library to
7838     # depend on `.', always an invalid library.  This was fixed in
7839     # development snapshots of GCC prior to 3.0.
7840     case $host_os in
7841       aix4 | aix4.[01] | aix4.[01].*)
7842       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7843            echo ' yes '
7844            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7845         :
7846       else
7847         can_build_shared=no
7848       fi
7849       ;;
7850     esac
7851     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7852     # soname into executable. Probably we can add versioning support to
7853     # collect2, so additional links can be useful in future.
7854     if test "$aix_use_runtimelinking" = yes; then
7855       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7856       # instead of lib<name>.a to let people know that these are not
7857       # typical AIX shared libraries.
7858       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7859     else
7860       # We preserve .a as extension for shared libraries through AIX4.2
7861       # and later when we are not doing run time linking.
7862       library_names_spec='${libname}${release}.a $libname.a'
7863       soname_spec='${libname}${release}${shared_ext}$major'
7864     fi
7865     shlibpath_var=LIBPATH
7866   fi
7867   ;;
7868
7869 amigaos*)
7870   library_names_spec='$libname.ixlibrary $libname.a'
7871   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7872   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'
7873   ;;
7874
7875 beos*)
7876   library_names_spec='${libname}${shared_ext}'
7877   dynamic_linker="$host_os ld.so"
7878   shlibpath_var=LIBRARY_PATH
7879   ;;
7880
7881 bsdi[45]*)
7882   version_type=linux
7883   need_version=no
7884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7885   soname_spec='${libname}${release}${shared_ext}$major'
7886   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7887   shlibpath_var=LD_LIBRARY_PATH
7888   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7889   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7890   # the default ld.so.conf also contains /usr/contrib/lib and
7891   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7892   # libtool to hard-code these into programs
7893   ;;
7894
7895 cygwin* | mingw* | pw32*)
7896   version_type=windows
7897   shrext_cmds=".dll"
7898   need_version=no
7899   need_lib_prefix=no
7900
7901   case $GCC,$host_os in
7902   yes,cygwin* | yes,mingw* | yes,pw32*)
7903     library_names_spec='$libname.dll.a'
7904     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7905     postinstall_cmds='base_file=`basename \${file}`~
7906       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7907       dldir=$destdir/`dirname \$dlpath`~
7908       test -d \$dldir || mkdir -p \$dldir~
7909       $install_prog $dir/$dlname \$dldir/$dlname~
7910       chmod a+x \$dldir/$dlname'
7911     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7912       dlpath=$dir/\$dldll~
7913        $rm \$dlpath'
7914     shlibpath_overrides_runpath=yes
7915
7916     case $host_os in
7917     cygwin*)
7918       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7919       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7920       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7921       ;;
7922     mingw*)
7923       # MinGW DLLs use traditional 'lib' prefix
7924       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7925       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7926       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7927         # It is most probably a Windows format PATH printed by
7928         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7929         # path with ; separators, and with drive letters. We can handle the
7930         # drive letters (cygwin fileutils understands them), so leave them,
7931         # especially as we might pass files found there to a mingw objdump,
7932         # which wouldn't understand a cygwinified path. Ahh.
7933         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7934       else
7935         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7936       fi
7937       ;;
7938     pw32*)
7939       # pw32 DLLs use 'pw' prefix rather than 'lib'
7940       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7941       ;;
7942     esac
7943     ;;
7944
7945   *)
7946     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7947     ;;
7948   esac
7949   dynamic_linker='Win32 ld.exe'
7950   # FIXME: first we should search . and the directory the executable is in
7951   shlibpath_var=PATH
7952   ;;
7953
7954 darwin* | rhapsody*)
7955   dynamic_linker="$host_os dyld"
7956   version_type=darwin
7957   need_lib_prefix=no
7958   need_version=no
7959   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7960   soname_spec='${libname}${release}${major}$shared_ext'
7961   shlibpath_overrides_runpath=yes
7962   shlibpath_var=DYLD_LIBRARY_PATH
7963   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7964   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7965   if test "$GCC" = yes; then
7966     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"`
7967   else
7968     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7969   fi
7970   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7971   ;;
7972
7973 dgux*)
7974   version_type=linux
7975   need_lib_prefix=no
7976   need_version=no
7977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7978   soname_spec='${libname}${release}${shared_ext}$major'
7979   shlibpath_var=LD_LIBRARY_PATH
7980   ;;
7981
7982 freebsd1*)
7983   dynamic_linker=no
7984   ;;
7985
7986 kfreebsd*-gnu)
7987   version_type=linux
7988   need_lib_prefix=no
7989   need_version=no
7990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7991   soname_spec='${libname}${release}${shared_ext}$major'
7992   shlibpath_var=LD_LIBRARY_PATH
7993   shlibpath_overrides_runpath=no
7994   hardcode_into_libs=yes
7995   dynamic_linker='GNU ld.so'
7996   ;;
7997
7998 freebsd* | dragonfly*)
7999   # DragonFly does not have aout.  When/if they implement a new
8000   # versioning mechanism, adjust this.
8001   if test -x /usr/bin/objformat; then
8002     objformat=`/usr/bin/objformat`
8003   else
8004     case $host_os in
8005     freebsd[123]*) objformat=aout ;;
8006     *) objformat=elf ;;
8007     esac
8008   fi
8009   version_type=freebsd-$objformat
8010   case $version_type in
8011     freebsd-elf*)
8012       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8013       need_version=no
8014       need_lib_prefix=no
8015       ;;
8016     freebsd-*)
8017       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8018       need_version=yes
8019       ;;
8020   esac
8021   shlibpath_var=LD_LIBRARY_PATH
8022   case $host_os in
8023   freebsd2*)
8024     shlibpath_overrides_runpath=yes
8025     ;;
8026   freebsd3.[01]* | freebsdelf3.[01]*)
8027     shlibpath_overrides_runpath=yes
8028     hardcode_into_libs=yes
8029     ;;
8030   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8031   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8032     shlibpath_overrides_runpath=no
8033     hardcode_into_libs=yes
8034     ;;
8035   freebsd*) # from 4.6 on
8036     shlibpath_overrides_runpath=yes
8037     hardcode_into_libs=yes
8038     ;;
8039   esac
8040   ;;
8041
8042 gnu*)
8043   version_type=linux
8044   need_lib_prefix=no
8045   need_version=no
8046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8047   soname_spec='${libname}${release}${shared_ext}$major'
8048   shlibpath_var=LD_LIBRARY_PATH
8049   hardcode_into_libs=yes
8050   ;;
8051
8052 hpux9* | hpux10* | hpux11*)
8053   # Give a soname corresponding to the major version so that dld.sl refuses to
8054   # link against other versions.
8055   version_type=sunos
8056   need_lib_prefix=no
8057   need_version=no
8058   case $host_cpu in
8059   ia64*)
8060     shrext_cmds='.so'
8061     hardcode_into_libs=yes
8062     dynamic_linker="$host_os dld.so"
8063     shlibpath_var=LD_LIBRARY_PATH
8064     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8065     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8066     soname_spec='${libname}${release}${shared_ext}$major'
8067     if test "X$HPUX_IA64_MODE" = X32; then
8068       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8069     else
8070       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8071     fi
8072     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8073     ;;
8074    hppa*64*)
8075      shrext_cmds='.sl'
8076      hardcode_into_libs=yes
8077      dynamic_linker="$host_os dld.sl"
8078      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8079      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8080      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8081      soname_spec='${libname}${release}${shared_ext}$major'
8082      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8083      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8084      ;;
8085    *)
8086     shrext_cmds='.sl'
8087     dynamic_linker="$host_os dld.sl"
8088     shlibpath_var=SHLIB_PATH
8089     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8090     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8091     soname_spec='${libname}${release}${shared_ext}$major'
8092     ;;
8093   esac
8094   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8095   postinstall_cmds='chmod 555 $lib'
8096   ;;
8097
8098 interix3*)
8099   version_type=linux
8100   need_lib_prefix=no
8101   need_version=no
8102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8103   soname_spec='${libname}${release}${shared_ext}$major'
8104   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8105   shlibpath_var=LD_LIBRARY_PATH
8106   shlibpath_overrides_runpath=no
8107   hardcode_into_libs=yes
8108   ;;
8109
8110 irix5* | irix6* | nonstopux*)
8111   case $host_os in
8112     nonstopux*) version_type=nonstopux ;;
8113     *)
8114         if test "$lt_cv_prog_gnu_ld" = yes; then
8115                 version_type=linux
8116         else
8117                 version_type=irix
8118         fi ;;
8119   esac
8120   need_lib_prefix=no
8121   need_version=no
8122   soname_spec='${libname}${release}${shared_ext}$major'
8123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8124   case $host_os in
8125   irix5* | nonstopux*)
8126     libsuff= shlibsuff=
8127     ;;
8128   *)
8129     case $LD in # libtool.m4 will add one of these switches to LD
8130     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8131       libsuff= shlibsuff= libmagic=32-bit;;
8132     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8133       libsuff=32 shlibsuff=N32 libmagic=N32;;
8134     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8135       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8136     *) libsuff= shlibsuff= libmagic=never-match;;
8137     esac
8138     ;;
8139   esac
8140   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8141   shlibpath_overrides_runpath=no
8142   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8143   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8144   hardcode_into_libs=yes
8145   ;;
8146
8147 # No shared lib support for Linux oldld, aout, or coff.
8148 linux*oldld* | linux*aout* | linux*coff*)
8149   dynamic_linker=no
8150   ;;
8151
8152 # This must be Linux ELF.
8153 linux*)
8154   version_type=linux
8155   need_lib_prefix=no
8156   need_version=no
8157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8158   soname_spec='${libname}${release}${shared_ext}$major'
8159   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8160   shlibpath_var=LD_LIBRARY_PATH
8161   shlibpath_overrides_runpath=no
8162   # This implies no fast_install, which is unacceptable.
8163   # Some rework will be needed to allow for fast_install
8164   # before this can be enabled.
8165   hardcode_into_libs=yes
8166
8167   # find out which ABI we are using
8168   libsuff=
8169   case "$host_cpu" in
8170   x86_64*|s390x*|powerpc64*)
8171     echo '#line 8171 "configure"' > conftest.$ac_ext
8172     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8173   (eval $ac_compile) 2>&5
8174   ac_status=$?
8175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176   (exit $ac_status); }; then
8177       case `/usr/bin/file conftest.$ac_objext` in
8178       *64-bit*)
8179         libsuff=64
8180         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8181         ;;
8182       esac
8183     fi
8184     rm -rf conftest*
8185     ;;
8186   esac
8187
8188   # Append ld.so.conf contents to the search path
8189   if test -f /etc/ld.so.conf; then
8190     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8191     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8192   fi
8193
8194   # We used to test for /lib/ld.so.1 and disable shared libraries on
8195   # powerpc, because MkLinux only supported shared libraries with the
8196   # GNU dynamic linker.  Since this was broken with cross compilers,
8197   # most powerpc-linux boxes support dynamic linking these days and
8198   # people can always --disable-shared, the test was removed, and we
8199   # assume the GNU/Linux dynamic linker is in use.
8200   dynamic_linker='GNU/Linux ld.so'
8201   ;;
8202
8203 knetbsd*-gnu)
8204   version_type=linux
8205   need_lib_prefix=no
8206   need_version=no
8207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8208   soname_spec='${libname}${release}${shared_ext}$major'
8209   shlibpath_var=LD_LIBRARY_PATH
8210   shlibpath_overrides_runpath=no
8211   hardcode_into_libs=yes
8212   dynamic_linker='GNU ld.so'
8213   ;;
8214
8215 netbsd*)
8216   version_type=sunos
8217   need_lib_prefix=no
8218   need_version=no
8219   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8220     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8221     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8222     dynamic_linker='NetBSD (a.out) ld.so'
8223   else
8224     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8225     soname_spec='${libname}${release}${shared_ext}$major'
8226     dynamic_linker='NetBSD ld.elf_so'
8227   fi
8228   shlibpath_var=LD_LIBRARY_PATH
8229   shlibpath_overrides_runpath=yes
8230   hardcode_into_libs=yes
8231   ;;
8232
8233 newsos6)
8234   version_type=linux
8235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8236   shlibpath_var=LD_LIBRARY_PATH
8237   shlibpath_overrides_runpath=yes
8238   ;;
8239
8240 nto-qnx*)
8241   version_type=linux
8242   need_lib_prefix=no
8243   need_version=no
8244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8245   soname_spec='${libname}${release}${shared_ext}$major'
8246   shlibpath_var=LD_LIBRARY_PATH
8247   shlibpath_overrides_runpath=yes
8248   ;;
8249
8250 openbsd*)
8251   version_type=sunos
8252   sys_lib_dlsearch_path_spec="/usr/lib"
8253   need_lib_prefix=no
8254   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8255   case $host_os in
8256     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8257     *)                         need_version=no  ;;
8258   esac
8259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8260   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8261   shlibpath_var=LD_LIBRARY_PATH
8262   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8263     case $host_os in
8264       openbsd2.[89] | openbsd2.[89].*)
8265         shlibpath_overrides_runpath=no
8266         ;;
8267       *)
8268         shlibpath_overrides_runpath=yes
8269         ;;
8270       esac
8271   else
8272     shlibpath_overrides_runpath=yes
8273   fi
8274   ;;
8275
8276 os2*)
8277   libname_spec='$name'
8278   shrext_cmds=".dll"
8279   need_lib_prefix=no
8280   library_names_spec='$libname${shared_ext} $libname.a'
8281   dynamic_linker='OS/2 ld.exe'
8282   shlibpath_var=LIBPATH
8283   ;;
8284
8285 osf3* | osf4* | osf5*)
8286   version_type=osf
8287   need_lib_prefix=no
8288   need_version=no
8289   soname_spec='${libname}${release}${shared_ext}$major'
8290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8291   shlibpath_var=LD_LIBRARY_PATH
8292   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8293   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8294   ;;
8295
8296 solaris*)
8297   version_type=linux
8298   need_lib_prefix=no
8299   need_version=no
8300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8301   soname_spec='${libname}${release}${shared_ext}$major'
8302   shlibpath_var=LD_LIBRARY_PATH
8303   shlibpath_overrides_runpath=yes
8304   hardcode_into_libs=yes
8305   # ldd complains unless libraries are executable
8306   postinstall_cmds='chmod +x $lib'
8307   ;;
8308
8309 sunos4*)
8310   version_type=sunos
8311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8312   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8313   shlibpath_var=LD_LIBRARY_PATH
8314   shlibpath_overrides_runpath=yes
8315   if test "$with_gnu_ld" = yes; then
8316     need_lib_prefix=no
8317   fi
8318   need_version=yes
8319   ;;
8320
8321 sysv4 | sysv4.3*)
8322   version_type=linux
8323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8324   soname_spec='${libname}${release}${shared_ext}$major'
8325   shlibpath_var=LD_LIBRARY_PATH
8326   case $host_vendor in
8327     sni)
8328       shlibpath_overrides_runpath=no
8329       need_lib_prefix=no
8330       export_dynamic_flag_spec='${wl}-Blargedynsym'
8331       runpath_var=LD_RUN_PATH
8332       ;;
8333     siemens)
8334       need_lib_prefix=no
8335       ;;
8336     motorola)
8337       need_lib_prefix=no
8338       need_version=no
8339       shlibpath_overrides_runpath=no
8340       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8341       ;;
8342   esac
8343   ;;
8344
8345 sysv4*MP*)
8346   if test -d /usr/nec ;then
8347     version_type=linux
8348     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8349     soname_spec='$libname${shared_ext}.$major'
8350     shlibpath_var=LD_LIBRARY_PATH
8351   fi
8352   ;;
8353
8354 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8355   version_type=freebsd-elf
8356   need_lib_prefix=no
8357   need_version=no
8358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8359   soname_spec='${libname}${release}${shared_ext}$major'
8360   shlibpath_var=LD_LIBRARY_PATH
8361   hardcode_into_libs=yes
8362   if test "$with_gnu_ld" = yes; then
8363     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8364     shlibpath_overrides_runpath=no
8365   else
8366     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8367     shlibpath_overrides_runpath=yes
8368     case $host_os in
8369       sco3.2v5*)
8370         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8371         ;;
8372     esac
8373   fi
8374   sys_lib_dlsearch_path_spec='/usr/lib'
8375   ;;
8376
8377 uts4*)
8378   version_type=linux
8379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8380   soname_spec='${libname}${release}${shared_ext}$major'
8381   shlibpath_var=LD_LIBRARY_PATH
8382   ;;
8383
8384 *)
8385   dynamic_linker=no
8386   ;;
8387 esac
8388 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8389 echo "${ECHO_T}$dynamic_linker" >&6
8390 test "$dynamic_linker" = no && can_build_shared=no
8391
8392 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8393 if test "$GCC" = yes; then
8394   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8395 fi
8396
8397 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8398 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8399 hardcode_action=
8400 if test -n "$hardcode_libdir_flag_spec" || \
8401    test -n "$runpath_var" || \
8402    test "X$hardcode_automatic" = "Xyes" ; then
8403
8404   # We can hardcode non-existant directories.
8405   if test "$hardcode_direct" != no &&
8406      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8407      # have to relink, otherwise we might link with an installed library
8408      # when we should be linking with a yet-to-be-installed one
8409      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8410      test "$hardcode_minus_L" != no; then
8411     # Linking always hardcodes the temporary library directory.
8412     hardcode_action=relink
8413   else
8414     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8415     hardcode_action=immediate
8416   fi
8417 else
8418   # We cannot hardcode anything, or else we can only hardcode existing
8419   # directories.
8420   hardcode_action=unsupported
8421 fi
8422 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8423 echo "${ECHO_T}$hardcode_action" >&6
8424
8425 if test "$hardcode_action" = relink; then
8426   # Fast installation is not supported
8427   enable_fast_install=no
8428 elif test "$shlibpath_overrides_runpath" = yes ||
8429      test "$enable_shared" = no; then
8430   # Fast installation is not necessary
8431   enable_fast_install=needless
8432 fi
8433
8434 striplib=
8435 old_striplib=
8436 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8437 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8438 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8439   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8440   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8441   echo "$as_me:$LINENO: result: yes" >&5
8442 echo "${ECHO_T}yes" >&6
8443 else
8444 # FIXME - insert some real tests, host_os isn't really good enough
8445   case $host_os in
8446    darwin*)
8447        if test -n "$STRIP" ; then
8448          striplib="$STRIP -x"
8449          echo "$as_me:$LINENO: result: yes" >&5
8450 echo "${ECHO_T}yes" >&6
8451        else
8452   echo "$as_me:$LINENO: result: no" >&5
8453 echo "${ECHO_T}no" >&6
8454 fi
8455        ;;
8456    *)
8457   echo "$as_me:$LINENO: result: no" >&5
8458 echo "${ECHO_T}no" >&6
8459     ;;
8460   esac
8461 fi
8462
8463 if test "x$enable_dlopen" != xyes; then
8464   enable_dlopen=unknown
8465   enable_dlopen_self=unknown
8466   enable_dlopen_self_static=unknown
8467 else
8468   lt_cv_dlopen=no
8469   lt_cv_dlopen_libs=
8470
8471   case $host_os in
8472   beos*)
8473     lt_cv_dlopen="load_add_on"
8474     lt_cv_dlopen_libs=
8475     lt_cv_dlopen_self=yes
8476     ;;
8477
8478   mingw* | pw32*)
8479     lt_cv_dlopen="LoadLibrary"
8480     lt_cv_dlopen_libs=
8481    ;;
8482
8483   cygwin*)
8484     lt_cv_dlopen="dlopen"
8485     lt_cv_dlopen_libs=
8486    ;;
8487
8488   darwin*)
8489   # if libdl is installed we need to link against it
8490     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8491 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8492 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8493   echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495   ac_check_lib_save_LIBS=$LIBS
8496 LIBS="-ldl  $LIBS"
8497 cat >conftest.$ac_ext <<_ACEOF
8498 /* confdefs.h.  */
8499 _ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h.  */
8503
8504 /* Override any gcc2 internal prototype to avoid an error.  */
8505 #ifdef __cplusplus
8506 extern "C"
8507 #endif
8508 /* We use char because int might match the return type of a gcc2
8509    builtin and then its argument prototype would still apply.  */
8510 char dlopen ();
8511 int
8512 main ()
8513 {
8514 dlopen ();
8515   ;
8516   return 0;
8517 }
8518 _ACEOF
8519 rm -f conftest.$ac_objext conftest$ac_exeext
8520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8521   (eval $ac_link) 2>conftest.er1
8522   ac_status=$?
8523   grep -v '^ *+' conftest.er1 >conftest.err
8524   rm -f conftest.er1
8525   cat conftest.err >&5
8526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527   (exit $ac_status); } &&
8528          { ac_try='test -z "$ac_c_werror_flag"
8529                          || test ! -s conftest.err'
8530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8531   (eval $ac_try) 2>&5
8532   ac_status=$?
8533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534   (exit $ac_status); }; } &&
8535          { ac_try='test -s conftest$ac_exeext'
8536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537   (eval $ac_try) 2>&5
8538   ac_status=$?
8539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540   (exit $ac_status); }; }; then
8541   ac_cv_lib_dl_dlopen=yes
8542 else
8543   echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8545
8546 ac_cv_lib_dl_dlopen=no
8547 fi
8548 rm -f conftest.err conftest.$ac_objext \
8549       conftest$ac_exeext conftest.$ac_ext
8550 LIBS=$ac_check_lib_save_LIBS
8551 fi
8552 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8553 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8554 if test $ac_cv_lib_dl_dlopen = yes; then
8555   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8556 else
8557
8558     lt_cv_dlopen="dyld"
8559     lt_cv_dlopen_libs=
8560     lt_cv_dlopen_self=yes
8561
8562 fi
8563
8564    ;;
8565
8566   *)
8567     echo "$as_me:$LINENO: checking for shl_load" >&5
8568 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8569 if test "${ac_cv_func_shl_load+set}" = set; then
8570   echo $ECHO_N "(cached) $ECHO_C" >&6
8571 else
8572   cat >conftest.$ac_ext <<_ACEOF
8573 /* confdefs.h.  */
8574 _ACEOF
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h.  */
8578 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8579    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8580 #define shl_load innocuous_shl_load
8581
8582 /* System header to define __stub macros and hopefully few prototypes,
8583     which can conflict with char shl_load (); below.
8584     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8585     <limits.h> exists even on freestanding compilers.  */
8586
8587 #ifdef __STDC__
8588 # include <limits.h>
8589 #else
8590 # include <assert.h>
8591 #endif
8592
8593 #undef shl_load
8594
8595 /* Override any gcc2 internal prototype to avoid an error.  */
8596 #ifdef __cplusplus
8597 extern "C"
8598 {
8599 #endif
8600 /* We use char because int might match the return type of a gcc2
8601    builtin and then its argument prototype would still apply.  */
8602 char shl_load ();
8603 /* The GNU C library defines this for functions which it implements
8604     to always fail with ENOSYS.  Some functions are actually named
8605     something starting with __ and the normal name is an alias.  */
8606 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8607 choke me
8608 #else
8609 char (*f) () = shl_load;
8610 #endif
8611 #ifdef __cplusplus
8612 }
8613 #endif
8614
8615 int
8616 main ()
8617 {
8618 return f != shl_load;
8619   ;
8620   return 0;
8621 }
8622 _ACEOF
8623 rm -f conftest.$ac_objext conftest$ac_exeext
8624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8625   (eval $ac_link) 2>conftest.er1
8626   ac_status=$?
8627   grep -v '^ *+' conftest.er1 >conftest.err
8628   rm -f conftest.er1
8629   cat conftest.err >&5
8630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631   (exit $ac_status); } &&
8632          { ac_try='test -z "$ac_c_werror_flag"
8633                          || test ! -s conftest.err'
8634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635   (eval $ac_try) 2>&5
8636   ac_status=$?
8637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638   (exit $ac_status); }; } &&
8639          { ac_try='test -s conftest$ac_exeext'
8640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641   (eval $ac_try) 2>&5
8642   ac_status=$?
8643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644   (exit $ac_status); }; }; then
8645   ac_cv_func_shl_load=yes
8646 else
8647   echo "$as_me: failed program was:" >&5
8648 sed 's/^/| /' conftest.$ac_ext >&5
8649
8650 ac_cv_func_shl_load=no
8651 fi
8652 rm -f conftest.err conftest.$ac_objext \
8653       conftest$ac_exeext conftest.$ac_ext
8654 fi
8655 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8656 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8657 if test $ac_cv_func_shl_load = yes; then
8658   lt_cv_dlopen="shl_load"
8659 else
8660   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8661 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8662 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8663   echo $ECHO_N "(cached) $ECHO_C" >&6
8664 else
8665   ac_check_lib_save_LIBS=$LIBS
8666 LIBS="-ldld  $LIBS"
8667 cat >conftest.$ac_ext <<_ACEOF
8668 /* confdefs.h.  */
8669 _ACEOF
8670 cat confdefs.h >>conftest.$ac_ext
8671 cat >>conftest.$ac_ext <<_ACEOF
8672 /* end confdefs.h.  */
8673
8674 /* Override any gcc2 internal prototype to avoid an error.  */
8675 #ifdef __cplusplus
8676 extern "C"
8677 #endif
8678 /* We use char because int might match the return type of a gcc2
8679    builtin and then its argument prototype would still apply.  */
8680 char shl_load ();
8681 int
8682 main ()
8683 {
8684 shl_load ();
8685   ;
8686   return 0;
8687 }
8688 _ACEOF
8689 rm -f conftest.$ac_objext conftest$ac_exeext
8690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8691   (eval $ac_link) 2>conftest.er1
8692   ac_status=$?
8693   grep -v '^ *+' conftest.er1 >conftest.err
8694   rm -f conftest.er1
8695   cat conftest.err >&5
8696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697   (exit $ac_status); } &&
8698          { ac_try='test -z "$ac_c_werror_flag"
8699                          || test ! -s conftest.err'
8700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701   (eval $ac_try) 2>&5
8702   ac_status=$?
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); }; } &&
8705          { ac_try='test -s conftest$ac_exeext'
8706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707   (eval $ac_try) 2>&5
8708   ac_status=$?
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); }; }; then
8711   ac_cv_lib_dld_shl_load=yes
8712 else
8713   echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8715
8716 ac_cv_lib_dld_shl_load=no
8717 fi
8718 rm -f conftest.err conftest.$ac_objext \
8719       conftest$ac_exeext conftest.$ac_ext
8720 LIBS=$ac_check_lib_save_LIBS
8721 fi
8722 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8723 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8724 if test $ac_cv_lib_dld_shl_load = yes; then
8725   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8726 else
8727   echo "$as_me:$LINENO: checking for dlopen" >&5
8728 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8729 if test "${ac_cv_func_dlopen+set}" = set; then
8730   echo $ECHO_N "(cached) $ECHO_C" >&6
8731 else
8732   cat >conftest.$ac_ext <<_ACEOF
8733 /* confdefs.h.  */
8734 _ACEOF
8735 cat confdefs.h >>conftest.$ac_ext
8736 cat >>conftest.$ac_ext <<_ACEOF
8737 /* end confdefs.h.  */
8738 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8739    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8740 #define dlopen innocuous_dlopen
8741
8742 /* System header to define __stub macros and hopefully few prototypes,
8743     which can conflict with char dlopen (); below.
8744     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8745     <limits.h> exists even on freestanding compilers.  */
8746
8747 #ifdef __STDC__
8748 # include <limits.h>
8749 #else
8750 # include <assert.h>
8751 #endif
8752
8753 #undef dlopen
8754
8755 /* Override any gcc2 internal prototype to avoid an error.  */
8756 #ifdef __cplusplus
8757 extern "C"
8758 {
8759 #endif
8760 /* We use char because int might match the return type of a gcc2
8761    builtin and then its argument prototype would still apply.  */
8762 char dlopen ();
8763 /* The GNU C library defines this for functions which it implements
8764     to always fail with ENOSYS.  Some functions are actually named
8765     something starting with __ and the normal name is an alias.  */
8766 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8767 choke me
8768 #else
8769 char (*f) () = dlopen;
8770 #endif
8771 #ifdef __cplusplus
8772 }
8773 #endif
8774
8775 int
8776 main ()
8777 {
8778 return f != dlopen;
8779   ;
8780   return 0;
8781 }
8782 _ACEOF
8783 rm -f conftest.$ac_objext conftest$ac_exeext
8784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8785   (eval $ac_link) 2>conftest.er1
8786   ac_status=$?
8787   grep -v '^ *+' conftest.er1 >conftest.err
8788   rm -f conftest.er1
8789   cat conftest.err >&5
8790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791   (exit $ac_status); } &&
8792          { ac_try='test -z "$ac_c_werror_flag"
8793                          || test ! -s conftest.err'
8794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795   (eval $ac_try) 2>&5
8796   ac_status=$?
8797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798   (exit $ac_status); }; } &&
8799          { ac_try='test -s conftest$ac_exeext'
8800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801   (eval $ac_try) 2>&5
8802   ac_status=$?
8803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804   (exit $ac_status); }; }; then
8805   ac_cv_func_dlopen=yes
8806 else
8807   echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8809
8810 ac_cv_func_dlopen=no
8811 fi
8812 rm -f conftest.err conftest.$ac_objext \
8813       conftest$ac_exeext conftest.$ac_ext
8814 fi
8815 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8816 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8817 if test $ac_cv_func_dlopen = yes; then
8818   lt_cv_dlopen="dlopen"
8819 else
8820   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8821 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8822 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8823   echo $ECHO_N "(cached) $ECHO_C" >&6
8824 else
8825   ac_check_lib_save_LIBS=$LIBS
8826 LIBS="-ldl  $LIBS"
8827 cat >conftest.$ac_ext <<_ACEOF
8828 /* confdefs.h.  */
8829 _ACEOF
8830 cat confdefs.h >>conftest.$ac_ext
8831 cat >>conftest.$ac_ext <<_ACEOF
8832 /* end confdefs.h.  */
8833
8834 /* Override any gcc2 internal prototype to avoid an error.  */
8835 #ifdef __cplusplus
8836 extern "C"
8837 #endif
8838 /* We use char because int might match the return type of a gcc2
8839    builtin and then its argument prototype would still apply.  */
8840 char dlopen ();
8841 int
8842 main ()
8843 {
8844 dlopen ();
8845   ;
8846   return 0;
8847 }
8848 _ACEOF
8849 rm -f conftest.$ac_objext conftest$ac_exeext
8850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8851   (eval $ac_link) 2>conftest.er1
8852   ac_status=$?
8853   grep -v '^ *+' conftest.er1 >conftest.err
8854   rm -f conftest.er1
8855   cat conftest.err >&5
8856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857   (exit $ac_status); } &&
8858          { ac_try='test -z "$ac_c_werror_flag"
8859                          || test ! -s conftest.err'
8860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861   (eval $ac_try) 2>&5
8862   ac_status=$?
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); }; } &&
8865          { ac_try='test -s conftest$ac_exeext'
8866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867   (eval $ac_try) 2>&5
8868   ac_status=$?
8869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870   (exit $ac_status); }; }; then
8871   ac_cv_lib_dl_dlopen=yes
8872 else
8873   echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8875
8876 ac_cv_lib_dl_dlopen=no
8877 fi
8878 rm -f conftest.err conftest.$ac_objext \
8879       conftest$ac_exeext conftest.$ac_ext
8880 LIBS=$ac_check_lib_save_LIBS
8881 fi
8882 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8883 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8884 if test $ac_cv_lib_dl_dlopen = yes; then
8885   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8886 else
8887   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8888 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8889 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8890   echo $ECHO_N "(cached) $ECHO_C" >&6
8891 else
8892   ac_check_lib_save_LIBS=$LIBS
8893 LIBS="-lsvld  $LIBS"
8894 cat >conftest.$ac_ext <<_ACEOF
8895 /* confdefs.h.  */
8896 _ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h.  */
8900
8901 /* Override any gcc2 internal prototype to avoid an error.  */
8902 #ifdef __cplusplus
8903 extern "C"
8904 #endif
8905 /* We use char because int might match the return type of a gcc2
8906    builtin and then its argument prototype would still apply.  */
8907 char dlopen ();
8908 int
8909 main ()
8910 {
8911 dlopen ();
8912   ;
8913   return 0;
8914 }
8915 _ACEOF
8916 rm -f conftest.$ac_objext conftest$ac_exeext
8917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8918   (eval $ac_link) 2>conftest.er1
8919   ac_status=$?
8920   grep -v '^ *+' conftest.er1 >conftest.err
8921   rm -f conftest.er1
8922   cat conftest.err >&5
8923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924   (exit $ac_status); } &&
8925          { ac_try='test -z "$ac_c_werror_flag"
8926                          || test ! -s conftest.err'
8927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928   (eval $ac_try) 2>&5
8929   ac_status=$?
8930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931   (exit $ac_status); }; } &&
8932          { ac_try='test -s conftest$ac_exeext'
8933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934   (eval $ac_try) 2>&5
8935   ac_status=$?
8936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937   (exit $ac_status); }; }; then
8938   ac_cv_lib_svld_dlopen=yes
8939 else
8940   echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8942
8943 ac_cv_lib_svld_dlopen=no
8944 fi
8945 rm -f conftest.err conftest.$ac_objext \
8946       conftest$ac_exeext conftest.$ac_ext
8947 LIBS=$ac_check_lib_save_LIBS
8948 fi
8949 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8950 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8951 if test $ac_cv_lib_svld_dlopen = yes; then
8952   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8953 else
8954   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8955 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8956 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8957   echo $ECHO_N "(cached) $ECHO_C" >&6
8958 else
8959   ac_check_lib_save_LIBS=$LIBS
8960 LIBS="-ldld  $LIBS"
8961 cat >conftest.$ac_ext <<_ACEOF
8962 /* confdefs.h.  */
8963 _ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h.  */
8967
8968 /* Override any gcc2 internal prototype to avoid an error.  */
8969 #ifdef __cplusplus
8970 extern "C"
8971 #endif
8972 /* We use char because int might match the return type of a gcc2
8973    builtin and then its argument prototype would still apply.  */
8974 char dld_link ();
8975 int
8976 main ()
8977 {
8978 dld_link ();
8979   ;
8980   return 0;
8981 }
8982 _ACEOF
8983 rm -f conftest.$ac_objext conftest$ac_exeext
8984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8985   (eval $ac_link) 2>conftest.er1
8986   ac_status=$?
8987   grep -v '^ *+' conftest.er1 >conftest.err
8988   rm -f conftest.er1
8989   cat conftest.err >&5
8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   (exit $ac_status); } &&
8992          { ac_try='test -z "$ac_c_werror_flag"
8993                          || test ! -s conftest.err'
8994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995   (eval $ac_try) 2>&5
8996   ac_status=$?
8997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998   (exit $ac_status); }; } &&
8999          { ac_try='test -s conftest$ac_exeext'
9000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001   (eval $ac_try) 2>&5
9002   ac_status=$?
9003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004   (exit $ac_status); }; }; then
9005   ac_cv_lib_dld_dld_link=yes
9006 else
9007   echo "$as_me: failed program was:" >&5
9008 sed 's/^/| /' conftest.$ac_ext >&5
9009
9010 ac_cv_lib_dld_dld_link=no
9011 fi
9012 rm -f conftest.err conftest.$ac_objext \
9013       conftest$ac_exeext conftest.$ac_ext
9014 LIBS=$ac_check_lib_save_LIBS
9015 fi
9016 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9017 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9018 if test $ac_cv_lib_dld_dld_link = yes; then
9019   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9020 fi
9021
9022
9023 fi
9024
9025
9026 fi
9027
9028
9029 fi
9030
9031
9032 fi
9033
9034
9035 fi
9036
9037     ;;
9038   esac
9039
9040   if test "x$lt_cv_dlopen" != xno; then
9041     enable_dlopen=yes
9042   else
9043     enable_dlopen=no
9044   fi
9045
9046   case $lt_cv_dlopen in
9047   dlopen)
9048     save_CPPFLAGS="$CPPFLAGS"
9049     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9050
9051     save_LDFLAGS="$LDFLAGS"
9052     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9053
9054     save_LIBS="$LIBS"
9055     LIBS="$lt_cv_dlopen_libs $LIBS"
9056
9057     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9058 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9059 if test "${lt_cv_dlopen_self+set}" = set; then
9060   echo $ECHO_N "(cached) $ECHO_C" >&6
9061 else
9062           if test "$cross_compiling" = yes; then :
9063   lt_cv_dlopen_self=cross
9064 else
9065   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9066   lt_status=$lt_dlunknown
9067   cat > conftest.$ac_ext <<EOF
9068 #line 9068 "configure"
9069 #include "confdefs.h"
9070
9071 #if HAVE_DLFCN_H
9072 #include <dlfcn.h>
9073 #endif
9074
9075 #include <stdio.h>
9076
9077 #ifdef RTLD_GLOBAL
9078 #  define LT_DLGLOBAL           RTLD_GLOBAL
9079 #else
9080 #  ifdef DL_GLOBAL
9081 #    define LT_DLGLOBAL         DL_GLOBAL
9082 #  else
9083 #    define LT_DLGLOBAL         0
9084 #  endif
9085 #endif
9086
9087 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9088    find out it does not work in some platform. */
9089 #ifndef LT_DLLAZY_OR_NOW
9090 #  ifdef RTLD_LAZY
9091 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9092 #  else
9093 #    ifdef DL_LAZY
9094 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9095 #    else
9096 #      ifdef RTLD_NOW
9097 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9098 #      else
9099 #        ifdef DL_NOW
9100 #          define LT_DLLAZY_OR_NOW      DL_NOW
9101 #        else
9102 #          define LT_DLLAZY_OR_NOW      0
9103 #        endif
9104 #      endif
9105 #    endif
9106 #  endif
9107 #endif
9108
9109 #ifdef __cplusplus
9110 extern "C" void exit (int);
9111 #endif
9112
9113 void fnord() { int i=42;}
9114 int main ()
9115 {
9116   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9117   int status = $lt_dlunknown;
9118
9119   if (self)
9120     {
9121       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9122       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9123       /* dlclose (self); */
9124     }
9125   else
9126     puts (dlerror ());
9127
9128     exit (status);
9129 }
9130 EOF
9131   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9132   (eval $ac_link) 2>&5
9133   ac_status=$?
9134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9136     (./conftest; exit; ) >&5 2>/dev/null
9137     lt_status=$?
9138     case x$lt_status in
9139       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9140       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9141       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9142     esac
9143   else :
9144     # compilation failed
9145     lt_cv_dlopen_self=no
9146   fi
9147 fi
9148 rm -fr conftest*
9149
9150
9151 fi
9152 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9153 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9154
9155     if test "x$lt_cv_dlopen_self" = xyes; then
9156       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9157       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9158 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9159 if test "${lt_cv_dlopen_self_static+set}" = set; then
9160   echo $ECHO_N "(cached) $ECHO_C" >&6
9161 else
9162           if test "$cross_compiling" = yes; then :
9163   lt_cv_dlopen_self_static=cross
9164 else
9165   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9166   lt_status=$lt_dlunknown
9167   cat > conftest.$ac_ext <<EOF
9168 #line 9168 "configure"
9169 #include "confdefs.h"
9170
9171 #if HAVE_DLFCN_H
9172 #include <dlfcn.h>
9173 #endif
9174
9175 #include <stdio.h>
9176
9177 #ifdef RTLD_GLOBAL
9178 #  define LT_DLGLOBAL           RTLD_GLOBAL
9179 #else
9180 #  ifdef DL_GLOBAL
9181 #    define LT_DLGLOBAL         DL_GLOBAL
9182 #  else
9183 #    define LT_DLGLOBAL         0
9184 #  endif
9185 #endif
9186
9187 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9188    find out it does not work in some platform. */
9189 #ifndef LT_DLLAZY_OR_NOW
9190 #  ifdef RTLD_LAZY
9191 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9192 #  else
9193 #    ifdef DL_LAZY
9194 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9195 #    else
9196 #      ifdef RTLD_NOW
9197 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9198 #      else
9199 #        ifdef DL_NOW
9200 #          define LT_DLLAZY_OR_NOW      DL_NOW
9201 #        else
9202 #          define LT_DLLAZY_OR_NOW      0
9203 #        endif
9204 #      endif
9205 #    endif
9206 #  endif
9207 #endif
9208
9209 #ifdef __cplusplus
9210 extern "C" void exit (int);
9211 #endif
9212
9213 void fnord() { int i=42;}
9214 int main ()
9215 {
9216   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9217   int status = $lt_dlunknown;
9218
9219   if (self)
9220     {
9221       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9222       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9223       /* dlclose (self); */
9224     }
9225   else
9226     puts (dlerror ());
9227
9228     exit (status);
9229 }
9230 EOF
9231   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9232   (eval $ac_link) 2>&5
9233   ac_status=$?
9234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9236     (./conftest; exit; ) >&5 2>/dev/null
9237     lt_status=$?
9238     case x$lt_status in
9239       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9240       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9241       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9242     esac
9243   else :
9244     # compilation failed
9245     lt_cv_dlopen_self_static=no
9246   fi
9247 fi
9248 rm -fr conftest*
9249
9250
9251 fi
9252 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9253 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9254     fi
9255
9256     CPPFLAGS="$save_CPPFLAGS"
9257     LDFLAGS="$save_LDFLAGS"
9258     LIBS="$save_LIBS"
9259     ;;
9260   esac
9261
9262   case $lt_cv_dlopen_self in
9263   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9264   *) enable_dlopen_self=unknown ;;
9265   esac
9266
9267   case $lt_cv_dlopen_self_static in
9268   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9269   *) enable_dlopen_self_static=unknown ;;
9270   esac
9271 fi
9272
9273
9274 # Report which library types will actually be built
9275 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9276 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9277 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9278 echo "${ECHO_T}$can_build_shared" >&6
9279
9280 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9281 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9282 test "$can_build_shared" = "no" && enable_shared=no
9283
9284 # On AIX, shared libraries and static libraries use the same namespace, and
9285 # are all built from PIC.
9286 case $host_os in
9287 aix3*)
9288   test "$enable_shared" = yes && enable_static=no
9289   if test -n "$RANLIB"; then
9290     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9291     postinstall_cmds='$RANLIB $lib'
9292   fi
9293   ;;
9294
9295 aix4* | aix5*)
9296   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9297     test "$enable_shared" = yes && enable_static=no
9298   fi
9299     ;;
9300 esac
9301 echo "$as_me:$LINENO: result: $enable_shared" >&5
9302 echo "${ECHO_T}$enable_shared" >&6
9303
9304 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9305 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9306 # Make sure either enable_shared or enable_static is yes.
9307 test "$enable_shared" = yes || enable_static=yes
9308 echo "$as_me:$LINENO: result: $enable_static" >&5
9309 echo "${ECHO_T}$enable_static" >&6
9310
9311 # The else clause should only fire when bootstrapping the
9312 # libtool distribution, otherwise you forgot to ship ltmain.sh
9313 # with your package, and you will get complaints that there are
9314 # no rules to generate ltmain.sh.
9315 if test -f "$ltmain"; then
9316   # See if we are running on zsh, and set the options which allow our commands through
9317   # without removal of \ escapes.
9318   if test -n "${ZSH_VERSION+set}" ; then
9319     setopt NO_GLOB_SUBST
9320   fi
9321   # Now quote all the things that may contain metacharacters while being
9322   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9323   # variables and quote the copies for generation of the libtool script.
9324   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9325     SED SHELL STRIP \
9326     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9327     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9328     deplibs_check_method reload_flag reload_cmds need_locks \
9329     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9330     lt_cv_sys_global_symbol_to_c_name_address \
9331     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9332     old_postinstall_cmds old_postuninstall_cmds \
9333     compiler \
9334     CC \
9335     LD \
9336     lt_prog_compiler_wl \
9337     lt_prog_compiler_pic \
9338     lt_prog_compiler_static \
9339     lt_prog_compiler_no_builtin_flag \
9340     export_dynamic_flag_spec \
9341     thread_safe_flag_spec \
9342     whole_archive_flag_spec \
9343     enable_shared_with_static_runtimes \
9344     old_archive_cmds \
9345     old_archive_from_new_cmds \
9346     predep_objects \
9347     postdep_objects \
9348     predeps \
9349     postdeps \
9350     compiler_lib_search_path \
9351     archive_cmds \
9352     archive_expsym_cmds \
9353     postinstall_cmds \
9354     postuninstall_cmds \
9355     old_archive_from_expsyms_cmds \
9356     allow_undefined_flag \
9357     no_undefined_flag \
9358     export_symbols_cmds \
9359     hardcode_libdir_flag_spec \
9360     hardcode_libdir_flag_spec_ld \
9361     hardcode_libdir_separator \
9362     hardcode_automatic \
9363     module_cmds \
9364     module_expsym_cmds \
9365     lt_cv_prog_compiler_c_o \
9366     exclude_expsyms \
9367     include_expsyms; do
9368
9369     case $var in
9370     old_archive_cmds | \
9371     old_archive_from_new_cmds | \
9372     archive_cmds | \
9373     archive_expsym_cmds | \
9374     module_cmds | \
9375     module_expsym_cmds | \
9376     old_archive_from_expsyms_cmds | \
9377     export_symbols_cmds | \
9378     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9379     postinstall_cmds | postuninstall_cmds | \
9380     old_postinstall_cmds | old_postuninstall_cmds | \
9381     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9382       # Double-quote double-evaled strings.
9383       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9384       ;;
9385     *)
9386       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9387       ;;
9388     esac
9389   done
9390
9391   case $lt_echo in
9392   *'\$0 --fallback-echo"')
9393     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9394     ;;
9395   esac
9396
9397 cfgfile="${ofile}T"
9398   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9399   $rm -f "$cfgfile"
9400   { echo "$as_me:$LINENO: creating $ofile" >&5
9401 echo "$as_me: creating $ofile" >&6;}
9402
9403   cat <<__EOF__ >> "$cfgfile"
9404 #! $SHELL
9405
9406 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9407 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9408 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9409 #
9410 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9411 # Free Software Foundation, Inc.
9412 #
9413 # This file is part of GNU Libtool:
9414 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9415 #
9416 # This program is free software; you can redistribute it and/or modify
9417 # it under the terms of the GNU General Public License as published by
9418 # the Free Software Foundation; either version 2 of the License, or
9419 # (at your option) any later version.
9420 #
9421 # This program is distributed in the hope that it will be useful, but
9422 # WITHOUT ANY WARRANTY; without even the implied warranty of
9423 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9424 # General Public License for more details.
9425 #
9426 # You should have received a copy of the GNU General Public License
9427 # along with this program; if not, write to the Free Software
9428 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9429 #
9430 # As a special exception to the GNU General Public License, if you
9431 # distribute this file as part of a program that contains a
9432 # configuration script generated by Autoconf, you may include it under
9433 # the same distribution terms that you use for the rest of that program.
9434
9435 # A sed program that does not truncate output.
9436 SED=$lt_SED
9437
9438 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9439 Xsed="$SED -e 1s/^X//"
9440
9441 # The HP-UX ksh and POSIX shell print the target directory to stdout
9442 # if CDPATH is set.
9443 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9444
9445 # The names of the tagged configurations supported by this script.
9446 available_tags=
9447
9448 # ### BEGIN LIBTOOL CONFIG
9449
9450 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9451
9452 # Shell to use when invoking shell scripts.
9453 SHELL=$lt_SHELL
9454
9455 # Whether or not to build shared libraries.
9456 build_libtool_libs=$enable_shared
9457
9458 # Whether or not to build static libraries.
9459 build_old_libs=$enable_static
9460
9461 # Whether or not to add -lc for building shared libraries.
9462 build_libtool_need_lc=$archive_cmds_need_lc
9463
9464 # Whether or not to disallow shared libs when runtime libs are static
9465 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9466
9467 # Whether or not to optimize for fast installation.
9468 fast_install=$enable_fast_install
9469
9470 # The host system.
9471 host_alias=$host_alias
9472 host=$host
9473 host_os=$host_os
9474
9475 # The build system.
9476 build_alias=$build_alias
9477 build=$build
9478 build_os=$build_os
9479
9480 # An echo program that does not interpret backslashes.
9481 echo=$lt_echo
9482
9483 # The archiver.
9484 AR=$lt_AR
9485 AR_FLAGS=$lt_AR_FLAGS
9486
9487 # A C compiler.
9488 LTCC=$lt_LTCC
9489
9490 # LTCC compiler flags.
9491 LTCFLAGS=$lt_LTCFLAGS
9492
9493 # A language-specific compiler.
9494 CC=$lt_compiler
9495
9496 # Is the compiler the GNU C compiler?
9497 with_gcc=$GCC
9498
9499 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9500 gcc_ver=\`gcc -dumpversion\`
9501
9502 # An ERE matcher.
9503 EGREP=$lt_EGREP
9504
9505 # The linker used to build libraries.
9506 LD=$lt_LD
9507
9508 # Whether we need hard or soft links.
9509 LN_S=$lt_LN_S
9510
9511 # A BSD-compatible nm program.
9512 NM=$lt_NM
9513
9514 # A symbol stripping program
9515 STRIP=$lt_STRIP
9516
9517 # Used to examine libraries when file_magic_cmd begins "file"
9518 MAGIC_CMD=$MAGIC_CMD
9519
9520 # Used on cygwin: DLL creation program.
9521 DLLTOOL="$DLLTOOL"
9522
9523 # Used on cygwin: object dumper.
9524 OBJDUMP="$OBJDUMP"
9525
9526 # Used on cygwin: assembler.
9527 AS="$AS"
9528
9529 # The name of the directory that contains temporary libtool files.
9530 objdir=$objdir
9531
9532 # How to create reloadable object files.
9533 reload_flag=$lt_reload_flag
9534 reload_cmds=$lt_reload_cmds
9535
9536 # How to pass a linker flag through the compiler.
9537 wl=$lt_lt_prog_compiler_wl
9538
9539 # Object file suffix (normally "o").
9540 objext="$ac_objext"
9541
9542 # Old archive suffix (normally "a").
9543 libext="$libext"
9544
9545 # Shared library suffix (normally ".so").
9546 shrext_cmds='$shrext_cmds'
9547
9548 # Executable file suffix (normally "").
9549 exeext="$exeext"
9550
9551 # Additional compiler flags for building library objects.
9552 pic_flag=$lt_lt_prog_compiler_pic
9553 pic_mode=$pic_mode
9554
9555 # What is the maximum length of a command?
9556 max_cmd_len=$lt_cv_sys_max_cmd_len
9557
9558 # Does compiler simultaneously support -c and -o options?
9559 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9560
9561 # Must we lock files when doing compilation?
9562 need_locks=$lt_need_locks
9563
9564 # Do we need the lib prefix for modules?
9565 need_lib_prefix=$need_lib_prefix
9566
9567 # Do we need a version for libraries?
9568 need_version=$need_version
9569
9570 # Whether dlopen is supported.
9571 dlopen_support=$enable_dlopen
9572
9573 # Whether dlopen of programs is supported.
9574 dlopen_self=$enable_dlopen_self
9575
9576 # Whether dlopen of statically linked programs is supported.
9577 dlopen_self_static=$enable_dlopen_self_static
9578
9579 # Compiler flag to prevent dynamic linking.
9580 link_static_flag=$lt_lt_prog_compiler_static
9581
9582 # Compiler flag to turn off builtin functions.
9583 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9584
9585 # Compiler flag to allow reflexive dlopens.
9586 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9587
9588 # Compiler flag to generate shared objects directly from archives.
9589 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9590
9591 # Compiler flag to generate thread-safe objects.
9592 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9593
9594 # Library versioning type.
9595 version_type=$version_type
9596
9597 # Format of library name prefix.
9598 libname_spec=$lt_libname_spec
9599
9600 # List of archive names.  First name is the real one, the rest are links.
9601 # The last name is the one that the linker finds with -lNAME.
9602 library_names_spec=$lt_library_names_spec
9603
9604 # The coded name of the library, if different from the real name.
9605 soname_spec=$lt_soname_spec
9606
9607 # Commands used to build and install an old-style archive.
9608 RANLIB=$lt_RANLIB
9609 old_archive_cmds=$lt_old_archive_cmds
9610 old_postinstall_cmds=$lt_old_postinstall_cmds
9611 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9612
9613 # Create an old-style archive from a shared archive.
9614 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9615
9616 # Create a temporary old-style archive to link instead of a shared archive.
9617 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9618
9619 # Commands used to build and install a shared archive.
9620 archive_cmds=$lt_archive_cmds
9621 archive_expsym_cmds=$lt_archive_expsym_cmds
9622 postinstall_cmds=$lt_postinstall_cmds
9623 postuninstall_cmds=$lt_postuninstall_cmds
9624
9625 # Commands used to build a loadable module (assumed same as above if empty)
9626 module_cmds=$lt_module_cmds
9627 module_expsym_cmds=$lt_module_expsym_cmds
9628
9629 # Commands to strip libraries.
9630 old_striplib=$lt_old_striplib
9631 striplib=$lt_striplib
9632
9633 # Dependencies to place before the objects being linked to create a
9634 # shared library.
9635 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9636
9637 # Dependencies to place after the objects being linked to create a
9638 # shared library.
9639 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9640
9641 # Dependencies to place before the objects being linked to create a
9642 # shared library.
9643 predeps=$lt_predeps
9644
9645 # Dependencies to place after the objects being linked to create a
9646 # shared library.
9647 postdeps=$lt_postdeps
9648
9649 # The library search path used internally by the compiler when linking
9650 # a shared library.
9651 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9652
9653 # Method to check whether dependent libraries are shared objects.
9654 deplibs_check_method=$lt_deplibs_check_method
9655
9656 # Command to use when deplibs_check_method == file_magic.
9657 file_magic_cmd=$lt_file_magic_cmd
9658
9659 # Flag that allows shared libraries with undefined symbols to be built.
9660 allow_undefined_flag=$lt_allow_undefined_flag
9661
9662 # Flag that forces no undefined symbols.
9663 no_undefined_flag=$lt_no_undefined_flag
9664
9665 # Commands used to finish a libtool library installation in a directory.
9666 finish_cmds=$lt_finish_cmds
9667
9668 # Same as above, but a single script fragment to be evaled but not shown.
9669 finish_eval=$lt_finish_eval
9670
9671 # Take the output of nm and produce a listing of raw symbols and C names.
9672 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9673
9674 # Transform the output of nm in a proper C declaration
9675 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9676
9677 # Transform the output of nm in a C name address pair
9678 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9679
9680 # This is the shared library runtime path variable.
9681 runpath_var=$runpath_var
9682
9683 # This is the shared library path variable.
9684 shlibpath_var=$shlibpath_var
9685
9686 # Is shlibpath searched before the hard-coded library search path?
9687 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9688
9689 # How to hardcode a shared library path into an executable.
9690 hardcode_action=$hardcode_action
9691
9692 # Whether we should hardcode library paths into libraries.
9693 hardcode_into_libs=$hardcode_into_libs
9694
9695 # Flag to hardcode \$libdir into a binary during linking.
9696 # This must work even if \$libdir does not exist.
9697 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9698
9699 # If ld is used when linking, flag to hardcode \$libdir into
9700 # a binary during linking. This must work even if \$libdir does
9701 # not exist.
9702 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9703
9704 # Whether we need a single -rpath flag with a separated argument.
9705 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9706
9707 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9708 # resulting binary.
9709 hardcode_direct=$hardcode_direct
9710
9711 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9712 # resulting binary.
9713 hardcode_minus_L=$hardcode_minus_L
9714
9715 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9716 # the resulting binary.
9717 hardcode_shlibpath_var=$hardcode_shlibpath_var
9718
9719 # Set to yes if building a shared library automatically hardcodes DIR into the library
9720 # and all subsequent libraries and executables linked against it.
9721 hardcode_automatic=$hardcode_automatic
9722
9723 # Variables whose values should be saved in libtool wrapper scripts and
9724 # restored at relink time.
9725 variables_saved_for_relink="$variables_saved_for_relink"
9726
9727 # Whether libtool must link a program against all its dependency libraries.
9728 link_all_deplibs=$link_all_deplibs
9729
9730 # Compile-time system search path for libraries
9731 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9732
9733 # Run-time system search path for libraries
9734 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9735
9736 # Fix the shell variable \$srcfile for the compiler.
9737 fix_srcfile_path="$fix_srcfile_path"
9738
9739 # Set to yes if exported symbols are required.
9740 always_export_symbols=$always_export_symbols
9741
9742 # The commands to list exported symbols.
9743 export_symbols_cmds=$lt_export_symbols_cmds
9744
9745 # The commands to extract the exported symbol list from a shared archive.
9746 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9747
9748 # Symbols that should not be listed in the preloaded symbols.
9749 exclude_expsyms=$lt_exclude_expsyms
9750
9751 # Symbols that must always be exported.
9752 include_expsyms=$lt_include_expsyms
9753
9754 # ### END LIBTOOL CONFIG
9755
9756 __EOF__
9757
9758
9759   case $host_os in
9760   aix3*)
9761     cat <<\EOF >> "$cfgfile"
9762
9763 # AIX sometimes has problems with the GCC collect2 program.  For some
9764 # reason, if we set the COLLECT_NAMES environment variable, the problems
9765 # vanish in a puff of smoke.
9766 if test "X${COLLECT_NAMES+set}" != Xset; then
9767   COLLECT_NAMES=
9768   export COLLECT_NAMES
9769 fi
9770 EOF
9771     ;;
9772   esac
9773
9774   # We use sed instead of cat because bash on DJGPP gets confused if
9775   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9776   # text mode, it properly converts lines to CR/LF.  This bash problem
9777   # is reportedly fixed, but why not run on old versions too?
9778   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9779
9780   mv -f "$cfgfile" "$ofile" || \
9781     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9782   chmod +x "$ofile"
9783
9784 else
9785   # If there is no Makefile yet, we rely on a make rule to execute
9786   # `config.status --recheck' to rerun these tests and create the
9787   # libtool script then.
9788   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9789   if test -f "$ltmain_in"; then
9790     test -f Makefile && make "$ltmain"
9791   fi
9792 fi
9793
9794
9795 ac_ext=c
9796 ac_cpp='$CPP $CPPFLAGS'
9797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9800
9801 CC="$lt_save_CC"
9802
9803
9804 # Check whether --with-tags or --without-tags was given.
9805 if test "${with_tags+set}" = set; then
9806   withval="$with_tags"
9807   tagnames="$withval"
9808 fi;
9809
9810 if test -f "$ltmain" && test -n "$tagnames"; then
9811   if test ! -f "${ofile}"; then
9812     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9813 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9814   fi
9815
9816   if test -z "$LTCC"; then
9817     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9818     if test -z "$LTCC"; then
9819       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9820 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9821     else
9822       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9823 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9824     fi
9825   fi
9826   if test -z "$LTCFLAGS"; then
9827     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9828   fi
9829
9830   # Extract list of available tagged configurations in $ofile.
9831   # Note that this assumes the entire list is on one line.
9832   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9833
9834   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9835   for tagname in $tagnames; do
9836     IFS="$lt_save_ifs"
9837     # Check whether tagname contains only valid characters
9838     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9839     "") ;;
9840     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9841 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9842    { (exit 1); exit 1; }; }
9843         ;;
9844     esac
9845
9846     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9847     then
9848       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9849 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9850    { (exit 1); exit 1; }; }
9851     fi
9852
9853     # Update the list of available tags.
9854     if test -n "$tagname"; then
9855       echo appending configuration tag \"$tagname\" to $ofile
9856
9857       case $tagname in
9858       CXX)
9859         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9860             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9861             (test "X$CXX" != "Xg++"))) ; then
9862           ac_ext=cc
9863 ac_cpp='$CXXCPP $CPPFLAGS'
9864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9865 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9866 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9867
9868
9869
9870
9871 archive_cmds_need_lc_CXX=no
9872 allow_undefined_flag_CXX=
9873 always_export_symbols_CXX=no
9874 archive_expsym_cmds_CXX=
9875 export_dynamic_flag_spec_CXX=
9876 hardcode_direct_CXX=no
9877 hardcode_libdir_flag_spec_CXX=
9878 hardcode_libdir_flag_spec_ld_CXX=
9879 hardcode_libdir_separator_CXX=
9880 hardcode_minus_L_CXX=no
9881 hardcode_shlibpath_var_CXX=unsupported
9882 hardcode_automatic_CXX=no
9883 module_cmds_CXX=
9884 module_expsym_cmds_CXX=
9885 link_all_deplibs_CXX=unknown
9886 old_archive_cmds_CXX=$old_archive_cmds
9887 no_undefined_flag_CXX=
9888 whole_archive_flag_spec_CXX=
9889 enable_shared_with_static_runtimes_CXX=no
9890
9891 # Dependencies to place before and after the object being linked:
9892 predep_objects_CXX=
9893 postdep_objects_CXX=
9894 predeps_CXX=
9895 postdeps_CXX=
9896 compiler_lib_search_path_CXX=
9897
9898 # Source file extension for C++ test sources.
9899 ac_ext=cpp
9900
9901 # Object file extension for compiled C++ test sources.
9902 objext=o
9903 objext_CXX=$objext
9904
9905 # Code to be used in simple compile tests
9906 lt_simple_compile_test_code="int some_variable = 0;\n"
9907
9908 # Code to be used in simple link tests
9909 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9910
9911 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9912
9913 # If no C compiler was specified, use CC.
9914 LTCC=${LTCC-"$CC"}
9915
9916 # If no C compiler flags were specified, use CFLAGS.
9917 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9918
9919 # Allow CC to be a program name with arguments.
9920 compiler=$CC
9921
9922
9923 # save warnings/boilerplate of simple test code
9924 ac_outfile=conftest.$ac_objext
9925 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9926 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9927 _lt_compiler_boilerplate=`cat conftest.err`
9928 $rm conftest*
9929
9930 ac_outfile=conftest.$ac_objext
9931 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9932 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9933 _lt_linker_boilerplate=`cat conftest.err`
9934 $rm conftest*
9935
9936
9937 # Allow CC to be a program name with arguments.
9938 lt_save_CC=$CC
9939 lt_save_LD=$LD
9940 lt_save_GCC=$GCC
9941 GCC=$GXX
9942 lt_save_with_gnu_ld=$with_gnu_ld
9943 lt_save_path_LD=$lt_cv_path_LD
9944 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9945   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9946 else
9947   $as_unset lt_cv_prog_gnu_ld
9948 fi
9949 if test -n "${lt_cv_path_LDCXX+set}"; then
9950   lt_cv_path_LD=$lt_cv_path_LDCXX
9951 else
9952   $as_unset lt_cv_path_LD
9953 fi
9954 test -z "${LDCXX+set}" || LD=$LDCXX
9955 CC=${CXX-"c++"}
9956 compiler=$CC
9957 compiler_CXX=$CC
9958 for cc_temp in $compiler""; do
9959   case $cc_temp in
9960     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9961     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9962     \-*) ;;
9963     *) break;;
9964   esac
9965 done
9966 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9967
9968
9969 # We don't want -fno-exception wen compiling C++ code, so set the
9970 # no_builtin_flag separately
9971 if test "$GXX" = yes; then
9972   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9973 else
9974   lt_prog_compiler_no_builtin_flag_CXX=
9975 fi
9976
9977 if test "$GXX" = yes; then
9978   # Set up default GNU C++ configuration
9979
9980
9981 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9982 if test "${with_gnu_ld+set}" = set; then
9983   withval="$with_gnu_ld"
9984   test "$withval" = no || with_gnu_ld=yes
9985 else
9986   with_gnu_ld=no
9987 fi;
9988 ac_prog=ld
9989 if test "$GCC" = yes; then
9990   # Check if gcc -print-prog-name=ld gives a path.
9991   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9992 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9993   case $host in
9994   *-*-mingw*)
9995     # gcc leaves a trailing carriage return which upsets mingw
9996     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9997   *)
9998     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9999   esac
10000   case $ac_prog in
10001     # Accept absolute paths.
10002     [\\/]* | ?:[\\/]*)
10003       re_direlt='/[^/][^/]*/\.\./'
10004       # Canonicalize the pathname of ld
10005       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10006       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10007         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10008       done
10009       test -z "$LD" && LD="$ac_prog"
10010       ;;
10011   "")
10012     # If it fails, then pretend we aren't using GCC.
10013     ac_prog=ld
10014     ;;
10015   *)
10016     # If it is relative, then search for the first ld in PATH.
10017     with_gnu_ld=unknown
10018     ;;
10019   esac
10020 elif test "$with_gnu_ld" = yes; then
10021   echo "$as_me:$LINENO: checking for GNU ld" >&5
10022 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10023 else
10024   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10025 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10026 fi
10027 if test "${lt_cv_path_LD+set}" = set; then
10028   echo $ECHO_N "(cached) $ECHO_C" >&6
10029 else
10030   if test -z "$LD"; then
10031   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10032   for ac_dir in $PATH; do
10033     IFS="$lt_save_ifs"
10034     test -z "$ac_dir" && ac_dir=.
10035     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10036       lt_cv_path_LD="$ac_dir/$ac_prog"
10037       # Check to see if the program is GNU ld.  I'd rather use --version,
10038       # but apparently some variants of GNU ld only accept -v.
10039       # Break only if it was the GNU/non-GNU ld that we prefer.
10040       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10041       *GNU* | *'with BFD'*)
10042         test "$with_gnu_ld" != no && break
10043         ;;
10044       *)
10045         test "$with_gnu_ld" != yes && break
10046         ;;
10047       esac
10048     fi
10049   done
10050   IFS="$lt_save_ifs"
10051 else
10052   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10053 fi
10054 fi
10055
10056 LD="$lt_cv_path_LD"
10057 if test -n "$LD"; then
10058   echo "$as_me:$LINENO: result: $LD" >&5
10059 echo "${ECHO_T}$LD" >&6
10060 else
10061   echo "$as_me:$LINENO: result: no" >&5
10062 echo "${ECHO_T}no" >&6
10063 fi
10064 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10065 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10066    { (exit 1); exit 1; }; }
10067 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10068 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10069 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10070   echo $ECHO_N "(cached) $ECHO_C" >&6
10071 else
10072   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10073 case `$LD -v 2>&1 </dev/null` in
10074 *GNU* | *'with BFD'*)
10075   lt_cv_prog_gnu_ld=yes
10076   ;;
10077 *)
10078   lt_cv_prog_gnu_ld=no
10079   ;;
10080 esac
10081 fi
10082 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10083 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10084 with_gnu_ld=$lt_cv_prog_gnu_ld
10085
10086
10087
10088   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10089   # archiving commands below assume that GNU ld is being used.
10090   if test "$with_gnu_ld" = yes; then
10091     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10092     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'
10093
10094     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10095     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10096
10097     # If archive_cmds runs LD, not CC, wlarc should be empty
10098     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10099     #     investigate it a little bit more. (MM)
10100     wlarc='${wl}'
10101
10102     # ancient GNU ld didn't support --whole-archive et. al.
10103     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10104         grep 'no-whole-archive' > /dev/null; then
10105       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10106     else
10107       whole_archive_flag_spec_CXX=
10108     fi
10109   else
10110     with_gnu_ld=no
10111     wlarc=
10112
10113     # A generic and very simple default shared library creation
10114     # command for GNU C++ for the case where it uses the native
10115     # linker, instead of GNU ld.  If possible, this setting should
10116     # overridden to take advantage of the native linker features on
10117     # the platform it is being used on.
10118     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10119   fi
10120
10121   # Commands to make compiler produce verbose output that lists
10122   # what "hidden" libraries, object files and flags are used when
10123   # linking a shared library.
10124   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10125
10126 else
10127   GXX=no
10128   with_gnu_ld=no
10129   wlarc=
10130 fi
10131
10132 # PORTME: fill in a description of your system's C++ link characteristics
10133 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10134 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10135 ld_shlibs_CXX=yes
10136 case $host_os in
10137   aix3*)
10138     # FIXME: insert proper C++ library support
10139     ld_shlibs_CXX=no
10140     ;;
10141   aix4* | aix5*)
10142     if test "$host_cpu" = ia64; then
10143       # On IA64, the linker does run time linking by default, so we don't
10144       # have to do anything special.
10145       aix_use_runtimelinking=no
10146       exp_sym_flag='-Bexport'
10147       no_entry_flag=""
10148     else
10149       aix_use_runtimelinking=no
10150
10151       # Test if we are trying to use run time linking or normal
10152       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10153       # need to do runtime linking.
10154       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10155         for ld_flag in $LDFLAGS; do
10156           case $ld_flag in
10157           *-brtl*)
10158             aix_use_runtimelinking=yes
10159             break
10160             ;;
10161           esac
10162         done
10163         ;;
10164       esac
10165
10166       exp_sym_flag='-bexport'
10167       no_entry_flag='-bnoentry'
10168     fi
10169
10170     # When large executables or shared objects are built, AIX ld can
10171     # have problems creating the table of contents.  If linking a library
10172     # or program results in "error TOC overflow" add -mminimal-toc to
10173     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10174     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10175
10176     archive_cmds_CXX=''
10177     hardcode_direct_CXX=yes
10178     hardcode_libdir_separator_CXX=':'
10179     link_all_deplibs_CXX=yes
10180
10181     if test "$GXX" = yes; then
10182       case $host_os in aix4.[012]|aix4.[012].*)
10183       # We only want to do this on AIX 4.2 and lower, the check
10184       # below for broken collect2 doesn't work under 4.3+
10185         collect2name=`${CC} -print-prog-name=collect2`
10186         if test -f "$collect2name" && \
10187            strings "$collect2name" | grep resolve_lib_name >/dev/null
10188         then
10189           # We have reworked collect2
10190           hardcode_direct_CXX=yes
10191         else
10192           # We have old collect2
10193           hardcode_direct_CXX=unsupported
10194           # It fails to find uninstalled libraries when the uninstalled
10195           # path is not listed in the libpath.  Setting hardcode_minus_L
10196           # to unsupported forces relinking
10197           hardcode_minus_L_CXX=yes
10198           hardcode_libdir_flag_spec_CXX='-L$libdir'
10199           hardcode_libdir_separator_CXX=
10200         fi
10201         ;;
10202       esac
10203       shared_flag='-shared'
10204       if test "$aix_use_runtimelinking" = yes; then
10205         shared_flag="$shared_flag "'${wl}-G'
10206       fi
10207     else
10208       # not using gcc
10209       if test "$host_cpu" = ia64; then
10210         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10211         # chokes on -Wl,-G. The following line is correct:
10212         shared_flag='-G'
10213       else
10214         if test "$aix_use_runtimelinking" = yes; then
10215           shared_flag='${wl}-G'
10216         else
10217           shared_flag='${wl}-bM:SRE'
10218         fi
10219       fi
10220     fi
10221
10222     # It seems that -bexpall does not export symbols beginning with
10223     # underscore (_), so it is better to generate a list of symbols to export.
10224     always_export_symbols_CXX=yes
10225     if test "$aix_use_runtimelinking" = yes; then
10226       # Warning - without using the other runtime loading flags (-brtl),
10227       # -berok will link without error, but may produce a broken library.
10228       allow_undefined_flag_CXX='-berok'
10229       # Determine the default libpath from the value encoded in an empty executable.
10230       cat >conftest.$ac_ext <<_ACEOF
10231 /* confdefs.h.  */
10232 _ACEOF
10233 cat confdefs.h >>conftest.$ac_ext
10234 cat >>conftest.$ac_ext <<_ACEOF
10235 /* end confdefs.h.  */
10236
10237 int
10238 main ()
10239 {
10240
10241   ;
10242   return 0;
10243 }
10244 _ACEOF
10245 rm -f conftest.$ac_objext conftest$ac_exeext
10246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10247   (eval $ac_link) 2>conftest.er1
10248   ac_status=$?
10249   grep -v '^ *+' conftest.er1 >conftest.err
10250   rm -f conftest.er1
10251   cat conftest.err >&5
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); } &&
10254          { ac_try='test -z "$ac_cxx_werror_flag"
10255                          || test ! -s conftest.err'
10256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257   (eval $ac_try) 2>&5
10258   ac_status=$?
10259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   (exit $ac_status); }; } &&
10261          { ac_try='test -s conftest$ac_exeext'
10262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263   (eval $ac_try) 2>&5
10264   ac_status=$?
10265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266   (exit $ac_status); }; }; then
10267
10268 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10269 }'`
10270 # Check for a 64-bit object if we didn't find anything.
10271 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; }
10272 }'`; fi
10273 else
10274   echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10276
10277 fi
10278 rm -f conftest.err conftest.$ac_objext \
10279       conftest$ac_exeext conftest.$ac_ext
10280 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10281
10282       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10283
10284       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10285      else
10286       if test "$host_cpu" = ia64; then
10287         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10288         allow_undefined_flag_CXX="-z nodefs"
10289         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10290       else
10291         # Determine the default libpath from the value encoded in an empty executable.
10292         cat >conftest.$ac_ext <<_ACEOF
10293 /* confdefs.h.  */
10294 _ACEOF
10295 cat confdefs.h >>conftest.$ac_ext
10296 cat >>conftest.$ac_ext <<_ACEOF
10297 /* end confdefs.h.  */
10298
10299 int
10300 main ()
10301 {
10302
10303   ;
10304   return 0;
10305 }
10306 _ACEOF
10307 rm -f conftest.$ac_objext conftest$ac_exeext
10308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10309   (eval $ac_link) 2>conftest.er1
10310   ac_status=$?
10311   grep -v '^ *+' conftest.er1 >conftest.err
10312   rm -f conftest.er1
10313   cat conftest.err >&5
10314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315   (exit $ac_status); } &&
10316          { ac_try='test -z "$ac_cxx_werror_flag"
10317                          || test ! -s conftest.err'
10318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319   (eval $ac_try) 2>&5
10320   ac_status=$?
10321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322   (exit $ac_status); }; } &&
10323          { ac_try='test -s conftest$ac_exeext'
10324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325   (eval $ac_try) 2>&5
10326   ac_status=$?
10327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328   (exit $ac_status); }; }; then
10329
10330 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10331 }'`
10332 # Check for a 64-bit object if we didn't find anything.
10333 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; }
10334 }'`; fi
10335 else
10336   echo "$as_me: failed program was:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10338
10339 fi
10340 rm -f conftest.err conftest.$ac_objext \
10341       conftest$ac_exeext conftest.$ac_ext
10342 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10343
10344         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10345         # Warning - without using the other run time loading flags,
10346         # -berok will link without error, but may produce a broken library.
10347         no_undefined_flag_CXX=' ${wl}-bernotok'
10348         allow_undefined_flag_CXX=' ${wl}-berok'
10349         # Exported symbols can be pulled into shared objects from archives
10350         whole_archive_flag_spec_CXX='$convenience'
10351         archive_cmds_need_lc_CXX=yes
10352         # This is similar to how AIX traditionally builds its shared libraries.
10353         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10354       fi
10355     fi
10356     ;;
10357
10358   beos*)
10359     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10360       allow_undefined_flag_CXX=unsupported
10361       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10362       # support --undefined.  This deserves some investigation.  FIXME
10363       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10364     else
10365       ld_shlibs_CXX=no
10366     fi
10367     ;;
10368
10369   chorus*)
10370     case $cc_basename in
10371       *)
10372         # FIXME: insert proper C++ library support
10373         ld_shlibs_CXX=no
10374         ;;
10375     esac
10376     ;;
10377
10378   cygwin* | mingw* | pw32*)
10379     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10380     # as there is no search path for DLLs.
10381     hardcode_libdir_flag_spec_CXX='-L$libdir'
10382     allow_undefined_flag_CXX=unsupported
10383     always_export_symbols_CXX=no
10384     enable_shared_with_static_runtimes_CXX=yes
10385
10386     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10387       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10388       # If the export-symbols file already is a .def file (1st line
10389       # is EXPORTS), use it as is; otherwise, prepend...
10390       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10391         cp $export_symbols $output_objdir/$soname.def;
10392       else
10393         echo EXPORTS > $output_objdir/$soname.def;
10394         cat $export_symbols >> $output_objdir/$soname.def;
10395       fi~
10396       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10397     else
10398       ld_shlibs_CXX=no
10399     fi
10400   ;;
10401       darwin* | rhapsody*)
10402         case $host_os in
10403         rhapsody* | darwin1.[012])
10404          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10405          ;;
10406        *) # Darwin 1.3 on
10407          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10408            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10409          else
10410            case ${MACOSX_DEPLOYMENT_TARGET} in
10411              10.[012])
10412                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10413                ;;
10414              10.*)
10415                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10416                ;;
10417            esac
10418          fi
10419          ;;
10420         esac
10421       archive_cmds_need_lc_CXX=no
10422       hardcode_direct_CXX=no
10423       hardcode_automatic_CXX=yes
10424       hardcode_shlibpath_var_CXX=unsupported
10425       whole_archive_flag_spec_CXX=''
10426       link_all_deplibs_CXX=yes
10427
10428     if test "$GXX" = yes ; then
10429       lt_int_apple_cc_single_mod=no
10430       output_verbose_link_cmd='echo'
10431       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10432        lt_int_apple_cc_single_mod=yes
10433       fi
10434       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10435        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10436       else
10437           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'
10438         fi
10439         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10440         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10441           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10442             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}'
10443           else
10444             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}'
10445           fi
10446             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}'
10447       else
10448       case $cc_basename in
10449         xlc*)
10450          output_verbose_link_cmd='echo'
10451           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'
10452           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10453           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10454           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}'
10455           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}'
10456           ;;
10457        *)
10458          ld_shlibs_CXX=no
10459           ;;
10460       esac
10461       fi
10462         ;;
10463
10464   dgux*)
10465     case $cc_basename in
10466       ec++*)
10467         # FIXME: insert proper C++ library support
10468         ld_shlibs_CXX=no
10469         ;;
10470       ghcx*)
10471         # Green Hills C++ Compiler
10472         # FIXME: insert proper C++ library support
10473         ld_shlibs_CXX=no
10474         ;;
10475       *)
10476         # FIXME: insert proper C++ library support
10477         ld_shlibs_CXX=no
10478         ;;
10479     esac
10480     ;;
10481   freebsd[12]*)
10482     # C++ shared libraries reported to be fairly broken before switch to ELF
10483     ld_shlibs_CXX=no
10484     ;;
10485   freebsd-elf*)
10486     archive_cmds_need_lc_CXX=no
10487     ;;
10488   freebsd* | kfreebsd*-gnu | dragonfly*)
10489     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10490     # conventions
10491     ld_shlibs_CXX=yes
10492     ;;
10493   gnu*)
10494     ;;
10495   hpux9*)
10496     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10497     hardcode_libdir_separator_CXX=:
10498     export_dynamic_flag_spec_CXX='${wl}-E'
10499     hardcode_direct_CXX=yes
10500     hardcode_minus_L_CXX=yes # Not in the search PATH,
10501                                 # but as the default
10502                                 # location of the library.
10503
10504     case $cc_basename in
10505     CC*)
10506       # FIXME: insert proper C++ library support
10507       ld_shlibs_CXX=no
10508       ;;
10509     aCC*)
10510       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'
10511       # Commands to make compiler produce verbose output that lists
10512       # what "hidden" libraries, object files and flags are used when
10513       # linking a shared library.
10514       #
10515       # There doesn't appear to be a way to prevent this compiler from
10516       # explicitly linking system object files so we need to strip them
10517       # from the output so that they don't get included in the library
10518       # dependencies.
10519       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'
10520       ;;
10521     *)
10522       if test "$GXX" = yes; then
10523         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'
10524       else
10525         # FIXME: insert proper C++ library support
10526         ld_shlibs_CXX=no
10527       fi
10528       ;;
10529     esac
10530     ;;
10531   hpux10*|hpux11*)
10532     if test $with_gnu_ld = no; then
10533       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10534       hardcode_libdir_separator_CXX=:
10535
10536       case $host_cpu in
10537       hppa*64*|ia64*)
10538         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10539         ;;
10540       *)
10541         export_dynamic_flag_spec_CXX='${wl}-E'
10542         ;;
10543       esac
10544     fi
10545     case $host_cpu in
10546     hppa*64*|ia64*)
10547       hardcode_direct_CXX=no
10548       hardcode_shlibpath_var_CXX=no
10549       ;;
10550     *)
10551       hardcode_direct_CXX=yes
10552       hardcode_minus_L_CXX=yes # Not in the search PATH,
10553                                               # but as the default
10554                                               # location of the library.
10555       ;;
10556     esac
10557
10558     case $cc_basename in
10559       CC*)
10560         # FIXME: insert proper C++ library support
10561         ld_shlibs_CXX=no
10562         ;;
10563       aCC*)
10564         case $host_cpu in
10565         hppa*64*)
10566           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10567           ;;
10568         ia64*)
10569           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10570           ;;
10571         *)
10572           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10573           ;;
10574         esac
10575         # Commands to make compiler produce verbose output that lists
10576         # what "hidden" libraries, object files and flags are used when
10577         # linking a shared library.
10578         #
10579         # There doesn't appear to be a way to prevent this compiler from
10580         # explicitly linking system object files so we need to strip them
10581         # from the output so that they don't get included in the library
10582         # dependencies.
10583         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'
10584         ;;
10585       *)
10586         if test "$GXX" = yes; then
10587           if test $with_gnu_ld = no; then
10588             case $host_cpu in
10589             hppa*64*)
10590               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10591               ;;
10592             ia64*)
10593               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10594               ;;
10595             *)
10596               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'
10597               ;;
10598             esac
10599           fi
10600         else
10601           # FIXME: insert proper C++ library support
10602           ld_shlibs_CXX=no
10603         fi
10604         ;;
10605     esac
10606     ;;
10607   interix3*)
10608     hardcode_direct_CXX=no
10609     hardcode_shlibpath_var_CXX=no
10610     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10611     export_dynamic_flag_spec_CXX='${wl}-E'
10612     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10613     # Instead, shared libraries are loaded at an image base (0x10000000 by
10614     # default) and relocated if they conflict, which is a slow very memory
10615     # consuming and fragmenting process.  To avoid this, we pick a random,
10616     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10617     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10618     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10619     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10620     ;;
10621   irix5* | irix6*)
10622     case $cc_basename in
10623       CC*)
10624         # SGI C++
10625         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'
10626
10627         # Archives containing C++ object files must be created using
10628         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10629         # necessary to make sure instantiated templates are included
10630         # in the archive.
10631         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10632         ;;
10633       *)
10634         if test "$GXX" = yes; then
10635           if test "$with_gnu_ld" = no; then
10636             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'
10637           else
10638             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'
10639           fi
10640         fi
10641         link_all_deplibs_CXX=yes
10642         ;;
10643     esac
10644     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10645     hardcode_libdir_separator_CXX=:
10646     ;;
10647   linux*)
10648     case $cc_basename in
10649       KCC*)
10650         # Kuck and Associates, Inc. (KAI) C++ Compiler
10651
10652         # KCC will only create a shared library if the output file
10653         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10654         # to its proper name (with version) after linking.
10655         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'
10656         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'
10657         # Commands to make compiler produce verbose output that lists
10658         # what "hidden" libraries, object files and flags are used when
10659         # linking a shared library.
10660         #
10661         # There doesn't appear to be a way to prevent this compiler from
10662         # explicitly linking system object files so we need to strip them
10663         # from the output so that they don't get included in the library
10664         # dependencies.
10665         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'
10666
10667         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10668         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10669
10670         # Archives containing C++ object files must be created using
10671         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10672         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10673         ;;
10674       icpc*)
10675         # Intel C++
10676         with_gnu_ld=yes
10677         # version 8.0 and above of icpc choke on multiply defined symbols
10678         # if we add $predep_objects and $postdep_objects, however 7.1 and
10679         # earlier do not add the objects themselves.
10680         case `$CC -V 2>&1` in
10681         *"Version 7."*)
10682           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10683           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'
10684           ;;
10685         *)  # Version 8.0 or newer
10686           tmp_idyn=
10687           case $host_cpu in
10688             ia64*) tmp_idyn=' -i_dynamic';;
10689           esac
10690           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10691           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'
10692           ;;
10693         esac
10694         archive_cmds_need_lc_CXX=no
10695         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10696         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10697         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10698         ;;
10699       pgCC*)
10700         # Portland Group C++ compiler
10701         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10702         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'
10703
10704         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10705         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10706         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'
10707         ;;
10708       cxx*)
10709         # Compaq C++
10710         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10711         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'
10712
10713         runpath_var=LD_RUN_PATH
10714         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10715         hardcode_libdir_separator_CXX=:
10716
10717         # Commands to make compiler produce verbose output that lists
10718         # what "hidden" libraries, object files and flags are used when
10719         # linking a shared library.
10720         #
10721         # There doesn't appear to be a way to prevent this compiler from
10722         # explicitly linking system object files so we need to strip them
10723         # from the output so that they don't get included in the library
10724         # dependencies.
10725         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'
10726         ;;
10727     esac
10728     ;;
10729   lynxos*)
10730     # FIXME: insert proper C++ library support
10731     ld_shlibs_CXX=no
10732     ;;
10733   m88k*)
10734     # FIXME: insert proper C++ library support
10735     ld_shlibs_CXX=no
10736     ;;
10737   mvs*)
10738     case $cc_basename in
10739       cxx*)
10740         # FIXME: insert proper C++ library support
10741         ld_shlibs_CXX=no
10742         ;;
10743       *)
10744         # FIXME: insert proper C++ library support
10745         ld_shlibs_CXX=no
10746         ;;
10747     esac
10748     ;;
10749   netbsd*)
10750     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10751       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10752       wlarc=
10753       hardcode_libdir_flag_spec_CXX='-R$libdir'
10754       hardcode_direct_CXX=yes
10755       hardcode_shlibpath_var_CXX=no
10756     fi
10757     # Workaround some broken pre-1.5 toolchains
10758     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10759     ;;
10760   openbsd2*)
10761     # C++ shared libraries are fairly broken
10762     ld_shlibs_CXX=no
10763     ;;
10764   openbsd*)
10765     hardcode_direct_CXX=yes
10766     hardcode_shlibpath_var_CXX=no
10767     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10768     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10769     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10770       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10771       export_dynamic_flag_spec_CXX='${wl}-E'
10772       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10773     fi
10774     output_verbose_link_cmd='echo'
10775     ;;
10776   osf3*)
10777     case $cc_basename in
10778       KCC*)
10779         # Kuck and Associates, Inc. (KAI) C++ Compiler
10780
10781         # KCC will only create a shared library if the output file
10782         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10783         # to its proper name (with version) after linking.
10784         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'
10785
10786         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10787         hardcode_libdir_separator_CXX=:
10788
10789         # Archives containing C++ object files must be created using
10790         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10791         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10792
10793         ;;
10794       RCC*)
10795         # Rational C++ 2.4.1
10796         # FIXME: insert proper C++ library support
10797         ld_shlibs_CXX=no
10798         ;;
10799       cxx*)
10800         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10801         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'
10802
10803         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10804         hardcode_libdir_separator_CXX=:
10805
10806         # Commands to make compiler produce verbose output that lists
10807         # what "hidden" libraries, object files and flags are used when
10808         # linking a shared library.
10809         #
10810         # There doesn't appear to be a way to prevent this compiler from
10811         # explicitly linking system object files so we need to strip them
10812         # from the output so that they don't get included in the library
10813         # dependencies.
10814         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'
10815         ;;
10816       *)
10817         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10818           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10819           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'
10820
10821           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10822           hardcode_libdir_separator_CXX=:
10823
10824           # Commands to make compiler produce verbose output that lists
10825           # what "hidden" libraries, object files and flags are used when
10826           # linking a shared library.
10827           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10828
10829         else
10830           # FIXME: insert proper C++ library support
10831           ld_shlibs_CXX=no
10832         fi
10833         ;;
10834     esac
10835     ;;
10836   osf4* | osf5*)
10837     case $cc_basename in
10838       KCC*)
10839         # Kuck and Associates, Inc. (KAI) C++ Compiler
10840
10841         # KCC will only create a shared library if the output file
10842         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10843         # to its proper name (with version) after linking.
10844         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'
10845
10846         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10847         hardcode_libdir_separator_CXX=:
10848
10849         # Archives containing C++ object files must be created using
10850         # the KAI C++ compiler.
10851         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10852         ;;
10853       RCC*)
10854         # Rational C++ 2.4.1
10855         # FIXME: insert proper C++ library support
10856         ld_shlibs_CXX=no
10857         ;;
10858       cxx*)
10859         allow_undefined_flag_CXX=' -expect_unresolved \*'
10860         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'
10861         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10862           echo "-hidden">> $lib.exp~
10863           $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~
10864           $rm $lib.exp'
10865
10866         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10867         hardcode_libdir_separator_CXX=:
10868
10869         # Commands to make compiler produce verbose output that lists
10870         # what "hidden" libraries, object files and flags are used when
10871         # linking a shared library.
10872         #
10873         # There doesn't appear to be a way to prevent this compiler from
10874         # explicitly linking system object files so we need to strip them
10875         # from the output so that they don't get included in the library
10876         # dependencies.
10877         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'
10878         ;;
10879       *)
10880         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10881           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10882          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'
10883
10884           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10885           hardcode_libdir_separator_CXX=:
10886
10887           # Commands to make compiler produce verbose output that lists
10888           # what "hidden" libraries, object files and flags are used when
10889           # linking a shared library.
10890           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10891
10892         else
10893           # FIXME: insert proper C++ library support
10894           ld_shlibs_CXX=no
10895         fi
10896         ;;
10897     esac
10898     ;;
10899   psos*)
10900     # FIXME: insert proper C++ library support
10901     ld_shlibs_CXX=no
10902     ;;
10903   sunos4*)
10904     case $cc_basename in
10905       CC*)
10906         # Sun C++ 4.x
10907         # FIXME: insert proper C++ library support
10908         ld_shlibs_CXX=no
10909         ;;
10910       lcc*)
10911         # Lucid
10912         # FIXME: insert proper C++ library support
10913         ld_shlibs_CXX=no
10914         ;;
10915       *)
10916         # FIXME: insert proper C++ library support
10917         ld_shlibs_CXX=no
10918         ;;
10919     esac
10920     ;;
10921   solaris*)
10922     case $cc_basename in
10923       CC*)
10924         # Sun C++ 4.2, 5.x and Centerline C++
10925         archive_cmds_need_lc_CXX=yes
10926         no_undefined_flag_CXX=' -zdefs'
10927         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10928         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10929         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10930
10931         hardcode_libdir_flag_spec_CXX='-R$libdir'
10932         hardcode_shlibpath_var_CXX=no
10933         case $host_os in
10934           solaris2.[0-5] | solaris2.[0-5].*) ;;
10935           *)
10936             # The C++ compiler is used as linker so we must use $wl
10937             # flag to pass the commands to the underlying system
10938             # linker. We must also pass each convience library through
10939             # to the system linker between allextract/defaultextract.
10940             # The C++ compiler will combine linker options so we
10941             # cannot just pass the convience library names through
10942             # without $wl.
10943             # Supported since Solaris 2.6 (maybe 2.5.1?)
10944             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'
10945             ;;
10946         esac
10947         link_all_deplibs_CXX=yes
10948
10949         output_verbose_link_cmd='echo'
10950
10951         # Archives containing C++ object files must be created using
10952         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10953         # necessary to make sure instantiated templates are included
10954         # in the archive.
10955         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10956         ;;
10957       gcx*)
10958         # Green Hills C++ Compiler
10959         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10960
10961         # The C++ compiler must be used to create the archive.
10962         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10963         ;;
10964       *)
10965         # GNU C++ compiler with Solaris linker
10966         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10967           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10968           if $CC --version | grep -v '^2\.7' > /dev/null; then
10969             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10970             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10971                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10972
10973             # Commands to make compiler produce verbose output that lists
10974             # what "hidden" libraries, object files and flags are used when
10975             # linking a shared library.
10976             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10977           else
10978             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10979             # platform.
10980             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10981             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10982                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10983
10984             # Commands to make compiler produce verbose output that lists
10985             # what "hidden" libraries, object files and flags are used when
10986             # linking a shared library.
10987             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10988           fi
10989
10990           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10991         fi
10992         ;;
10993     esac
10994     ;;
10995   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10996     no_undefined_flag_CXX='${wl}-z,text'
10997     archive_cmds_need_lc_CXX=no
10998     hardcode_shlibpath_var_CXX=no
10999     runpath_var='LD_RUN_PATH'
11000
11001     case $cc_basename in
11002       CC*)
11003         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11004         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11005         ;;
11006       *)
11007         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11008         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11009         ;;
11010     esac
11011     ;;
11012   sysv5* | sco3.2v5* | sco5v6*)
11013     # Note: We can NOT use -z defs as we might desire, because we do not
11014     # link with -lc, and that would cause any symbols used from libc to
11015     # always be unresolved, which means just about no library would
11016     # ever link correctly.  If we're not using GNU ld we use -z text
11017     # though, which does catch some bad symbols but isn't as heavy-handed
11018     # as -z defs.
11019     # For security reasons, it is highly recommended that you always
11020     # use absolute paths for naming shared libraries, and exclude the
11021     # DT_RUNPATH tag from executables and libraries.  But doing so
11022     # requires that you compile everything twice, which is a pain.
11023     # So that behaviour is only enabled if SCOABSPATH is set to a
11024     # non-empty value in the environment.  Most likely only useful for
11025     # creating official distributions of packages.
11026     # This is a hack until libtool officially supports absolute path
11027     # names for shared libraries.
11028     no_undefined_flag_CXX='${wl}-z,text'
11029     allow_undefined_flag_CXX='${wl}-z,nodefs'
11030     archive_cmds_need_lc_CXX=no
11031     hardcode_shlibpath_var_CXX=no
11032     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11033     hardcode_libdir_separator_CXX=':'
11034     link_all_deplibs_CXX=yes
11035     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11036     runpath_var='LD_RUN_PATH'
11037
11038     case $cc_basename in
11039       CC*)
11040         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11041         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11042         ;;
11043       *)
11044         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11045         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11046         ;;
11047     esac
11048     ;;
11049   tandem*)
11050     case $cc_basename in
11051       NCC*)
11052         # NonStop-UX NCC 3.20
11053         # FIXME: insert proper C++ library support
11054         ld_shlibs_CXX=no
11055         ;;
11056       *)
11057         # FIXME: insert proper C++ library support
11058         ld_shlibs_CXX=no
11059         ;;
11060     esac
11061     ;;
11062   vxworks*)
11063     # FIXME: insert proper C++ library support
11064     ld_shlibs_CXX=no
11065     ;;
11066   *)
11067     # FIXME: insert proper C++ library support
11068     ld_shlibs_CXX=no
11069     ;;
11070 esac
11071 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11072 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11073 test "$ld_shlibs_CXX" = no && can_build_shared=no
11074
11075 GCC_CXX="$GXX"
11076 LD_CXX="$LD"
11077
11078
11079 cat > conftest.$ac_ext <<EOF
11080 class Foo
11081 {
11082 public:
11083   Foo (void) { a = 0; }
11084 private:
11085   int a;
11086 };
11087 EOF
11088
11089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11090   (eval $ac_compile) 2>&5
11091   ac_status=$?
11092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); }; then
11094   # Parse the compiler output and extract the necessary
11095   # objects, libraries and library flags.
11096
11097   # Sentinel used to keep track of whether or not we are before
11098   # the conftest object file.
11099   pre_test_object_deps_done=no
11100
11101   # The `*' in the case matches for architectures that use `case' in
11102   # $output_verbose_cmd can trigger glob expansion during the loop
11103   # eval without this substitution.
11104   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11105
11106   for p in `eval $output_verbose_link_cmd`; do
11107     case $p in
11108
11109     -L* | -R* | -l*)
11110        # Some compilers place space between "-{L,R}" and the path.
11111        # Remove the space.
11112        if test $p = "-L" \
11113           || test $p = "-R"; then
11114          prev=$p
11115          continue
11116        else
11117          prev=
11118        fi
11119
11120        if test "$pre_test_object_deps_done" = no; then
11121          case $p in
11122          -L* | -R*)
11123            # Internal compiler library paths should come after those
11124            # provided the user.  The postdeps already come after the
11125            # user supplied libs so there is no need to process them.
11126            if test -z "$compiler_lib_search_path_CXX"; then
11127              compiler_lib_search_path_CXX="${prev}${p}"
11128            else
11129              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11130            fi
11131            ;;
11132          # The "-l" case would never come before the object being
11133          # linked, so don't bother handling this case.
11134          esac
11135        else
11136          if test -z "$postdeps_CXX"; then
11137            postdeps_CXX="${prev}${p}"
11138          else
11139            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11140          fi
11141        fi
11142        ;;
11143
11144     *.$objext)
11145        # This assumes that the test object file only shows up
11146        # once in the compiler output.
11147        if test "$p" = "conftest.$objext"; then
11148          pre_test_object_deps_done=yes
11149          continue
11150        fi
11151
11152        if test "$pre_test_object_deps_done" = no; then
11153          if test -z "$predep_objects_CXX"; then
11154            predep_objects_CXX="$p"
11155          else
11156            predep_objects_CXX="$predep_objects_CXX $p"
11157          fi
11158        else
11159          if test -z "$postdep_objects_CXX"; then
11160            postdep_objects_CXX="$p"
11161          else
11162            postdep_objects_CXX="$postdep_objects_CXX $p"
11163          fi
11164        fi
11165        ;;
11166
11167     *) ;; # Ignore the rest.
11168
11169     esac
11170   done
11171
11172   # Clean up.
11173   rm -f a.out a.exe
11174 else
11175   echo "libtool.m4: error: problem compiling CXX test program"
11176 fi
11177
11178 $rm -f confest.$objext
11179
11180 # PORTME: override above test on systems where it is broken
11181 case $host_os in
11182 interix3*)
11183   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11184   # hack all around it, let's just trust "g++" to DTRT.
11185   predep_objects_CXX=
11186   postdep_objects_CXX=
11187   postdeps_CXX=
11188   ;;
11189
11190 solaris*)
11191   case $cc_basename in
11192   CC*)
11193     # Adding this requires a known-good setup of shared libraries for
11194     # Sun compiler versions before 5.6, else PIC objects from an old
11195     # archive will be linked into the output, leading to subtle bugs.
11196     postdeps_CXX='-lCstd -lCrun'
11197     ;;
11198   esac
11199   ;;
11200 esac
11201
11202
11203 case " $postdeps_CXX " in
11204 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11205 esac
11206
11207 lt_prog_compiler_wl_CXX=
11208 lt_prog_compiler_pic_CXX=
11209 lt_prog_compiler_static_CXX=
11210
11211 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11212 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11213
11214   # C++ specific cases for pic, static, wl, etc.
11215   if test "$GXX" = yes; then
11216     lt_prog_compiler_wl_CXX='-Wl,'
11217     lt_prog_compiler_static_CXX='-static'
11218
11219     case $host_os in
11220     aix*)
11221       # All AIX code is PIC.
11222       if test "$host_cpu" = ia64; then
11223         # AIX 5 now supports IA64 processor
11224         lt_prog_compiler_static_CXX='-Bstatic'
11225       fi
11226       ;;
11227     amigaos*)
11228       # FIXME: we need at least 68020 code to build shared libraries, but
11229       # adding the `-m68020' flag to GCC prevents building anything better,
11230       # like `-m68040'.
11231       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11232       ;;
11233     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11234       # PIC is the default for these OSes.
11235       ;;
11236     mingw* | os2* | pw32*)
11237       # This hack is so that the source file can tell whether it is being
11238       # built for inclusion in a dll (and should export symbols for example).
11239       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11240       ;;
11241     darwin* | rhapsody*)
11242       # PIC is the default on this platform
11243       # Common symbols not allowed in MH_DYLIB files
11244       lt_prog_compiler_pic_CXX='-fno-common'
11245       ;;
11246     *djgpp*)
11247       # DJGPP does not support shared libraries at all
11248       lt_prog_compiler_pic_CXX=
11249       ;;
11250     interix3*)
11251       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11252       # Instead, we relocate shared libraries at runtime.
11253       ;;
11254     sysv4*MP*)
11255       if test -d /usr/nec; then
11256         lt_prog_compiler_pic_CXX=-Kconform_pic
11257       fi
11258       ;;
11259     hpux*)
11260       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11261       # not for PA HP-UX.
11262       case $host_cpu in
11263       hppa*64*|ia64*)
11264         ;;
11265       *)
11266         lt_prog_compiler_pic_CXX='-fPIC'
11267         ;;
11268       esac
11269       ;;
11270     *)
11271       lt_prog_compiler_pic_CXX='-fPIC'
11272       ;;
11273     esac
11274   else
11275     case $host_os in
11276       aix4* | aix5*)
11277         # All AIX code is PIC.
11278         if test "$host_cpu" = ia64; then
11279           # AIX 5 now supports IA64 processor
11280           lt_prog_compiler_static_CXX='-Bstatic'
11281         else
11282           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11283         fi
11284         ;;
11285       chorus*)
11286         case $cc_basename in
11287         cxch68*)
11288           # Green Hills C++ Compiler
11289           # _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"
11290           ;;
11291         esac
11292         ;;
11293        darwin*)
11294          # PIC is the default on this platform
11295          # Common symbols not allowed in MH_DYLIB files
11296          case $cc_basename in
11297            xlc*)
11298            lt_prog_compiler_pic_CXX='-qnocommon'
11299            lt_prog_compiler_wl_CXX='-Wl,'
11300            ;;
11301          esac
11302        ;;
11303       dgux*)
11304         case $cc_basename in
11305           ec++*)
11306             lt_prog_compiler_pic_CXX='-KPIC'
11307             ;;
11308           ghcx*)
11309             # Green Hills C++ Compiler
11310             lt_prog_compiler_pic_CXX='-pic'
11311             ;;
11312           *)
11313             ;;
11314         esac
11315         ;;
11316       freebsd* | kfreebsd*-gnu | dragonfly*)
11317         # FreeBSD uses GNU C++
11318         ;;
11319       hpux9* | hpux10* | hpux11*)
11320         case $cc_basename in
11321           CC*)
11322             lt_prog_compiler_wl_CXX='-Wl,'
11323             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11324             if test "$host_cpu" != ia64; then
11325               lt_prog_compiler_pic_CXX='+Z'
11326             fi
11327             ;;
11328           aCC*)
11329             lt_prog_compiler_wl_CXX='-Wl,'
11330             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11331             case $host_cpu in
11332             hppa*64*|ia64*)
11333               # +Z the default
11334               ;;
11335             *)
11336               lt_prog_compiler_pic_CXX='+Z'
11337               ;;
11338             esac
11339             ;;
11340           *)
11341             ;;
11342         esac
11343         ;;
11344       interix*)
11345         # This is c89, which is MS Visual C++ (no shared libs)
11346         # Anyone wants to do a port?
11347         ;;
11348       irix5* | irix6* | nonstopux*)
11349         case $cc_basename in
11350           CC*)
11351             lt_prog_compiler_wl_CXX='-Wl,'
11352             lt_prog_compiler_static_CXX='-non_shared'
11353             # CC pic flag -KPIC is the default.
11354             ;;
11355           *)
11356             ;;
11357         esac
11358         ;;
11359       linux*)
11360         case $cc_basename in
11361           KCC*)
11362             # KAI C++ Compiler
11363             lt_prog_compiler_wl_CXX='--backend -Wl,'
11364             lt_prog_compiler_pic_CXX='-fPIC'
11365             ;;
11366           icpc* | ecpc*)
11367             # Intel C++
11368             lt_prog_compiler_wl_CXX='-Wl,'
11369             lt_prog_compiler_pic_CXX='-KPIC'
11370             lt_prog_compiler_static_CXX='-static'
11371             ;;
11372           pgCC*)
11373             # Portland Group C++ compiler.
11374             lt_prog_compiler_wl_CXX='-Wl,'
11375             lt_prog_compiler_pic_CXX='-fpic'
11376             lt_prog_compiler_static_CXX='-Bstatic'
11377             ;;
11378           cxx*)
11379             # Compaq C++
11380             # Make sure the PIC flag is empty.  It appears that all Alpha
11381             # Linux and Compaq Tru64 Unix objects are PIC.
11382             lt_prog_compiler_pic_CXX=
11383             lt_prog_compiler_static_CXX='-non_shared'
11384             ;;
11385           *)
11386             ;;
11387         esac
11388         ;;
11389       lynxos*)
11390         ;;
11391       m88k*)
11392         ;;
11393       mvs*)
11394         case $cc_basename in
11395           cxx*)
11396             lt_prog_compiler_pic_CXX='-W c,exportall'
11397             ;;
11398           *)
11399             ;;
11400         esac
11401         ;;
11402       netbsd*)
11403         ;;
11404       osf3* | osf4* | osf5*)
11405         case $cc_basename in
11406           KCC*)
11407             lt_prog_compiler_wl_CXX='--backend -Wl,'
11408             ;;
11409           RCC*)
11410             # Rational C++ 2.4.1
11411             lt_prog_compiler_pic_CXX='-pic'
11412             ;;
11413           cxx*)
11414             # Digital/Compaq C++
11415             lt_prog_compiler_wl_CXX='-Wl,'
11416             # Make sure the PIC flag is empty.  It appears that all Alpha
11417             # Linux and Compaq Tru64 Unix objects are PIC.
11418             lt_prog_compiler_pic_CXX=
11419             lt_prog_compiler_static_CXX='-non_shared'
11420             ;;
11421           *)
11422             ;;
11423         esac
11424         ;;
11425       psos*)
11426         ;;
11427       solaris*)
11428         case $cc_basename in
11429           CC*)
11430             # Sun C++ 4.2, 5.x and Centerline C++
11431             lt_prog_compiler_pic_CXX='-KPIC'
11432             lt_prog_compiler_static_CXX='-Bstatic'
11433             lt_prog_compiler_wl_CXX='-Qoption ld '
11434             ;;
11435           gcx*)
11436             # Green Hills C++ Compiler
11437             lt_prog_compiler_pic_CXX='-PIC'
11438             ;;
11439           *)
11440             ;;
11441         esac
11442         ;;
11443       sunos4*)
11444         case $cc_basename in
11445           CC*)
11446             # Sun C++ 4.x
11447             lt_prog_compiler_pic_CXX='-pic'
11448             lt_prog_compiler_static_CXX='-Bstatic'
11449             ;;
11450           lcc*)
11451             # Lucid
11452             lt_prog_compiler_pic_CXX='-pic'
11453             ;;
11454           *)
11455             ;;
11456         esac
11457         ;;
11458       tandem*)
11459         case $cc_basename in
11460           NCC*)
11461             # NonStop-UX NCC 3.20
11462             lt_prog_compiler_pic_CXX='-KPIC'
11463             ;;
11464           *)
11465             ;;
11466         esac
11467         ;;
11468       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11469         case $cc_basename in
11470           CC*)
11471             lt_prog_compiler_wl_CXX='-Wl,'
11472             lt_prog_compiler_pic_CXX='-KPIC'
11473             lt_prog_compiler_static_CXX='-Bstatic'
11474             ;;
11475         esac
11476         ;;
11477       vxworks*)
11478         ;;
11479       *)
11480         lt_prog_compiler_can_build_shared_CXX=no
11481         ;;
11482     esac
11483   fi
11484
11485 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11486 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11487
11488 #
11489 # Check to make sure the PIC flag actually works.
11490 #
11491 if test -n "$lt_prog_compiler_pic_CXX"; then
11492
11493 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11494 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11495 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11496   echo $ECHO_N "(cached) $ECHO_C" >&6
11497 else
11498   lt_prog_compiler_pic_works_CXX=no
11499   ac_outfile=conftest.$ac_objext
11500    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11501    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11502    # Insert the option either (1) after the last *FLAGS variable, or
11503    # (2) before a word containing "conftest.", or (3) at the end.
11504    # Note that $ac_compile itself does not contain backslashes and begins
11505    # with a dollar sign (not a hyphen), so the echo should work correctly.
11506    # The option is referenced via a variable to avoid confusing sed.
11507    lt_compile=`echo "$ac_compile" | $SED \
11508    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11509    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11510    -e 's:$: $lt_compiler_flag:'`
11511    (eval echo "\"\$as_me:11511: $lt_compile\"" >&5)
11512    (eval "$lt_compile" 2>conftest.err)
11513    ac_status=$?
11514    cat conftest.err >&5
11515    echo "$as_me:11515: \$? = $ac_status" >&5
11516    if (exit $ac_status) && test -s "$ac_outfile"; then
11517      # The compiler can only warn and ignore the option if not recognized
11518      # So say no if there are warnings other than the usual output.
11519      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11520      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11521      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11522        lt_prog_compiler_pic_works_CXX=yes
11523      fi
11524    fi
11525    $rm conftest*
11526
11527 fi
11528 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11529 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11530
11531 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11532     case $lt_prog_compiler_pic_CXX in
11533      "" | " "*) ;;
11534      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11535      esac
11536 else
11537     lt_prog_compiler_pic_CXX=
11538      lt_prog_compiler_can_build_shared_CXX=no
11539 fi
11540
11541 fi
11542 case $host_os in
11543   # For platforms which do not support PIC, -DPIC is meaningless:
11544   *djgpp*)
11545     lt_prog_compiler_pic_CXX=
11546     ;;
11547   *)
11548     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11549     ;;
11550 esac
11551
11552 #
11553 # Check to make sure the static flag actually works.
11554 #
11555 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11556 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11557 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11558 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11559   echo $ECHO_N "(cached) $ECHO_C" >&6
11560 else
11561   lt_prog_compiler_static_works_CXX=no
11562    save_LDFLAGS="$LDFLAGS"
11563    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11564    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11565    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11566      # The linker can only warn and ignore the option if not recognized
11567      # So say no if there are warnings
11568      if test -s conftest.err; then
11569        # Append any errors to the config.log.
11570        cat conftest.err 1>&5
11571        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11572        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11573        if diff conftest.exp conftest.er2 >/dev/null; then
11574          lt_prog_compiler_static_works_CXX=yes
11575        fi
11576      else
11577        lt_prog_compiler_static_works_CXX=yes
11578      fi
11579    fi
11580    $rm conftest*
11581    LDFLAGS="$save_LDFLAGS"
11582
11583 fi
11584 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11585 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11586
11587 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11588     :
11589 else
11590     lt_prog_compiler_static_CXX=
11591 fi
11592
11593
11594 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11595 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11596 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11597   echo $ECHO_N "(cached) $ECHO_C" >&6
11598 else
11599   lt_cv_prog_compiler_c_o_CXX=no
11600    $rm -r conftest 2>/dev/null
11601    mkdir conftest
11602    cd conftest
11603    mkdir out
11604    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11605
11606    lt_compiler_flag="-o out/conftest2.$ac_objext"
11607    # Insert the option either (1) after the last *FLAGS variable, or
11608    # (2) before a word containing "conftest.", or (3) at the end.
11609    # Note that $ac_compile itself does not contain backslashes and begins
11610    # with a dollar sign (not a hyphen), so the echo should work correctly.
11611    lt_compile=`echo "$ac_compile" | $SED \
11612    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11613    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11614    -e 's:$: $lt_compiler_flag:'`
11615    (eval echo "\"\$as_me:11615: $lt_compile\"" >&5)
11616    (eval "$lt_compile" 2>out/conftest.err)
11617    ac_status=$?
11618    cat out/conftest.err >&5
11619    echo "$as_me:11619: \$? = $ac_status" >&5
11620    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11621    then
11622      # The compiler can only warn and ignore the option if not recognized
11623      # So say no if there are warnings
11624      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11625      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11626      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11627        lt_cv_prog_compiler_c_o_CXX=yes
11628      fi
11629    fi
11630    chmod u+w . 2>&5
11631    $rm conftest*
11632    # SGI C++ compiler will create directory out/ii_files/ for
11633    # template instantiation
11634    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11635    $rm out/* && rmdir out
11636    cd ..
11637    rmdir conftest
11638    $rm conftest*
11639
11640 fi
11641 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11642 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11643
11644
11645 hard_links="nottested"
11646 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11647   # do not overwrite the value of need_locks provided by the user
11648   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11649 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11650   hard_links=yes
11651   $rm conftest*
11652   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11653   touch conftest.a
11654   ln conftest.a conftest.b 2>&5 || hard_links=no
11655   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11656   echo "$as_me:$LINENO: result: $hard_links" >&5
11657 echo "${ECHO_T}$hard_links" >&6
11658   if test "$hard_links" = no; then
11659     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11660 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11661     need_locks=warn
11662   fi
11663 else
11664   need_locks=no
11665 fi
11666
11667 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11668 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11669
11670   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11671   case $host_os in
11672   aix4* | aix5*)
11673     # If we're using GNU nm, then we don't want the "-C" option.
11674     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11675     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11676       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'
11677     else
11678       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'
11679     fi
11680     ;;
11681   pw32*)
11682     export_symbols_cmds_CXX="$ltdll_cmds"
11683   ;;
11684   cygwin* | mingw*)
11685     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'
11686   ;;
11687   *)
11688     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11689   ;;
11690   esac
11691
11692 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11693 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11694 test "$ld_shlibs_CXX" = no && can_build_shared=no
11695
11696 #
11697 # Do we need to explicitly link libc?
11698 #
11699 case "x$archive_cmds_need_lc_CXX" in
11700 x|xyes)
11701   # Assume -lc should be added
11702   archive_cmds_need_lc_CXX=yes
11703
11704   if test "$enable_shared" = yes && test "$GCC" = yes; then
11705     case $archive_cmds_CXX in
11706     *'~'*)
11707       # FIXME: we may have to deal with multi-command sequences.
11708       ;;
11709     '$CC '*)
11710       # Test whether the compiler implicitly links with -lc since on some
11711       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11712       # to ld, don't add -lc before -lgcc.
11713       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11714 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11715       $rm conftest*
11716       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11717
11718       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11719   (eval $ac_compile) 2>&5
11720   ac_status=$?
11721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722   (exit $ac_status); } 2>conftest.err; then
11723         soname=conftest
11724         lib=conftest
11725         libobjs=conftest.$ac_objext
11726         deplibs=
11727         wl=$lt_prog_compiler_wl_CXX
11728         pic_flag=$lt_prog_compiler_pic_CXX
11729         compiler_flags=-v
11730         linker_flags=-v
11731         verstring=
11732         output_objdir=.
11733         libname=conftest
11734         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11735         allow_undefined_flag_CXX=
11736         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11737   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11738   ac_status=$?
11739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740   (exit $ac_status); }
11741         then
11742           archive_cmds_need_lc_CXX=no
11743         else
11744           archive_cmds_need_lc_CXX=yes
11745         fi
11746         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11747       else
11748         cat conftest.err 1>&5
11749       fi
11750       $rm conftest*
11751       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11752 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11753       ;;
11754     esac
11755   fi
11756   ;;
11757 esac
11758
11759 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11760 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11761 library_names_spec=
11762 libname_spec='lib$name'
11763 soname_spec=
11764 shrext_cmds=".so"
11765 postinstall_cmds=
11766 postuninstall_cmds=
11767 finish_cmds=
11768 finish_eval=
11769 shlibpath_var=
11770 shlibpath_overrides_runpath=unknown
11771 version_type=none
11772 dynamic_linker="$host_os ld.so"
11773 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11774 if test "$GCC" = yes; then
11775   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11776   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11777     # if the path contains ";" then we assume it to be the separator
11778     # otherwise default to the standard path separator (i.e. ":") - it is
11779     # assumed that no part of a normal pathname contains ";" but that should
11780     # okay in the real world where ";" in dirpaths is itself problematic.
11781     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11782   else
11783     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11784   fi
11785 else
11786   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11787 fi
11788 need_lib_prefix=unknown
11789 hardcode_into_libs=no
11790
11791 # when you set need_version to no, make sure it does not cause -set_version
11792 # flags to be left without arguments
11793 need_version=unknown
11794
11795 case $host_os in
11796 aix3*)
11797   version_type=linux
11798   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11799   shlibpath_var=LIBPATH
11800
11801   # AIX 3 has no versioning support, so we append a major version to the name.
11802   soname_spec='${libname}${release}${shared_ext}$major'
11803   ;;
11804
11805 aix4* | aix5*)
11806   version_type=linux
11807   need_lib_prefix=no
11808   need_version=no
11809   hardcode_into_libs=yes
11810   if test "$host_cpu" = ia64; then
11811     # AIX 5 supports IA64
11812     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11813     shlibpath_var=LD_LIBRARY_PATH
11814   else
11815     # With GCC up to 2.95.x, collect2 would create an import file
11816     # for dependence libraries.  The import file would start with
11817     # the line `#! .'.  This would cause the generated library to
11818     # depend on `.', always an invalid library.  This was fixed in
11819     # development snapshots of GCC prior to 3.0.
11820     case $host_os in
11821       aix4 | aix4.[01] | aix4.[01].*)
11822       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11823            echo ' yes '
11824            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11825         :
11826       else
11827         can_build_shared=no
11828       fi
11829       ;;
11830     esac
11831     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11832     # soname into executable. Probably we can add versioning support to
11833     # collect2, so additional links can be useful in future.
11834     if test "$aix_use_runtimelinking" = yes; then
11835       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11836       # instead of lib<name>.a to let people know that these are not
11837       # typical AIX shared libraries.
11838       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11839     else
11840       # We preserve .a as extension for shared libraries through AIX4.2
11841       # and later when we are not doing run time linking.
11842       library_names_spec='${libname}${release}.a $libname.a'
11843       soname_spec='${libname}${release}${shared_ext}$major'
11844     fi
11845     shlibpath_var=LIBPATH
11846   fi
11847   ;;
11848
11849 amigaos*)
11850   library_names_spec='$libname.ixlibrary $libname.a'
11851   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11852   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'
11853   ;;
11854
11855 beos*)
11856   library_names_spec='${libname}${shared_ext}'
11857   dynamic_linker="$host_os ld.so"
11858   shlibpath_var=LIBRARY_PATH
11859   ;;
11860
11861 bsdi[45]*)
11862   version_type=linux
11863   need_version=no
11864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11865   soname_spec='${libname}${release}${shared_ext}$major'
11866   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11867   shlibpath_var=LD_LIBRARY_PATH
11868   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11869   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11870   # the default ld.so.conf also contains /usr/contrib/lib and
11871   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11872   # libtool to hard-code these into programs
11873   ;;
11874
11875 cygwin* | mingw* | pw32*)
11876   version_type=windows
11877   shrext_cmds=".dll"
11878   need_version=no
11879   need_lib_prefix=no
11880
11881   case $GCC,$host_os in
11882   yes,cygwin* | yes,mingw* | yes,pw32*)
11883     library_names_spec='$libname.dll.a'
11884     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11885     postinstall_cmds='base_file=`basename \${file}`~
11886       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11887       dldir=$destdir/`dirname \$dlpath`~
11888       test -d \$dldir || mkdir -p \$dldir~
11889       $install_prog $dir/$dlname \$dldir/$dlname~
11890       chmod a+x \$dldir/$dlname'
11891     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11892       dlpath=$dir/\$dldll~
11893        $rm \$dlpath'
11894     shlibpath_overrides_runpath=yes
11895
11896     case $host_os in
11897     cygwin*)
11898       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11899       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11900       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11901       ;;
11902     mingw*)
11903       # MinGW DLLs use traditional 'lib' prefix
11904       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11905       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11906       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11907         # It is most probably a Windows format PATH printed by
11908         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11909         # path with ; separators, and with drive letters. We can handle the
11910         # drive letters (cygwin fileutils understands them), so leave them,
11911         # especially as we might pass files found there to a mingw objdump,
11912         # which wouldn't understand a cygwinified path. Ahh.
11913         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11914       else
11915         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11916       fi
11917       ;;
11918     pw32*)
11919       # pw32 DLLs use 'pw' prefix rather than 'lib'
11920       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11921       ;;
11922     esac
11923     ;;
11924
11925   *)
11926     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11927     ;;
11928   esac
11929   dynamic_linker='Win32 ld.exe'
11930   # FIXME: first we should search . and the directory the executable is in
11931   shlibpath_var=PATH
11932   ;;
11933
11934 darwin* | rhapsody*)
11935   dynamic_linker="$host_os dyld"
11936   version_type=darwin
11937   need_lib_prefix=no
11938   need_version=no
11939   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11940   soname_spec='${libname}${release}${major}$shared_ext'
11941   shlibpath_overrides_runpath=yes
11942   shlibpath_var=DYLD_LIBRARY_PATH
11943   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11944   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11945   if test "$GCC" = yes; then
11946     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"`
11947   else
11948     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11949   fi
11950   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11951   ;;
11952
11953 dgux*)
11954   version_type=linux
11955   need_lib_prefix=no
11956   need_version=no
11957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11958   soname_spec='${libname}${release}${shared_ext}$major'
11959   shlibpath_var=LD_LIBRARY_PATH
11960   ;;
11961
11962 freebsd1*)
11963   dynamic_linker=no
11964   ;;
11965
11966 kfreebsd*-gnu)
11967   version_type=linux
11968   need_lib_prefix=no
11969   need_version=no
11970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11971   soname_spec='${libname}${release}${shared_ext}$major'
11972   shlibpath_var=LD_LIBRARY_PATH
11973   shlibpath_overrides_runpath=no
11974   hardcode_into_libs=yes
11975   dynamic_linker='GNU ld.so'
11976   ;;
11977
11978 freebsd* | dragonfly*)
11979   # DragonFly does not have aout.  When/if they implement a new
11980   # versioning mechanism, adjust this.
11981   if test -x /usr/bin/objformat; then
11982     objformat=`/usr/bin/objformat`
11983   else
11984     case $host_os in
11985     freebsd[123]*) objformat=aout ;;
11986     *) objformat=elf ;;
11987     esac
11988   fi
11989   version_type=freebsd-$objformat
11990   case $version_type in
11991     freebsd-elf*)
11992       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11993       need_version=no
11994       need_lib_prefix=no
11995       ;;
11996     freebsd-*)
11997       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11998       need_version=yes
11999       ;;
12000   esac
12001   shlibpath_var=LD_LIBRARY_PATH
12002   case $host_os in
12003   freebsd2*)
12004     shlibpath_overrides_runpath=yes
12005     ;;
12006   freebsd3.[01]* | freebsdelf3.[01]*)
12007     shlibpath_overrides_runpath=yes
12008     hardcode_into_libs=yes
12009     ;;
12010   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12011   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12012     shlibpath_overrides_runpath=no
12013     hardcode_into_libs=yes
12014     ;;
12015   freebsd*) # from 4.6 on
12016     shlibpath_overrides_runpath=yes
12017     hardcode_into_libs=yes
12018     ;;
12019   esac
12020   ;;
12021
12022 gnu*)
12023   version_type=linux
12024   need_lib_prefix=no
12025   need_version=no
12026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12027   soname_spec='${libname}${release}${shared_ext}$major'
12028   shlibpath_var=LD_LIBRARY_PATH
12029   hardcode_into_libs=yes
12030   ;;
12031
12032 hpux9* | hpux10* | hpux11*)
12033   # Give a soname corresponding to the major version so that dld.sl refuses to
12034   # link against other versions.
12035   version_type=sunos
12036   need_lib_prefix=no
12037   need_version=no
12038   case $host_cpu in
12039   ia64*)
12040     shrext_cmds='.so'
12041     hardcode_into_libs=yes
12042     dynamic_linker="$host_os dld.so"
12043     shlibpath_var=LD_LIBRARY_PATH
12044     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12045     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12046     soname_spec='${libname}${release}${shared_ext}$major'
12047     if test "X$HPUX_IA64_MODE" = X32; then
12048       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12049     else
12050       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12051     fi
12052     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12053     ;;
12054    hppa*64*)
12055      shrext_cmds='.sl'
12056      hardcode_into_libs=yes
12057      dynamic_linker="$host_os dld.sl"
12058      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12059      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12060      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12061      soname_spec='${libname}${release}${shared_ext}$major'
12062      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12063      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12064      ;;
12065    *)
12066     shrext_cmds='.sl'
12067     dynamic_linker="$host_os dld.sl"
12068     shlibpath_var=SHLIB_PATH
12069     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12070     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12071     soname_spec='${libname}${release}${shared_ext}$major'
12072     ;;
12073   esac
12074   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12075   postinstall_cmds='chmod 555 $lib'
12076   ;;
12077
12078 interix3*)
12079   version_type=linux
12080   need_lib_prefix=no
12081   need_version=no
12082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12083   soname_spec='${libname}${release}${shared_ext}$major'
12084   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12085   shlibpath_var=LD_LIBRARY_PATH
12086   shlibpath_overrides_runpath=no
12087   hardcode_into_libs=yes
12088   ;;
12089
12090 irix5* | irix6* | nonstopux*)
12091   case $host_os in
12092     nonstopux*) version_type=nonstopux ;;
12093     *)
12094         if test "$lt_cv_prog_gnu_ld" = yes; then
12095                 version_type=linux
12096         else
12097                 version_type=irix
12098         fi ;;
12099   esac
12100   need_lib_prefix=no
12101   need_version=no
12102   soname_spec='${libname}${release}${shared_ext}$major'
12103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12104   case $host_os in
12105   irix5* | nonstopux*)
12106     libsuff= shlibsuff=
12107     ;;
12108   *)
12109     case $LD in # libtool.m4 will add one of these switches to LD
12110     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12111       libsuff= shlibsuff= libmagic=32-bit;;
12112     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12113       libsuff=32 shlibsuff=N32 libmagic=N32;;
12114     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12115       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12116     *) libsuff= shlibsuff= libmagic=never-match;;
12117     esac
12118     ;;
12119   esac
12120   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12121   shlibpath_overrides_runpath=no
12122   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12123   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12124   hardcode_into_libs=yes
12125   ;;
12126
12127 # No shared lib support for Linux oldld, aout, or coff.
12128 linux*oldld* | linux*aout* | linux*coff*)
12129   dynamic_linker=no
12130   ;;
12131
12132 # This must be Linux ELF.
12133 linux*)
12134   version_type=linux
12135   need_lib_prefix=no
12136   need_version=no
12137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12138   soname_spec='${libname}${release}${shared_ext}$major'
12139   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12140   shlibpath_var=LD_LIBRARY_PATH
12141   shlibpath_overrides_runpath=no
12142   # This implies no fast_install, which is unacceptable.
12143   # Some rework will be needed to allow for fast_install
12144   # before this can be enabled.
12145   hardcode_into_libs=yes
12146
12147   # find out which ABI we are using
12148   libsuff=
12149   case "$host_cpu" in
12150   x86_64*|s390x*|powerpc64*)
12151     echo '#line 12151 "configure"' > conftest.$ac_ext
12152     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12153   (eval $ac_compile) 2>&5
12154   ac_status=$?
12155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156   (exit $ac_status); }; then
12157       case `/usr/bin/file conftest.$ac_objext` in
12158       *64-bit*)
12159         libsuff=64
12160         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12161         ;;
12162       esac
12163     fi
12164     rm -rf conftest*
12165     ;;
12166   esac
12167
12168   # Append ld.so.conf contents to the search path
12169   if test -f /etc/ld.so.conf; then
12170     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12171     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12172   fi
12173
12174   # We used to test for /lib/ld.so.1 and disable shared libraries on
12175   # powerpc, because MkLinux only supported shared libraries with the
12176   # GNU dynamic linker.  Since this was broken with cross compilers,
12177   # most powerpc-linux boxes support dynamic linking these days and
12178   # people can always --disable-shared, the test was removed, and we
12179   # assume the GNU/Linux dynamic linker is in use.
12180   dynamic_linker='GNU/Linux ld.so'
12181   ;;
12182
12183 knetbsd*-gnu)
12184   version_type=linux
12185   need_lib_prefix=no
12186   need_version=no
12187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12188   soname_spec='${libname}${release}${shared_ext}$major'
12189   shlibpath_var=LD_LIBRARY_PATH
12190   shlibpath_overrides_runpath=no
12191   hardcode_into_libs=yes
12192   dynamic_linker='GNU ld.so'
12193   ;;
12194
12195 netbsd*)
12196   version_type=sunos
12197   need_lib_prefix=no
12198   need_version=no
12199   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12200     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12201     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12202     dynamic_linker='NetBSD (a.out) ld.so'
12203   else
12204     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12205     soname_spec='${libname}${release}${shared_ext}$major'
12206     dynamic_linker='NetBSD ld.elf_so'
12207   fi
12208   shlibpath_var=LD_LIBRARY_PATH
12209   shlibpath_overrides_runpath=yes
12210   hardcode_into_libs=yes
12211   ;;
12212
12213 newsos6)
12214   version_type=linux
12215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12216   shlibpath_var=LD_LIBRARY_PATH
12217   shlibpath_overrides_runpath=yes
12218   ;;
12219
12220 nto-qnx*)
12221   version_type=linux
12222   need_lib_prefix=no
12223   need_version=no
12224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12225   soname_spec='${libname}${release}${shared_ext}$major'
12226   shlibpath_var=LD_LIBRARY_PATH
12227   shlibpath_overrides_runpath=yes
12228   ;;
12229
12230 openbsd*)
12231   version_type=sunos
12232   sys_lib_dlsearch_path_spec="/usr/lib"
12233   need_lib_prefix=no
12234   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12235   case $host_os in
12236     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12237     *)                         need_version=no  ;;
12238   esac
12239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12240   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12241   shlibpath_var=LD_LIBRARY_PATH
12242   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12243     case $host_os in
12244       openbsd2.[89] | openbsd2.[89].*)
12245         shlibpath_overrides_runpath=no
12246         ;;
12247       *)
12248         shlibpath_overrides_runpath=yes
12249         ;;
12250       esac
12251   else
12252     shlibpath_overrides_runpath=yes
12253   fi
12254   ;;
12255
12256 os2*)
12257   libname_spec='$name'
12258   shrext_cmds=".dll"
12259   need_lib_prefix=no
12260   library_names_spec='$libname${shared_ext} $libname.a'
12261   dynamic_linker='OS/2 ld.exe'
12262   shlibpath_var=LIBPATH
12263   ;;
12264
12265 osf3* | osf4* | osf5*)
12266   version_type=osf
12267   need_lib_prefix=no
12268   need_version=no
12269   soname_spec='${libname}${release}${shared_ext}$major'
12270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12271   shlibpath_var=LD_LIBRARY_PATH
12272   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12273   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12274   ;;
12275
12276 solaris*)
12277   version_type=linux
12278   need_lib_prefix=no
12279   need_version=no
12280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12281   soname_spec='${libname}${release}${shared_ext}$major'
12282   shlibpath_var=LD_LIBRARY_PATH
12283   shlibpath_overrides_runpath=yes
12284   hardcode_into_libs=yes
12285   # ldd complains unless libraries are executable
12286   postinstall_cmds='chmod +x $lib'
12287   ;;
12288
12289 sunos4*)
12290   version_type=sunos
12291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12292   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12293   shlibpath_var=LD_LIBRARY_PATH
12294   shlibpath_overrides_runpath=yes
12295   if test "$with_gnu_ld" = yes; then
12296     need_lib_prefix=no
12297   fi
12298   need_version=yes
12299   ;;
12300
12301 sysv4 | sysv4.3*)
12302   version_type=linux
12303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12304   soname_spec='${libname}${release}${shared_ext}$major'
12305   shlibpath_var=LD_LIBRARY_PATH
12306   case $host_vendor in
12307     sni)
12308       shlibpath_overrides_runpath=no
12309       need_lib_prefix=no
12310       export_dynamic_flag_spec='${wl}-Blargedynsym'
12311       runpath_var=LD_RUN_PATH
12312       ;;
12313     siemens)
12314       need_lib_prefix=no
12315       ;;
12316     motorola)
12317       need_lib_prefix=no
12318       need_version=no
12319       shlibpath_overrides_runpath=no
12320       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12321       ;;
12322   esac
12323   ;;
12324
12325 sysv4*MP*)
12326   if test -d /usr/nec ;then
12327     version_type=linux
12328     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12329     soname_spec='$libname${shared_ext}.$major'
12330     shlibpath_var=LD_LIBRARY_PATH
12331   fi
12332   ;;
12333
12334 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12335   version_type=freebsd-elf
12336   need_lib_prefix=no
12337   need_version=no
12338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12339   soname_spec='${libname}${release}${shared_ext}$major'
12340   shlibpath_var=LD_LIBRARY_PATH
12341   hardcode_into_libs=yes
12342   if test "$with_gnu_ld" = yes; then
12343     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12344     shlibpath_overrides_runpath=no
12345   else
12346     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12347     shlibpath_overrides_runpath=yes
12348     case $host_os in
12349       sco3.2v5*)
12350         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12351         ;;
12352     esac
12353   fi
12354   sys_lib_dlsearch_path_spec='/usr/lib'
12355   ;;
12356
12357 uts4*)
12358   version_type=linux
12359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12360   soname_spec='${libname}${release}${shared_ext}$major'
12361   shlibpath_var=LD_LIBRARY_PATH
12362   ;;
12363
12364 *)
12365   dynamic_linker=no
12366   ;;
12367 esac
12368 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12369 echo "${ECHO_T}$dynamic_linker" >&6
12370 test "$dynamic_linker" = no && can_build_shared=no
12371
12372 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12373 if test "$GCC" = yes; then
12374   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12375 fi
12376
12377 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12378 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12379 hardcode_action_CXX=
12380 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12381    test -n "$runpath_var_CXX" || \
12382    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12383
12384   # We can hardcode non-existant directories.
12385   if test "$hardcode_direct_CXX" != no &&
12386      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12387      # have to relink, otherwise we might link with an installed library
12388      # when we should be linking with a yet-to-be-installed one
12389      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12390      test "$hardcode_minus_L_CXX" != no; then
12391     # Linking always hardcodes the temporary library directory.
12392     hardcode_action_CXX=relink
12393   else
12394     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12395     hardcode_action_CXX=immediate
12396   fi
12397 else
12398   # We cannot hardcode anything, or else we can only hardcode existing
12399   # directories.
12400   hardcode_action_CXX=unsupported
12401 fi
12402 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12403 echo "${ECHO_T}$hardcode_action_CXX" >&6
12404
12405 if test "$hardcode_action_CXX" = relink; then
12406   # Fast installation is not supported
12407   enable_fast_install=no
12408 elif test "$shlibpath_overrides_runpath" = yes ||
12409      test "$enable_shared" = no; then
12410   # Fast installation is not necessary
12411   enable_fast_install=needless
12412 fi
12413
12414
12415 # The else clause should only fire when bootstrapping the
12416 # libtool distribution, otherwise you forgot to ship ltmain.sh
12417 # with your package, and you will get complaints that there are
12418 # no rules to generate ltmain.sh.
12419 if test -f "$ltmain"; then
12420   # See if we are running on zsh, and set the options which allow our commands through
12421   # without removal of \ escapes.
12422   if test -n "${ZSH_VERSION+set}" ; then
12423     setopt NO_GLOB_SUBST
12424   fi
12425   # Now quote all the things that may contain metacharacters while being
12426   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12427   # variables and quote the copies for generation of the libtool script.
12428   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12429     SED SHELL STRIP \
12430     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12431     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12432     deplibs_check_method reload_flag reload_cmds need_locks \
12433     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12434     lt_cv_sys_global_symbol_to_c_name_address \
12435     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12436     old_postinstall_cmds old_postuninstall_cmds \
12437     compiler_CXX \
12438     CC_CXX \
12439     LD_CXX \
12440     lt_prog_compiler_wl_CXX \
12441     lt_prog_compiler_pic_CXX \
12442     lt_prog_compiler_static_CXX \
12443     lt_prog_compiler_no_builtin_flag_CXX \
12444     export_dynamic_flag_spec_CXX \
12445     thread_safe_flag_spec_CXX \
12446     whole_archive_flag_spec_CXX \
12447     enable_shared_with_static_runtimes_CXX \
12448     old_archive_cmds_CXX \
12449     old_archive_from_new_cmds_CXX \
12450     predep_objects_CXX \
12451     postdep_objects_CXX \
12452     predeps_CXX \
12453     postdeps_CXX \
12454     compiler_lib_search_path_CXX \
12455     archive_cmds_CXX \
12456     archive_expsym_cmds_CXX \
12457     postinstall_cmds_CXX \
12458     postuninstall_cmds_CXX \
12459     old_archive_from_expsyms_cmds_CXX \
12460     allow_undefined_flag_CXX \
12461     no_undefined_flag_CXX \
12462     export_symbols_cmds_CXX \
12463     hardcode_libdir_flag_spec_CXX \
12464     hardcode_libdir_flag_spec_ld_CXX \
12465     hardcode_libdir_separator_CXX \
12466     hardcode_automatic_CXX \
12467     module_cmds_CXX \
12468     module_expsym_cmds_CXX \
12469     lt_cv_prog_compiler_c_o_CXX \
12470     exclude_expsyms_CXX \
12471     include_expsyms_CXX; do
12472
12473     case $var in
12474     old_archive_cmds_CXX | \
12475     old_archive_from_new_cmds_CXX | \
12476     archive_cmds_CXX | \
12477     archive_expsym_cmds_CXX | \
12478     module_cmds_CXX | \
12479     module_expsym_cmds_CXX | \
12480     old_archive_from_expsyms_cmds_CXX | \
12481     export_symbols_cmds_CXX | \
12482     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12483     postinstall_cmds | postuninstall_cmds | \
12484     old_postinstall_cmds | old_postuninstall_cmds | \
12485     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12486       # Double-quote double-evaled strings.
12487       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12488       ;;
12489     *)
12490       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12491       ;;
12492     esac
12493   done
12494
12495   case $lt_echo in
12496   *'\$0 --fallback-echo"')
12497     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12498     ;;
12499   esac
12500
12501 cfgfile="$ofile"
12502
12503   cat <<__EOF__ >> "$cfgfile"
12504 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12505
12506 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12507
12508 # Shell to use when invoking shell scripts.
12509 SHELL=$lt_SHELL
12510
12511 # Whether or not to build shared libraries.
12512 build_libtool_libs=$enable_shared
12513
12514 # Whether or not to build static libraries.
12515 build_old_libs=$enable_static
12516
12517 # Whether or not to add -lc for building shared libraries.
12518 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12519
12520 # Whether or not to disallow shared libs when runtime libs are static
12521 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12522
12523 # Whether or not to optimize for fast installation.
12524 fast_install=$enable_fast_install
12525
12526 # The host system.
12527 host_alias=$host_alias
12528 host=$host
12529 host_os=$host_os
12530
12531 # The build system.
12532 build_alias=$build_alias
12533 build=$build
12534 build_os=$build_os
12535
12536 # An echo program that does not interpret backslashes.
12537 echo=$lt_echo
12538
12539 # The archiver.
12540 AR=$lt_AR
12541 AR_FLAGS=$lt_AR_FLAGS
12542
12543 # A C compiler.
12544 LTCC=$lt_LTCC
12545
12546 # LTCC compiler flags.
12547 LTCFLAGS=$lt_LTCFLAGS
12548
12549 # A language-specific compiler.
12550 CC=$lt_compiler_CXX
12551
12552 # Is the compiler the GNU C compiler?
12553 with_gcc=$GCC_CXX
12554
12555 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12556 gcc_ver=\`gcc -dumpversion\`
12557
12558 # An ERE matcher.
12559 EGREP=$lt_EGREP
12560
12561 # The linker used to build libraries.
12562 LD=$lt_LD_CXX
12563
12564 # Whether we need hard or soft links.
12565 LN_S=$lt_LN_S
12566
12567 # A BSD-compatible nm program.
12568 NM=$lt_NM
12569
12570 # A symbol stripping program
12571 STRIP=$lt_STRIP
12572
12573 # Used to examine libraries when file_magic_cmd begins "file"
12574 MAGIC_CMD=$MAGIC_CMD
12575
12576 # Used on cygwin: DLL creation program.
12577 DLLTOOL="$DLLTOOL"
12578
12579 # Used on cygwin: object dumper.
12580 OBJDUMP="$OBJDUMP"
12581
12582 # Used on cygwin: assembler.
12583 AS="$AS"
12584
12585 # The name of the directory that contains temporary libtool files.
12586 objdir=$objdir
12587
12588 # How to create reloadable object files.
12589 reload_flag=$lt_reload_flag
12590 reload_cmds=$lt_reload_cmds
12591
12592 # How to pass a linker flag through the compiler.
12593 wl=$lt_lt_prog_compiler_wl_CXX
12594
12595 # Object file suffix (normally "o").
12596 objext="$ac_objext"
12597
12598 # Old archive suffix (normally "a").
12599 libext="$libext"
12600
12601 # Shared library suffix (normally ".so").
12602 shrext_cmds='$shrext_cmds'
12603
12604 # Executable file suffix (normally "").
12605 exeext="$exeext"
12606
12607 # Additional compiler flags for building library objects.
12608 pic_flag=$lt_lt_prog_compiler_pic_CXX
12609 pic_mode=$pic_mode
12610
12611 # What is the maximum length of a command?
12612 max_cmd_len=$lt_cv_sys_max_cmd_len
12613
12614 # Does compiler simultaneously support -c and -o options?
12615 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12616
12617 # Must we lock files when doing compilation?
12618 need_locks=$lt_need_locks
12619
12620 # Do we need the lib prefix for modules?
12621 need_lib_prefix=$need_lib_prefix
12622
12623 # Do we need a version for libraries?
12624 need_version=$need_version
12625
12626 # Whether dlopen is supported.
12627 dlopen_support=$enable_dlopen
12628
12629 # Whether dlopen of programs is supported.
12630 dlopen_self=$enable_dlopen_self
12631
12632 # Whether dlopen of statically linked programs is supported.
12633 dlopen_self_static=$enable_dlopen_self_static
12634
12635 # Compiler flag to prevent dynamic linking.
12636 link_static_flag=$lt_lt_prog_compiler_static_CXX
12637
12638 # Compiler flag to turn off builtin functions.
12639 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12640
12641 # Compiler flag to allow reflexive dlopens.
12642 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12643
12644 # Compiler flag to generate shared objects directly from archives.
12645 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12646
12647 # Compiler flag to generate thread-safe objects.
12648 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12649
12650 # Library versioning type.
12651 version_type=$version_type
12652
12653 # Format of library name prefix.
12654 libname_spec=$lt_libname_spec
12655
12656 # List of archive names.  First name is the real one, the rest are links.
12657 # The last name is the one that the linker finds with -lNAME.
12658 library_names_spec=$lt_library_names_spec
12659
12660 # The coded name of the library, if different from the real name.
12661 soname_spec=$lt_soname_spec
12662
12663 # Commands used to build and install an old-style archive.
12664 RANLIB=$lt_RANLIB
12665 old_archive_cmds=$lt_old_archive_cmds_CXX
12666 old_postinstall_cmds=$lt_old_postinstall_cmds
12667 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12668
12669 # Create an old-style archive from a shared archive.
12670 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12671
12672 # Create a temporary old-style archive to link instead of a shared archive.
12673 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12674
12675 # Commands used to build and install a shared archive.
12676 archive_cmds=$lt_archive_cmds_CXX
12677 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12678 postinstall_cmds=$lt_postinstall_cmds
12679 postuninstall_cmds=$lt_postuninstall_cmds
12680
12681 # Commands used to build a loadable module (assumed same as above if empty)
12682 module_cmds=$lt_module_cmds_CXX
12683 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12684
12685 # Commands to strip libraries.
12686 old_striplib=$lt_old_striplib
12687 striplib=$lt_striplib
12688
12689 # Dependencies to place before the objects being linked to create a
12690 # shared library.
12691 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12692
12693 # Dependencies to place after the objects being linked to create a
12694 # shared library.
12695 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12696
12697 # Dependencies to place before the objects being linked to create a
12698 # shared library.
12699 predeps=$lt_predeps_CXX
12700
12701 # Dependencies to place after the objects being linked to create a
12702 # shared library.
12703 postdeps=$lt_postdeps_CXX
12704
12705 # The library search path used internally by the compiler when linking
12706 # a shared library.
12707 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12708
12709 # Method to check whether dependent libraries are shared objects.
12710 deplibs_check_method=$lt_deplibs_check_method
12711
12712 # Command to use when deplibs_check_method == file_magic.
12713 file_magic_cmd=$lt_file_magic_cmd
12714
12715 # Flag that allows shared libraries with undefined symbols to be built.
12716 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12717
12718 # Flag that forces no undefined symbols.
12719 no_undefined_flag=$lt_no_undefined_flag_CXX
12720
12721 # Commands used to finish a libtool library installation in a directory.
12722 finish_cmds=$lt_finish_cmds
12723
12724 # Same as above, but a single script fragment to be evaled but not shown.
12725 finish_eval=$lt_finish_eval
12726
12727 # Take the output of nm and produce a listing of raw symbols and C names.
12728 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12729
12730 # Transform the output of nm in a proper C declaration
12731 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12732
12733 # Transform the output of nm in a C name address pair
12734 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12735
12736 # This is the shared library runtime path variable.
12737 runpath_var=$runpath_var
12738
12739 # This is the shared library path variable.
12740 shlibpath_var=$shlibpath_var
12741
12742 # Is shlibpath searched before the hard-coded library search path?
12743 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12744
12745 # How to hardcode a shared library path into an executable.
12746 hardcode_action=$hardcode_action_CXX
12747
12748 # Whether we should hardcode library paths into libraries.
12749 hardcode_into_libs=$hardcode_into_libs
12750
12751 # Flag to hardcode \$libdir into a binary during linking.
12752 # This must work even if \$libdir does not exist.
12753 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12754
12755 # If ld is used when linking, flag to hardcode \$libdir into
12756 # a binary during linking. This must work even if \$libdir does
12757 # not exist.
12758 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12759
12760 # Whether we need a single -rpath flag with a separated argument.
12761 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12762
12763 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12764 # resulting binary.
12765 hardcode_direct=$hardcode_direct_CXX
12766
12767 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12768 # resulting binary.
12769 hardcode_minus_L=$hardcode_minus_L_CXX
12770
12771 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12772 # the resulting binary.
12773 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12774
12775 # Set to yes if building a shared library automatically hardcodes DIR into the library
12776 # and all subsequent libraries and executables linked against it.
12777 hardcode_automatic=$hardcode_automatic_CXX
12778
12779 # Variables whose values should be saved in libtool wrapper scripts and
12780 # restored at relink time.
12781 variables_saved_for_relink="$variables_saved_for_relink"
12782
12783 # Whether libtool must link a program against all its dependency libraries.
12784 link_all_deplibs=$link_all_deplibs_CXX
12785
12786 # Compile-time system search path for libraries
12787 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12788
12789 # Run-time system search path for libraries
12790 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12791
12792 # Fix the shell variable \$srcfile for the compiler.
12793 fix_srcfile_path="$fix_srcfile_path_CXX"
12794
12795 # Set to yes if exported symbols are required.
12796 always_export_symbols=$always_export_symbols_CXX
12797
12798 # The commands to list exported symbols.
12799 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12800
12801 # The commands to extract the exported symbol list from a shared archive.
12802 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12803
12804 # Symbols that should not be listed in the preloaded symbols.
12805 exclude_expsyms=$lt_exclude_expsyms_CXX
12806
12807 # Symbols that must always be exported.
12808 include_expsyms=$lt_include_expsyms_CXX
12809
12810 # ### END LIBTOOL TAG CONFIG: $tagname
12811
12812 __EOF__
12813
12814
12815 else
12816   # If there is no Makefile yet, we rely on a make rule to execute
12817   # `config.status --recheck' to rerun these tests and create the
12818   # libtool script then.
12819   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12820   if test -f "$ltmain_in"; then
12821     test -f Makefile && make "$ltmain"
12822   fi
12823 fi
12824
12825
12826 ac_ext=c
12827 ac_cpp='$CPP $CPPFLAGS'
12828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12831
12832 CC=$lt_save_CC
12833 LDCXX=$LD
12834 LD=$lt_save_LD
12835 GCC=$lt_save_GCC
12836 with_gnu_ldcxx=$with_gnu_ld
12837 with_gnu_ld=$lt_save_with_gnu_ld
12838 lt_cv_path_LDCXX=$lt_cv_path_LD
12839 lt_cv_path_LD=$lt_save_path_LD
12840 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12841 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12842
12843         else
12844           tagname=""
12845         fi
12846         ;;
12847
12848       F77)
12849         if test -n "$F77" && test "X$F77" != "Xno"; then
12850
12851 ac_ext=f
12852 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12853 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12854 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12855
12856
12857 archive_cmds_need_lc_F77=no
12858 allow_undefined_flag_F77=
12859 always_export_symbols_F77=no
12860 archive_expsym_cmds_F77=
12861 export_dynamic_flag_spec_F77=
12862 hardcode_direct_F77=no
12863 hardcode_libdir_flag_spec_F77=
12864 hardcode_libdir_flag_spec_ld_F77=
12865 hardcode_libdir_separator_F77=
12866 hardcode_minus_L_F77=no
12867 hardcode_automatic_F77=no
12868 module_cmds_F77=
12869 module_expsym_cmds_F77=
12870 link_all_deplibs_F77=unknown
12871 old_archive_cmds_F77=$old_archive_cmds
12872 no_undefined_flag_F77=
12873 whole_archive_flag_spec_F77=
12874 enable_shared_with_static_runtimes_F77=no
12875
12876 # Source file extension for f77 test sources.
12877 ac_ext=f
12878
12879 # Object file extension for compiled f77 test sources.
12880 objext=o
12881 objext_F77=$objext
12882
12883 # Code to be used in simple compile tests
12884 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12885
12886 # Code to be used in simple link tests
12887 lt_simple_link_test_code="      program t\n      end\n"
12888
12889 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12890
12891 # If no C compiler was specified, use CC.
12892 LTCC=${LTCC-"$CC"}
12893
12894 # If no C compiler flags were specified, use CFLAGS.
12895 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12896
12897 # Allow CC to be a program name with arguments.
12898 compiler=$CC
12899
12900
12901 # save warnings/boilerplate of simple test code
12902 ac_outfile=conftest.$ac_objext
12903 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12904 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12905 _lt_compiler_boilerplate=`cat conftest.err`
12906 $rm conftest*
12907
12908 ac_outfile=conftest.$ac_objext
12909 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12910 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12911 _lt_linker_boilerplate=`cat conftest.err`
12912 $rm conftest*
12913
12914
12915 # Allow CC to be a program name with arguments.
12916 lt_save_CC="$CC"
12917 CC=${F77-"f77"}
12918 compiler=$CC
12919 compiler_F77=$CC
12920 for cc_temp in $compiler""; do
12921   case $cc_temp in
12922     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12923     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12924     \-*) ;;
12925     *) break;;
12926   esac
12927 done
12928 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12929
12930
12931 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12932 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12933 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12934 echo "${ECHO_T}$can_build_shared" >&6
12935
12936 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12937 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12938 test "$can_build_shared" = "no" && enable_shared=no
12939
12940 # On AIX, shared libraries and static libraries use the same namespace, and
12941 # are all built from PIC.
12942 case $host_os in
12943 aix3*)
12944   test "$enable_shared" = yes && enable_static=no
12945   if test -n "$RANLIB"; then
12946     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12947     postinstall_cmds='$RANLIB $lib'
12948   fi
12949   ;;
12950 aix4* | aix5*)
12951   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12952     test "$enable_shared" = yes && enable_static=no
12953   fi
12954   ;;
12955 esac
12956 echo "$as_me:$LINENO: result: $enable_shared" >&5
12957 echo "${ECHO_T}$enable_shared" >&6
12958
12959 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12960 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12961 # Make sure either enable_shared or enable_static is yes.
12962 test "$enable_shared" = yes || enable_static=yes
12963 echo "$as_me:$LINENO: result: $enable_static" >&5
12964 echo "${ECHO_T}$enable_static" >&6
12965
12966 GCC_F77="$G77"
12967 LD_F77="$LD"
12968
12969 lt_prog_compiler_wl_F77=
12970 lt_prog_compiler_pic_F77=
12971 lt_prog_compiler_static_F77=
12972
12973 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12974 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12975
12976   if test "$GCC" = yes; then
12977     lt_prog_compiler_wl_F77='-Wl,'
12978     lt_prog_compiler_static_F77='-static'
12979
12980     case $host_os in
12981       aix*)
12982       # All AIX code is PIC.
12983       if test "$host_cpu" = ia64; then
12984         # AIX 5 now supports IA64 processor
12985         lt_prog_compiler_static_F77='-Bstatic'
12986       fi
12987       ;;
12988
12989     amigaos*)
12990       # FIXME: we need at least 68020 code to build shared libraries, but
12991       # adding the `-m68020' flag to GCC prevents building anything better,
12992       # like `-m68040'.
12993       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12994       ;;
12995
12996     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12997       # PIC is the default for these OSes.
12998       ;;
12999
13000     mingw* | pw32* | os2*)
13001       # This hack is so that the source file can tell whether it is being
13002       # built for inclusion in a dll (and should export symbols for example).
13003       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13004       ;;
13005
13006     darwin* | rhapsody*)
13007       # PIC is the default on this platform
13008       # Common symbols not allowed in MH_DYLIB files
13009       lt_prog_compiler_pic_F77='-fno-common'
13010       ;;
13011
13012     interix3*)
13013       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13014       # Instead, we relocate shared libraries at runtime.
13015       ;;
13016
13017     msdosdjgpp*)
13018       # Just because we use GCC doesn't mean we suddenly get shared libraries
13019       # on systems that don't support them.
13020       lt_prog_compiler_can_build_shared_F77=no
13021       enable_shared=no
13022       ;;
13023
13024     sysv4*MP*)
13025       if test -d /usr/nec; then
13026         lt_prog_compiler_pic_F77=-Kconform_pic
13027       fi
13028       ;;
13029
13030     hpux*)
13031       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13032       # not for PA HP-UX.
13033       case $host_cpu in
13034       hppa*64*|ia64*)
13035         # +Z the default
13036         ;;
13037       *)
13038         lt_prog_compiler_pic_F77='-fPIC'
13039         ;;
13040       esac
13041       ;;
13042
13043     *)
13044       lt_prog_compiler_pic_F77='-fPIC'
13045       ;;
13046     esac
13047   else
13048     # PORTME Check for flag to pass linker flags through the system compiler.
13049     case $host_os in
13050     aix*)
13051       lt_prog_compiler_wl_F77='-Wl,'
13052       if test "$host_cpu" = ia64; then
13053         # AIX 5 now supports IA64 processor
13054         lt_prog_compiler_static_F77='-Bstatic'
13055       else
13056         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13057       fi
13058       ;;
13059       darwin*)
13060         # PIC is the default on this platform
13061         # Common symbols not allowed in MH_DYLIB files
13062        case $cc_basename in
13063          xlc*)
13064          lt_prog_compiler_pic_F77='-qnocommon'
13065          lt_prog_compiler_wl_F77='-Wl,'
13066          ;;
13067        esac
13068        ;;
13069
13070     mingw* | pw32* | os2*)
13071       # This hack is so that the source file can tell whether it is being
13072       # built for inclusion in a dll (and should export symbols for example).
13073       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13074       ;;
13075
13076     hpux9* | hpux10* | hpux11*)
13077       lt_prog_compiler_wl_F77='-Wl,'
13078       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13079       # not for PA HP-UX.
13080       case $host_cpu in
13081       hppa*64*|ia64*)
13082         # +Z the default
13083         ;;
13084       *)
13085         lt_prog_compiler_pic_F77='+Z'
13086         ;;
13087       esac
13088       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13089       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13090       ;;
13091
13092     irix5* | irix6* | nonstopux*)
13093       lt_prog_compiler_wl_F77='-Wl,'
13094       # PIC (with -KPIC) is the default.
13095       lt_prog_compiler_static_F77='-non_shared'
13096       ;;
13097
13098     newsos6)
13099       lt_prog_compiler_pic_F77='-KPIC'
13100       lt_prog_compiler_static_F77='-Bstatic'
13101       ;;
13102
13103     linux*)
13104       case $cc_basename in
13105       icc* | ecc*)
13106         lt_prog_compiler_wl_F77='-Wl,'
13107         lt_prog_compiler_pic_F77='-KPIC'
13108         lt_prog_compiler_static_F77='-static'
13109         ;;
13110       pgcc* | pgf77* | pgf90* | pgf95*)
13111         # Portland Group compilers (*not* the Pentium gcc compiler,
13112         # which looks to be a dead project)
13113         lt_prog_compiler_wl_F77='-Wl,'
13114         lt_prog_compiler_pic_F77='-fpic'
13115         lt_prog_compiler_static_F77='-Bstatic'
13116         ;;
13117       ccc*)
13118         lt_prog_compiler_wl_F77='-Wl,'
13119         # All Alpha code is PIC.
13120         lt_prog_compiler_static_F77='-non_shared'
13121         ;;
13122       esac
13123       ;;
13124
13125     osf3* | osf4* | osf5*)
13126       lt_prog_compiler_wl_F77='-Wl,'
13127       # All OSF/1 code is PIC.
13128       lt_prog_compiler_static_F77='-non_shared'
13129       ;;
13130
13131     solaris*)
13132       lt_prog_compiler_pic_F77='-KPIC'
13133       lt_prog_compiler_static_F77='-Bstatic'
13134       case $cc_basename in
13135       f77* | f90* | f95*)
13136         lt_prog_compiler_wl_F77='-Qoption ld ';;
13137       *)
13138         lt_prog_compiler_wl_F77='-Wl,';;
13139       esac
13140       ;;
13141
13142     sunos4*)
13143       lt_prog_compiler_wl_F77='-Qoption ld '
13144       lt_prog_compiler_pic_F77='-PIC'
13145       lt_prog_compiler_static_F77='-Bstatic'
13146       ;;
13147
13148     sysv4 | sysv4.2uw2* | sysv4.3*)
13149       lt_prog_compiler_wl_F77='-Wl,'
13150       lt_prog_compiler_pic_F77='-KPIC'
13151       lt_prog_compiler_static_F77='-Bstatic'
13152       ;;
13153
13154     sysv4*MP*)
13155       if test -d /usr/nec ;then
13156         lt_prog_compiler_pic_F77='-Kconform_pic'
13157         lt_prog_compiler_static_F77='-Bstatic'
13158       fi
13159       ;;
13160
13161     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13162       lt_prog_compiler_wl_F77='-Wl,'
13163       lt_prog_compiler_pic_F77='-KPIC'
13164       lt_prog_compiler_static_F77='-Bstatic'
13165       ;;
13166
13167     unicos*)
13168       lt_prog_compiler_wl_F77='-Wl,'
13169       lt_prog_compiler_can_build_shared_F77=no
13170       ;;
13171
13172     uts4*)
13173       lt_prog_compiler_pic_F77='-pic'
13174       lt_prog_compiler_static_F77='-Bstatic'
13175       ;;
13176
13177     *)
13178       lt_prog_compiler_can_build_shared_F77=no
13179       ;;
13180     esac
13181   fi
13182
13183 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13184 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13185
13186 #
13187 # Check to make sure the PIC flag actually works.
13188 #
13189 if test -n "$lt_prog_compiler_pic_F77"; then
13190
13191 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13192 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13193 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13194   echo $ECHO_N "(cached) $ECHO_C" >&6
13195 else
13196   lt_prog_compiler_pic_works_F77=no
13197   ac_outfile=conftest.$ac_objext
13198    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13199    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13200    # Insert the option either (1) after the last *FLAGS variable, or
13201    # (2) before a word containing "conftest.", or (3) at the end.
13202    # Note that $ac_compile itself does not contain backslashes and begins
13203    # with a dollar sign (not a hyphen), so the echo should work correctly.
13204    # The option is referenced via a variable to avoid confusing sed.
13205    lt_compile=`echo "$ac_compile" | $SED \
13206    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13207    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13208    -e 's:$: $lt_compiler_flag:'`
13209    (eval echo "\"\$as_me:13209: $lt_compile\"" >&5)
13210    (eval "$lt_compile" 2>conftest.err)
13211    ac_status=$?
13212    cat conftest.err >&5
13213    echo "$as_me:13213: \$? = $ac_status" >&5
13214    if (exit $ac_status) && test -s "$ac_outfile"; then
13215      # The compiler can only warn and ignore the option if not recognized
13216      # So say no if there are warnings other than the usual output.
13217      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13218      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13219      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13220        lt_prog_compiler_pic_works_F77=yes
13221      fi
13222    fi
13223    $rm conftest*
13224
13225 fi
13226 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13227 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13228
13229 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13230     case $lt_prog_compiler_pic_F77 in
13231      "" | " "*) ;;
13232      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13233      esac
13234 else
13235     lt_prog_compiler_pic_F77=
13236      lt_prog_compiler_can_build_shared_F77=no
13237 fi
13238
13239 fi
13240 case $host_os in
13241   # For platforms which do not support PIC, -DPIC is meaningless:
13242   *djgpp*)
13243     lt_prog_compiler_pic_F77=
13244     ;;
13245   *)
13246     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13247     ;;
13248 esac
13249
13250 #
13251 # Check to make sure the static flag actually works.
13252 #
13253 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13254 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13255 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13256 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13257   echo $ECHO_N "(cached) $ECHO_C" >&6
13258 else
13259   lt_prog_compiler_static_works_F77=no
13260    save_LDFLAGS="$LDFLAGS"
13261    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13262    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13263    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13264      # The linker can only warn and ignore the option if not recognized
13265      # So say no if there are warnings
13266      if test -s conftest.err; then
13267        # Append any errors to the config.log.
13268        cat conftest.err 1>&5
13269        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13270        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13271        if diff conftest.exp conftest.er2 >/dev/null; then
13272          lt_prog_compiler_static_works_F77=yes
13273        fi
13274      else
13275        lt_prog_compiler_static_works_F77=yes
13276      fi
13277    fi
13278    $rm conftest*
13279    LDFLAGS="$save_LDFLAGS"
13280
13281 fi
13282 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13283 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13284
13285 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13286     :
13287 else
13288     lt_prog_compiler_static_F77=
13289 fi
13290
13291
13292 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13293 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13294 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13295   echo $ECHO_N "(cached) $ECHO_C" >&6
13296 else
13297   lt_cv_prog_compiler_c_o_F77=no
13298    $rm -r conftest 2>/dev/null
13299    mkdir conftest
13300    cd conftest
13301    mkdir out
13302    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13303
13304    lt_compiler_flag="-o out/conftest2.$ac_objext"
13305    # Insert the option either (1) after the last *FLAGS variable, or
13306    # (2) before a word containing "conftest.", or (3) at the end.
13307    # Note that $ac_compile itself does not contain backslashes and begins
13308    # with a dollar sign (not a hyphen), so the echo should work correctly.
13309    lt_compile=`echo "$ac_compile" | $SED \
13310    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13311    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13312    -e 's:$: $lt_compiler_flag:'`
13313    (eval echo "\"\$as_me:13313: $lt_compile\"" >&5)
13314    (eval "$lt_compile" 2>out/conftest.err)
13315    ac_status=$?
13316    cat out/conftest.err >&5
13317    echo "$as_me:13317: \$? = $ac_status" >&5
13318    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13319    then
13320      # The compiler can only warn and ignore the option if not recognized
13321      # So say no if there are warnings
13322      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13323      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13324      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13325        lt_cv_prog_compiler_c_o_F77=yes
13326      fi
13327    fi
13328    chmod u+w . 2>&5
13329    $rm conftest*
13330    # SGI C++ compiler will create directory out/ii_files/ for
13331    # template instantiation
13332    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13333    $rm out/* && rmdir out
13334    cd ..
13335    rmdir conftest
13336    $rm conftest*
13337
13338 fi
13339 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13340 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13341
13342
13343 hard_links="nottested"
13344 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13345   # do not overwrite the value of need_locks provided by the user
13346   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13347 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13348   hard_links=yes
13349   $rm conftest*
13350   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13351   touch conftest.a
13352   ln conftest.a conftest.b 2>&5 || hard_links=no
13353   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13354   echo "$as_me:$LINENO: result: $hard_links" >&5
13355 echo "${ECHO_T}$hard_links" >&6
13356   if test "$hard_links" = no; then
13357     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13358 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13359     need_locks=warn
13360   fi
13361 else
13362   need_locks=no
13363 fi
13364
13365 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13366 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13367
13368   runpath_var=
13369   allow_undefined_flag_F77=
13370   enable_shared_with_static_runtimes_F77=no
13371   archive_cmds_F77=
13372   archive_expsym_cmds_F77=
13373   old_archive_From_new_cmds_F77=
13374   old_archive_from_expsyms_cmds_F77=
13375   export_dynamic_flag_spec_F77=
13376   whole_archive_flag_spec_F77=
13377   thread_safe_flag_spec_F77=
13378   hardcode_libdir_flag_spec_F77=
13379   hardcode_libdir_flag_spec_ld_F77=
13380   hardcode_libdir_separator_F77=
13381   hardcode_direct_F77=no
13382   hardcode_minus_L_F77=no
13383   hardcode_shlibpath_var_F77=unsupported
13384   link_all_deplibs_F77=unknown
13385   hardcode_automatic_F77=no
13386   module_cmds_F77=
13387   module_expsym_cmds_F77=
13388   always_export_symbols_F77=no
13389   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13390   # include_expsyms should be a list of space-separated symbols to be *always*
13391   # included in the symbol list
13392   include_expsyms_F77=
13393   # exclude_expsyms can be an extended regexp of symbols to exclude
13394   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13395   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13396   # as well as any symbol that contains `d'.
13397   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13398   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13399   # platforms (ab)use it in PIC code, but their linkers get confused if
13400   # the symbol is explicitly referenced.  Since portable code cannot
13401   # rely on this symbol name, it's probably fine to never include it in
13402   # preloaded symbol tables.
13403   extract_expsyms_cmds=
13404   # Just being paranoid about ensuring that cc_basename is set.
13405   for cc_temp in $compiler""; do
13406   case $cc_temp in
13407     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13408     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13409     \-*) ;;
13410     *) break;;
13411   esac
13412 done
13413 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13414
13415   case $host_os in
13416   cygwin* | mingw* | pw32*)
13417     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13418     # When not using gcc, we currently assume that we are using
13419     # Microsoft Visual C++.
13420     if test "$GCC" != yes; then
13421       with_gnu_ld=no
13422     fi
13423     ;;
13424   interix*)
13425     # we just hope/assume this is gcc and not c89 (= MSVC++)
13426     with_gnu_ld=yes
13427     ;;
13428   openbsd*)
13429     with_gnu_ld=no
13430     ;;
13431   esac
13432
13433   ld_shlibs_F77=yes
13434   if test "$with_gnu_ld" = yes; then
13435     # If archive_cmds runs LD, not CC, wlarc should be empty
13436     wlarc='${wl}'
13437
13438     # Set some defaults for GNU ld with shared library support. These
13439     # are reset later if shared libraries are not supported. Putting them
13440     # here allows them to be overridden if necessary.
13441     runpath_var=LD_RUN_PATH
13442     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13443     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13444     # ancient GNU ld didn't support --whole-archive et. al.
13445     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13446         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13447       else
13448         whole_archive_flag_spec_F77=
13449     fi
13450     supports_anon_versioning=no
13451     case `$LD -v 2>/dev/null` in
13452       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13453       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13454       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13455       *\ 2.11.*) ;; # other 2.11 versions
13456       *) supports_anon_versioning=yes ;;
13457     esac
13458
13459     # See if GNU ld supports shared libraries.
13460     case $host_os in
13461     aix3* | aix4* | aix5*)
13462       # On AIX/PPC, the GNU linker is very broken
13463       if test "$host_cpu" != ia64; then
13464         ld_shlibs_F77=no
13465         cat <<EOF 1>&2
13466
13467 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13468 *** to be unable to reliably create shared libraries on AIX.
13469 *** Therefore, libtool is disabling shared libraries support.  If you
13470 *** really care for shared libraries, you may want to modify your PATH
13471 *** so that a non-GNU linker is found, and then restart.
13472
13473 EOF
13474       fi
13475       ;;
13476
13477     amigaos*)
13478       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)'
13479       hardcode_libdir_flag_spec_F77='-L$libdir'
13480       hardcode_minus_L_F77=yes
13481
13482       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13483       # that the semantics of dynamic libraries on AmigaOS, at least up
13484       # to version 4, is to share data among multiple programs linked
13485       # with the same dynamic library.  Since this doesn't match the
13486       # behavior of shared libraries on other platforms, we can't use
13487       # them.
13488       ld_shlibs_F77=no
13489       ;;
13490
13491     beos*)
13492       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13493         allow_undefined_flag_F77=unsupported
13494         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13495         # support --undefined.  This deserves some investigation.  FIXME
13496         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13497       else
13498         ld_shlibs_F77=no
13499       fi
13500       ;;
13501
13502     cygwin* | mingw* | pw32*)
13503       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13504       # as there is no search path for DLLs.
13505       hardcode_libdir_flag_spec_F77='-L$libdir'
13506       allow_undefined_flag_F77=unsupported
13507       always_export_symbols_F77=no
13508       enable_shared_with_static_runtimes_F77=yes
13509       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13510
13511       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13512         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13513         # If the export-symbols file already is a .def file (1st line
13514         # is EXPORTS), use it as is; otherwise, prepend...
13515         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13516           cp $export_symbols $output_objdir/$soname.def;
13517         else
13518           echo EXPORTS > $output_objdir/$soname.def;
13519           cat $export_symbols >> $output_objdir/$soname.def;
13520         fi~
13521         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13522       else
13523         ld_shlibs_F77=no
13524       fi
13525       ;;
13526
13527     interix3*)
13528       hardcode_direct_F77=no
13529       hardcode_shlibpath_var_F77=no
13530       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13531       export_dynamic_flag_spec_F77='${wl}-E'
13532       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13533       # Instead, shared libraries are loaded at an image base (0x10000000 by
13534       # default) and relocated if they conflict, which is a slow very memory
13535       # consuming and fragmenting process.  To avoid this, we pick a random,
13536       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13537       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13538       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13539       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13540       ;;
13541
13542     linux*)
13543       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13544         tmp_addflag=
13545         case $cc_basename,$host_cpu in
13546         pgcc*)                          # Portland Group C compiler
13547           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'
13548           tmp_addflag=' $pic_flag'
13549           ;;
13550         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13551           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'
13552           tmp_addflag=' $pic_flag -Mnomain' ;;
13553         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13554           tmp_addflag=' -i_dynamic' ;;
13555         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13556           tmp_addflag=' -i_dynamic -nofor_main' ;;
13557         ifc* | ifort*)                  # Intel Fortran compiler
13558           tmp_addflag=' -nofor_main' ;;
13559         esac
13560         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13561
13562         if test $supports_anon_versioning = yes; then
13563           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13564   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13565   $echo "local: *; };" >> $output_objdir/$libname.ver~
13566           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13567         fi
13568       else
13569         ld_shlibs_F77=no
13570       fi
13571       ;;
13572
13573     netbsd*)
13574       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13575         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13576         wlarc=
13577       else
13578         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13579         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13580       fi
13581       ;;
13582
13583     solaris*)
13584       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13585         ld_shlibs_F77=no
13586         cat <<EOF 1>&2
13587
13588 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13589 *** create shared libraries on Solaris systems.  Therefore, libtool
13590 *** is disabling shared libraries support.  We urge you to upgrade GNU
13591 *** binutils to release 2.9.1 or newer.  Another option is to modify
13592 *** your PATH or compiler configuration so that the native linker is
13593 *** used, and then restart.
13594
13595 EOF
13596       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13597         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13598         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13599       else
13600         ld_shlibs_F77=no
13601       fi
13602       ;;
13603
13604     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13605       case `$LD -v 2>&1` in
13606         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13607         ld_shlibs_F77=no
13608         cat <<_LT_EOF 1>&2
13609
13610 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13611 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13612 *** is disabling shared libraries support.  We urge you to upgrade GNU
13613 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13614 *** your PATH or compiler configuration so that the native linker is
13615 *** used, and then restart.
13616
13617 _LT_EOF
13618         ;;
13619         *)
13620           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13621             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13622             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13623             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13624           else
13625             ld_shlibs_F77=no
13626           fi
13627         ;;
13628       esac
13629       ;;
13630
13631     sunos4*)
13632       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13633       wlarc=
13634       hardcode_direct_F77=yes
13635       hardcode_shlibpath_var_F77=no
13636       ;;
13637
13638     *)
13639       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13640         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13641         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13642       else
13643         ld_shlibs_F77=no
13644       fi
13645       ;;
13646     esac
13647
13648     if test "$ld_shlibs_F77" = no; then
13649       runpath_var=
13650       hardcode_libdir_flag_spec_F77=
13651       export_dynamic_flag_spec_F77=
13652       whole_archive_flag_spec_F77=
13653     fi
13654   else
13655     # PORTME fill in a description of your system's linker (not GNU ld)
13656     case $host_os in
13657     aix3*)
13658       allow_undefined_flag_F77=unsupported
13659       always_export_symbols_F77=yes
13660       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'
13661       # Note: this linker hardcodes the directories in LIBPATH if there
13662       # are no directories specified by -L.
13663       hardcode_minus_L_F77=yes
13664       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13665         # Neither direct hardcoding nor static linking is supported with a
13666         # broken collect2.
13667         hardcode_direct_F77=unsupported
13668       fi
13669       ;;
13670
13671     aix4* | aix5*)
13672       if test "$host_cpu" = ia64; then
13673         # On IA64, the linker does run time linking by default, so we don't
13674         # have to do anything special.
13675         aix_use_runtimelinking=no
13676         exp_sym_flag='-Bexport'
13677         no_entry_flag=""
13678       else
13679         # If we're using GNU nm, then we don't want the "-C" option.
13680         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13681         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13682           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'
13683         else
13684           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'
13685         fi
13686         aix_use_runtimelinking=no
13687
13688         # Test if we are trying to use run time linking or normal
13689         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13690         # need to do runtime linking.
13691         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13692           for ld_flag in $LDFLAGS; do
13693           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13694             aix_use_runtimelinking=yes
13695             break
13696           fi
13697           done
13698           ;;
13699         esac
13700
13701         exp_sym_flag='-bexport'
13702         no_entry_flag='-bnoentry'
13703       fi
13704
13705       # When large executables or shared objects are built, AIX ld can
13706       # have problems creating the table of contents.  If linking a library
13707       # or program results in "error TOC overflow" add -mminimal-toc to
13708       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13709       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13710
13711       archive_cmds_F77=''
13712       hardcode_direct_F77=yes
13713       hardcode_libdir_separator_F77=':'
13714       link_all_deplibs_F77=yes
13715
13716       if test "$GCC" = yes; then
13717         case $host_os in aix4.[012]|aix4.[012].*)
13718         # We only want to do this on AIX 4.2 and lower, the check
13719         # below for broken collect2 doesn't work under 4.3+
13720           collect2name=`${CC} -print-prog-name=collect2`
13721           if test -f "$collect2name" && \
13722            strings "$collect2name" | grep resolve_lib_name >/dev/null
13723           then
13724           # We have reworked collect2
13725           hardcode_direct_F77=yes
13726           else
13727           # We have old collect2
13728           hardcode_direct_F77=unsupported
13729           # It fails to find uninstalled libraries when the uninstalled
13730           # path is not listed in the libpath.  Setting hardcode_minus_L
13731           # to unsupported forces relinking
13732           hardcode_minus_L_F77=yes
13733           hardcode_libdir_flag_spec_F77='-L$libdir'
13734           hardcode_libdir_separator_F77=
13735           fi
13736           ;;
13737         esac
13738         shared_flag='-shared'
13739         if test "$aix_use_runtimelinking" = yes; then
13740           shared_flag="$shared_flag "'${wl}-G'
13741         fi
13742       else
13743         # not using gcc
13744         if test "$host_cpu" = ia64; then
13745         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13746         # chokes on -Wl,-G. The following line is correct:
13747           shared_flag='-G'
13748         else
13749           if test "$aix_use_runtimelinking" = yes; then
13750             shared_flag='${wl}-G'
13751           else
13752             shared_flag='${wl}-bM:SRE'
13753           fi
13754         fi
13755       fi
13756
13757       # It seems that -bexpall does not export symbols beginning with
13758       # underscore (_), so it is better to generate a list of symbols to export.
13759       always_export_symbols_F77=yes
13760       if test "$aix_use_runtimelinking" = yes; then
13761         # Warning - without using the other runtime loading flags (-brtl),
13762         # -berok will link without error, but may produce a broken library.
13763         allow_undefined_flag_F77='-berok'
13764        # Determine the default libpath from the value encoded in an empty executable.
13765        cat >conftest.$ac_ext <<_ACEOF
13766       program main
13767
13768       end
13769 _ACEOF
13770 rm -f conftest.$ac_objext conftest$ac_exeext
13771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13772   (eval $ac_link) 2>conftest.er1
13773   ac_status=$?
13774   grep -v '^ *+' conftest.er1 >conftest.err
13775   rm -f conftest.er1
13776   cat conftest.err >&5
13777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778   (exit $ac_status); } &&
13779          { ac_try='test -z "$ac_f77_werror_flag"
13780                          || test ! -s conftest.err'
13781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782   (eval $ac_try) 2>&5
13783   ac_status=$?
13784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785   (exit $ac_status); }; } &&
13786          { ac_try='test -s conftest$ac_exeext'
13787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788   (eval $ac_try) 2>&5
13789   ac_status=$?
13790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791   (exit $ac_status); }; }; then
13792
13793 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13794 }'`
13795 # Check for a 64-bit object if we didn't find anything.
13796 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; }
13797 }'`; fi
13798 else
13799   echo "$as_me: failed program was:" >&5
13800 sed 's/^/| /' conftest.$ac_ext >&5
13801
13802 fi
13803 rm -f conftest.err conftest.$ac_objext \
13804       conftest$ac_exeext conftest.$ac_ext
13805 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13806
13807        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13808         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13809        else
13810         if test "$host_cpu" = ia64; then
13811           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13812           allow_undefined_flag_F77="-z nodefs"
13813           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13814         else
13815          # Determine the default libpath from the value encoded in an empty executable.
13816          cat >conftest.$ac_ext <<_ACEOF
13817       program main
13818
13819       end
13820 _ACEOF
13821 rm -f conftest.$ac_objext conftest$ac_exeext
13822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13823   (eval $ac_link) 2>conftest.er1
13824   ac_status=$?
13825   grep -v '^ *+' conftest.er1 >conftest.err
13826   rm -f conftest.er1
13827   cat conftest.err >&5
13828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829   (exit $ac_status); } &&
13830          { ac_try='test -z "$ac_f77_werror_flag"
13831                          || test ! -s conftest.err'
13832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833   (eval $ac_try) 2>&5
13834   ac_status=$?
13835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836   (exit $ac_status); }; } &&
13837          { ac_try='test -s conftest$ac_exeext'
13838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839   (eval $ac_try) 2>&5
13840   ac_status=$?
13841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842   (exit $ac_status); }; }; then
13843
13844 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13845 }'`
13846 # Check for a 64-bit object if we didn't find anything.
13847 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; }
13848 }'`; fi
13849 else
13850   echo "$as_me: failed program was:" >&5
13851 sed 's/^/| /' conftest.$ac_ext >&5
13852
13853 fi
13854 rm -f conftest.err conftest.$ac_objext \
13855       conftest$ac_exeext conftest.$ac_ext
13856 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13857
13858          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13859           # Warning - without using the other run time loading flags,
13860           # -berok will link without error, but may produce a broken library.
13861           no_undefined_flag_F77=' ${wl}-bernotok'
13862           allow_undefined_flag_F77=' ${wl}-berok'
13863           # Exported symbols can be pulled into shared objects from archives
13864           whole_archive_flag_spec_F77='$convenience'
13865           archive_cmds_need_lc_F77=yes
13866           # This is similar to how AIX traditionally builds its shared libraries.
13867           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13868         fi
13869       fi
13870       ;;
13871
13872     amigaos*)
13873       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)'
13874       hardcode_libdir_flag_spec_F77='-L$libdir'
13875       hardcode_minus_L_F77=yes
13876       # see comment about different semantics on the GNU ld section
13877       ld_shlibs_F77=no
13878       ;;
13879
13880     bsdi[45]*)
13881       export_dynamic_flag_spec_F77=-rdynamic
13882       ;;
13883
13884     cygwin* | mingw* | pw32*)
13885       # When not using gcc, we currently assume that we are using
13886       # Microsoft Visual C++.
13887       # hardcode_libdir_flag_spec is actually meaningless, as there is
13888       # no search path for DLLs.
13889       hardcode_libdir_flag_spec_F77=' '
13890       allow_undefined_flag_F77=unsupported
13891       # Tell ltmain to make .lib files, not .a files.
13892       libext=lib
13893       # Tell ltmain to make .dll files, not .so files.
13894       shrext_cmds=".dll"
13895       # FIXME: Setting linknames here is a bad hack.
13896       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13897       # The linker will automatically build a .lib file if we build a DLL.
13898       old_archive_From_new_cmds_F77='true'
13899       # FIXME: Should let the user specify the lib program.
13900       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13901       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13902       enable_shared_with_static_runtimes_F77=yes
13903       ;;
13904
13905     darwin* | rhapsody*)
13906       case $host_os in
13907         rhapsody* | darwin1.[012])
13908          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13909          ;;
13910        *) # Darwin 1.3 on
13911          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13912            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13913          else
13914            case ${MACOSX_DEPLOYMENT_TARGET} in
13915              10.[012])
13916                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13917                ;;
13918              10.*)
13919                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13920                ;;
13921            esac
13922          fi
13923          ;;
13924       esac
13925       archive_cmds_need_lc_F77=no
13926       hardcode_direct_F77=no
13927       hardcode_automatic_F77=yes
13928       hardcode_shlibpath_var_F77=unsupported
13929       whole_archive_flag_spec_F77=''
13930       link_all_deplibs_F77=yes
13931     if test "$GCC" = yes ; then
13932         output_verbose_link_cmd='echo'
13933         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13934       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13935       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13936       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}'
13937       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}'
13938     else
13939       case $cc_basename in
13940         xlc*)
13941          output_verbose_link_cmd='echo'
13942          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13943          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13944           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13945          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}'
13946           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}'
13947           ;;
13948        *)
13949          ld_shlibs_F77=no
13950           ;;
13951       esac
13952     fi
13953       ;;
13954
13955     dgux*)
13956       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13957       hardcode_libdir_flag_spec_F77='-L$libdir'
13958       hardcode_shlibpath_var_F77=no
13959       ;;
13960
13961     freebsd1*)
13962       ld_shlibs_F77=no
13963       ;;
13964
13965     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13966     # support.  Future versions do this automatically, but an explicit c++rt0.o
13967     # does not break anything, and helps significantly (at the cost of a little
13968     # extra space).
13969     freebsd2.2*)
13970       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13971       hardcode_libdir_flag_spec_F77='-R$libdir'
13972       hardcode_direct_F77=yes
13973       hardcode_shlibpath_var_F77=no
13974       ;;
13975
13976     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13977     freebsd2*)
13978       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13979       hardcode_direct_F77=yes
13980       hardcode_minus_L_F77=yes
13981       hardcode_shlibpath_var_F77=no
13982       ;;
13983
13984     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13985     freebsd* | kfreebsd*-gnu | dragonfly*)
13986       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13987       hardcode_libdir_flag_spec_F77='-R$libdir'
13988       hardcode_direct_F77=yes
13989       hardcode_shlibpath_var_F77=no
13990       ;;
13991
13992     hpux9*)
13993       if test "$GCC" = yes; then
13994         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'
13995       else
13996         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'
13997       fi
13998       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13999       hardcode_libdir_separator_F77=:
14000       hardcode_direct_F77=yes
14001
14002       # hardcode_minus_L: Not really in the search PATH,
14003       # but as the default location of the library.
14004       hardcode_minus_L_F77=yes
14005       export_dynamic_flag_spec_F77='${wl}-E'
14006       ;;
14007
14008     hpux10*)
14009       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14010         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14011       else
14012         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14013       fi
14014       if test "$with_gnu_ld" = no; then
14015         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14016         hardcode_libdir_separator_F77=:
14017
14018         hardcode_direct_F77=yes
14019         export_dynamic_flag_spec_F77='${wl}-E'
14020
14021         # hardcode_minus_L: Not really in the search PATH,
14022         # but as the default location of the library.
14023         hardcode_minus_L_F77=yes
14024       fi
14025       ;;
14026
14027     hpux11*)
14028       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14029         case $host_cpu in
14030         hppa*64*)
14031           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14032           ;;
14033         ia64*)
14034           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14035           ;;
14036         *)
14037           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14038           ;;
14039         esac
14040       else
14041         case $host_cpu in
14042         hppa*64*)
14043           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14044           ;;
14045         ia64*)
14046           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14047           ;;
14048         *)
14049           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14050           ;;
14051         esac
14052       fi
14053       if test "$with_gnu_ld" = no; then
14054         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14055         hardcode_libdir_separator_F77=:
14056
14057         case $host_cpu in
14058         hppa*64*|ia64*)
14059           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14060           hardcode_direct_F77=no
14061           hardcode_shlibpath_var_F77=no
14062           ;;
14063         *)
14064           hardcode_direct_F77=yes
14065           export_dynamic_flag_spec_F77='${wl}-E'
14066
14067           # hardcode_minus_L: Not really in the search PATH,
14068           # but as the default location of the library.
14069           hardcode_minus_L_F77=yes
14070           ;;
14071         esac
14072       fi
14073       ;;
14074
14075     irix5* | irix6* | nonstopux*)
14076       if test "$GCC" = yes; then
14077         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'
14078       else
14079         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'
14080         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14081       fi
14082       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14083       hardcode_libdir_separator_F77=:
14084       link_all_deplibs_F77=yes
14085       ;;
14086
14087     netbsd*)
14088       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14089         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14090       else
14091         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14092       fi
14093       hardcode_libdir_flag_spec_F77='-R$libdir'
14094       hardcode_direct_F77=yes
14095       hardcode_shlibpath_var_F77=no
14096       ;;
14097
14098     newsos6)
14099       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14100       hardcode_direct_F77=yes
14101       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14102       hardcode_libdir_separator_F77=:
14103       hardcode_shlibpath_var_F77=no
14104       ;;
14105
14106     openbsd*)
14107       hardcode_direct_F77=yes
14108       hardcode_shlibpath_var_F77=no
14109       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14110         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14111         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14112         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14113         export_dynamic_flag_spec_F77='${wl}-E'
14114       else
14115        case $host_os in
14116          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14117            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14118            hardcode_libdir_flag_spec_F77='-R$libdir'
14119            ;;
14120          *)
14121            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14122            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14123            ;;
14124        esac
14125       fi
14126       ;;
14127
14128     os2*)
14129       hardcode_libdir_flag_spec_F77='-L$libdir'
14130       hardcode_minus_L_F77=yes
14131       allow_undefined_flag_F77=unsupported
14132       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'
14133       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14134       ;;
14135
14136     osf3*)
14137       if test "$GCC" = yes; then
14138         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14139         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'
14140       else
14141         allow_undefined_flag_F77=' -expect_unresolved \*'
14142         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'
14143       fi
14144       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14145       hardcode_libdir_separator_F77=:
14146       ;;
14147
14148     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14149       if test "$GCC" = yes; then
14150         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14151         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'
14152         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14153       else
14154         allow_undefined_flag_F77=' -expect_unresolved \*'
14155         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'
14156         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~
14157         $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'
14158
14159         # Both c and cxx compiler support -rpath directly
14160         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14161       fi
14162       hardcode_libdir_separator_F77=:
14163       ;;
14164
14165     solaris*)
14166       no_undefined_flag_F77=' -z text'
14167       if test "$GCC" = yes; then
14168         wlarc='${wl}'
14169         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14170         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14171           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14172       else
14173         wlarc=''
14174         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14175         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14176         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14177       fi
14178       hardcode_libdir_flag_spec_F77='-R$libdir'
14179       hardcode_shlibpath_var_F77=no
14180       case $host_os in
14181       solaris2.[0-5] | solaris2.[0-5].*) ;;
14182       *)
14183         # The compiler driver will combine linker options so we
14184         # cannot just pass the convience library names through
14185         # without $wl, iff we do not link with $LD.
14186         # Luckily, gcc supports the same syntax we need for Sun Studio.
14187         # Supported since Solaris 2.6 (maybe 2.5.1?)
14188         case $wlarc in
14189         '')
14190           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14191         *)
14192           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' ;;
14193         esac ;;
14194       esac
14195       link_all_deplibs_F77=yes
14196       ;;
14197
14198     sunos4*)
14199       if test "x$host_vendor" = xsequent; then
14200         # Use $CC to link under sequent, because it throws in some extra .o
14201         # files that make .init and .fini sections work.
14202         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14203       else
14204         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14205       fi
14206       hardcode_libdir_flag_spec_F77='-L$libdir'
14207       hardcode_direct_F77=yes
14208       hardcode_minus_L_F77=yes
14209       hardcode_shlibpath_var_F77=no
14210       ;;
14211
14212     sysv4)
14213       case $host_vendor in
14214         sni)
14215           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14216           hardcode_direct_F77=yes # is this really true???
14217         ;;
14218         siemens)
14219           ## LD is ld it makes a PLAMLIB
14220           ## CC just makes a GrossModule.
14221           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14222           reload_cmds_F77='$CC -r -o $output$reload_objs'
14223           hardcode_direct_F77=no
14224         ;;
14225         motorola)
14226           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14227           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14228         ;;
14229       esac
14230       runpath_var='LD_RUN_PATH'
14231       hardcode_shlibpath_var_F77=no
14232       ;;
14233
14234     sysv4.3*)
14235       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14236       hardcode_shlibpath_var_F77=no
14237       export_dynamic_flag_spec_F77='-Bexport'
14238       ;;
14239
14240     sysv4*MP*)
14241       if test -d /usr/nec; then
14242         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14243         hardcode_shlibpath_var_F77=no
14244         runpath_var=LD_RUN_PATH
14245         hardcode_runpath_var=yes
14246         ld_shlibs_F77=yes
14247       fi
14248       ;;
14249
14250     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14251       no_undefined_flag_F77='${wl}-z,text'
14252       archive_cmds_need_lc_F77=no
14253       hardcode_shlibpath_var_F77=no
14254       runpath_var='LD_RUN_PATH'
14255
14256       if test "$GCC" = yes; then
14257         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14258         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14259       else
14260         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14261         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14262       fi
14263       ;;
14264
14265     sysv5* | sco3.2v5* | sco5v6*)
14266       # Note: We can NOT use -z defs as we might desire, because we do not
14267       # link with -lc, and that would cause any symbols used from libc to
14268       # always be unresolved, which means just about no library would
14269       # ever link correctly.  If we're not using GNU ld we use -z text
14270       # though, which does catch some bad symbols but isn't as heavy-handed
14271       # as -z defs.
14272       no_undefined_flag_F77='${wl}-z,text'
14273       allow_undefined_flag_F77='${wl}-z,nodefs'
14274       archive_cmds_need_lc_F77=no
14275       hardcode_shlibpath_var_F77=no
14276       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14277       hardcode_libdir_separator_F77=':'
14278       link_all_deplibs_F77=yes
14279       export_dynamic_flag_spec_F77='${wl}-Bexport'
14280       runpath_var='LD_RUN_PATH'
14281
14282       if test "$GCC" = yes; then
14283         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14284         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14285       else
14286         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14287         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14288       fi
14289       ;;
14290
14291     uts4*)
14292       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14293       hardcode_libdir_flag_spec_F77='-L$libdir'
14294       hardcode_shlibpath_var_F77=no
14295       ;;
14296
14297     *)
14298       ld_shlibs_F77=no
14299       ;;
14300     esac
14301   fi
14302
14303 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14304 echo "${ECHO_T}$ld_shlibs_F77" >&6
14305 test "$ld_shlibs_F77" = no && can_build_shared=no
14306
14307 #
14308 # Do we need to explicitly link libc?
14309 #
14310 case "x$archive_cmds_need_lc_F77" in
14311 x|xyes)
14312   # Assume -lc should be added
14313   archive_cmds_need_lc_F77=yes
14314
14315   if test "$enable_shared" = yes && test "$GCC" = yes; then
14316     case $archive_cmds_F77 in
14317     *'~'*)
14318       # FIXME: we may have to deal with multi-command sequences.
14319       ;;
14320     '$CC '*)
14321       # Test whether the compiler implicitly links with -lc since on some
14322       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14323       # to ld, don't add -lc before -lgcc.
14324       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14325 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14326       $rm conftest*
14327       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14328
14329       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14330   (eval $ac_compile) 2>&5
14331   ac_status=$?
14332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333   (exit $ac_status); } 2>conftest.err; then
14334         soname=conftest
14335         lib=conftest
14336         libobjs=conftest.$ac_objext
14337         deplibs=
14338         wl=$lt_prog_compiler_wl_F77
14339         pic_flag=$lt_prog_compiler_pic_F77
14340         compiler_flags=-v
14341         linker_flags=-v
14342         verstring=
14343         output_objdir=.
14344         libname=conftest
14345         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14346         allow_undefined_flag_F77=
14347         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14348   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14349   ac_status=$?
14350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351   (exit $ac_status); }
14352         then
14353           archive_cmds_need_lc_F77=no
14354         else
14355           archive_cmds_need_lc_F77=yes
14356         fi
14357         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14358       else
14359         cat conftest.err 1>&5
14360       fi
14361       $rm conftest*
14362       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14363 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14364       ;;
14365     esac
14366   fi
14367   ;;
14368 esac
14369
14370 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14371 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14372 library_names_spec=
14373 libname_spec='lib$name'
14374 soname_spec=
14375 shrext_cmds=".so"
14376 postinstall_cmds=
14377 postuninstall_cmds=
14378 finish_cmds=
14379 finish_eval=
14380 shlibpath_var=
14381 shlibpath_overrides_runpath=unknown
14382 version_type=none
14383 dynamic_linker="$host_os ld.so"
14384 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14385 if test "$GCC" = yes; then
14386   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14387   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14388     # if the path contains ";" then we assume it to be the separator
14389     # otherwise default to the standard path separator (i.e. ":") - it is
14390     # assumed that no part of a normal pathname contains ";" but that should
14391     # okay in the real world where ";" in dirpaths is itself problematic.
14392     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14393   else
14394     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14395   fi
14396 else
14397   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14398 fi
14399 need_lib_prefix=unknown
14400 hardcode_into_libs=no
14401
14402 # when you set need_version to no, make sure it does not cause -set_version
14403 # flags to be left without arguments
14404 need_version=unknown
14405
14406 case $host_os in
14407 aix3*)
14408   version_type=linux
14409   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14410   shlibpath_var=LIBPATH
14411
14412   # AIX 3 has no versioning support, so we append a major version to the name.
14413   soname_spec='${libname}${release}${shared_ext}$major'
14414   ;;
14415
14416 aix4* | aix5*)
14417   version_type=linux
14418   need_lib_prefix=no
14419   need_version=no
14420   hardcode_into_libs=yes
14421   if test "$host_cpu" = ia64; then
14422     # AIX 5 supports IA64
14423     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14424     shlibpath_var=LD_LIBRARY_PATH
14425   else
14426     # With GCC up to 2.95.x, collect2 would create an import file
14427     # for dependence libraries.  The import file would start with
14428     # the line `#! .'.  This would cause the generated library to
14429     # depend on `.', always an invalid library.  This was fixed in
14430     # development snapshots of GCC prior to 3.0.
14431     case $host_os in
14432       aix4 | aix4.[01] | aix4.[01].*)
14433       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14434            echo ' yes '
14435            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14436         :
14437       else
14438         can_build_shared=no
14439       fi
14440       ;;
14441     esac
14442     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14443     # soname into executable. Probably we can add versioning support to
14444     # collect2, so additional links can be useful in future.
14445     if test "$aix_use_runtimelinking" = yes; then
14446       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14447       # instead of lib<name>.a to let people know that these are not
14448       # typical AIX shared libraries.
14449       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14450     else
14451       # We preserve .a as extension for shared libraries through AIX4.2
14452       # and later when we are not doing run time linking.
14453       library_names_spec='${libname}${release}.a $libname.a'
14454       soname_spec='${libname}${release}${shared_ext}$major'
14455     fi
14456     shlibpath_var=LIBPATH
14457   fi
14458   ;;
14459
14460 amigaos*)
14461   library_names_spec='$libname.ixlibrary $libname.a'
14462   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14463   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'
14464   ;;
14465
14466 beos*)
14467   library_names_spec='${libname}${shared_ext}'
14468   dynamic_linker="$host_os ld.so"
14469   shlibpath_var=LIBRARY_PATH
14470   ;;
14471
14472 bsdi[45]*)
14473   version_type=linux
14474   need_version=no
14475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14476   soname_spec='${libname}${release}${shared_ext}$major'
14477   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14478   shlibpath_var=LD_LIBRARY_PATH
14479   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14480   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14481   # the default ld.so.conf also contains /usr/contrib/lib and
14482   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14483   # libtool to hard-code these into programs
14484   ;;
14485
14486 cygwin* | mingw* | pw32*)
14487   version_type=windows
14488   shrext_cmds=".dll"
14489   need_version=no
14490   need_lib_prefix=no
14491
14492   case $GCC,$host_os in
14493   yes,cygwin* | yes,mingw* | yes,pw32*)
14494     library_names_spec='$libname.dll.a'
14495     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14496     postinstall_cmds='base_file=`basename \${file}`~
14497       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14498       dldir=$destdir/`dirname \$dlpath`~
14499       test -d \$dldir || mkdir -p \$dldir~
14500       $install_prog $dir/$dlname \$dldir/$dlname~
14501       chmod a+x \$dldir/$dlname'
14502     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14503       dlpath=$dir/\$dldll~
14504        $rm \$dlpath'
14505     shlibpath_overrides_runpath=yes
14506
14507     case $host_os in
14508     cygwin*)
14509       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14510       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14511       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14512       ;;
14513     mingw*)
14514       # MinGW DLLs use traditional 'lib' prefix
14515       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14516       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14517       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14518         # It is most probably a Windows format PATH printed by
14519         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14520         # path with ; separators, and with drive letters. We can handle the
14521         # drive letters (cygwin fileutils understands them), so leave them,
14522         # especially as we might pass files found there to a mingw objdump,
14523         # which wouldn't understand a cygwinified path. Ahh.
14524         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14525       else
14526         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14527       fi
14528       ;;
14529     pw32*)
14530       # pw32 DLLs use 'pw' prefix rather than 'lib'
14531       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14532       ;;
14533     esac
14534     ;;
14535
14536   *)
14537     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14538     ;;
14539   esac
14540   dynamic_linker='Win32 ld.exe'
14541   # FIXME: first we should search . and the directory the executable is in
14542   shlibpath_var=PATH
14543   ;;
14544
14545 darwin* | rhapsody*)
14546   dynamic_linker="$host_os dyld"
14547   version_type=darwin
14548   need_lib_prefix=no
14549   need_version=no
14550   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14551   soname_spec='${libname}${release}${major}$shared_ext'
14552   shlibpath_overrides_runpath=yes
14553   shlibpath_var=DYLD_LIBRARY_PATH
14554   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14555   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14556   if test "$GCC" = yes; then
14557     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"`
14558   else
14559     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14560   fi
14561   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14562   ;;
14563
14564 dgux*)
14565   version_type=linux
14566   need_lib_prefix=no
14567   need_version=no
14568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14569   soname_spec='${libname}${release}${shared_ext}$major'
14570   shlibpath_var=LD_LIBRARY_PATH
14571   ;;
14572
14573 freebsd1*)
14574   dynamic_linker=no
14575   ;;
14576
14577 kfreebsd*-gnu)
14578   version_type=linux
14579   need_lib_prefix=no
14580   need_version=no
14581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14582   soname_spec='${libname}${release}${shared_ext}$major'
14583   shlibpath_var=LD_LIBRARY_PATH
14584   shlibpath_overrides_runpath=no
14585   hardcode_into_libs=yes
14586   dynamic_linker='GNU ld.so'
14587   ;;
14588
14589 freebsd* | dragonfly*)
14590   # DragonFly does not have aout.  When/if they implement a new
14591   # versioning mechanism, adjust this.
14592   if test -x /usr/bin/objformat; then
14593     objformat=`/usr/bin/objformat`
14594   else
14595     case $host_os in
14596     freebsd[123]*) objformat=aout ;;
14597     *) objformat=elf ;;
14598     esac
14599   fi
14600   version_type=freebsd-$objformat
14601   case $version_type in
14602     freebsd-elf*)
14603       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14604       need_version=no
14605       need_lib_prefix=no
14606       ;;
14607     freebsd-*)
14608       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14609       need_version=yes
14610       ;;
14611   esac
14612   shlibpath_var=LD_LIBRARY_PATH
14613   case $host_os in
14614   freebsd2*)
14615     shlibpath_overrides_runpath=yes
14616     ;;
14617   freebsd3.[01]* | freebsdelf3.[01]*)
14618     shlibpath_overrides_runpath=yes
14619     hardcode_into_libs=yes
14620     ;;
14621   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14622   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14623     shlibpath_overrides_runpath=no
14624     hardcode_into_libs=yes
14625     ;;
14626   freebsd*) # from 4.6 on
14627     shlibpath_overrides_runpath=yes
14628     hardcode_into_libs=yes
14629     ;;
14630   esac
14631   ;;
14632
14633 gnu*)
14634   version_type=linux
14635   need_lib_prefix=no
14636   need_version=no
14637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14638   soname_spec='${libname}${release}${shared_ext}$major'
14639   shlibpath_var=LD_LIBRARY_PATH
14640   hardcode_into_libs=yes
14641   ;;
14642
14643 hpux9* | hpux10* | hpux11*)
14644   # Give a soname corresponding to the major version so that dld.sl refuses to
14645   # link against other versions.
14646   version_type=sunos
14647   need_lib_prefix=no
14648   need_version=no
14649   case $host_cpu in
14650   ia64*)
14651     shrext_cmds='.so'
14652     hardcode_into_libs=yes
14653     dynamic_linker="$host_os dld.so"
14654     shlibpath_var=LD_LIBRARY_PATH
14655     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14656     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14657     soname_spec='${libname}${release}${shared_ext}$major'
14658     if test "X$HPUX_IA64_MODE" = X32; then
14659       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14660     else
14661       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14662     fi
14663     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14664     ;;
14665    hppa*64*)
14666      shrext_cmds='.sl'
14667      hardcode_into_libs=yes
14668      dynamic_linker="$host_os dld.sl"
14669      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14670      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14671      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14672      soname_spec='${libname}${release}${shared_ext}$major'
14673      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14674      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14675      ;;
14676    *)
14677     shrext_cmds='.sl'
14678     dynamic_linker="$host_os dld.sl"
14679     shlibpath_var=SHLIB_PATH
14680     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14681     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14682     soname_spec='${libname}${release}${shared_ext}$major'
14683     ;;
14684   esac
14685   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14686   postinstall_cmds='chmod 555 $lib'
14687   ;;
14688
14689 interix3*)
14690   version_type=linux
14691   need_lib_prefix=no
14692   need_version=no
14693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14694   soname_spec='${libname}${release}${shared_ext}$major'
14695   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14696   shlibpath_var=LD_LIBRARY_PATH
14697   shlibpath_overrides_runpath=no
14698   hardcode_into_libs=yes
14699   ;;
14700
14701 irix5* | irix6* | nonstopux*)
14702   case $host_os in
14703     nonstopux*) version_type=nonstopux ;;
14704     *)
14705         if test "$lt_cv_prog_gnu_ld" = yes; then
14706                 version_type=linux
14707         else
14708                 version_type=irix
14709         fi ;;
14710   esac
14711   need_lib_prefix=no
14712   need_version=no
14713   soname_spec='${libname}${release}${shared_ext}$major'
14714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14715   case $host_os in
14716   irix5* | nonstopux*)
14717     libsuff= shlibsuff=
14718     ;;
14719   *)
14720     case $LD in # libtool.m4 will add one of these switches to LD
14721     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14722       libsuff= shlibsuff= libmagic=32-bit;;
14723     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14724       libsuff=32 shlibsuff=N32 libmagic=N32;;
14725     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14726       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14727     *) libsuff= shlibsuff= libmagic=never-match;;
14728     esac
14729     ;;
14730   esac
14731   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14732   shlibpath_overrides_runpath=no
14733   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14734   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14735   hardcode_into_libs=yes
14736   ;;
14737
14738 # No shared lib support for Linux oldld, aout, or coff.
14739 linux*oldld* | linux*aout* | linux*coff*)
14740   dynamic_linker=no
14741   ;;
14742
14743 # This must be Linux ELF.
14744 linux*)
14745   version_type=linux
14746   need_lib_prefix=no
14747   need_version=no
14748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14749   soname_spec='${libname}${release}${shared_ext}$major'
14750   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14751   shlibpath_var=LD_LIBRARY_PATH
14752   shlibpath_overrides_runpath=no
14753   # This implies no fast_install, which is unacceptable.
14754   # Some rework will be needed to allow for fast_install
14755   # before this can be enabled.
14756   hardcode_into_libs=yes
14757
14758   # find out which ABI we are using
14759   libsuff=
14760   case "$host_cpu" in
14761   x86_64*|s390x*|powerpc64*)
14762     echo '#line 14762 "configure"' > conftest.$ac_ext
14763     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14764   (eval $ac_compile) 2>&5
14765   ac_status=$?
14766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767   (exit $ac_status); }; then
14768       case `/usr/bin/file conftest.$ac_objext` in
14769       *64-bit*)
14770         libsuff=64
14771         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14772         ;;
14773       esac
14774     fi
14775     rm -rf conftest*
14776     ;;
14777   esac
14778
14779   # Append ld.so.conf contents to the search path
14780   if test -f /etc/ld.so.conf; then
14781     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14782     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14783   fi
14784
14785   # We used to test for /lib/ld.so.1 and disable shared libraries on
14786   # powerpc, because MkLinux only supported shared libraries with the
14787   # GNU dynamic linker.  Since this was broken with cross compilers,
14788   # most powerpc-linux boxes support dynamic linking these days and
14789   # people can always --disable-shared, the test was removed, and we
14790   # assume the GNU/Linux dynamic linker is in use.
14791   dynamic_linker='GNU/Linux ld.so'
14792   ;;
14793
14794 knetbsd*-gnu)
14795   version_type=linux
14796   need_lib_prefix=no
14797   need_version=no
14798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14799   soname_spec='${libname}${release}${shared_ext}$major'
14800   shlibpath_var=LD_LIBRARY_PATH
14801   shlibpath_overrides_runpath=no
14802   hardcode_into_libs=yes
14803   dynamic_linker='GNU ld.so'
14804   ;;
14805
14806 netbsd*)
14807   version_type=sunos
14808   need_lib_prefix=no
14809   need_version=no
14810   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14811     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14812     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14813     dynamic_linker='NetBSD (a.out) ld.so'
14814   else
14815     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14816     soname_spec='${libname}${release}${shared_ext}$major'
14817     dynamic_linker='NetBSD ld.elf_so'
14818   fi
14819   shlibpath_var=LD_LIBRARY_PATH
14820   shlibpath_overrides_runpath=yes
14821   hardcode_into_libs=yes
14822   ;;
14823
14824 newsos6)
14825   version_type=linux
14826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14827   shlibpath_var=LD_LIBRARY_PATH
14828   shlibpath_overrides_runpath=yes
14829   ;;
14830
14831 nto-qnx*)
14832   version_type=linux
14833   need_lib_prefix=no
14834   need_version=no
14835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14836   soname_spec='${libname}${release}${shared_ext}$major'
14837   shlibpath_var=LD_LIBRARY_PATH
14838   shlibpath_overrides_runpath=yes
14839   ;;
14840
14841 openbsd*)
14842   version_type=sunos
14843   sys_lib_dlsearch_path_spec="/usr/lib"
14844   need_lib_prefix=no
14845   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14846   case $host_os in
14847     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14848     *)                         need_version=no  ;;
14849   esac
14850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14851   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14852   shlibpath_var=LD_LIBRARY_PATH
14853   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14854     case $host_os in
14855       openbsd2.[89] | openbsd2.[89].*)
14856         shlibpath_overrides_runpath=no
14857         ;;
14858       *)
14859         shlibpath_overrides_runpath=yes
14860         ;;
14861       esac
14862   else
14863     shlibpath_overrides_runpath=yes
14864   fi
14865   ;;
14866
14867 os2*)
14868   libname_spec='$name'
14869   shrext_cmds=".dll"
14870   need_lib_prefix=no
14871   library_names_spec='$libname${shared_ext} $libname.a'
14872   dynamic_linker='OS/2 ld.exe'
14873   shlibpath_var=LIBPATH
14874   ;;
14875
14876 osf3* | osf4* | osf5*)
14877   version_type=osf
14878   need_lib_prefix=no
14879   need_version=no
14880   soname_spec='${libname}${release}${shared_ext}$major'
14881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14882   shlibpath_var=LD_LIBRARY_PATH
14883   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14884   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14885   ;;
14886
14887 solaris*)
14888   version_type=linux
14889   need_lib_prefix=no
14890   need_version=no
14891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14892   soname_spec='${libname}${release}${shared_ext}$major'
14893   shlibpath_var=LD_LIBRARY_PATH
14894   shlibpath_overrides_runpath=yes
14895   hardcode_into_libs=yes
14896   # ldd complains unless libraries are executable
14897   postinstall_cmds='chmod +x $lib'
14898   ;;
14899
14900 sunos4*)
14901   version_type=sunos
14902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14903   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14904   shlibpath_var=LD_LIBRARY_PATH
14905   shlibpath_overrides_runpath=yes
14906   if test "$with_gnu_ld" = yes; then
14907     need_lib_prefix=no
14908   fi
14909   need_version=yes
14910   ;;
14911
14912 sysv4 | sysv4.3*)
14913   version_type=linux
14914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14915   soname_spec='${libname}${release}${shared_ext}$major'
14916   shlibpath_var=LD_LIBRARY_PATH
14917   case $host_vendor in
14918     sni)
14919       shlibpath_overrides_runpath=no
14920       need_lib_prefix=no
14921       export_dynamic_flag_spec='${wl}-Blargedynsym'
14922       runpath_var=LD_RUN_PATH
14923       ;;
14924     siemens)
14925       need_lib_prefix=no
14926       ;;
14927     motorola)
14928       need_lib_prefix=no
14929       need_version=no
14930       shlibpath_overrides_runpath=no
14931       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14932       ;;
14933   esac
14934   ;;
14935
14936 sysv4*MP*)
14937   if test -d /usr/nec ;then
14938     version_type=linux
14939     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14940     soname_spec='$libname${shared_ext}.$major'
14941     shlibpath_var=LD_LIBRARY_PATH
14942   fi
14943   ;;
14944
14945 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14946   version_type=freebsd-elf
14947   need_lib_prefix=no
14948   need_version=no
14949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14950   soname_spec='${libname}${release}${shared_ext}$major'
14951   shlibpath_var=LD_LIBRARY_PATH
14952   hardcode_into_libs=yes
14953   if test "$with_gnu_ld" = yes; then
14954     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14955     shlibpath_overrides_runpath=no
14956   else
14957     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14958     shlibpath_overrides_runpath=yes
14959     case $host_os in
14960       sco3.2v5*)
14961         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14962         ;;
14963     esac
14964   fi
14965   sys_lib_dlsearch_path_spec='/usr/lib'
14966   ;;
14967
14968 uts4*)
14969   version_type=linux
14970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14971   soname_spec='${libname}${release}${shared_ext}$major'
14972   shlibpath_var=LD_LIBRARY_PATH
14973   ;;
14974
14975 *)
14976   dynamic_linker=no
14977   ;;
14978 esac
14979 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14980 echo "${ECHO_T}$dynamic_linker" >&6
14981 test "$dynamic_linker" = no && can_build_shared=no
14982
14983 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14984 if test "$GCC" = yes; then
14985   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14986 fi
14987
14988 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14989 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14990 hardcode_action_F77=
14991 if test -n "$hardcode_libdir_flag_spec_F77" || \
14992    test -n "$runpath_var_F77" || \
14993    test "X$hardcode_automatic_F77" = "Xyes" ; then
14994
14995   # We can hardcode non-existant directories.
14996   if test "$hardcode_direct_F77" != no &&
14997      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14998      # have to relink, otherwise we might link with an installed library
14999      # when we should be linking with a yet-to-be-installed one
15000      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15001      test "$hardcode_minus_L_F77" != no; then
15002     # Linking always hardcodes the temporary library directory.
15003     hardcode_action_F77=relink
15004   else
15005     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15006     hardcode_action_F77=immediate
15007   fi
15008 else
15009   # We cannot hardcode anything, or else we can only hardcode existing
15010   # directories.
15011   hardcode_action_F77=unsupported
15012 fi
15013 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15014 echo "${ECHO_T}$hardcode_action_F77" >&6
15015
15016 if test "$hardcode_action_F77" = relink; then
15017   # Fast installation is not supported
15018   enable_fast_install=no
15019 elif test "$shlibpath_overrides_runpath" = yes ||
15020      test "$enable_shared" = no; then
15021   # Fast installation is not necessary
15022   enable_fast_install=needless
15023 fi
15024
15025
15026 # The else clause should only fire when bootstrapping the
15027 # libtool distribution, otherwise you forgot to ship ltmain.sh
15028 # with your package, and you will get complaints that there are
15029 # no rules to generate ltmain.sh.
15030 if test -f "$ltmain"; then
15031   # See if we are running on zsh, and set the options which allow our commands through
15032   # without removal of \ escapes.
15033   if test -n "${ZSH_VERSION+set}" ; then
15034     setopt NO_GLOB_SUBST
15035   fi
15036   # Now quote all the things that may contain metacharacters while being
15037   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15038   # variables and quote the copies for generation of the libtool script.
15039   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15040     SED SHELL STRIP \
15041     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15042     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15043     deplibs_check_method reload_flag reload_cmds need_locks \
15044     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15045     lt_cv_sys_global_symbol_to_c_name_address \
15046     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15047     old_postinstall_cmds old_postuninstall_cmds \
15048     compiler_F77 \
15049     CC_F77 \
15050     LD_F77 \
15051     lt_prog_compiler_wl_F77 \
15052     lt_prog_compiler_pic_F77 \
15053     lt_prog_compiler_static_F77 \
15054     lt_prog_compiler_no_builtin_flag_F77 \
15055     export_dynamic_flag_spec_F77 \
15056     thread_safe_flag_spec_F77 \
15057     whole_archive_flag_spec_F77 \
15058     enable_shared_with_static_runtimes_F77 \
15059     old_archive_cmds_F77 \
15060     old_archive_from_new_cmds_F77 \
15061     predep_objects_F77 \
15062     postdep_objects_F77 \
15063     predeps_F77 \
15064     postdeps_F77 \
15065     compiler_lib_search_path_F77 \
15066     archive_cmds_F77 \
15067     archive_expsym_cmds_F77 \
15068     postinstall_cmds_F77 \
15069     postuninstall_cmds_F77 \
15070     old_archive_from_expsyms_cmds_F77 \
15071     allow_undefined_flag_F77 \
15072     no_undefined_flag_F77 \
15073     export_symbols_cmds_F77 \
15074     hardcode_libdir_flag_spec_F77 \
15075     hardcode_libdir_flag_spec_ld_F77 \
15076     hardcode_libdir_separator_F77 \
15077     hardcode_automatic_F77 \
15078     module_cmds_F77 \
15079     module_expsym_cmds_F77 \
15080     lt_cv_prog_compiler_c_o_F77 \
15081     exclude_expsyms_F77 \
15082     include_expsyms_F77; do
15083
15084     case $var in
15085     old_archive_cmds_F77 | \
15086     old_archive_from_new_cmds_F77 | \
15087     archive_cmds_F77 | \
15088     archive_expsym_cmds_F77 | \
15089     module_cmds_F77 | \
15090     module_expsym_cmds_F77 | \
15091     old_archive_from_expsyms_cmds_F77 | \
15092     export_symbols_cmds_F77 | \
15093     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15094     postinstall_cmds | postuninstall_cmds | \
15095     old_postinstall_cmds | old_postuninstall_cmds | \
15096     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15097       # Double-quote double-evaled strings.
15098       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15099       ;;
15100     *)
15101       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15102       ;;
15103     esac
15104   done
15105
15106   case $lt_echo in
15107   *'\$0 --fallback-echo"')
15108     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15109     ;;
15110   esac
15111
15112 cfgfile="$ofile"
15113
15114   cat <<__EOF__ >> "$cfgfile"
15115 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15116
15117 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15118
15119 # Shell to use when invoking shell scripts.
15120 SHELL=$lt_SHELL
15121
15122 # Whether or not to build shared libraries.
15123 build_libtool_libs=$enable_shared
15124
15125 # Whether or not to build static libraries.
15126 build_old_libs=$enable_static
15127
15128 # Whether or not to add -lc for building shared libraries.
15129 build_libtool_need_lc=$archive_cmds_need_lc_F77
15130
15131 # Whether or not to disallow shared libs when runtime libs are static
15132 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15133
15134 # Whether or not to optimize for fast installation.
15135 fast_install=$enable_fast_install
15136
15137 # The host system.
15138 host_alias=$host_alias
15139 host=$host
15140 host_os=$host_os
15141
15142 # The build system.
15143 build_alias=$build_alias
15144 build=$build
15145 build_os=$build_os
15146
15147 # An echo program that does not interpret backslashes.
15148 echo=$lt_echo
15149
15150 # The archiver.
15151 AR=$lt_AR
15152 AR_FLAGS=$lt_AR_FLAGS
15153
15154 # A C compiler.
15155 LTCC=$lt_LTCC
15156
15157 # LTCC compiler flags.
15158 LTCFLAGS=$lt_LTCFLAGS
15159
15160 # A language-specific compiler.
15161 CC=$lt_compiler_F77
15162
15163 # Is the compiler the GNU C compiler?
15164 with_gcc=$GCC_F77
15165
15166 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15167 gcc_ver=\`gcc -dumpversion\`
15168
15169 # An ERE matcher.
15170 EGREP=$lt_EGREP
15171
15172 # The linker used to build libraries.
15173 LD=$lt_LD_F77
15174
15175 # Whether we need hard or soft links.
15176 LN_S=$lt_LN_S
15177
15178 # A BSD-compatible nm program.
15179 NM=$lt_NM
15180
15181 # A symbol stripping program
15182 STRIP=$lt_STRIP
15183
15184 # Used to examine libraries when file_magic_cmd begins "file"
15185 MAGIC_CMD=$MAGIC_CMD
15186
15187 # Used on cygwin: DLL creation program.
15188 DLLTOOL="$DLLTOOL"
15189
15190 # Used on cygwin: object dumper.
15191 OBJDUMP="$OBJDUMP"
15192
15193 # Used on cygwin: assembler.
15194 AS="$AS"
15195
15196 # The name of the directory that contains temporary libtool files.
15197 objdir=$objdir
15198
15199 # How to create reloadable object files.
15200 reload_flag=$lt_reload_flag
15201 reload_cmds=$lt_reload_cmds
15202
15203 # How to pass a linker flag through the compiler.
15204 wl=$lt_lt_prog_compiler_wl_F77
15205
15206 # Object file suffix (normally "o").
15207 objext="$ac_objext"
15208
15209 # Old archive suffix (normally "a").
15210 libext="$libext"
15211
15212 # Shared library suffix (normally ".so").
15213 shrext_cmds='$shrext_cmds'
15214
15215 # Executable file suffix (normally "").
15216 exeext="$exeext"
15217
15218 # Additional compiler flags for building library objects.
15219 pic_flag=$lt_lt_prog_compiler_pic_F77
15220 pic_mode=$pic_mode
15221
15222 # What is the maximum length of a command?
15223 max_cmd_len=$lt_cv_sys_max_cmd_len
15224
15225 # Does compiler simultaneously support -c and -o options?
15226 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15227
15228 # Must we lock files when doing compilation?
15229 need_locks=$lt_need_locks
15230
15231 # Do we need the lib prefix for modules?
15232 need_lib_prefix=$need_lib_prefix
15233
15234 # Do we need a version for libraries?
15235 need_version=$need_version
15236
15237 # Whether dlopen is supported.
15238 dlopen_support=$enable_dlopen
15239
15240 # Whether dlopen of programs is supported.
15241 dlopen_self=$enable_dlopen_self
15242
15243 # Whether dlopen of statically linked programs is supported.
15244 dlopen_self_static=$enable_dlopen_self_static
15245
15246 # Compiler flag to prevent dynamic linking.
15247 link_static_flag=$lt_lt_prog_compiler_static_F77
15248
15249 # Compiler flag to turn off builtin functions.
15250 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15251
15252 # Compiler flag to allow reflexive dlopens.
15253 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15254
15255 # Compiler flag to generate shared objects directly from archives.
15256 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15257
15258 # Compiler flag to generate thread-safe objects.
15259 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15260
15261 # Library versioning type.
15262 version_type=$version_type
15263
15264 # Format of library name prefix.
15265 libname_spec=$lt_libname_spec
15266
15267 # List of archive names.  First name is the real one, the rest are links.
15268 # The last name is the one that the linker finds with -lNAME.
15269 library_names_spec=$lt_library_names_spec
15270
15271 # The coded name of the library, if different from the real name.
15272 soname_spec=$lt_soname_spec
15273
15274 # Commands used to build and install an old-style archive.
15275 RANLIB=$lt_RANLIB
15276 old_archive_cmds=$lt_old_archive_cmds_F77
15277 old_postinstall_cmds=$lt_old_postinstall_cmds
15278 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15279
15280 # Create an old-style archive from a shared archive.
15281 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15282
15283 # Create a temporary old-style archive to link instead of a shared archive.
15284 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15285
15286 # Commands used to build and install a shared archive.
15287 archive_cmds=$lt_archive_cmds_F77
15288 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15289 postinstall_cmds=$lt_postinstall_cmds
15290 postuninstall_cmds=$lt_postuninstall_cmds
15291
15292 # Commands used to build a loadable module (assumed same as above if empty)
15293 module_cmds=$lt_module_cmds_F77
15294 module_expsym_cmds=$lt_module_expsym_cmds_F77
15295
15296 # Commands to strip libraries.
15297 old_striplib=$lt_old_striplib
15298 striplib=$lt_striplib
15299
15300 # Dependencies to place before the objects being linked to create a
15301 # shared library.
15302 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15303
15304 # Dependencies to place after the objects being linked to create a
15305 # shared library.
15306 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15307
15308 # Dependencies to place before the objects being linked to create a
15309 # shared library.
15310 predeps=$lt_predeps_F77
15311
15312 # Dependencies to place after the objects being linked to create a
15313 # shared library.
15314 postdeps=$lt_postdeps_F77
15315
15316 # The library search path used internally by the compiler when linking
15317 # a shared library.
15318 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15319
15320 # Method to check whether dependent libraries are shared objects.
15321 deplibs_check_method=$lt_deplibs_check_method
15322
15323 # Command to use when deplibs_check_method == file_magic.
15324 file_magic_cmd=$lt_file_magic_cmd
15325
15326 # Flag that allows shared libraries with undefined symbols to be built.
15327 allow_undefined_flag=$lt_allow_undefined_flag_F77
15328
15329 # Flag that forces no undefined symbols.
15330 no_undefined_flag=$lt_no_undefined_flag_F77
15331
15332 # Commands used to finish a libtool library installation in a directory.
15333 finish_cmds=$lt_finish_cmds
15334
15335 # Same as above, but a single script fragment to be evaled but not shown.
15336 finish_eval=$lt_finish_eval
15337
15338 # Take the output of nm and produce a listing of raw symbols and C names.
15339 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15340
15341 # Transform the output of nm in a proper C declaration
15342 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15343
15344 # Transform the output of nm in a C name address pair
15345 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15346
15347 # This is the shared library runtime path variable.
15348 runpath_var=$runpath_var
15349
15350 # This is the shared library path variable.
15351 shlibpath_var=$shlibpath_var
15352
15353 # Is shlibpath searched before the hard-coded library search path?
15354 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15355
15356 # How to hardcode a shared library path into an executable.
15357 hardcode_action=$hardcode_action_F77
15358
15359 # Whether we should hardcode library paths into libraries.
15360 hardcode_into_libs=$hardcode_into_libs
15361
15362 # Flag to hardcode \$libdir into a binary during linking.
15363 # This must work even if \$libdir does not exist.
15364 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15365
15366 # If ld is used when linking, flag to hardcode \$libdir into
15367 # a binary during linking. This must work even if \$libdir does
15368 # not exist.
15369 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15370
15371 # Whether we need a single -rpath flag with a separated argument.
15372 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15373
15374 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15375 # resulting binary.
15376 hardcode_direct=$hardcode_direct_F77
15377
15378 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15379 # resulting binary.
15380 hardcode_minus_L=$hardcode_minus_L_F77
15381
15382 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15383 # the resulting binary.
15384 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15385
15386 # Set to yes if building a shared library automatically hardcodes DIR into the library
15387 # and all subsequent libraries and executables linked against it.
15388 hardcode_automatic=$hardcode_automatic_F77
15389
15390 # Variables whose values should be saved in libtool wrapper scripts and
15391 # restored at relink time.
15392 variables_saved_for_relink="$variables_saved_for_relink"
15393
15394 # Whether libtool must link a program against all its dependency libraries.
15395 link_all_deplibs=$link_all_deplibs_F77
15396
15397 # Compile-time system search path for libraries
15398 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15399
15400 # Run-time system search path for libraries
15401 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15402
15403 # Fix the shell variable \$srcfile for the compiler.
15404 fix_srcfile_path="$fix_srcfile_path_F77"
15405
15406 # Set to yes if exported symbols are required.
15407 always_export_symbols=$always_export_symbols_F77
15408
15409 # The commands to list exported symbols.
15410 export_symbols_cmds=$lt_export_symbols_cmds_F77
15411
15412 # The commands to extract the exported symbol list from a shared archive.
15413 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15414
15415 # Symbols that should not be listed in the preloaded symbols.
15416 exclude_expsyms=$lt_exclude_expsyms_F77
15417
15418 # Symbols that must always be exported.
15419 include_expsyms=$lt_include_expsyms_F77
15420
15421 # ### END LIBTOOL TAG CONFIG: $tagname
15422
15423 __EOF__
15424
15425
15426 else
15427   # If there is no Makefile yet, we rely on a make rule to execute
15428   # `config.status --recheck' to rerun these tests and create the
15429   # libtool script then.
15430   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15431   if test -f "$ltmain_in"; then
15432     test -f Makefile && make "$ltmain"
15433   fi
15434 fi
15435
15436
15437 ac_ext=c
15438 ac_cpp='$CPP $CPPFLAGS'
15439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15442
15443 CC="$lt_save_CC"
15444
15445         else
15446           tagname=""
15447         fi
15448         ;;
15449
15450       GCJ)
15451         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15452
15453
15454
15455 # Source file extension for Java test sources.
15456 ac_ext=java
15457
15458 # Object file extension for compiled Java test sources.
15459 objext=o
15460 objext_GCJ=$objext
15461
15462 # Code to be used in simple compile tests
15463 lt_simple_compile_test_code="class foo {}\n"
15464
15465 # Code to be used in simple link tests
15466 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15467
15468 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15469
15470 # If no C compiler was specified, use CC.
15471 LTCC=${LTCC-"$CC"}
15472
15473 # If no C compiler flags were specified, use CFLAGS.
15474 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15475
15476 # Allow CC to be a program name with arguments.
15477 compiler=$CC
15478
15479
15480 # save warnings/boilerplate of simple test code
15481 ac_outfile=conftest.$ac_objext
15482 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15483 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15484 _lt_compiler_boilerplate=`cat conftest.err`
15485 $rm conftest*
15486
15487 ac_outfile=conftest.$ac_objext
15488 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15489 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15490 _lt_linker_boilerplate=`cat conftest.err`
15491 $rm conftest*
15492
15493
15494 # Allow CC to be a program name with arguments.
15495 lt_save_CC="$CC"
15496 CC=${GCJ-"gcj"}
15497 compiler=$CC
15498 compiler_GCJ=$CC
15499 for cc_temp in $compiler""; do
15500   case $cc_temp in
15501     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15502     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15503     \-*) ;;
15504     *) break;;
15505   esac
15506 done
15507 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15508
15509
15510 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15511 archive_cmds_need_lc_GCJ=no
15512
15513 old_archive_cmds_GCJ=$old_archive_cmds
15514
15515
15516 lt_prog_compiler_no_builtin_flag_GCJ=
15517
15518 if test "$GCC" = yes; then
15519   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15520
15521
15522 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15523 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15524 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15525   echo $ECHO_N "(cached) $ECHO_C" >&6
15526 else
15527   lt_cv_prog_compiler_rtti_exceptions=no
15528   ac_outfile=conftest.$ac_objext
15529    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15530    lt_compiler_flag="-fno-rtti -fno-exceptions"
15531    # Insert the option either (1) after the last *FLAGS variable, or
15532    # (2) before a word containing "conftest.", or (3) at the end.
15533    # Note that $ac_compile itself does not contain backslashes and begins
15534    # with a dollar sign (not a hyphen), so the echo should work correctly.
15535    # The option is referenced via a variable to avoid confusing sed.
15536    lt_compile=`echo "$ac_compile" | $SED \
15537    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15538    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15539    -e 's:$: $lt_compiler_flag:'`
15540    (eval echo "\"\$as_me:15540: $lt_compile\"" >&5)
15541    (eval "$lt_compile" 2>conftest.err)
15542    ac_status=$?
15543    cat conftest.err >&5
15544    echo "$as_me:15544: \$? = $ac_status" >&5
15545    if (exit $ac_status) && test -s "$ac_outfile"; then
15546      # The compiler can only warn and ignore the option if not recognized
15547      # So say no if there are warnings other than the usual output.
15548      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15549      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15550      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15551        lt_cv_prog_compiler_rtti_exceptions=yes
15552      fi
15553    fi
15554    $rm conftest*
15555
15556 fi
15557 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15558 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15559
15560 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15561     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15562 else
15563     :
15564 fi
15565
15566 fi
15567
15568 lt_prog_compiler_wl_GCJ=
15569 lt_prog_compiler_pic_GCJ=
15570 lt_prog_compiler_static_GCJ=
15571
15572 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15573 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15574
15575   if test "$GCC" = yes; then
15576     lt_prog_compiler_wl_GCJ='-Wl,'
15577     lt_prog_compiler_static_GCJ='-static'
15578
15579     case $host_os in
15580       aix*)
15581       # All AIX code is PIC.
15582       if test "$host_cpu" = ia64; then
15583         # AIX 5 now supports IA64 processor
15584         lt_prog_compiler_static_GCJ='-Bstatic'
15585       fi
15586       ;;
15587
15588     amigaos*)
15589       # FIXME: we need at least 68020 code to build shared libraries, but
15590       # adding the `-m68020' flag to GCC prevents building anything better,
15591       # like `-m68040'.
15592       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15593       ;;
15594
15595     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15596       # PIC is the default for these OSes.
15597       ;;
15598
15599     mingw* | pw32* | os2*)
15600       # This hack is so that the source file can tell whether it is being
15601       # built for inclusion in a dll (and should export symbols for example).
15602       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15603       ;;
15604
15605     darwin* | rhapsody*)
15606       # PIC is the default on this platform
15607       # Common symbols not allowed in MH_DYLIB files
15608       lt_prog_compiler_pic_GCJ='-fno-common'
15609       ;;
15610
15611     interix3*)
15612       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15613       # Instead, we relocate shared libraries at runtime.
15614       ;;
15615
15616     msdosdjgpp*)
15617       # Just because we use GCC doesn't mean we suddenly get shared libraries
15618       # on systems that don't support them.
15619       lt_prog_compiler_can_build_shared_GCJ=no
15620       enable_shared=no
15621       ;;
15622
15623     sysv4*MP*)
15624       if test -d /usr/nec; then
15625         lt_prog_compiler_pic_GCJ=-Kconform_pic
15626       fi
15627       ;;
15628
15629     hpux*)
15630       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15631       # not for PA HP-UX.
15632       case $host_cpu in
15633       hppa*64*|ia64*)
15634         # +Z the default
15635         ;;
15636       *)
15637         lt_prog_compiler_pic_GCJ='-fPIC'
15638         ;;
15639       esac
15640       ;;
15641
15642     *)
15643       lt_prog_compiler_pic_GCJ='-fPIC'
15644       ;;
15645     esac
15646   else
15647     # PORTME Check for flag to pass linker flags through the system compiler.
15648     case $host_os in
15649     aix*)
15650       lt_prog_compiler_wl_GCJ='-Wl,'
15651       if test "$host_cpu" = ia64; then
15652         # AIX 5 now supports IA64 processor
15653         lt_prog_compiler_static_GCJ='-Bstatic'
15654       else
15655         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15656       fi
15657       ;;
15658       darwin*)
15659         # PIC is the default on this platform
15660         # Common symbols not allowed in MH_DYLIB files
15661        case $cc_basename in
15662          xlc*)
15663          lt_prog_compiler_pic_GCJ='-qnocommon'
15664          lt_prog_compiler_wl_GCJ='-Wl,'
15665          ;;
15666        esac
15667        ;;
15668
15669     mingw* | pw32* | os2*)
15670       # This hack is so that the source file can tell whether it is being
15671       # built for inclusion in a dll (and should export symbols for example).
15672       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15673       ;;
15674
15675     hpux9* | hpux10* | hpux11*)
15676       lt_prog_compiler_wl_GCJ='-Wl,'
15677       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15678       # not for PA HP-UX.
15679       case $host_cpu in
15680       hppa*64*|ia64*)
15681         # +Z the default
15682         ;;
15683       *)
15684         lt_prog_compiler_pic_GCJ='+Z'
15685         ;;
15686       esac
15687       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15688       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15689       ;;
15690
15691     irix5* | irix6* | nonstopux*)
15692       lt_prog_compiler_wl_GCJ='-Wl,'
15693       # PIC (with -KPIC) is the default.
15694       lt_prog_compiler_static_GCJ='-non_shared'
15695       ;;
15696
15697     newsos6)
15698       lt_prog_compiler_pic_GCJ='-KPIC'
15699       lt_prog_compiler_static_GCJ='-Bstatic'
15700       ;;
15701
15702     linux*)
15703       case $cc_basename in
15704       icc* | ecc*)
15705         lt_prog_compiler_wl_GCJ='-Wl,'
15706         lt_prog_compiler_pic_GCJ='-KPIC'
15707         lt_prog_compiler_static_GCJ='-static'
15708         ;;
15709       pgcc* | pgf77* | pgf90* | pgf95*)
15710         # Portland Group compilers (*not* the Pentium gcc compiler,
15711         # which looks to be a dead project)
15712         lt_prog_compiler_wl_GCJ='-Wl,'
15713         lt_prog_compiler_pic_GCJ='-fpic'
15714         lt_prog_compiler_static_GCJ='-Bstatic'
15715         ;;
15716       ccc*)
15717         lt_prog_compiler_wl_GCJ='-Wl,'
15718         # All Alpha code is PIC.
15719         lt_prog_compiler_static_GCJ='-non_shared'
15720         ;;
15721       esac
15722       ;;
15723
15724     osf3* | osf4* | osf5*)
15725       lt_prog_compiler_wl_GCJ='-Wl,'
15726       # All OSF/1 code is PIC.
15727       lt_prog_compiler_static_GCJ='-non_shared'
15728       ;;
15729
15730     solaris*)
15731       lt_prog_compiler_pic_GCJ='-KPIC'
15732       lt_prog_compiler_static_GCJ='-Bstatic'
15733       case $cc_basename in
15734       f77* | f90* | f95*)
15735         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15736       *)
15737         lt_prog_compiler_wl_GCJ='-Wl,';;
15738       esac
15739       ;;
15740
15741     sunos4*)
15742       lt_prog_compiler_wl_GCJ='-Qoption ld '
15743       lt_prog_compiler_pic_GCJ='-PIC'
15744       lt_prog_compiler_static_GCJ='-Bstatic'
15745       ;;
15746
15747     sysv4 | sysv4.2uw2* | sysv4.3*)
15748       lt_prog_compiler_wl_GCJ='-Wl,'
15749       lt_prog_compiler_pic_GCJ='-KPIC'
15750       lt_prog_compiler_static_GCJ='-Bstatic'
15751       ;;
15752
15753     sysv4*MP*)
15754       if test -d /usr/nec ;then
15755         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15756         lt_prog_compiler_static_GCJ='-Bstatic'
15757       fi
15758       ;;
15759
15760     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15761       lt_prog_compiler_wl_GCJ='-Wl,'
15762       lt_prog_compiler_pic_GCJ='-KPIC'
15763       lt_prog_compiler_static_GCJ='-Bstatic'
15764       ;;
15765
15766     unicos*)
15767       lt_prog_compiler_wl_GCJ='-Wl,'
15768       lt_prog_compiler_can_build_shared_GCJ=no
15769       ;;
15770
15771     uts4*)
15772       lt_prog_compiler_pic_GCJ='-pic'
15773       lt_prog_compiler_static_GCJ='-Bstatic'
15774       ;;
15775
15776     *)
15777       lt_prog_compiler_can_build_shared_GCJ=no
15778       ;;
15779     esac
15780   fi
15781
15782 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15783 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15784
15785 #
15786 # Check to make sure the PIC flag actually works.
15787 #
15788 if test -n "$lt_prog_compiler_pic_GCJ"; then
15789
15790 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15791 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15792 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15793   echo $ECHO_N "(cached) $ECHO_C" >&6
15794 else
15795   lt_prog_compiler_pic_works_GCJ=no
15796   ac_outfile=conftest.$ac_objext
15797    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15798    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15799    # Insert the option either (1) after the last *FLAGS variable, or
15800    # (2) before a word containing "conftest.", or (3) at the end.
15801    # Note that $ac_compile itself does not contain backslashes and begins
15802    # with a dollar sign (not a hyphen), so the echo should work correctly.
15803    # The option is referenced via a variable to avoid confusing sed.
15804    lt_compile=`echo "$ac_compile" | $SED \
15805    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15806    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15807    -e 's:$: $lt_compiler_flag:'`
15808    (eval echo "\"\$as_me:15808: $lt_compile\"" >&5)
15809    (eval "$lt_compile" 2>conftest.err)
15810    ac_status=$?
15811    cat conftest.err >&5
15812    echo "$as_me:15812: \$? = $ac_status" >&5
15813    if (exit $ac_status) && test -s "$ac_outfile"; then
15814      # The compiler can only warn and ignore the option if not recognized
15815      # So say no if there are warnings other than the usual output.
15816      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15817      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15818      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15819        lt_prog_compiler_pic_works_GCJ=yes
15820      fi
15821    fi
15822    $rm conftest*
15823
15824 fi
15825 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15826 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15827
15828 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15829     case $lt_prog_compiler_pic_GCJ in
15830      "" | " "*) ;;
15831      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15832      esac
15833 else
15834     lt_prog_compiler_pic_GCJ=
15835      lt_prog_compiler_can_build_shared_GCJ=no
15836 fi
15837
15838 fi
15839 case $host_os in
15840   # For platforms which do not support PIC, -DPIC is meaningless:
15841   *djgpp*)
15842     lt_prog_compiler_pic_GCJ=
15843     ;;
15844   *)
15845     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15846     ;;
15847 esac
15848
15849 #
15850 # Check to make sure the static flag actually works.
15851 #
15852 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15853 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15854 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15855 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15856   echo $ECHO_N "(cached) $ECHO_C" >&6
15857 else
15858   lt_prog_compiler_static_works_GCJ=no
15859    save_LDFLAGS="$LDFLAGS"
15860    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15861    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15862    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15863      # The linker can only warn and ignore the option if not recognized
15864      # So say no if there are warnings
15865      if test -s conftest.err; then
15866        # Append any errors to the config.log.
15867        cat conftest.err 1>&5
15868        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15869        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15870        if diff conftest.exp conftest.er2 >/dev/null; then
15871          lt_prog_compiler_static_works_GCJ=yes
15872        fi
15873      else
15874        lt_prog_compiler_static_works_GCJ=yes
15875      fi
15876    fi
15877    $rm conftest*
15878    LDFLAGS="$save_LDFLAGS"
15879
15880 fi
15881 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15882 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15883
15884 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15885     :
15886 else
15887     lt_prog_compiler_static_GCJ=
15888 fi
15889
15890
15891 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15892 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15893 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15894   echo $ECHO_N "(cached) $ECHO_C" >&6
15895 else
15896   lt_cv_prog_compiler_c_o_GCJ=no
15897    $rm -r conftest 2>/dev/null
15898    mkdir conftest
15899    cd conftest
15900    mkdir out
15901    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15902
15903    lt_compiler_flag="-o out/conftest2.$ac_objext"
15904    # Insert the option either (1) after the last *FLAGS variable, or
15905    # (2) before a word containing "conftest.", or (3) at the end.
15906    # Note that $ac_compile itself does not contain backslashes and begins
15907    # with a dollar sign (not a hyphen), so the echo should work correctly.
15908    lt_compile=`echo "$ac_compile" | $SED \
15909    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15910    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15911    -e 's:$: $lt_compiler_flag:'`
15912    (eval echo "\"\$as_me:15912: $lt_compile\"" >&5)
15913    (eval "$lt_compile" 2>out/conftest.err)
15914    ac_status=$?
15915    cat out/conftest.err >&5
15916    echo "$as_me:15916: \$? = $ac_status" >&5
15917    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15918    then
15919      # The compiler can only warn and ignore the option if not recognized
15920      # So say no if there are warnings
15921      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15922      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15923      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15924        lt_cv_prog_compiler_c_o_GCJ=yes
15925      fi
15926    fi
15927    chmod u+w . 2>&5
15928    $rm conftest*
15929    # SGI C++ compiler will create directory out/ii_files/ for
15930    # template instantiation
15931    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15932    $rm out/* && rmdir out
15933    cd ..
15934    rmdir conftest
15935    $rm conftest*
15936
15937 fi
15938 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15939 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15940
15941
15942 hard_links="nottested"
15943 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15944   # do not overwrite the value of need_locks provided by the user
15945   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15946 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15947   hard_links=yes
15948   $rm conftest*
15949   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15950   touch conftest.a
15951   ln conftest.a conftest.b 2>&5 || hard_links=no
15952   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15953   echo "$as_me:$LINENO: result: $hard_links" >&5
15954 echo "${ECHO_T}$hard_links" >&6
15955   if test "$hard_links" = no; then
15956     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15957 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15958     need_locks=warn
15959   fi
15960 else
15961   need_locks=no
15962 fi
15963
15964 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15965 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15966
15967   runpath_var=
15968   allow_undefined_flag_GCJ=
15969   enable_shared_with_static_runtimes_GCJ=no
15970   archive_cmds_GCJ=
15971   archive_expsym_cmds_GCJ=
15972   old_archive_From_new_cmds_GCJ=
15973   old_archive_from_expsyms_cmds_GCJ=
15974   export_dynamic_flag_spec_GCJ=
15975   whole_archive_flag_spec_GCJ=
15976   thread_safe_flag_spec_GCJ=
15977   hardcode_libdir_flag_spec_GCJ=
15978   hardcode_libdir_flag_spec_ld_GCJ=
15979   hardcode_libdir_separator_GCJ=
15980   hardcode_direct_GCJ=no
15981   hardcode_minus_L_GCJ=no
15982   hardcode_shlibpath_var_GCJ=unsupported
15983   link_all_deplibs_GCJ=unknown
15984   hardcode_automatic_GCJ=no
15985   module_cmds_GCJ=
15986   module_expsym_cmds_GCJ=
15987   always_export_symbols_GCJ=no
15988   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15989   # include_expsyms should be a list of space-separated symbols to be *always*
15990   # included in the symbol list
15991   include_expsyms_GCJ=
15992   # exclude_expsyms can be an extended regexp of symbols to exclude
15993   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15994   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15995   # as well as any symbol that contains `d'.
15996   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15997   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15998   # platforms (ab)use it in PIC code, but their linkers get confused if
15999   # the symbol is explicitly referenced.  Since portable code cannot
16000   # rely on this symbol name, it's probably fine to never include it in
16001   # preloaded symbol tables.
16002   extract_expsyms_cmds=
16003   # Just being paranoid about ensuring that cc_basename is set.
16004   for cc_temp in $compiler""; do
16005   case $cc_temp in
16006     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16007     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16008     \-*) ;;
16009     *) break;;
16010   esac
16011 done
16012 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16013
16014   case $host_os in
16015   cygwin* | mingw* | pw32*)
16016     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16017     # When not using gcc, we currently assume that we are using
16018     # Microsoft Visual C++.
16019     if test "$GCC" != yes; then
16020       with_gnu_ld=no
16021     fi
16022     ;;
16023   interix*)
16024     # we just hope/assume this is gcc and not c89 (= MSVC++)
16025     with_gnu_ld=yes
16026     ;;
16027   openbsd*)
16028     with_gnu_ld=no
16029     ;;
16030   esac
16031
16032   ld_shlibs_GCJ=yes
16033   if test "$with_gnu_ld" = yes; then
16034     # If archive_cmds runs LD, not CC, wlarc should be empty
16035     wlarc='${wl}'
16036
16037     # Set some defaults for GNU ld with shared library support. These
16038     # are reset later if shared libraries are not supported. Putting them
16039     # here allows them to be overridden if necessary.
16040     runpath_var=LD_RUN_PATH
16041     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16042     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16043     # ancient GNU ld didn't support --whole-archive et. al.
16044     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16045         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16046       else
16047         whole_archive_flag_spec_GCJ=
16048     fi
16049     supports_anon_versioning=no
16050     case `$LD -v 2>/dev/null` in
16051       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16052       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16053       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16054       *\ 2.11.*) ;; # other 2.11 versions
16055       *) supports_anon_versioning=yes ;;
16056     esac
16057
16058     # See if GNU ld supports shared libraries.
16059     case $host_os in
16060     aix3* | aix4* | aix5*)
16061       # On AIX/PPC, the GNU linker is very broken
16062       if test "$host_cpu" != ia64; then
16063         ld_shlibs_GCJ=no
16064         cat <<EOF 1>&2
16065
16066 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16067 *** to be unable to reliably create shared libraries on AIX.
16068 *** Therefore, libtool is disabling shared libraries support.  If you
16069 *** really care for shared libraries, you may want to modify your PATH
16070 *** so that a non-GNU linker is found, and then restart.
16071
16072 EOF
16073       fi
16074       ;;
16075
16076     amigaos*)
16077       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)'
16078       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16079       hardcode_minus_L_GCJ=yes
16080
16081       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16082       # that the semantics of dynamic libraries on AmigaOS, at least up
16083       # to version 4, is to share data among multiple programs linked
16084       # with the same dynamic library.  Since this doesn't match the
16085       # behavior of shared libraries on other platforms, we can't use
16086       # them.
16087       ld_shlibs_GCJ=no
16088       ;;
16089
16090     beos*)
16091       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16092         allow_undefined_flag_GCJ=unsupported
16093         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16094         # support --undefined.  This deserves some investigation.  FIXME
16095         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16096       else
16097         ld_shlibs_GCJ=no
16098       fi
16099       ;;
16100
16101     cygwin* | mingw* | pw32*)
16102       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16103       # as there is no search path for DLLs.
16104       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16105       allow_undefined_flag_GCJ=unsupported
16106       always_export_symbols_GCJ=no
16107       enable_shared_with_static_runtimes_GCJ=yes
16108       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16109
16110       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16111         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16112         # If the export-symbols file already is a .def file (1st line
16113         # is EXPORTS), use it as is; otherwise, prepend...
16114         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16115           cp $export_symbols $output_objdir/$soname.def;
16116         else
16117           echo EXPORTS > $output_objdir/$soname.def;
16118           cat $export_symbols >> $output_objdir/$soname.def;
16119         fi~
16120         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16121       else
16122         ld_shlibs_GCJ=no
16123       fi
16124       ;;
16125
16126     interix3*)
16127       hardcode_direct_GCJ=no
16128       hardcode_shlibpath_var_GCJ=no
16129       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16130       export_dynamic_flag_spec_GCJ='${wl}-E'
16131       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16132       # Instead, shared libraries are loaded at an image base (0x10000000 by
16133       # default) and relocated if they conflict, which is a slow very memory
16134       # consuming and fragmenting process.  To avoid this, we pick a random,
16135       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16136       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16137       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16138       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16139       ;;
16140
16141     linux*)
16142       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16143         tmp_addflag=
16144         case $cc_basename,$host_cpu in
16145         pgcc*)                          # Portland Group C compiler
16146           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'
16147           tmp_addflag=' $pic_flag'
16148           ;;
16149         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16150           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'
16151           tmp_addflag=' $pic_flag -Mnomain' ;;
16152         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16153           tmp_addflag=' -i_dynamic' ;;
16154         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16155           tmp_addflag=' -i_dynamic -nofor_main' ;;
16156         ifc* | ifort*)                  # Intel Fortran compiler
16157           tmp_addflag=' -nofor_main' ;;
16158         esac
16159         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16160
16161         if test $supports_anon_versioning = yes; then
16162           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16163   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16164   $echo "local: *; };" >> $output_objdir/$libname.ver~
16165           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16166         fi
16167       else
16168         ld_shlibs_GCJ=no
16169       fi
16170       ;;
16171
16172     netbsd*)
16173       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16174         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16175         wlarc=
16176       else
16177         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16178         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16179       fi
16180       ;;
16181
16182     solaris*)
16183       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16184         ld_shlibs_GCJ=no
16185         cat <<EOF 1>&2
16186
16187 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16188 *** create shared libraries on Solaris systems.  Therefore, libtool
16189 *** is disabling shared libraries support.  We urge you to upgrade GNU
16190 *** binutils to release 2.9.1 or newer.  Another option is to modify
16191 *** your PATH or compiler configuration so that the native linker is
16192 *** used, and then restart.
16193
16194 EOF
16195       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16196         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16197         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16198       else
16199         ld_shlibs_GCJ=no
16200       fi
16201       ;;
16202
16203     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16204       case `$LD -v 2>&1` in
16205         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16206         ld_shlibs_GCJ=no
16207         cat <<_LT_EOF 1>&2
16208
16209 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16210 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16211 *** is disabling shared libraries support.  We urge you to upgrade GNU
16212 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16213 *** your PATH or compiler configuration so that the native linker is
16214 *** used, and then restart.
16215
16216 _LT_EOF
16217         ;;
16218         *)
16219           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16220             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16221             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16222             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16223           else
16224             ld_shlibs_GCJ=no
16225           fi
16226         ;;
16227       esac
16228       ;;
16229
16230     sunos4*)
16231       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16232       wlarc=
16233       hardcode_direct_GCJ=yes
16234       hardcode_shlibpath_var_GCJ=no
16235       ;;
16236
16237     *)
16238       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16239         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16240         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16241       else
16242         ld_shlibs_GCJ=no
16243       fi
16244       ;;
16245     esac
16246
16247     if test "$ld_shlibs_GCJ" = no; then
16248       runpath_var=
16249       hardcode_libdir_flag_spec_GCJ=
16250       export_dynamic_flag_spec_GCJ=
16251       whole_archive_flag_spec_GCJ=
16252     fi
16253   else
16254     # PORTME fill in a description of your system's linker (not GNU ld)
16255     case $host_os in
16256     aix3*)
16257       allow_undefined_flag_GCJ=unsupported
16258       always_export_symbols_GCJ=yes
16259       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'
16260       # Note: this linker hardcodes the directories in LIBPATH if there
16261       # are no directories specified by -L.
16262       hardcode_minus_L_GCJ=yes
16263       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16264         # Neither direct hardcoding nor static linking is supported with a
16265         # broken collect2.
16266         hardcode_direct_GCJ=unsupported
16267       fi
16268       ;;
16269
16270     aix4* | aix5*)
16271       if test "$host_cpu" = ia64; then
16272         # On IA64, the linker does run time linking by default, so we don't
16273         # have to do anything special.
16274         aix_use_runtimelinking=no
16275         exp_sym_flag='-Bexport'
16276         no_entry_flag=""
16277       else
16278         # If we're using GNU nm, then we don't want the "-C" option.
16279         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16280         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16281           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'
16282         else
16283           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'
16284         fi
16285         aix_use_runtimelinking=no
16286
16287         # Test if we are trying to use run time linking or normal
16288         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16289         # need to do runtime linking.
16290         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16291           for ld_flag in $LDFLAGS; do
16292           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16293             aix_use_runtimelinking=yes
16294             break
16295           fi
16296           done
16297           ;;
16298         esac
16299
16300         exp_sym_flag='-bexport'
16301         no_entry_flag='-bnoentry'
16302       fi
16303
16304       # When large executables or shared objects are built, AIX ld can
16305       # have problems creating the table of contents.  If linking a library
16306       # or program results in "error TOC overflow" add -mminimal-toc to
16307       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16308       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16309
16310       archive_cmds_GCJ=''
16311       hardcode_direct_GCJ=yes
16312       hardcode_libdir_separator_GCJ=':'
16313       link_all_deplibs_GCJ=yes
16314
16315       if test "$GCC" = yes; then
16316         case $host_os in aix4.[012]|aix4.[012].*)
16317         # We only want to do this on AIX 4.2 and lower, the check
16318         # below for broken collect2 doesn't work under 4.3+
16319           collect2name=`${CC} -print-prog-name=collect2`
16320           if test -f "$collect2name" && \
16321            strings "$collect2name" | grep resolve_lib_name >/dev/null
16322           then
16323           # We have reworked collect2
16324           hardcode_direct_GCJ=yes
16325           else
16326           # We have old collect2
16327           hardcode_direct_GCJ=unsupported
16328           # It fails to find uninstalled libraries when the uninstalled
16329           # path is not listed in the libpath.  Setting hardcode_minus_L
16330           # to unsupported forces relinking
16331           hardcode_minus_L_GCJ=yes
16332           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16333           hardcode_libdir_separator_GCJ=
16334           fi
16335           ;;
16336         esac
16337         shared_flag='-shared'
16338         if test "$aix_use_runtimelinking" = yes; then
16339           shared_flag="$shared_flag "'${wl}-G'
16340         fi
16341       else
16342         # not using gcc
16343         if test "$host_cpu" = ia64; then
16344         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16345         # chokes on -Wl,-G. The following line is correct:
16346           shared_flag='-G'
16347         else
16348           if test "$aix_use_runtimelinking" = yes; then
16349             shared_flag='${wl}-G'
16350           else
16351             shared_flag='${wl}-bM:SRE'
16352           fi
16353         fi
16354       fi
16355
16356       # It seems that -bexpall does not export symbols beginning with
16357       # underscore (_), so it is better to generate a list of symbols to export.
16358       always_export_symbols_GCJ=yes
16359       if test "$aix_use_runtimelinking" = yes; then
16360         # Warning - without using the other runtime loading flags (-brtl),
16361         # -berok will link without error, but may produce a broken library.
16362         allow_undefined_flag_GCJ='-berok'
16363        # Determine the default libpath from the value encoded in an empty executable.
16364        cat >conftest.$ac_ext <<_ACEOF
16365 /* confdefs.h.  */
16366 _ACEOF
16367 cat confdefs.h >>conftest.$ac_ext
16368 cat >>conftest.$ac_ext <<_ACEOF
16369 /* end confdefs.h.  */
16370
16371 int
16372 main ()
16373 {
16374
16375   ;
16376   return 0;
16377 }
16378 _ACEOF
16379 rm -f conftest.$ac_objext conftest$ac_exeext
16380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16381   (eval $ac_link) 2>conftest.er1
16382   ac_status=$?
16383   grep -v '^ *+' conftest.er1 >conftest.err
16384   rm -f conftest.er1
16385   cat conftest.err >&5
16386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387   (exit $ac_status); } &&
16388          { ac_try='test -z "$ac_c_werror_flag"
16389                          || test ! -s conftest.err'
16390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391   (eval $ac_try) 2>&5
16392   ac_status=$?
16393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394   (exit $ac_status); }; } &&
16395          { ac_try='test -s conftest$ac_exeext'
16396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16397   (eval $ac_try) 2>&5
16398   ac_status=$?
16399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400   (exit $ac_status); }; }; then
16401
16402 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16403 }'`
16404 # Check for a 64-bit object if we didn't find anything.
16405 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; }
16406 }'`; fi
16407 else
16408   echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16410
16411 fi
16412 rm -f conftest.err conftest.$ac_objext \
16413       conftest$ac_exeext conftest.$ac_ext
16414 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16415
16416        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16417         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16418        else
16419         if test "$host_cpu" = ia64; then
16420           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16421           allow_undefined_flag_GCJ="-z nodefs"
16422           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16423         else
16424          # Determine the default libpath from the value encoded in an empty executable.
16425          cat >conftest.$ac_ext <<_ACEOF
16426 /* confdefs.h.  */
16427 _ACEOF
16428 cat confdefs.h >>conftest.$ac_ext
16429 cat >>conftest.$ac_ext <<_ACEOF
16430 /* end confdefs.h.  */
16431
16432 int
16433 main ()
16434 {
16435
16436   ;
16437   return 0;
16438 }
16439 _ACEOF
16440 rm -f conftest.$ac_objext conftest$ac_exeext
16441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16442   (eval $ac_link) 2>conftest.er1
16443   ac_status=$?
16444   grep -v '^ *+' conftest.er1 >conftest.err
16445   rm -f conftest.er1
16446   cat conftest.err >&5
16447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448   (exit $ac_status); } &&
16449          { ac_try='test -z "$ac_c_werror_flag"
16450                          || test ! -s conftest.err'
16451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16452   (eval $ac_try) 2>&5
16453   ac_status=$?
16454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455   (exit $ac_status); }; } &&
16456          { ac_try='test -s conftest$ac_exeext'
16457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16458   (eval $ac_try) 2>&5
16459   ac_status=$?
16460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461   (exit $ac_status); }; }; then
16462
16463 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16464 }'`
16465 # Check for a 64-bit object if we didn't find anything.
16466 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; }
16467 }'`; fi
16468 else
16469   echo "$as_me: failed program was:" >&5
16470 sed 's/^/| /' conftest.$ac_ext >&5
16471
16472 fi
16473 rm -f conftest.err conftest.$ac_objext \
16474       conftest$ac_exeext conftest.$ac_ext
16475 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16476
16477          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16478           # Warning - without using the other run time loading flags,
16479           # -berok will link without error, but may produce a broken library.
16480           no_undefined_flag_GCJ=' ${wl}-bernotok'
16481           allow_undefined_flag_GCJ=' ${wl}-berok'
16482           # Exported symbols can be pulled into shared objects from archives
16483           whole_archive_flag_spec_GCJ='$convenience'
16484           archive_cmds_need_lc_GCJ=yes
16485           # This is similar to how AIX traditionally builds its shared libraries.
16486           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16487         fi
16488       fi
16489       ;;
16490
16491     amigaos*)
16492       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)'
16493       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16494       hardcode_minus_L_GCJ=yes
16495       # see comment about different semantics on the GNU ld section
16496       ld_shlibs_GCJ=no
16497       ;;
16498
16499     bsdi[45]*)
16500       export_dynamic_flag_spec_GCJ=-rdynamic
16501       ;;
16502
16503     cygwin* | mingw* | pw32*)
16504       # When not using gcc, we currently assume that we are using
16505       # Microsoft Visual C++.
16506       # hardcode_libdir_flag_spec is actually meaningless, as there is
16507       # no search path for DLLs.
16508       hardcode_libdir_flag_spec_GCJ=' '
16509       allow_undefined_flag_GCJ=unsupported
16510       # Tell ltmain to make .lib files, not .a files.
16511       libext=lib
16512       # Tell ltmain to make .dll files, not .so files.
16513       shrext_cmds=".dll"
16514       # FIXME: Setting linknames here is a bad hack.
16515       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16516       # The linker will automatically build a .lib file if we build a DLL.
16517       old_archive_From_new_cmds_GCJ='true'
16518       # FIXME: Should let the user specify the lib program.
16519       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16520       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16521       enable_shared_with_static_runtimes_GCJ=yes
16522       ;;
16523
16524     darwin* | rhapsody*)
16525       case $host_os in
16526         rhapsody* | darwin1.[012])
16527          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16528          ;;
16529        *) # Darwin 1.3 on
16530          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16531            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16532          else
16533            case ${MACOSX_DEPLOYMENT_TARGET} in
16534              10.[012])
16535                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16536                ;;
16537              10.*)
16538                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16539                ;;
16540            esac
16541          fi
16542          ;;
16543       esac
16544       archive_cmds_need_lc_GCJ=no
16545       hardcode_direct_GCJ=no
16546       hardcode_automatic_GCJ=yes
16547       hardcode_shlibpath_var_GCJ=unsupported
16548       whole_archive_flag_spec_GCJ=''
16549       link_all_deplibs_GCJ=yes
16550     if test "$GCC" = yes ; then
16551         output_verbose_link_cmd='echo'
16552         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16553       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16554       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16555       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}'
16556       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}'
16557     else
16558       case $cc_basename in
16559         xlc*)
16560          output_verbose_link_cmd='echo'
16561          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16562          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16563           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16564          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}'
16565           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}'
16566           ;;
16567        *)
16568          ld_shlibs_GCJ=no
16569           ;;
16570       esac
16571     fi
16572       ;;
16573
16574     dgux*)
16575       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16576       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16577       hardcode_shlibpath_var_GCJ=no
16578       ;;
16579
16580     freebsd1*)
16581       ld_shlibs_GCJ=no
16582       ;;
16583
16584     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16585     # support.  Future versions do this automatically, but an explicit c++rt0.o
16586     # does not break anything, and helps significantly (at the cost of a little
16587     # extra space).
16588     freebsd2.2*)
16589       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16590       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16591       hardcode_direct_GCJ=yes
16592       hardcode_shlibpath_var_GCJ=no
16593       ;;
16594
16595     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16596     freebsd2*)
16597       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16598       hardcode_direct_GCJ=yes
16599       hardcode_minus_L_GCJ=yes
16600       hardcode_shlibpath_var_GCJ=no
16601       ;;
16602
16603     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16604     freebsd* | kfreebsd*-gnu | dragonfly*)
16605       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16606       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16607       hardcode_direct_GCJ=yes
16608       hardcode_shlibpath_var_GCJ=no
16609       ;;
16610
16611     hpux9*)
16612       if test "$GCC" = yes; then
16613         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'
16614       else
16615         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'
16616       fi
16617       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16618       hardcode_libdir_separator_GCJ=:
16619       hardcode_direct_GCJ=yes
16620
16621       # hardcode_minus_L: Not really in the search PATH,
16622       # but as the default location of the library.
16623       hardcode_minus_L_GCJ=yes
16624       export_dynamic_flag_spec_GCJ='${wl}-E'
16625       ;;
16626
16627     hpux10*)
16628       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16629         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16630       else
16631         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16632       fi
16633       if test "$with_gnu_ld" = no; then
16634         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16635         hardcode_libdir_separator_GCJ=:
16636
16637         hardcode_direct_GCJ=yes
16638         export_dynamic_flag_spec_GCJ='${wl}-E'
16639
16640         # hardcode_minus_L: Not really in the search PATH,
16641         # but as the default location of the library.
16642         hardcode_minus_L_GCJ=yes
16643       fi
16644       ;;
16645
16646     hpux11*)
16647       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16648         case $host_cpu in
16649         hppa*64*)
16650           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16651           ;;
16652         ia64*)
16653           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16654           ;;
16655         *)
16656           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16657           ;;
16658         esac
16659       else
16660         case $host_cpu in
16661         hppa*64*)
16662           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16663           ;;
16664         ia64*)
16665           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16666           ;;
16667         *)
16668           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16669           ;;
16670         esac
16671       fi
16672       if test "$with_gnu_ld" = no; then
16673         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16674         hardcode_libdir_separator_GCJ=:
16675
16676         case $host_cpu in
16677         hppa*64*|ia64*)
16678           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16679           hardcode_direct_GCJ=no
16680           hardcode_shlibpath_var_GCJ=no
16681           ;;
16682         *)
16683           hardcode_direct_GCJ=yes
16684           export_dynamic_flag_spec_GCJ='${wl}-E'
16685
16686           # hardcode_minus_L: Not really in the search PATH,
16687           # but as the default location of the library.
16688           hardcode_minus_L_GCJ=yes
16689           ;;
16690         esac
16691       fi
16692       ;;
16693
16694     irix5* | irix6* | nonstopux*)
16695       if test "$GCC" = yes; then
16696         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'
16697       else
16698         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'
16699         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16700       fi
16701       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16702       hardcode_libdir_separator_GCJ=:
16703       link_all_deplibs_GCJ=yes
16704       ;;
16705
16706     netbsd*)
16707       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16708         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16709       else
16710         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16711       fi
16712       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16713       hardcode_direct_GCJ=yes
16714       hardcode_shlibpath_var_GCJ=no
16715       ;;
16716
16717     newsos6)
16718       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16719       hardcode_direct_GCJ=yes
16720       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16721       hardcode_libdir_separator_GCJ=:
16722       hardcode_shlibpath_var_GCJ=no
16723       ;;
16724
16725     openbsd*)
16726       hardcode_direct_GCJ=yes
16727       hardcode_shlibpath_var_GCJ=no
16728       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16729         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16730         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16731         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16732         export_dynamic_flag_spec_GCJ='${wl}-E'
16733       else
16734        case $host_os in
16735          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16736            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16737            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16738            ;;
16739          *)
16740            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16741            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16742            ;;
16743        esac
16744       fi
16745       ;;
16746
16747     os2*)
16748       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16749       hardcode_minus_L_GCJ=yes
16750       allow_undefined_flag_GCJ=unsupported
16751       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'
16752       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16753       ;;
16754
16755     osf3*)
16756       if test "$GCC" = yes; then
16757         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16758         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'
16759       else
16760         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16761         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'
16762       fi
16763       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16764       hardcode_libdir_separator_GCJ=:
16765       ;;
16766
16767     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16768       if test "$GCC" = yes; then
16769         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16770         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'
16771         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16772       else
16773         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16774         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'
16775         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~
16776         $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'
16777
16778         # Both c and cxx compiler support -rpath directly
16779         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16780       fi
16781       hardcode_libdir_separator_GCJ=:
16782       ;;
16783
16784     solaris*)
16785       no_undefined_flag_GCJ=' -z text'
16786       if test "$GCC" = yes; then
16787         wlarc='${wl}'
16788         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16789         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16790           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16791       else
16792         wlarc=''
16793         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16794         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16795         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16796       fi
16797       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16798       hardcode_shlibpath_var_GCJ=no
16799       case $host_os in
16800       solaris2.[0-5] | solaris2.[0-5].*) ;;
16801       *)
16802         # The compiler driver will combine linker options so we
16803         # cannot just pass the convience library names through
16804         # without $wl, iff we do not link with $LD.
16805         # Luckily, gcc supports the same syntax we need for Sun Studio.
16806         # Supported since Solaris 2.6 (maybe 2.5.1?)
16807         case $wlarc in
16808         '')
16809           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16810         *)
16811           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' ;;
16812         esac ;;
16813       esac
16814       link_all_deplibs_GCJ=yes
16815       ;;
16816
16817     sunos4*)
16818       if test "x$host_vendor" = xsequent; then
16819         # Use $CC to link under sequent, because it throws in some extra .o
16820         # files that make .init and .fini sections work.
16821         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16822       else
16823         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16824       fi
16825       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16826       hardcode_direct_GCJ=yes
16827       hardcode_minus_L_GCJ=yes
16828       hardcode_shlibpath_var_GCJ=no
16829       ;;
16830
16831     sysv4)
16832       case $host_vendor in
16833         sni)
16834           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16835           hardcode_direct_GCJ=yes # is this really true???
16836         ;;
16837         siemens)
16838           ## LD is ld it makes a PLAMLIB
16839           ## CC just makes a GrossModule.
16840           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16841           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16842           hardcode_direct_GCJ=no
16843         ;;
16844         motorola)
16845           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16846           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16847         ;;
16848       esac
16849       runpath_var='LD_RUN_PATH'
16850       hardcode_shlibpath_var_GCJ=no
16851       ;;
16852
16853     sysv4.3*)
16854       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16855       hardcode_shlibpath_var_GCJ=no
16856       export_dynamic_flag_spec_GCJ='-Bexport'
16857       ;;
16858
16859     sysv4*MP*)
16860       if test -d /usr/nec; then
16861         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16862         hardcode_shlibpath_var_GCJ=no
16863         runpath_var=LD_RUN_PATH
16864         hardcode_runpath_var=yes
16865         ld_shlibs_GCJ=yes
16866       fi
16867       ;;
16868
16869     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16870       no_undefined_flag_GCJ='${wl}-z,text'
16871       archive_cmds_need_lc_GCJ=no
16872       hardcode_shlibpath_var_GCJ=no
16873       runpath_var='LD_RUN_PATH'
16874
16875       if test "$GCC" = yes; then
16876         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16877         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16878       else
16879         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16880         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16881       fi
16882       ;;
16883
16884     sysv5* | sco3.2v5* | sco5v6*)
16885       # Note: We can NOT use -z defs as we might desire, because we do not
16886       # link with -lc, and that would cause any symbols used from libc to
16887       # always be unresolved, which means just about no library would
16888       # ever link correctly.  If we're not using GNU ld we use -z text
16889       # though, which does catch some bad symbols but isn't as heavy-handed
16890       # as -z defs.
16891       no_undefined_flag_GCJ='${wl}-z,text'
16892       allow_undefined_flag_GCJ='${wl}-z,nodefs'
16893       archive_cmds_need_lc_GCJ=no
16894       hardcode_shlibpath_var_GCJ=no
16895       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16896       hardcode_libdir_separator_GCJ=':'
16897       link_all_deplibs_GCJ=yes
16898       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16899       runpath_var='LD_RUN_PATH'
16900
16901       if test "$GCC" = yes; then
16902         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16903         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16904       else
16905         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16906         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16907       fi
16908       ;;
16909
16910     uts4*)
16911       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16912       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16913       hardcode_shlibpath_var_GCJ=no
16914       ;;
16915
16916     *)
16917       ld_shlibs_GCJ=no
16918       ;;
16919     esac
16920   fi
16921
16922 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16923 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16924 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16925
16926 #
16927 # Do we need to explicitly link libc?
16928 #
16929 case "x$archive_cmds_need_lc_GCJ" in
16930 x|xyes)
16931   # Assume -lc should be added
16932   archive_cmds_need_lc_GCJ=yes
16933
16934   if test "$enable_shared" = yes && test "$GCC" = yes; then
16935     case $archive_cmds_GCJ in
16936     *'~'*)
16937       # FIXME: we may have to deal with multi-command sequences.
16938       ;;
16939     '$CC '*)
16940       # Test whether the compiler implicitly links with -lc since on some
16941       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16942       # to ld, don't add -lc before -lgcc.
16943       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16944 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16945       $rm conftest*
16946       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16947
16948       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16949   (eval $ac_compile) 2>&5
16950   ac_status=$?
16951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952   (exit $ac_status); } 2>conftest.err; then
16953         soname=conftest
16954         lib=conftest
16955         libobjs=conftest.$ac_objext
16956         deplibs=
16957         wl=$lt_prog_compiler_wl_GCJ
16958         pic_flag=$lt_prog_compiler_pic_GCJ
16959         compiler_flags=-v
16960         linker_flags=-v
16961         verstring=
16962         output_objdir=.
16963         libname=conftest
16964         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16965         allow_undefined_flag_GCJ=
16966         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16967   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16968   ac_status=$?
16969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970   (exit $ac_status); }
16971         then
16972           archive_cmds_need_lc_GCJ=no
16973         else
16974           archive_cmds_need_lc_GCJ=yes
16975         fi
16976         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16977       else
16978         cat conftest.err 1>&5
16979       fi
16980       $rm conftest*
16981       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16982 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16983       ;;
16984     esac
16985   fi
16986   ;;
16987 esac
16988
16989 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16990 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16991 library_names_spec=
16992 libname_spec='lib$name'
16993 soname_spec=
16994 shrext_cmds=".so"
16995 postinstall_cmds=
16996 postuninstall_cmds=
16997 finish_cmds=
16998 finish_eval=
16999 shlibpath_var=
17000 shlibpath_overrides_runpath=unknown
17001 version_type=none
17002 dynamic_linker="$host_os ld.so"
17003 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17004 if test "$GCC" = yes; then
17005   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17006   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17007     # if the path contains ";" then we assume it to be the separator
17008     # otherwise default to the standard path separator (i.e. ":") - it is
17009     # assumed that no part of a normal pathname contains ";" but that should
17010     # okay in the real world where ";" in dirpaths is itself problematic.
17011     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17012   else
17013     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17014   fi
17015 else
17016   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17017 fi
17018 need_lib_prefix=unknown
17019 hardcode_into_libs=no
17020
17021 # when you set need_version to no, make sure it does not cause -set_version
17022 # flags to be left without arguments
17023 need_version=unknown
17024
17025 case $host_os in
17026 aix3*)
17027   version_type=linux
17028   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17029   shlibpath_var=LIBPATH
17030
17031   # AIX 3 has no versioning support, so we append a major version to the name.
17032   soname_spec='${libname}${release}${shared_ext}$major'
17033   ;;
17034
17035 aix4* | aix5*)
17036   version_type=linux
17037   need_lib_prefix=no
17038   need_version=no
17039   hardcode_into_libs=yes
17040   if test "$host_cpu" = ia64; then
17041     # AIX 5 supports IA64
17042     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17043     shlibpath_var=LD_LIBRARY_PATH
17044   else
17045     # With GCC up to 2.95.x, collect2 would create an import file
17046     # for dependence libraries.  The import file would start with
17047     # the line `#! .'.  This would cause the generated library to
17048     # depend on `.', always an invalid library.  This was fixed in
17049     # development snapshots of GCC prior to 3.0.
17050     case $host_os in
17051       aix4 | aix4.[01] | aix4.[01].*)
17052       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17053            echo ' yes '
17054            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17055         :
17056       else
17057         can_build_shared=no
17058       fi
17059       ;;
17060     esac
17061     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17062     # soname into executable. Probably we can add versioning support to
17063     # collect2, so additional links can be useful in future.
17064     if test "$aix_use_runtimelinking" = yes; then
17065       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17066       # instead of lib<name>.a to let people know that these are not
17067       # typical AIX shared libraries.
17068       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17069     else
17070       # We preserve .a as extension for shared libraries through AIX4.2
17071       # and later when we are not doing run time linking.
17072       library_names_spec='${libname}${release}.a $libname.a'
17073       soname_spec='${libname}${release}${shared_ext}$major'
17074     fi
17075     shlibpath_var=LIBPATH
17076   fi
17077   ;;
17078
17079 amigaos*)
17080   library_names_spec='$libname.ixlibrary $libname.a'
17081   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17082   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'
17083   ;;
17084
17085 beos*)
17086   library_names_spec='${libname}${shared_ext}'
17087   dynamic_linker="$host_os ld.so"
17088   shlibpath_var=LIBRARY_PATH
17089   ;;
17090
17091 bsdi[45]*)
17092   version_type=linux
17093   need_version=no
17094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17095   soname_spec='${libname}${release}${shared_ext}$major'
17096   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17097   shlibpath_var=LD_LIBRARY_PATH
17098   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17099   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17100   # the default ld.so.conf also contains /usr/contrib/lib and
17101   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17102   # libtool to hard-code these into programs
17103   ;;
17104
17105 cygwin* | mingw* | pw32*)
17106   version_type=windows
17107   shrext_cmds=".dll"
17108   need_version=no
17109   need_lib_prefix=no
17110
17111   case $GCC,$host_os in
17112   yes,cygwin* | yes,mingw* | yes,pw32*)
17113     library_names_spec='$libname.dll.a'
17114     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17115     postinstall_cmds='base_file=`basename \${file}`~
17116       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17117       dldir=$destdir/`dirname \$dlpath`~
17118       test -d \$dldir || mkdir -p \$dldir~
17119       $install_prog $dir/$dlname \$dldir/$dlname~
17120       chmod a+x \$dldir/$dlname'
17121     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17122       dlpath=$dir/\$dldll~
17123        $rm \$dlpath'
17124     shlibpath_overrides_runpath=yes
17125
17126     case $host_os in
17127     cygwin*)
17128       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17129       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17130       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17131       ;;
17132     mingw*)
17133       # MinGW DLLs use traditional 'lib' prefix
17134       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17135       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17136       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17137         # It is most probably a Windows format PATH printed by
17138         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17139         # path with ; separators, and with drive letters. We can handle the
17140         # drive letters (cygwin fileutils understands them), so leave them,
17141         # especially as we might pass files found there to a mingw objdump,
17142         # which wouldn't understand a cygwinified path. Ahh.
17143         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17144       else
17145         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17146       fi
17147       ;;
17148     pw32*)
17149       # pw32 DLLs use 'pw' prefix rather than 'lib'
17150       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17151       ;;
17152     esac
17153     ;;
17154
17155   *)
17156     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17157     ;;
17158   esac
17159   dynamic_linker='Win32 ld.exe'
17160   # FIXME: first we should search . and the directory the executable is in
17161   shlibpath_var=PATH
17162   ;;
17163
17164 darwin* | rhapsody*)
17165   dynamic_linker="$host_os dyld"
17166   version_type=darwin
17167   need_lib_prefix=no
17168   need_version=no
17169   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17170   soname_spec='${libname}${release}${major}$shared_ext'
17171   shlibpath_overrides_runpath=yes
17172   shlibpath_var=DYLD_LIBRARY_PATH
17173   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17174   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17175   if test "$GCC" = yes; then
17176     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"`
17177   else
17178     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17179   fi
17180   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17181   ;;
17182
17183 dgux*)
17184   version_type=linux
17185   need_lib_prefix=no
17186   need_version=no
17187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17188   soname_spec='${libname}${release}${shared_ext}$major'
17189   shlibpath_var=LD_LIBRARY_PATH
17190   ;;
17191
17192 freebsd1*)
17193   dynamic_linker=no
17194   ;;
17195
17196 kfreebsd*-gnu)
17197   version_type=linux
17198   need_lib_prefix=no
17199   need_version=no
17200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17201   soname_spec='${libname}${release}${shared_ext}$major'
17202   shlibpath_var=LD_LIBRARY_PATH
17203   shlibpath_overrides_runpath=no
17204   hardcode_into_libs=yes
17205   dynamic_linker='GNU ld.so'
17206   ;;
17207
17208 freebsd* | dragonfly*)
17209   # DragonFly does not have aout.  When/if they implement a new
17210   # versioning mechanism, adjust this.
17211   if test -x /usr/bin/objformat; then
17212     objformat=`/usr/bin/objformat`
17213   else
17214     case $host_os in
17215     freebsd[123]*) objformat=aout ;;
17216     *) objformat=elf ;;
17217     esac
17218   fi
17219   version_type=freebsd-$objformat
17220   case $version_type in
17221     freebsd-elf*)
17222       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17223       need_version=no
17224       need_lib_prefix=no
17225       ;;
17226     freebsd-*)
17227       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17228       need_version=yes
17229       ;;
17230   esac
17231   shlibpath_var=LD_LIBRARY_PATH
17232   case $host_os in
17233   freebsd2*)
17234     shlibpath_overrides_runpath=yes
17235     ;;
17236   freebsd3.[01]* | freebsdelf3.[01]*)
17237     shlibpath_overrides_runpath=yes
17238     hardcode_into_libs=yes
17239     ;;
17240   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17241   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17242     shlibpath_overrides_runpath=no
17243     hardcode_into_libs=yes
17244     ;;
17245   freebsd*) # from 4.6 on
17246     shlibpath_overrides_runpath=yes
17247     hardcode_into_libs=yes
17248     ;;
17249   esac
17250   ;;
17251
17252 gnu*)
17253   version_type=linux
17254   need_lib_prefix=no
17255   need_version=no
17256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17257   soname_spec='${libname}${release}${shared_ext}$major'
17258   shlibpath_var=LD_LIBRARY_PATH
17259   hardcode_into_libs=yes
17260   ;;
17261
17262 hpux9* | hpux10* | hpux11*)
17263   # Give a soname corresponding to the major version so that dld.sl refuses to
17264   # link against other versions.
17265   version_type=sunos
17266   need_lib_prefix=no
17267   need_version=no
17268   case $host_cpu in
17269   ia64*)
17270     shrext_cmds='.so'
17271     hardcode_into_libs=yes
17272     dynamic_linker="$host_os dld.so"
17273     shlibpath_var=LD_LIBRARY_PATH
17274     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17275     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17276     soname_spec='${libname}${release}${shared_ext}$major'
17277     if test "X$HPUX_IA64_MODE" = X32; then
17278       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17279     else
17280       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17281     fi
17282     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17283     ;;
17284    hppa*64*)
17285      shrext_cmds='.sl'
17286      hardcode_into_libs=yes
17287      dynamic_linker="$host_os dld.sl"
17288      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17289      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17290      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17291      soname_spec='${libname}${release}${shared_ext}$major'
17292      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17293      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17294      ;;
17295    *)
17296     shrext_cmds='.sl'
17297     dynamic_linker="$host_os dld.sl"
17298     shlibpath_var=SHLIB_PATH
17299     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17300     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17301     soname_spec='${libname}${release}${shared_ext}$major'
17302     ;;
17303   esac
17304   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17305   postinstall_cmds='chmod 555 $lib'
17306   ;;
17307
17308 interix3*)
17309   version_type=linux
17310   need_lib_prefix=no
17311   need_version=no
17312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17313   soname_spec='${libname}${release}${shared_ext}$major'
17314   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17315   shlibpath_var=LD_LIBRARY_PATH
17316   shlibpath_overrides_runpath=no
17317   hardcode_into_libs=yes
17318   ;;
17319
17320 irix5* | irix6* | nonstopux*)
17321   case $host_os in
17322     nonstopux*) version_type=nonstopux ;;
17323     *)
17324         if test "$lt_cv_prog_gnu_ld" = yes; then
17325                 version_type=linux
17326         else
17327                 version_type=irix
17328         fi ;;
17329   esac
17330   need_lib_prefix=no
17331   need_version=no
17332   soname_spec='${libname}${release}${shared_ext}$major'
17333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17334   case $host_os in
17335   irix5* | nonstopux*)
17336     libsuff= shlibsuff=
17337     ;;
17338   *)
17339     case $LD in # libtool.m4 will add one of these switches to LD
17340     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17341       libsuff= shlibsuff= libmagic=32-bit;;
17342     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17343       libsuff=32 shlibsuff=N32 libmagic=N32;;
17344     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17345       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17346     *) libsuff= shlibsuff= libmagic=never-match;;
17347     esac
17348     ;;
17349   esac
17350   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17351   shlibpath_overrides_runpath=no
17352   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17353   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17354   hardcode_into_libs=yes
17355   ;;
17356
17357 # No shared lib support for Linux oldld, aout, or coff.
17358 linux*oldld* | linux*aout* | linux*coff*)
17359   dynamic_linker=no
17360   ;;
17361
17362 # This must be Linux ELF.
17363 linux*)
17364   version_type=linux
17365   need_lib_prefix=no
17366   need_version=no
17367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17368   soname_spec='${libname}${release}${shared_ext}$major'
17369   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17370   shlibpath_var=LD_LIBRARY_PATH
17371   shlibpath_overrides_runpath=no
17372   # This implies no fast_install, which is unacceptable.
17373   # Some rework will be needed to allow for fast_install
17374   # before this can be enabled.
17375   hardcode_into_libs=yes
17376
17377   # find out which ABI we are using
17378   libsuff=
17379   case "$host_cpu" in
17380   x86_64*|s390x*|powerpc64*)
17381     echo '#line 17381 "configure"' > conftest.$ac_ext
17382     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17383   (eval $ac_compile) 2>&5
17384   ac_status=$?
17385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386   (exit $ac_status); }; then
17387       case `/usr/bin/file conftest.$ac_objext` in
17388       *64-bit*)
17389         libsuff=64
17390         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17391         ;;
17392       esac
17393     fi
17394     rm -rf conftest*
17395     ;;
17396   esac
17397
17398   # Append ld.so.conf contents to the search path
17399   if test -f /etc/ld.so.conf; then
17400     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17401     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17402   fi
17403
17404   # We used to test for /lib/ld.so.1 and disable shared libraries on
17405   # powerpc, because MkLinux only supported shared libraries with the
17406   # GNU dynamic linker.  Since this was broken with cross compilers,
17407   # most powerpc-linux boxes support dynamic linking these days and
17408   # people can always --disable-shared, the test was removed, and we
17409   # assume the GNU/Linux dynamic linker is in use.
17410   dynamic_linker='GNU/Linux ld.so'
17411   ;;
17412
17413 knetbsd*-gnu)
17414   version_type=linux
17415   need_lib_prefix=no
17416   need_version=no
17417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17418   soname_spec='${libname}${release}${shared_ext}$major'
17419   shlibpath_var=LD_LIBRARY_PATH
17420   shlibpath_overrides_runpath=no
17421   hardcode_into_libs=yes
17422   dynamic_linker='GNU ld.so'
17423   ;;
17424
17425 netbsd*)
17426   version_type=sunos
17427   need_lib_prefix=no
17428   need_version=no
17429   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17430     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17431     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17432     dynamic_linker='NetBSD (a.out) ld.so'
17433   else
17434     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17435     soname_spec='${libname}${release}${shared_ext}$major'
17436     dynamic_linker='NetBSD ld.elf_so'
17437   fi
17438   shlibpath_var=LD_LIBRARY_PATH
17439   shlibpath_overrides_runpath=yes
17440   hardcode_into_libs=yes
17441   ;;
17442
17443 newsos6)
17444   version_type=linux
17445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17446   shlibpath_var=LD_LIBRARY_PATH
17447   shlibpath_overrides_runpath=yes
17448   ;;
17449
17450 nto-qnx*)
17451   version_type=linux
17452   need_lib_prefix=no
17453   need_version=no
17454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17455   soname_spec='${libname}${release}${shared_ext}$major'
17456   shlibpath_var=LD_LIBRARY_PATH
17457   shlibpath_overrides_runpath=yes
17458   ;;
17459
17460 openbsd*)
17461   version_type=sunos
17462   sys_lib_dlsearch_path_spec="/usr/lib"
17463   need_lib_prefix=no
17464   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17465   case $host_os in
17466     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17467     *)                         need_version=no  ;;
17468   esac
17469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17470   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17471   shlibpath_var=LD_LIBRARY_PATH
17472   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17473     case $host_os in
17474       openbsd2.[89] | openbsd2.[89].*)
17475         shlibpath_overrides_runpath=no
17476         ;;
17477       *)
17478         shlibpath_overrides_runpath=yes
17479         ;;
17480       esac
17481   else
17482     shlibpath_overrides_runpath=yes
17483   fi
17484   ;;
17485
17486 os2*)
17487   libname_spec='$name'
17488   shrext_cmds=".dll"
17489   need_lib_prefix=no
17490   library_names_spec='$libname${shared_ext} $libname.a'
17491   dynamic_linker='OS/2 ld.exe'
17492   shlibpath_var=LIBPATH
17493   ;;
17494
17495 osf3* | osf4* | osf5*)
17496   version_type=osf
17497   need_lib_prefix=no
17498   need_version=no
17499   soname_spec='${libname}${release}${shared_ext}$major'
17500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17501   shlibpath_var=LD_LIBRARY_PATH
17502   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17503   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17504   ;;
17505
17506 solaris*)
17507   version_type=linux
17508   need_lib_prefix=no
17509   need_version=no
17510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17511   soname_spec='${libname}${release}${shared_ext}$major'
17512   shlibpath_var=LD_LIBRARY_PATH
17513   shlibpath_overrides_runpath=yes
17514   hardcode_into_libs=yes
17515   # ldd complains unless libraries are executable
17516   postinstall_cmds='chmod +x $lib'
17517   ;;
17518
17519 sunos4*)
17520   version_type=sunos
17521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17522   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17523   shlibpath_var=LD_LIBRARY_PATH
17524   shlibpath_overrides_runpath=yes
17525   if test "$with_gnu_ld" = yes; then
17526     need_lib_prefix=no
17527   fi
17528   need_version=yes
17529   ;;
17530
17531 sysv4 | sysv4.3*)
17532   version_type=linux
17533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17534   soname_spec='${libname}${release}${shared_ext}$major'
17535   shlibpath_var=LD_LIBRARY_PATH
17536   case $host_vendor in
17537     sni)
17538       shlibpath_overrides_runpath=no
17539       need_lib_prefix=no
17540       export_dynamic_flag_spec='${wl}-Blargedynsym'
17541       runpath_var=LD_RUN_PATH
17542       ;;
17543     siemens)
17544       need_lib_prefix=no
17545       ;;
17546     motorola)
17547       need_lib_prefix=no
17548       need_version=no
17549       shlibpath_overrides_runpath=no
17550       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17551       ;;
17552   esac
17553   ;;
17554
17555 sysv4*MP*)
17556   if test -d /usr/nec ;then
17557     version_type=linux
17558     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17559     soname_spec='$libname${shared_ext}.$major'
17560     shlibpath_var=LD_LIBRARY_PATH
17561   fi
17562   ;;
17563
17564 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17565   version_type=freebsd-elf
17566   need_lib_prefix=no
17567   need_version=no
17568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17569   soname_spec='${libname}${release}${shared_ext}$major'
17570   shlibpath_var=LD_LIBRARY_PATH
17571   hardcode_into_libs=yes
17572   if test "$with_gnu_ld" = yes; then
17573     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17574     shlibpath_overrides_runpath=no
17575   else
17576     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17577     shlibpath_overrides_runpath=yes
17578     case $host_os in
17579       sco3.2v5*)
17580         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17581         ;;
17582     esac
17583   fi
17584   sys_lib_dlsearch_path_spec='/usr/lib'
17585   ;;
17586
17587 uts4*)
17588   version_type=linux
17589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17590   soname_spec='${libname}${release}${shared_ext}$major'
17591   shlibpath_var=LD_LIBRARY_PATH
17592   ;;
17593
17594 *)
17595   dynamic_linker=no
17596   ;;
17597 esac
17598 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17599 echo "${ECHO_T}$dynamic_linker" >&6
17600 test "$dynamic_linker" = no && can_build_shared=no
17601
17602 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17603 if test "$GCC" = yes; then
17604   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17605 fi
17606
17607 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17608 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17609 hardcode_action_GCJ=
17610 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17611    test -n "$runpath_var_GCJ" || \
17612    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17613
17614   # We can hardcode non-existant directories.
17615   if test "$hardcode_direct_GCJ" != no &&
17616      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17617      # have to relink, otherwise we might link with an installed library
17618      # when we should be linking with a yet-to-be-installed one
17619      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17620      test "$hardcode_minus_L_GCJ" != no; then
17621     # Linking always hardcodes the temporary library directory.
17622     hardcode_action_GCJ=relink
17623   else
17624     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17625     hardcode_action_GCJ=immediate
17626   fi
17627 else
17628   # We cannot hardcode anything, or else we can only hardcode existing
17629   # directories.
17630   hardcode_action_GCJ=unsupported
17631 fi
17632 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17633 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17634
17635 if test "$hardcode_action_GCJ" = relink; then
17636   # Fast installation is not supported
17637   enable_fast_install=no
17638 elif test "$shlibpath_overrides_runpath" = yes ||
17639      test "$enable_shared" = no; then
17640   # Fast installation is not necessary
17641   enable_fast_install=needless
17642 fi
17643
17644
17645 # The else clause should only fire when bootstrapping the
17646 # libtool distribution, otherwise you forgot to ship ltmain.sh
17647 # with your package, and you will get complaints that there are
17648 # no rules to generate ltmain.sh.
17649 if test -f "$ltmain"; then
17650   # See if we are running on zsh, and set the options which allow our commands through
17651   # without removal of \ escapes.
17652   if test -n "${ZSH_VERSION+set}" ; then
17653     setopt NO_GLOB_SUBST
17654   fi
17655   # Now quote all the things that may contain metacharacters while being
17656   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17657   # variables and quote the copies for generation of the libtool script.
17658   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17659     SED SHELL STRIP \
17660     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17661     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17662     deplibs_check_method reload_flag reload_cmds need_locks \
17663     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17664     lt_cv_sys_global_symbol_to_c_name_address \
17665     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17666     old_postinstall_cmds old_postuninstall_cmds \
17667     compiler_GCJ \
17668     CC_GCJ \
17669     LD_GCJ \
17670     lt_prog_compiler_wl_GCJ \
17671     lt_prog_compiler_pic_GCJ \
17672     lt_prog_compiler_static_GCJ \
17673     lt_prog_compiler_no_builtin_flag_GCJ \
17674     export_dynamic_flag_spec_GCJ \
17675     thread_safe_flag_spec_GCJ \
17676     whole_archive_flag_spec_GCJ \
17677     enable_shared_with_static_runtimes_GCJ \
17678     old_archive_cmds_GCJ \
17679     old_archive_from_new_cmds_GCJ \
17680     predep_objects_GCJ \
17681     postdep_objects_GCJ \
17682     predeps_GCJ \
17683     postdeps_GCJ \
17684     compiler_lib_search_path_GCJ \
17685     archive_cmds_GCJ \
17686     archive_expsym_cmds_GCJ \
17687     postinstall_cmds_GCJ \
17688     postuninstall_cmds_GCJ \
17689     old_archive_from_expsyms_cmds_GCJ \
17690     allow_undefined_flag_GCJ \
17691     no_undefined_flag_GCJ \
17692     export_symbols_cmds_GCJ \
17693     hardcode_libdir_flag_spec_GCJ \
17694     hardcode_libdir_flag_spec_ld_GCJ \
17695     hardcode_libdir_separator_GCJ \
17696     hardcode_automatic_GCJ \
17697     module_cmds_GCJ \
17698     module_expsym_cmds_GCJ \
17699     lt_cv_prog_compiler_c_o_GCJ \
17700     exclude_expsyms_GCJ \
17701     include_expsyms_GCJ; do
17702
17703     case $var in
17704     old_archive_cmds_GCJ | \
17705     old_archive_from_new_cmds_GCJ | \
17706     archive_cmds_GCJ | \
17707     archive_expsym_cmds_GCJ | \
17708     module_cmds_GCJ | \
17709     module_expsym_cmds_GCJ | \
17710     old_archive_from_expsyms_cmds_GCJ | \
17711     export_symbols_cmds_GCJ | \
17712     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17713     postinstall_cmds | postuninstall_cmds | \
17714     old_postinstall_cmds | old_postuninstall_cmds | \
17715     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17716       # Double-quote double-evaled strings.
17717       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17718       ;;
17719     *)
17720       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17721       ;;
17722     esac
17723   done
17724
17725   case $lt_echo in
17726   *'\$0 --fallback-echo"')
17727     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17728     ;;
17729   esac
17730
17731 cfgfile="$ofile"
17732
17733   cat <<__EOF__ >> "$cfgfile"
17734 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17735
17736 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17737
17738 # Shell to use when invoking shell scripts.
17739 SHELL=$lt_SHELL
17740
17741 # Whether or not to build shared libraries.
17742 build_libtool_libs=$enable_shared
17743
17744 # Whether or not to build static libraries.
17745 build_old_libs=$enable_static
17746
17747 # Whether or not to add -lc for building shared libraries.
17748 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17749
17750 # Whether or not to disallow shared libs when runtime libs are static
17751 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17752
17753 # Whether or not to optimize for fast installation.
17754 fast_install=$enable_fast_install
17755
17756 # The host system.
17757 host_alias=$host_alias
17758 host=$host
17759 host_os=$host_os
17760
17761 # The build system.
17762 build_alias=$build_alias
17763 build=$build
17764 build_os=$build_os
17765
17766 # An echo program that does not interpret backslashes.
17767 echo=$lt_echo
17768
17769 # The archiver.
17770 AR=$lt_AR
17771 AR_FLAGS=$lt_AR_FLAGS
17772
17773 # A C compiler.
17774 LTCC=$lt_LTCC
17775
17776 # LTCC compiler flags.
17777 LTCFLAGS=$lt_LTCFLAGS
17778
17779 # A language-specific compiler.
17780 CC=$lt_compiler_GCJ
17781
17782 # Is the compiler the GNU C compiler?
17783 with_gcc=$GCC_GCJ
17784
17785 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
17786 gcc_ver=\`gcc -dumpversion\`
17787
17788 # An ERE matcher.
17789 EGREP=$lt_EGREP
17790
17791 # The linker used to build libraries.
17792 LD=$lt_LD_GCJ
17793
17794 # Whether we need hard or soft links.
17795 LN_S=$lt_LN_S
17796
17797 # A BSD-compatible nm program.
17798 NM=$lt_NM
17799
17800 # A symbol stripping program
17801 STRIP=$lt_STRIP
17802
17803 # Used to examine libraries when file_magic_cmd begins "file"
17804 MAGIC_CMD=$MAGIC_CMD
17805
17806 # Used on cygwin: DLL creation program.
17807 DLLTOOL="$DLLTOOL"
17808
17809 # Used on cygwin: object dumper.
17810 OBJDUMP="$OBJDUMP"
17811
17812 # Used on cygwin: assembler.
17813 AS="$AS"
17814
17815 # The name of the directory that contains temporary libtool files.
17816 objdir=$objdir
17817
17818 # How to create reloadable object files.
17819 reload_flag=$lt_reload_flag
17820 reload_cmds=$lt_reload_cmds
17821
17822 # How to pass a linker flag through the compiler.
17823 wl=$lt_lt_prog_compiler_wl_GCJ
17824
17825 # Object file suffix (normally "o").
17826 objext="$ac_objext"
17827
17828 # Old archive suffix (normally "a").
17829 libext="$libext"
17830
17831 # Shared library suffix (normally ".so").
17832 shrext_cmds='$shrext_cmds'
17833
17834 # Executable file suffix (normally "").
17835 exeext="$exeext"
17836
17837 # Additional compiler flags for building library objects.
17838 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17839 pic_mode=$pic_mode
17840
17841 # What is the maximum length of a command?
17842 max_cmd_len=$lt_cv_sys_max_cmd_len
17843
17844 # Does compiler simultaneously support -c and -o options?
17845 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17846
17847 # Must we lock files when doing compilation?
17848 need_locks=$lt_need_locks
17849
17850 # Do we need the lib prefix for modules?
17851 need_lib_prefix=$need_lib_prefix
17852
17853 # Do we need a version for libraries?
17854 need_version=$need_version
17855
17856 # Whether dlopen is supported.
17857 dlopen_support=$enable_dlopen
17858
17859 # Whether dlopen of programs is supported.
17860 dlopen_self=$enable_dlopen_self
17861
17862 # Whether dlopen of statically linked programs is supported.
17863 dlopen_self_static=$enable_dlopen_self_static
17864
17865 # Compiler flag to prevent dynamic linking.
17866 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17867
17868 # Compiler flag to turn off builtin functions.
17869 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17870
17871 # Compiler flag to allow reflexive dlopens.
17872 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17873
17874 # Compiler flag to generate shared objects directly from archives.
17875 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17876
17877 # Compiler flag to generate thread-safe objects.
17878 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17879
17880 # Library versioning type.
17881 version_type=$version_type
17882
17883 # Format of library name prefix.
17884 libname_spec=$lt_libname_spec
17885
17886 # List of archive names.  First name is the real one, the rest are links.
17887 # The last name is the one that the linker finds with -lNAME.
17888 library_names_spec=$lt_library_names_spec
17889
17890 # The coded name of the library, if different from the real name.
17891 soname_spec=$lt_soname_spec
17892
17893 # Commands used to build and install an old-style archive.
17894 RANLIB=$lt_RANLIB
17895 old_archive_cmds=$lt_old_archive_cmds_GCJ
17896 old_postinstall_cmds=$lt_old_postinstall_cmds
17897 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17898
17899 # Create an old-style archive from a shared archive.
17900 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17901
17902 # Create a temporary old-style archive to link instead of a shared archive.
17903 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17904
17905 # Commands used to build and install a shared archive.
17906 archive_cmds=$lt_archive_cmds_GCJ
17907 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17908 postinstall_cmds=$lt_postinstall_cmds
17909 postuninstall_cmds=$lt_postuninstall_cmds
17910
17911 # Commands used to build a loadable module (assumed same as above if empty)
17912 module_cmds=$lt_module_cmds_GCJ
17913 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17914
17915 # Commands to strip libraries.
17916 old_striplib=$lt_old_striplib
17917 striplib=$lt_striplib
17918
17919 # Dependencies to place before the objects being linked to create a
17920 # shared library.
17921 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17922
17923 # Dependencies to place after the objects being linked to create a
17924 # shared library.
17925 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17926
17927 # Dependencies to place before the objects being linked to create a
17928 # shared library.
17929 predeps=$lt_predeps_GCJ
17930
17931 # Dependencies to place after the objects being linked to create a
17932 # shared library.
17933 postdeps=$lt_postdeps_GCJ
17934
17935 # The library search path used internally by the compiler when linking
17936 # a shared library.
17937 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17938
17939 # Method to check whether dependent libraries are shared objects.
17940 deplibs_check_method=$lt_deplibs_check_method
17941
17942 # Command to use when deplibs_check_method == file_magic.
17943 file_magic_cmd=$lt_file_magic_cmd
17944
17945 # Flag that allows shared libraries with undefined symbols to be built.
17946 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17947
17948 # Flag that forces no undefined symbols.
17949 no_undefined_flag=$lt_no_undefined_flag_GCJ
17950
17951 # Commands used to finish a libtool library installation in a directory.
17952 finish_cmds=$lt_finish_cmds
17953
17954 # Same as above, but a single script fragment to be evaled but not shown.
17955 finish_eval=$lt_finish_eval
17956
17957 # Take the output of nm and produce a listing of raw symbols and C names.
17958 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17959
17960 # Transform the output of nm in a proper C declaration
17961 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17962
17963 # Transform the output of nm in a C name address pair
17964 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17965
17966 # This is the shared library runtime path variable.
17967 runpath_var=$runpath_var
17968
17969 # This is the shared library path variable.
17970 shlibpath_var=$shlibpath_var
17971
17972 # Is shlibpath searched before the hard-coded library search path?
17973 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17974
17975 # How to hardcode a shared library path into an executable.
17976 hardcode_action=$hardcode_action_GCJ
17977
17978 # Whether we should hardcode library paths into libraries.
17979 hardcode_into_libs=$hardcode_into_libs
17980
17981 # Flag to hardcode \$libdir into a binary during linking.
17982 # This must work even if \$libdir does not exist.
17983 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17984
17985 # If ld is used when linking, flag to hardcode \$libdir into
17986 # a binary during linking. This must work even if \$libdir does
17987 # not exist.
17988 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17989
17990 # Whether we need a single -rpath flag with a separated argument.
17991 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17992
17993 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17994 # resulting binary.
17995 hardcode_direct=$hardcode_direct_GCJ
17996
17997 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17998 # resulting binary.
17999 hardcode_minus_L=$hardcode_minus_L_GCJ
18000
18001 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18002 # the resulting binary.
18003 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18004
18005 # Set to yes if building a shared library automatically hardcodes DIR into the library
18006 # and all subsequent libraries and executables linked against it.
18007 hardcode_automatic=$hardcode_automatic_GCJ
18008
18009 # Variables whose values should be saved in libtool wrapper scripts and
18010 # restored at relink time.
18011 variables_saved_for_relink="$variables_saved_for_relink"
18012
18013 # Whether libtool must link a program against all its dependency libraries.
18014 link_all_deplibs=$link_all_deplibs_GCJ
18015
18016 # Compile-time system search path for libraries
18017 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18018
18019 # Run-time system search path for libraries
18020 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18021
18022 # Fix the shell variable \$srcfile for the compiler.
18023 fix_srcfile_path="$fix_srcfile_path_GCJ"
18024
18025 # Set to yes if exported symbols are required.
18026 always_export_symbols=$always_export_symbols_GCJ
18027
18028 # The commands to list exported symbols.
18029 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18030
18031 # The commands to extract the exported symbol list from a shared archive.
18032 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18033
18034 # Symbols that should not be listed in the preloaded symbols.
18035 exclude_expsyms=$lt_exclude_expsyms_GCJ
18036
18037 # Symbols that must always be exported.
18038 include_expsyms=$lt_include_expsyms_GCJ
18039
18040 # ### END LIBTOOL TAG CONFIG: $tagname
18041
18042 __EOF__
18043
18044
18045 else
18046   # If there is no Makefile yet, we rely on a make rule to execute
18047   # `config.status --recheck' to rerun these tests and create the
18048   # libtool script then.
18049   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18050   if test -f "$ltmain_in"; then
18051     test -f Makefile && make "$ltmain"
18052   fi
18053 fi
18054
18055
18056 ac_ext=c
18057 ac_cpp='$CPP $CPPFLAGS'
18058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18061
18062 CC="$lt_save_CC"
18063
18064         else
18065           tagname=""
18066         fi
18067         ;;
18068
18069       RC)
18070
18071
18072
18073 # Source file extension for RC test sources.
18074 ac_ext=rc
18075
18076 # Object file extension for compiled RC test sources.
18077 objext=o
18078 objext_RC=$objext
18079
18080 # Code to be used in simple compile tests
18081 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18082
18083 # Code to be used in simple link tests
18084 lt_simple_link_test_code="$lt_simple_compile_test_code"
18085
18086 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18087
18088 # If no C compiler was specified, use CC.
18089 LTCC=${LTCC-"$CC"}
18090
18091 # If no C compiler flags were specified, use CFLAGS.
18092 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18093
18094 # Allow CC to be a program name with arguments.
18095 compiler=$CC
18096
18097
18098 # save warnings/boilerplate of simple test code
18099 ac_outfile=conftest.$ac_objext
18100 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18101 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18102 _lt_compiler_boilerplate=`cat conftest.err`
18103 $rm conftest*
18104
18105 ac_outfile=conftest.$ac_objext
18106 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18107 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18108 _lt_linker_boilerplate=`cat conftest.err`
18109 $rm conftest*
18110
18111
18112 # Allow CC to be a program name with arguments.
18113 lt_save_CC="$CC"
18114 CC=${RC-"windres"}
18115 compiler=$CC
18116 compiler_RC=$CC
18117 for cc_temp in $compiler""; do
18118   case $cc_temp in
18119     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18120     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18121     \-*) ;;
18122     *) break;;
18123   esac
18124 done
18125 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18126
18127 lt_cv_prog_compiler_c_o_RC=yes
18128
18129 # The else clause should only fire when bootstrapping the
18130 # libtool distribution, otherwise you forgot to ship ltmain.sh
18131 # with your package, and you will get complaints that there are
18132 # no rules to generate ltmain.sh.
18133 if test -f "$ltmain"; then
18134   # See if we are running on zsh, and set the options which allow our commands through
18135   # without removal of \ escapes.
18136   if test -n "${ZSH_VERSION+set}" ; then
18137     setopt NO_GLOB_SUBST
18138   fi
18139   # Now quote all the things that may contain metacharacters while being
18140   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18141   # variables and quote the copies for generation of the libtool script.
18142   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18143     SED SHELL STRIP \
18144     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18145     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18146     deplibs_check_method reload_flag reload_cmds need_locks \
18147     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18148     lt_cv_sys_global_symbol_to_c_name_address \
18149     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18150     old_postinstall_cmds old_postuninstall_cmds \
18151     compiler_RC \
18152     CC_RC \
18153     LD_RC \
18154     lt_prog_compiler_wl_RC \
18155     lt_prog_compiler_pic_RC \
18156     lt_prog_compiler_static_RC \
18157     lt_prog_compiler_no_builtin_flag_RC \
18158     export_dynamic_flag_spec_RC \
18159     thread_safe_flag_spec_RC \
18160     whole_archive_flag_spec_RC \
18161     enable_shared_with_static_runtimes_RC \
18162     old_archive_cmds_RC \
18163     old_archive_from_new_cmds_RC \
18164     predep_objects_RC \
18165     postdep_objects_RC \
18166     predeps_RC \
18167     postdeps_RC \
18168     compiler_lib_search_path_RC \
18169     archive_cmds_RC \
18170     archive_expsym_cmds_RC \
18171     postinstall_cmds_RC \
18172     postuninstall_cmds_RC \
18173     old_archive_from_expsyms_cmds_RC \
18174     allow_undefined_flag_RC \
18175     no_undefined_flag_RC \
18176     export_symbols_cmds_RC \
18177     hardcode_libdir_flag_spec_RC \
18178     hardcode_libdir_flag_spec_ld_RC \
18179     hardcode_libdir_separator_RC \
18180     hardcode_automatic_RC \
18181     module_cmds_RC \
18182     module_expsym_cmds_RC \
18183     lt_cv_prog_compiler_c_o_RC \
18184     exclude_expsyms_RC \
18185     include_expsyms_RC; do
18186
18187     case $var in
18188     old_archive_cmds_RC | \
18189     old_archive_from_new_cmds_RC | \
18190     archive_cmds_RC | \
18191     archive_expsym_cmds_RC | \
18192     module_cmds_RC | \
18193     module_expsym_cmds_RC | \
18194     old_archive_from_expsyms_cmds_RC | \
18195     export_symbols_cmds_RC | \
18196     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18197     postinstall_cmds | postuninstall_cmds | \
18198     old_postinstall_cmds | old_postuninstall_cmds | \
18199     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18200       # Double-quote double-evaled strings.
18201       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18202       ;;
18203     *)
18204       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18205       ;;
18206     esac
18207   done
18208
18209   case $lt_echo in
18210   *'\$0 --fallback-echo"')
18211     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18212     ;;
18213   esac
18214
18215 cfgfile="$ofile"
18216
18217   cat <<__EOF__ >> "$cfgfile"
18218 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18219
18220 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18221
18222 # Shell to use when invoking shell scripts.
18223 SHELL=$lt_SHELL
18224
18225 # Whether or not to build shared libraries.
18226 build_libtool_libs=$enable_shared
18227
18228 # Whether or not to build static libraries.
18229 build_old_libs=$enable_static
18230
18231 # Whether or not to add -lc for building shared libraries.
18232 build_libtool_need_lc=$archive_cmds_need_lc_RC
18233
18234 # Whether or not to disallow shared libs when runtime libs are static
18235 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18236
18237 # Whether or not to optimize for fast installation.
18238 fast_install=$enable_fast_install
18239
18240 # The host system.
18241 host_alias=$host_alias
18242 host=$host
18243 host_os=$host_os
18244
18245 # The build system.
18246 build_alias=$build_alias
18247 build=$build
18248 build_os=$build_os
18249
18250 # An echo program that does not interpret backslashes.
18251 echo=$lt_echo
18252
18253 # The archiver.
18254 AR=$lt_AR
18255 AR_FLAGS=$lt_AR_FLAGS
18256
18257 # A C compiler.
18258 LTCC=$lt_LTCC
18259
18260 # LTCC compiler flags.
18261 LTCFLAGS=$lt_LTCFLAGS
18262
18263 # A language-specific compiler.
18264 CC=$lt_compiler_RC
18265
18266 # Is the compiler the GNU C compiler?
18267 with_gcc=$GCC_RC
18268
18269 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18270 gcc_ver=\`gcc -dumpversion\`
18271
18272 # An ERE matcher.
18273 EGREP=$lt_EGREP
18274
18275 # The linker used to build libraries.
18276 LD=$lt_LD_RC
18277
18278 # Whether we need hard or soft links.
18279 LN_S=$lt_LN_S
18280
18281 # A BSD-compatible nm program.
18282 NM=$lt_NM
18283
18284 # A symbol stripping program
18285 STRIP=$lt_STRIP
18286
18287 # Used to examine libraries when file_magic_cmd begins "file"
18288 MAGIC_CMD=$MAGIC_CMD
18289
18290 # Used on cygwin: DLL creation program.
18291 DLLTOOL="$DLLTOOL"
18292
18293 # Used on cygwin: object dumper.
18294 OBJDUMP="$OBJDUMP"
18295
18296 # Used on cygwin: assembler.
18297 AS="$AS"
18298
18299 # The name of the directory that contains temporary libtool files.
18300 objdir=$objdir
18301
18302 # How to create reloadable object files.
18303 reload_flag=$lt_reload_flag
18304 reload_cmds=$lt_reload_cmds
18305
18306 # How to pass a linker flag through the compiler.
18307 wl=$lt_lt_prog_compiler_wl_RC
18308
18309 # Object file suffix (normally "o").
18310 objext="$ac_objext"
18311
18312 # Old archive suffix (normally "a").
18313 libext="$libext"
18314
18315 # Shared library suffix (normally ".so").
18316 shrext_cmds='$shrext_cmds'
18317
18318 # Executable file suffix (normally "").
18319 exeext="$exeext"
18320
18321 # Additional compiler flags for building library objects.
18322 pic_flag=$lt_lt_prog_compiler_pic_RC
18323 pic_mode=$pic_mode
18324
18325 # What is the maximum length of a command?
18326 max_cmd_len=$lt_cv_sys_max_cmd_len
18327
18328 # Does compiler simultaneously support -c and -o options?
18329 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18330
18331 # Must we lock files when doing compilation?
18332 need_locks=$lt_need_locks
18333
18334 # Do we need the lib prefix for modules?
18335 need_lib_prefix=$need_lib_prefix
18336
18337 # Do we need a version for libraries?
18338 need_version=$need_version
18339
18340 # Whether dlopen is supported.
18341 dlopen_support=$enable_dlopen
18342
18343 # Whether dlopen of programs is supported.
18344 dlopen_self=$enable_dlopen_self
18345
18346 # Whether dlopen of statically linked programs is supported.
18347 dlopen_self_static=$enable_dlopen_self_static
18348
18349 # Compiler flag to prevent dynamic linking.
18350 link_static_flag=$lt_lt_prog_compiler_static_RC
18351
18352 # Compiler flag to turn off builtin functions.
18353 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18354
18355 # Compiler flag to allow reflexive dlopens.
18356 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18357
18358 # Compiler flag to generate shared objects directly from archives.
18359 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18360
18361 # Compiler flag to generate thread-safe objects.
18362 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18363
18364 # Library versioning type.
18365 version_type=$version_type
18366
18367 # Format of library name prefix.
18368 libname_spec=$lt_libname_spec
18369
18370 # List of archive names.  First name is the real one, the rest are links.
18371 # The last name is the one that the linker finds with -lNAME.
18372 library_names_spec=$lt_library_names_spec
18373
18374 # The coded name of the library, if different from the real name.
18375 soname_spec=$lt_soname_spec
18376
18377 # Commands used to build and install an old-style archive.
18378 RANLIB=$lt_RANLIB
18379 old_archive_cmds=$lt_old_archive_cmds_RC
18380 old_postinstall_cmds=$lt_old_postinstall_cmds
18381 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18382
18383 # Create an old-style archive from a shared archive.
18384 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18385
18386 # Create a temporary old-style archive to link instead of a shared archive.
18387 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18388
18389 # Commands used to build and install a shared archive.
18390 archive_cmds=$lt_archive_cmds_RC
18391 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18392 postinstall_cmds=$lt_postinstall_cmds
18393 postuninstall_cmds=$lt_postuninstall_cmds
18394
18395 # Commands used to build a loadable module (assumed same as above if empty)
18396 module_cmds=$lt_module_cmds_RC
18397 module_expsym_cmds=$lt_module_expsym_cmds_RC
18398
18399 # Commands to strip libraries.
18400 old_striplib=$lt_old_striplib
18401 striplib=$lt_striplib
18402
18403 # Dependencies to place before the objects being linked to create a
18404 # shared library.
18405 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18406
18407 # Dependencies to place after the objects being linked to create a
18408 # shared library.
18409 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18410
18411 # Dependencies to place before the objects being linked to create a
18412 # shared library.
18413 predeps=$lt_predeps_RC
18414
18415 # Dependencies to place after the objects being linked to create a
18416 # shared library.
18417 postdeps=$lt_postdeps_RC
18418
18419 # The library search path used internally by the compiler when linking
18420 # a shared library.
18421 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18422
18423 # Method to check whether dependent libraries are shared objects.
18424 deplibs_check_method=$lt_deplibs_check_method
18425
18426 # Command to use when deplibs_check_method == file_magic.
18427 file_magic_cmd=$lt_file_magic_cmd
18428
18429 # Flag that allows shared libraries with undefined symbols to be built.
18430 allow_undefined_flag=$lt_allow_undefined_flag_RC
18431
18432 # Flag that forces no undefined symbols.
18433 no_undefined_flag=$lt_no_undefined_flag_RC
18434
18435 # Commands used to finish a libtool library installation in a directory.
18436 finish_cmds=$lt_finish_cmds
18437
18438 # Same as above, but a single script fragment to be evaled but not shown.
18439 finish_eval=$lt_finish_eval
18440
18441 # Take the output of nm and produce a listing of raw symbols and C names.
18442 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18443
18444 # Transform the output of nm in a proper C declaration
18445 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18446
18447 # Transform the output of nm in a C name address pair
18448 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18449
18450 # This is the shared library runtime path variable.
18451 runpath_var=$runpath_var
18452
18453 # This is the shared library path variable.
18454 shlibpath_var=$shlibpath_var
18455
18456 # Is shlibpath searched before the hard-coded library search path?
18457 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18458
18459 # How to hardcode a shared library path into an executable.
18460 hardcode_action=$hardcode_action_RC
18461
18462 # Whether we should hardcode library paths into libraries.
18463 hardcode_into_libs=$hardcode_into_libs
18464
18465 # Flag to hardcode \$libdir into a binary during linking.
18466 # This must work even if \$libdir does not exist.
18467 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18468
18469 # If ld is used when linking, flag to hardcode \$libdir into
18470 # a binary during linking. This must work even if \$libdir does
18471 # not exist.
18472 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18473
18474 # Whether we need a single -rpath flag with a separated argument.
18475 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18476
18477 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18478 # resulting binary.
18479 hardcode_direct=$hardcode_direct_RC
18480
18481 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18482 # resulting binary.
18483 hardcode_minus_L=$hardcode_minus_L_RC
18484
18485 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18486 # the resulting binary.
18487 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18488
18489 # Set to yes if building a shared library automatically hardcodes DIR into the library
18490 # and all subsequent libraries and executables linked against it.
18491 hardcode_automatic=$hardcode_automatic_RC
18492
18493 # Variables whose values should be saved in libtool wrapper scripts and
18494 # restored at relink time.
18495 variables_saved_for_relink="$variables_saved_for_relink"
18496
18497 # Whether libtool must link a program against all its dependency libraries.
18498 link_all_deplibs=$link_all_deplibs_RC
18499
18500 # Compile-time system search path for libraries
18501 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18502
18503 # Run-time system search path for libraries
18504 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18505
18506 # Fix the shell variable \$srcfile for the compiler.
18507 fix_srcfile_path="$fix_srcfile_path_RC"
18508
18509 # Set to yes if exported symbols are required.
18510 always_export_symbols=$always_export_symbols_RC
18511
18512 # The commands to list exported symbols.
18513 export_symbols_cmds=$lt_export_symbols_cmds_RC
18514
18515 # The commands to extract the exported symbol list from a shared archive.
18516 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18517
18518 # Symbols that should not be listed in the preloaded symbols.
18519 exclude_expsyms=$lt_exclude_expsyms_RC
18520
18521 # Symbols that must always be exported.
18522 include_expsyms=$lt_include_expsyms_RC
18523
18524 # ### END LIBTOOL TAG CONFIG: $tagname
18525
18526 __EOF__
18527
18528
18529 else
18530   # If there is no Makefile yet, we rely on a make rule to execute
18531   # `config.status --recheck' to rerun these tests and create the
18532   # libtool script then.
18533   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18534   if test -f "$ltmain_in"; then
18535     test -f Makefile && make "$ltmain"
18536   fi
18537 fi
18538
18539
18540 ac_ext=c
18541 ac_cpp='$CPP $CPPFLAGS'
18542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18545
18546 CC="$lt_save_CC"
18547
18548         ;;
18549
18550       *)
18551         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18552 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18553    { (exit 1); exit 1; }; }
18554         ;;
18555       esac
18556
18557       # Append the new tag name to the list of available tags.
18558       if test -n "$tagname" ; then
18559       available_tags="$available_tags $tagname"
18560     fi
18561     fi
18562   done
18563   IFS="$lt_save_ifs"
18564
18565   # Now substitute the updated list of available tags.
18566   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18567     mv "${ofile}T" "$ofile"
18568     chmod +x "$ofile"
18569   else
18570     rm -f "${ofile}T"
18571     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18572 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18573    { (exit 1); exit 1; }; }
18574   fi
18575 fi
18576
18577
18578
18579 # This can be used to rebuild libtool when needed
18580 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18581
18582 # Always use our own libtool.
18583 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18584
18585 # Prevent multiple expansion
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607 # Checks for libraries.
18608 # Check whether --enable-glibtest or --disable-glibtest was given.
18609 if test "${enable_glibtest+set}" = set; then
18610   enableval="$enable_glibtest"
18611
18612 else
18613   enable_glibtest=yes
18614 fi;
18615
18616   pkg_config_args=glib-2.0
18617   for module in . gobject
18618   do
18619       case "$module" in
18620          gmodule)
18621              pkg_config_args="$pkg_config_args gmodule-2.0"
18622          ;;
18623          gmodule-no-export)
18624              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
18625          ;;
18626          gobject)
18627              pkg_config_args="$pkg_config_args gobject-2.0"
18628          ;;
18629          gthread)
18630              pkg_config_args="$pkg_config_args gthread-2.0"
18631          ;;
18632       esac
18633   done
18634
18635   # Extract the first word of "pkg-config", so it can be a program name with args.
18636 set dummy pkg-config; ac_word=$2
18637 echo "$as_me:$LINENO: checking for $ac_word" >&5
18638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18639 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
18640   echo $ECHO_N "(cached) $ECHO_C" >&6
18641 else
18642   case $PKG_CONFIG in
18643   [\\/]* | ?:[\\/]*)
18644   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18645   ;;
18646   *)
18647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18648 for as_dir in $PATH
18649 do
18650   IFS=$as_save_IFS
18651   test -z "$as_dir" && as_dir=.
18652   for ac_exec_ext in '' $ac_executable_extensions; do
18653   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18654     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18656     break 2
18657   fi
18658 done
18659 done
18660
18661   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18662   ;;
18663 esac
18664 fi
18665 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18666
18667 if test -n "$PKG_CONFIG"; then
18668   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
18669 echo "${ECHO_T}$PKG_CONFIG" >&6
18670 else
18671   echo "$as_me:$LINENO: result: no" >&5
18672 echo "${ECHO_T}no" >&6
18673 fi
18674
18675
18676   no_glib=""
18677
18678   if test x$PKG_CONFIG != xno ; then
18679     if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
18680       :
18681     else
18682       echo *** pkg-config too old; version 0.7 or better required.
18683       no_glib=yes
18684       PKG_CONFIG=no
18685     fi
18686   else
18687     no_glib=yes
18688   fi
18689
18690   min_glib_version=$GLIB_REQUIRED_VERSION
18691   echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
18692 echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6
18693
18694   if test x$PKG_CONFIG != xno ; then
18695     ## don't try to run the test against uninstalled libtool libs
18696     if $PKG_CONFIG --uninstalled $pkg_config_args; then
18697           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
18698           enable_glibtest=no
18699     fi
18700
18701     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
18702           :
18703     else
18704           no_glib=yes
18705     fi
18706   fi
18707
18708   if test x"$no_glib" = x ; then
18709     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
18710     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
18711     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
18712
18713     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
18714     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
18715     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
18716            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18717     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
18718            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18719     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
18720            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18721     if test "x$enable_glibtest" = "xyes" ; then
18722       ac_save_CFLAGS="$CFLAGS"
18723       ac_save_LIBS="$LIBS"
18724       CFLAGS="$CFLAGS $GLIB_CFLAGS"
18725       LIBS="$GLIB_LIBS $LIBS"
18726       rm -f conf.glibtest
18727       if test "$cross_compiling" = yes; then
18728   echo $ac_n "cross compiling; assumed OK... $ac_c"
18729 else
18730   cat >conftest.$ac_ext <<_ACEOF
18731 /* confdefs.h.  */
18732 _ACEOF
18733 cat confdefs.h >>conftest.$ac_ext
18734 cat >>conftest.$ac_ext <<_ACEOF
18735 /* end confdefs.h.  */
18736
18737 #include <glib.h>
18738 #include <stdio.h>
18739 #include <stdlib.h>
18740
18741 int
18742 main ()
18743 {
18744   int major, minor, micro;
18745   char *tmp_version;
18746
18747   system ("touch conf.glibtest");
18748
18749   /* HP/UX 9 (%@#!) writes to sscanf strings */
18750   tmp_version = g_strdup("$min_glib_version");
18751   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
18752      printf("%s, bad version string\n", "$min_glib_version");
18753      exit(1);
18754    }
18755
18756   if ((glib_major_version != $glib_config_major_version) ||
18757       (glib_minor_version != $glib_config_minor_version) ||
18758       (glib_micro_version != $glib_config_micro_version))
18759     {
18760       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
18761              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
18762              glib_major_version, glib_minor_version, glib_micro_version);
18763       printf ("*** was found! If pkg-config was correct, then it is best\n");
18764       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
18765       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
18766       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
18767       printf("*** required on your system.\n");
18768       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
18769       printf("*** to point to the correct configuration files\n");
18770     }
18771   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
18772            (glib_minor_version != GLIB_MINOR_VERSION) ||
18773            (glib_micro_version != GLIB_MICRO_VERSION))
18774     {
18775       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
18776              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
18777       printf("*** library (version %d.%d.%d)\n",
18778              glib_major_version, glib_minor_version, glib_micro_version);
18779     }
18780   else
18781     {
18782       if ((glib_major_version > major) ||
18783         ((glib_major_version == major) && (glib_minor_version > minor)) ||
18784         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
18785       {
18786         return 0;
18787        }
18788      else
18789       {
18790         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
18791                glib_major_version, glib_minor_version, glib_micro_version);
18792         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
18793                major, minor, micro);
18794         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
18795         printf("***\n");
18796         printf("*** If you have already installed a sufficiently new version, this error\n");
18797         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
18798         printf("*** being found. The easiest way to fix this is to remove the old version\n");
18799         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
18800         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
18801         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
18802         printf("*** so that the correct libraries are found at run-time))\n");
18803       }
18804     }
18805   return 1;
18806 }
18807
18808 _ACEOF
18809 rm -f conftest$ac_exeext
18810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18811   (eval $ac_link) 2>&5
18812   ac_status=$?
18813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18816   (eval $ac_try) 2>&5
18817   ac_status=$?
18818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819   (exit $ac_status); }; }; then
18820   :
18821 else
18822   echo "$as_me: program exited with status $ac_status" >&5
18823 echo "$as_me: failed program was:" >&5
18824 sed 's/^/| /' conftest.$ac_ext >&5
18825
18826 ( exit $ac_status )
18827 no_glib=yes
18828 fi
18829 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18830 fi
18831        CFLAGS="$ac_save_CFLAGS"
18832        LIBS="$ac_save_LIBS"
18833      fi
18834   fi
18835   if test "x$no_glib" = x ; then
18836      echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
18837 echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6
18838      :
18839   else
18840      echo "$as_me:$LINENO: result: no" >&5
18841 echo "${ECHO_T}no" >&6
18842      if test "$PKG_CONFIG" = "no" ; then
18843        echo "*** A new enough version of pkg-config was not found."
18844        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
18845      else
18846        if test -f conf.glibtest ; then
18847         :
18848        else
18849           echo "*** Could not run GLIB test program, checking why..."
18850           ac_save_CFLAGS="$CFLAGS"
18851           ac_save_LIBS="$LIBS"
18852           CFLAGS="$CFLAGS $GLIB_CFLAGS"
18853           LIBS="$LIBS $GLIB_LIBS"
18854           cat >conftest.$ac_ext <<_ACEOF
18855 /* confdefs.h.  */
18856 _ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h.  */
18860
18861 #include <glib.h>
18862 #include <stdio.h>
18863
18864 int
18865 main ()
18866 {
18867  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
18868   ;
18869   return 0;
18870 }
18871 _ACEOF
18872 rm -f conftest.$ac_objext conftest$ac_exeext
18873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18874   (eval $ac_link) 2>conftest.er1
18875   ac_status=$?
18876   grep -v '^ *+' conftest.er1 >conftest.err
18877   rm -f conftest.er1
18878   cat conftest.err >&5
18879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880   (exit $ac_status); } &&
18881          { ac_try='test -z "$ac_c_werror_flag"
18882                          || test ! -s conftest.err'
18883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884   (eval $ac_try) 2>&5
18885   ac_status=$?
18886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887   (exit $ac_status); }; } &&
18888          { ac_try='test -s conftest$ac_exeext'
18889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890   (eval $ac_try) 2>&5
18891   ac_status=$?
18892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893   (exit $ac_status); }; }; then
18894    echo "*** The test program compiled, but did not run. This usually means"
18895           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
18896           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
18897           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
18898           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
18899           echo "*** is required on your system"
18900           echo "***"
18901           echo "*** If you have an old version installed, it is best to remove it, although"
18902           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
18903 else
18904   echo "$as_me: failed program was:" >&5
18905 sed 's/^/| /' conftest.$ac_ext >&5
18906
18907  echo "*** The test program failed to compile or link. See the file config.log for the"
18908           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
18909 fi
18910 rm -f conftest.err conftest.$ac_objext \
18911       conftest$ac_exeext conftest.$ac_ext
18912           CFLAGS="$ac_save_CFLAGS"
18913           LIBS="$ac_save_LIBS"
18914        fi
18915      fi
18916      GLIB_CFLAGS=""
18917      GLIB_LIBS=""
18918      GLIB_GENMARSHAL=""
18919      GOBJECT_QUERY=""
18920      GLIB_MKENUMS=""
18921      { { echo "$as_me:$LINENO: error: Test for GLib failed." >&5
18922 echo "$as_me: error: Test for GLib failed." >&2;}
18923    { (exit 1); exit 1; }; }
18924   fi
18925
18926
18927
18928
18929
18930   rm -f conf.glibtest
18931
18932 echo "$as_me:$LINENO: checking for g_list_append in -lglib-2.0" >&5
18933 echo $ECHO_N "checking for g_list_append in -lglib-2.0... $ECHO_C" >&6
18934 if test "${ac_cv_lib_glib_2_0_g_list_append+set}" = set; then
18935   echo $ECHO_N "(cached) $ECHO_C" >&6
18936 else
18937   ac_check_lib_save_LIBS=$LIBS
18938 LIBS="-lglib-2.0  $LIBS"
18939 cat >conftest.$ac_ext <<_ACEOF
18940 /* confdefs.h.  */
18941 _ACEOF
18942 cat confdefs.h >>conftest.$ac_ext
18943 cat >>conftest.$ac_ext <<_ACEOF
18944 /* end confdefs.h.  */
18945
18946 /* Override any gcc2 internal prototype to avoid an error.  */
18947 #ifdef __cplusplus
18948 extern "C"
18949 #endif
18950 /* We use char because int might match the return type of a gcc2
18951    builtin and then its argument prototype would still apply.  */
18952 char g_list_append ();
18953 int
18954 main ()
18955 {
18956 g_list_append ();
18957   ;
18958   return 0;
18959 }
18960 _ACEOF
18961 rm -f conftest.$ac_objext conftest$ac_exeext
18962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18963   (eval $ac_link) 2>conftest.er1
18964   ac_status=$?
18965   grep -v '^ *+' conftest.er1 >conftest.err
18966   rm -f conftest.er1
18967   cat conftest.err >&5
18968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969   (exit $ac_status); } &&
18970          { ac_try='test -z "$ac_c_werror_flag"
18971                          || test ! -s conftest.err'
18972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18973   (eval $ac_try) 2>&5
18974   ac_status=$?
18975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976   (exit $ac_status); }; } &&
18977          { ac_try='test -s conftest$ac_exeext'
18978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979   (eval $ac_try) 2>&5
18980   ac_status=$?
18981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982   (exit $ac_status); }; }; then
18983   ac_cv_lib_glib_2_0_g_list_append=yes
18984 else
18985   echo "$as_me: failed program was:" >&5
18986 sed 's/^/| /' conftest.$ac_ext >&5
18987
18988 ac_cv_lib_glib_2_0_g_list_append=no
18989 fi
18990 rm -f conftest.err conftest.$ac_objext \
18991       conftest$ac_exeext conftest.$ac_ext
18992 LIBS=$ac_check_lib_save_LIBS
18993 fi
18994 echo "$as_me:$LINENO: result: $ac_cv_lib_glib_2_0_g_list_append" >&5
18995 echo "${ECHO_T}$ac_cv_lib_glib_2_0_g_list_append" >&6
18996 if test $ac_cv_lib_glib_2_0_g_list_append = yes; then
18997   :
18998 else
18999   { { echo "$as_me:$LINENO: error: l7vsd require GLib2.0 or later " >&5
19000 echo "$as_me: error: l7vsd require GLib2.0 or later " >&2;}
19001    { (exit 1); exit 1; }; }
19002 fi
19003
19004
19005 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19006 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19007 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19008   echo $ECHO_N "(cached) $ECHO_C" >&6
19009 else
19010   ac_check_lib_save_LIBS=$LIBS
19011 LIBS="-ldl  $LIBS"
19012 cat >conftest.$ac_ext <<_ACEOF
19013 /* confdefs.h.  */
19014 _ACEOF
19015 cat confdefs.h >>conftest.$ac_ext
19016 cat >>conftest.$ac_ext <<_ACEOF
19017 /* end confdefs.h.  */
19018
19019 /* Override any gcc2 internal prototype to avoid an error.  */
19020 #ifdef __cplusplus
19021 extern "C"
19022 #endif
19023 /* We use char because int might match the return type of a gcc2
19024    builtin and then its argument prototype would still apply.  */
19025 char dlopen ();
19026 int
19027 main ()
19028 {
19029 dlopen ();
19030   ;
19031   return 0;
19032 }
19033 _ACEOF
19034 rm -f conftest.$ac_objext conftest$ac_exeext
19035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19036   (eval $ac_link) 2>conftest.er1
19037   ac_status=$?
19038   grep -v '^ *+' conftest.er1 >conftest.err
19039   rm -f conftest.er1
19040   cat conftest.err >&5
19041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042   (exit $ac_status); } &&
19043          { ac_try='test -z "$ac_c_werror_flag"
19044                          || test ! -s conftest.err'
19045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19046   (eval $ac_try) 2>&5
19047   ac_status=$?
19048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049   (exit $ac_status); }; } &&
19050          { ac_try='test -s conftest$ac_exeext'
19051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19052   (eval $ac_try) 2>&5
19053   ac_status=$?
19054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055   (exit $ac_status); }; }; then
19056   ac_cv_lib_dl_dlopen=yes
19057 else
19058   echo "$as_me: failed program was:" >&5
19059 sed 's/^/| /' conftest.$ac_ext >&5
19060
19061 ac_cv_lib_dl_dlopen=no
19062 fi
19063 rm -f conftest.err conftest.$ac_objext \
19064       conftest$ac_exeext conftest.$ac_ext
19065 LIBS=$ac_check_lib_save_LIBS
19066 fi
19067 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19068 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19069 if test $ac_cv_lib_dl_dlopen = yes; then
19070   cat >>confdefs.h <<_ACEOF
19071 #define HAVE_LIBDL 1
19072 _ACEOF
19073
19074   LIBS="-ldl $LIBS"
19075
19076 fi
19077
19078 echo "$as_me:$LINENO: checking for main in -llog4cxx" >&5
19079 echo $ECHO_N "checking for main in -llog4cxx... $ECHO_C" >&6
19080 if test "${ac_cv_lib_log4cxx_main+set}" = set; then
19081   echo $ECHO_N "(cached) $ECHO_C" >&6
19082 else
19083   ac_check_lib_save_LIBS=$LIBS
19084 LIBS="-llog4cxx  $LIBS"
19085 cat >conftest.$ac_ext <<_ACEOF
19086 /* confdefs.h.  */
19087 _ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h.  */
19091
19092
19093 int
19094 main ()
19095 {
19096 main ();
19097   ;
19098   return 0;
19099 }
19100 _ACEOF
19101 rm -f conftest.$ac_objext conftest$ac_exeext
19102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19103   (eval $ac_link) 2>conftest.er1
19104   ac_status=$?
19105   grep -v '^ *+' conftest.er1 >conftest.err
19106   rm -f conftest.er1
19107   cat conftest.err >&5
19108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109   (exit $ac_status); } &&
19110          { ac_try='test -z "$ac_c_werror_flag"
19111                          || test ! -s conftest.err'
19112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19113   (eval $ac_try) 2>&5
19114   ac_status=$?
19115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116   (exit $ac_status); }; } &&
19117          { ac_try='test -s conftest$ac_exeext'
19118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119   (eval $ac_try) 2>&5
19120   ac_status=$?
19121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122   (exit $ac_status); }; }; then
19123   ac_cv_lib_log4cxx_main=yes
19124 else
19125   echo "$as_me: failed program was:" >&5
19126 sed 's/^/| /' conftest.$ac_ext >&5
19127
19128 ac_cv_lib_log4cxx_main=no
19129 fi
19130 rm -f conftest.err conftest.$ac_objext \
19131       conftest$ac_exeext conftest.$ac_ext
19132 LIBS=$ac_check_lib_save_LIBS
19133 fi
19134 echo "$as_me:$LINENO: result: $ac_cv_lib_log4cxx_main" >&5
19135 echo "${ECHO_T}$ac_cv_lib_log4cxx_main" >&6
19136 if test $ac_cv_lib_log4cxx_main = yes; then
19137   :
19138 else
19139   { { echo "$as_me:$LINENO: error: l7vsd require log4cxx library. " >&5
19140 echo "$as_me: error: l7vsd require log4cxx library. " >&2;}
19141    { (exit 1); exit 1; }; }
19142 fi
19143
19144 #AC_CHECK_LIB(netsnmp, snmp_pdu_create, :,
19145 #       [AC_MSG_ERROR( l7vsd require net-snmp library. )] )
19146
19147 # Checks for header files.
19148 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19149 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19150 if test "${ac_cv_header_stdc+set}" = set; then
19151   echo $ECHO_N "(cached) $ECHO_C" >&6
19152 else
19153   cat >conftest.$ac_ext <<_ACEOF
19154 /* confdefs.h.  */
19155 _ACEOF
19156 cat confdefs.h >>conftest.$ac_ext
19157 cat >>conftest.$ac_ext <<_ACEOF
19158 /* end confdefs.h.  */
19159 #include <stdlib.h>
19160 #include <stdarg.h>
19161 #include <string.h>
19162 #include <float.h>
19163
19164 int
19165 main ()
19166 {
19167
19168   ;
19169   return 0;
19170 }
19171 _ACEOF
19172 rm -f conftest.$ac_objext
19173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19174   (eval $ac_compile) 2>conftest.er1
19175   ac_status=$?
19176   grep -v '^ *+' conftest.er1 >conftest.err
19177   rm -f conftest.er1
19178   cat conftest.err >&5
19179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180   (exit $ac_status); } &&
19181          { ac_try='test -z "$ac_c_werror_flag"
19182                          || test ! -s conftest.err'
19183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19184   (eval $ac_try) 2>&5
19185   ac_status=$?
19186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187   (exit $ac_status); }; } &&
19188          { ac_try='test -s conftest.$ac_objext'
19189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19190   (eval $ac_try) 2>&5
19191   ac_status=$?
19192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193   (exit $ac_status); }; }; then
19194   ac_cv_header_stdc=yes
19195 else
19196   echo "$as_me: failed program was:" >&5
19197 sed 's/^/| /' conftest.$ac_ext >&5
19198
19199 ac_cv_header_stdc=no
19200 fi
19201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19202
19203 if test $ac_cv_header_stdc = yes; then
19204   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19205   cat >conftest.$ac_ext <<_ACEOF
19206 /* confdefs.h.  */
19207 _ACEOF
19208 cat confdefs.h >>conftest.$ac_ext
19209 cat >>conftest.$ac_ext <<_ACEOF
19210 /* end confdefs.h.  */
19211 #include <string.h>
19212
19213 _ACEOF
19214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19215   $EGREP "memchr" >/dev/null 2>&1; then
19216   :
19217 else
19218   ac_cv_header_stdc=no
19219 fi
19220 rm -f conftest*
19221
19222 fi
19223
19224 if test $ac_cv_header_stdc = yes; then
19225   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19226   cat >conftest.$ac_ext <<_ACEOF
19227 /* confdefs.h.  */
19228 _ACEOF
19229 cat confdefs.h >>conftest.$ac_ext
19230 cat >>conftest.$ac_ext <<_ACEOF
19231 /* end confdefs.h.  */
19232 #include <stdlib.h>
19233
19234 _ACEOF
19235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19236   $EGREP "free" >/dev/null 2>&1; then
19237   :
19238 else
19239   ac_cv_header_stdc=no
19240 fi
19241 rm -f conftest*
19242
19243 fi
19244
19245 if test $ac_cv_header_stdc = yes; then
19246   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19247   if test "$cross_compiling" = yes; then
19248   :
19249 else
19250   cat >conftest.$ac_ext <<_ACEOF
19251 /* confdefs.h.  */
19252 _ACEOF
19253 cat confdefs.h >>conftest.$ac_ext
19254 cat >>conftest.$ac_ext <<_ACEOF
19255 /* end confdefs.h.  */
19256 #include <ctype.h>
19257 #if ((' ' & 0x0FF) == 0x020)
19258 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19259 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19260 #else
19261 # define ISLOWER(c) \
19262                    (('a' <= (c) && (c) <= 'i') \
19263                      || ('j' <= (c) && (c) <= 'r') \
19264                      || ('s' <= (c) && (c) <= 'z'))
19265 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19266 #endif
19267
19268 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19269 int
19270 main ()
19271 {
19272   int i;
19273   for (i = 0; i < 256; i++)
19274     if (XOR (islower (i), ISLOWER (i))
19275         || toupper (i) != TOUPPER (i))
19276       exit(2);
19277   exit (0);
19278 }
19279 _ACEOF
19280 rm -f conftest$ac_exeext
19281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19282   (eval $ac_link) 2>&5
19283   ac_status=$?
19284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287   (eval $ac_try) 2>&5
19288   ac_status=$?
19289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290   (exit $ac_status); }; }; then
19291   :
19292 else
19293   echo "$as_me: program exited with status $ac_status" >&5
19294 echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.$ac_ext >&5
19296
19297 ( exit $ac_status )
19298 ac_cv_header_stdc=no
19299 fi
19300 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19301 fi
19302 fi
19303 fi
19304 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19305 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19306 if test $ac_cv_header_stdc = yes; then
19307
19308 cat >>confdefs.h <<\_ACEOF
19309 #define STDC_HEADERS 1
19310 _ACEOF
19311
19312 fi
19313
19314
19315
19316 for ac_header in stdlib.h unistd.h
19317 do
19318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19320   echo "$as_me:$LINENO: checking for $ac_header" >&5
19321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19323   echo $ECHO_N "(cached) $ECHO_C" >&6
19324 fi
19325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19327 else
19328   # Is the header compilable?
19329 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19331 cat >conftest.$ac_ext <<_ACEOF
19332 /* confdefs.h.  */
19333 _ACEOF
19334 cat confdefs.h >>conftest.$ac_ext
19335 cat >>conftest.$ac_ext <<_ACEOF
19336 /* end confdefs.h.  */
19337 $ac_includes_default
19338 #include <$ac_header>
19339 _ACEOF
19340 rm -f conftest.$ac_objext
19341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19342   (eval $ac_compile) 2>conftest.er1
19343   ac_status=$?
19344   grep -v '^ *+' conftest.er1 >conftest.err
19345   rm -f conftest.er1
19346   cat conftest.err >&5
19347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348   (exit $ac_status); } &&
19349          { ac_try='test -z "$ac_c_werror_flag"
19350                          || test ! -s conftest.err'
19351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19352   (eval $ac_try) 2>&5
19353   ac_status=$?
19354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355   (exit $ac_status); }; } &&
19356          { ac_try='test -s conftest.$ac_objext'
19357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358   (eval $ac_try) 2>&5
19359   ac_status=$?
19360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361   (exit $ac_status); }; }; then
19362   ac_header_compiler=yes
19363 else
19364   echo "$as_me: failed program was:" >&5
19365 sed 's/^/| /' conftest.$ac_ext >&5
19366
19367 ac_header_compiler=no
19368 fi
19369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19370 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19371 echo "${ECHO_T}$ac_header_compiler" >&6
19372
19373 # Is the header present?
19374 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19376 cat >conftest.$ac_ext <<_ACEOF
19377 /* confdefs.h.  */
19378 _ACEOF
19379 cat confdefs.h >>conftest.$ac_ext
19380 cat >>conftest.$ac_ext <<_ACEOF
19381 /* end confdefs.h.  */
19382 #include <$ac_header>
19383 _ACEOF
19384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19385   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19386   ac_status=$?
19387   grep -v '^ *+' conftest.er1 >conftest.err
19388   rm -f conftest.er1
19389   cat conftest.err >&5
19390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391   (exit $ac_status); } >/dev/null; then
19392   if test -s conftest.err; then
19393     ac_cpp_err=$ac_c_preproc_warn_flag
19394     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19395   else
19396     ac_cpp_err=
19397   fi
19398 else
19399   ac_cpp_err=yes
19400 fi
19401 if test -z "$ac_cpp_err"; then
19402   ac_header_preproc=yes
19403 else
19404   echo "$as_me: failed program was:" >&5
19405 sed 's/^/| /' conftest.$ac_ext >&5
19406
19407   ac_header_preproc=no
19408 fi
19409 rm -f conftest.err conftest.$ac_ext
19410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19411 echo "${ECHO_T}$ac_header_preproc" >&6
19412
19413 # So?  What about this header?
19414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19415   yes:no: )
19416     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19418     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19420     ac_header_preproc=yes
19421     ;;
19422   no:yes:* )
19423     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19425     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19426 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19427     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19429     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19430 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19431     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19433     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19435     (
19436       cat <<\_ASBOX
19437 ## ------------------------------------------ ##
19438 ## Report this to the AC_PACKAGE_NAME lists.  ##
19439 ## ------------------------------------------ ##
19440 _ASBOX
19441     ) |
19442       sed "s/^/$as_me: WARNING:     /" >&2
19443     ;;
19444 esac
19445 echo "$as_me:$LINENO: checking for $ac_header" >&5
19446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19448   echo $ECHO_N "(cached) $ECHO_C" >&6
19449 else
19450   eval "$as_ac_Header=\$ac_header_preproc"
19451 fi
19452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19454
19455 fi
19456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19457   cat >>confdefs.h <<_ACEOF
19458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19459 _ACEOF
19460
19461 fi
19462
19463 done
19464
19465 # Checks for library functions.
19466
19467 for ac_header in stdlib.h
19468 do
19469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19471   echo "$as_me:$LINENO: checking for $ac_header" >&5
19472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19474   echo $ECHO_N "(cached) $ECHO_C" >&6
19475 fi
19476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19478 else
19479   # Is the header compilable?
19480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19482 cat >conftest.$ac_ext <<_ACEOF
19483 /* confdefs.h.  */
19484 _ACEOF
19485 cat confdefs.h >>conftest.$ac_ext
19486 cat >>conftest.$ac_ext <<_ACEOF
19487 /* end confdefs.h.  */
19488 $ac_includes_default
19489 #include <$ac_header>
19490 _ACEOF
19491 rm -f conftest.$ac_objext
19492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19493   (eval $ac_compile) 2>conftest.er1
19494   ac_status=$?
19495   grep -v '^ *+' conftest.er1 >conftest.err
19496   rm -f conftest.er1
19497   cat conftest.err >&5
19498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499   (exit $ac_status); } &&
19500          { ac_try='test -z "$ac_c_werror_flag"
19501                          || test ! -s conftest.err'
19502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19503   (eval $ac_try) 2>&5
19504   ac_status=$?
19505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506   (exit $ac_status); }; } &&
19507          { ac_try='test -s conftest.$ac_objext'
19508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19509   (eval $ac_try) 2>&5
19510   ac_status=$?
19511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512   (exit $ac_status); }; }; then
19513   ac_header_compiler=yes
19514 else
19515   echo "$as_me: failed program was:" >&5
19516 sed 's/^/| /' conftest.$ac_ext >&5
19517
19518 ac_header_compiler=no
19519 fi
19520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19521 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19522 echo "${ECHO_T}$ac_header_compiler" >&6
19523
19524 # Is the header present?
19525 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19527 cat >conftest.$ac_ext <<_ACEOF
19528 /* confdefs.h.  */
19529 _ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h.  */
19533 #include <$ac_header>
19534 _ACEOF
19535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19536   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19537   ac_status=$?
19538   grep -v '^ *+' conftest.er1 >conftest.err
19539   rm -f conftest.er1
19540   cat conftest.err >&5
19541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542   (exit $ac_status); } >/dev/null; then
19543   if test -s conftest.err; then
19544     ac_cpp_err=$ac_c_preproc_warn_flag
19545     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19546   else
19547     ac_cpp_err=
19548   fi
19549 else
19550   ac_cpp_err=yes
19551 fi
19552 if test -z "$ac_cpp_err"; then
19553   ac_header_preproc=yes
19554 else
19555   echo "$as_me: failed program was:" >&5
19556 sed 's/^/| /' conftest.$ac_ext >&5
19557
19558   ac_header_preproc=no
19559 fi
19560 rm -f conftest.err conftest.$ac_ext
19561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19562 echo "${ECHO_T}$ac_header_preproc" >&6
19563
19564 # So?  What about this header?
19565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19566   yes:no: )
19567     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19569     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19571     ac_header_preproc=yes
19572     ;;
19573   no:yes:* )
19574     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19576     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19577 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19578     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19580     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19581 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19582     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19584     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19586     (
19587       cat <<\_ASBOX
19588 ## ------------------------------------------ ##
19589 ## Report this to the AC_PACKAGE_NAME lists.  ##
19590 ## ------------------------------------------ ##
19591 _ASBOX
19592     ) |
19593       sed "s/^/$as_me: WARNING:     /" >&2
19594     ;;
19595 esac
19596 echo "$as_me:$LINENO: checking for $ac_header" >&5
19597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19599   echo $ECHO_N "(cached) $ECHO_C" >&6
19600 else
19601   eval "$as_ac_Header=\$ac_header_preproc"
19602 fi
19603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19605
19606 fi
19607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19608   cat >>confdefs.h <<_ACEOF
19609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19610 _ACEOF
19611
19612 fi
19613
19614 done
19615
19616 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
19617 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
19618 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
19619   echo $ECHO_N "(cached) $ECHO_C" >&6
19620 else
19621   if test "$cross_compiling" = yes; then
19622   ac_cv_func_malloc_0_nonnull=no
19623 else
19624   cat >conftest.$ac_ext <<_ACEOF
19625 /* confdefs.h.  */
19626 _ACEOF
19627 cat confdefs.h >>conftest.$ac_ext
19628 cat >>conftest.$ac_ext <<_ACEOF
19629 /* end confdefs.h.  */
19630 #if STDC_HEADERS || HAVE_STDLIB_H
19631 # include <stdlib.h>
19632 #else
19633 char *malloc ();
19634 #endif
19635
19636 int
19637 main ()
19638 {
19639 exit (malloc (0) ? 0 : 1);
19640   ;
19641   return 0;
19642 }
19643 _ACEOF
19644 rm -f conftest$ac_exeext
19645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19646   (eval $ac_link) 2>&5
19647   ac_status=$?
19648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19651   (eval $ac_try) 2>&5
19652   ac_status=$?
19653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654   (exit $ac_status); }; }; then
19655   ac_cv_func_malloc_0_nonnull=yes
19656 else
19657   echo "$as_me: program exited with status $ac_status" >&5
19658 echo "$as_me: failed program was:" >&5
19659 sed 's/^/| /' conftest.$ac_ext >&5
19660
19661 ( exit $ac_status )
19662 ac_cv_func_malloc_0_nonnull=no
19663 fi
19664 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19665 fi
19666 fi
19667 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
19668 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
19669 if test $ac_cv_func_malloc_0_nonnull = yes; then
19670
19671 cat >>confdefs.h <<\_ACEOF
19672 #define HAVE_MALLOC 1
19673 _ACEOF
19674
19675 else
19676   cat >>confdefs.h <<\_ACEOF
19677 #define HAVE_MALLOC 0
19678 _ACEOF
19679
19680    case $LIBOBJS in
19681     "malloc.$ac_objext"   | \
19682   *" malloc.$ac_objext"   | \
19683     "malloc.$ac_objext "* | \
19684   *" malloc.$ac_objext "* ) ;;
19685   *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
19686 esac
19687
19688
19689 cat >>confdefs.h <<\_ACEOF
19690 #define malloc rpl_malloc
19691 _ACEOF
19692
19693 fi
19694
19695
19696
19697
19698
19699
19700
19701 for ac_func in select socket strdup strerror
19702 do
19703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19704 echo "$as_me:$LINENO: checking for $ac_func" >&5
19705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19706 if eval "test \"\${$as_ac_var+set}\" = set"; then
19707   echo $ECHO_N "(cached) $ECHO_C" >&6
19708 else
19709   cat >conftest.$ac_ext <<_ACEOF
19710 /* confdefs.h.  */
19711 _ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h.  */
19715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19716    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19717 #define $ac_func innocuous_$ac_func
19718
19719 /* System header to define __stub macros and hopefully few prototypes,
19720     which can conflict with char $ac_func (); below.
19721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19722     <limits.h> exists even on freestanding compilers.  */
19723
19724 #ifdef __STDC__
19725 # include <limits.h>
19726 #else
19727 # include <assert.h>
19728 #endif
19729
19730 #undef $ac_func
19731
19732 /* Override any gcc2 internal prototype to avoid an error.  */
19733 #ifdef __cplusplus
19734 extern "C"
19735 {
19736 #endif
19737 /* We use char because int might match the return type of a gcc2
19738    builtin and then its argument prototype would still apply.  */
19739 char $ac_func ();
19740 /* The GNU C library defines this for functions which it implements
19741     to always fail with ENOSYS.  Some functions are actually named
19742     something starting with __ and the normal name is an alias.  */
19743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19744 choke me
19745 #else
19746 char (*f) () = $ac_func;
19747 #endif
19748 #ifdef __cplusplus
19749 }
19750 #endif
19751
19752 int
19753 main ()
19754 {
19755 return f != $ac_func;
19756   ;
19757   return 0;
19758 }
19759 _ACEOF
19760 rm -f conftest.$ac_objext conftest$ac_exeext
19761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19762   (eval $ac_link) 2>conftest.er1
19763   ac_status=$?
19764   grep -v '^ *+' conftest.er1 >conftest.err
19765   rm -f conftest.er1
19766   cat conftest.err >&5
19767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768   (exit $ac_status); } &&
19769          { ac_try='test -z "$ac_c_werror_flag"
19770                          || test ! -s conftest.err'
19771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19772   (eval $ac_try) 2>&5
19773   ac_status=$?
19774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775   (exit $ac_status); }; } &&
19776          { ac_try='test -s conftest$ac_exeext'
19777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19778   (eval $ac_try) 2>&5
19779   ac_status=$?
19780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781   (exit $ac_status); }; }; then
19782   eval "$as_ac_var=yes"
19783 else
19784   echo "$as_me: failed program was:" >&5
19785 sed 's/^/| /' conftest.$ac_ext >&5
19786
19787 eval "$as_ac_var=no"
19788 fi
19789 rm -f conftest.err conftest.$ac_objext \
19790       conftest$ac_exeext conftest.$ac_ext
19791 fi
19792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19793 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19794 if test `eval echo '${'$as_ac_var'}'` = yes; then
19795   cat >>confdefs.h <<_ACEOF
19796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19797 _ACEOF
19798
19799 fi
19800 done
19801
19802
19803 # application-specific option
19804 if test `uname -m` == "x86_64"; then
19805         libdir=/usr/lib64
19806
19807 #       SNMP_CONFIG_COMMAND="net-snmp-config-x86_64"
19808 else
19809         libdir=/usr/lib
19810
19811 #       SNMP_CONFIG_COMMAND="net-snmp-config"
19812 fi
19813
19814 mandir=/usr/share/man
19815
19816
19817
19818 # Check whether --with-l7vs-moddir or --without-l7vs-moddir was given.
19819 if test "${with_l7vs_moddir+set}" = set; then
19820   withval="$with_l7vs_moddir"
19821     l7vs_moddir="$withval"
19822 else
19823     l7vs_moddir="${libdir}/l7vs"
19824
19825 fi;
19826
19827
19828 # Check whether --with-l7vsadm-sockdir or --without-l7vsadm-sockdir was given.
19829 if test "${with_l7vsadm_sockdir+set}" = set; then
19830   withval="$with_l7vsadm_sockdir"
19831     l7vsadm_sockdir="$withval"
19832 else
19833     l7vsadm_sockdir="/var/run/l7vs"
19834
19835 fi;
19836
19837
19838 # Check whether --with-l7vs-maxvs or --without-l7vs-maxvs was given.
19839 if test "${with_l7vs_maxvs+set}" = set; then
19840   withval="$with_l7vs_maxvs"
19841     l7vs_maxvs="$withval"
19842 else
19843     l7vs_maxvs="64"
19844
19845 fi;
19846
19847 #AC_CHECK_PROG( snmpagent_libs, $SNMP_CONFIG_COMMAND, `$SNMP_CONFIG_COMMAND --agent-libs` )
19848 #if test "x$snmpagent_libs" = x; then
19849 #       AC_MSG_ERROR([ cannot found $SNMP_CONFIG_COMMAND command. ])
19850 #fi
19851
19852 CC=g++
19853
19854 exec_prefix=/usr
19855
19856 mandir=/usr/share/man
19857
19858
19859
19860
19861
19862
19863                                                                                                                         ac_config_files="$ac_config_files parameter/Makefile logger/Makefile Makefile debian/Makefile module/Makefile module/protocol/Makefile module/schedule/Makefile src/Makefile conf/Makefile init.d/Makefile l7directord/Makefile man/Makefile"
19864
19865           ac_config_files="$ac_config_files ultramonkeyl7.spec"
19866 cat >confcache <<\_ACEOF
19867 # This file is a shell script that caches the results of configure
19868 # tests run on this system so they can be shared between configure
19869 # scripts and configure runs, see configure's option --config-cache.
19870 # It is not useful on other systems.  If it contains results you don't
19871 # want to keep, you may remove or edit it.
19872 #
19873 # config.status only pays attention to the cache file if you give it
19874 # the --recheck option to rerun configure.
19875 #
19876 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19877 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19878 # following values.
19879
19880 _ACEOF
19881
19882 # The following way of writing the cache mishandles newlines in values,
19883 # but we know of no workaround that is simple, portable, and efficient.
19884 # So, don't put newlines in cache variables' values.
19885 # Ultrix sh set writes to stderr and can't be redirected directly,
19886 # and sets the high bit in the cache file unless we assign to the vars.
19887 {
19888   (set) 2>&1 |
19889     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19890     *ac_space=\ *)
19891       # `set' does not quote correctly, so add quotes (double-quote
19892       # substitution turns \\\\ into \\, and sed turns \\ into \).
19893       sed -n \
19894         "s/'/'\\\\''/g;
19895           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19896       ;;
19897     *)
19898       # `set' quotes correctly as required by POSIX, so do not add quotes.
19899       sed -n \
19900         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19901       ;;
19902     esac;
19903 } |
19904   sed '
19905      t clear
19906      : clear
19907      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19908      t end
19909      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19910      : end' >>confcache
19911 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19912   if test -w $cache_file; then
19913     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19914     cat confcache >$cache_file
19915   else
19916     echo "not updating unwritable cache $cache_file"
19917   fi
19918 fi
19919 rm -f confcache
19920
19921 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19922 # Let make expand exec_prefix.
19923 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19924
19925 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19926 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19927 # trailing colons and then remove the whole line if VPATH becomes empty
19928 # (actually we leave an empty line to preserve line numbers).
19929 if test "x$srcdir" = x.; then
19930   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19931 s/:*\$(srcdir):*/:/;
19932 s/:*\${srcdir}:*/:/;
19933 s/:*@srcdir@:*/:/;
19934 s/^\([^=]*=[     ]*\):*/\1/;
19935 s/:*$//;
19936 s/^[^=]*=[       ]*$//;
19937 }'
19938 fi
19939
19940 DEFS=-DHAVE_CONFIG_H
19941
19942 ac_libobjs=
19943 ac_ltlibobjs=
19944 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19945   # 1. Remove the extension, and $U if already installed.
19946   ac_i=`echo "$ac_i" |
19947          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19948   # 2. Add them.
19949   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19950   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19951 done
19952 LIBOBJS=$ac_libobjs
19953
19954 LTLIBOBJS=$ac_ltlibobjs
19955
19956
19957 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19958   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19959 Usually this means the macro was only invoked conditionally." >&5
19960 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19961 Usually this means the macro was only invoked conditionally." >&2;}
19962    { (exit 1); exit 1; }; }
19963 fi
19964 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19965   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19966 Usually this means the macro was only invoked conditionally." >&5
19967 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19968 Usually this means the macro was only invoked conditionally." >&2;}
19969    { (exit 1); exit 1; }; }
19970 fi
19971 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19972   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19973 Usually this means the macro was only invoked conditionally." >&5
19974 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19975 Usually this means the macro was only invoked conditionally." >&2;}
19976    { (exit 1); exit 1; }; }
19977 fi
19978
19979 : ${CONFIG_STATUS=./config.status}
19980 ac_clean_files_save=$ac_clean_files
19981 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19982 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19983 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19984 cat >$CONFIG_STATUS <<_ACEOF
19985 #! $SHELL
19986 # Generated by $as_me.
19987 # Run this file to recreate the current configuration.
19988 # Compiler output produced by configure, useful for debugging
19989 # configure, is in config.log if it exists.
19990
19991 debug=false
19992 ac_cs_recheck=false
19993 ac_cs_silent=false
19994 SHELL=\${CONFIG_SHELL-$SHELL}
19995 _ACEOF
19996
19997 cat >>$CONFIG_STATUS <<\_ACEOF
19998 ## --------------------- ##
19999 ## M4sh Initialization.  ##
20000 ## --------------------- ##
20001
20002 # Be Bourne compatible
20003 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20004   emulate sh
20005   NULLCMD=:
20006   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20007   # is contrary to our usage.  Disable this feature.
20008   alias -g '${1+"$@"}'='"$@"'
20009 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20010   set -o posix
20011 fi
20012 DUALCASE=1; export DUALCASE # for MKS sh
20013
20014 # Support unset when possible.
20015 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20016   as_unset=unset
20017 else
20018   as_unset=false
20019 fi
20020
20021
20022 # Work around bugs in pre-3.0 UWIN ksh.
20023 $as_unset ENV MAIL MAILPATH
20024 PS1='$ '
20025 PS2='> '
20026 PS4='+ '
20027
20028 # NLS nuisances.
20029 for as_var in \
20030   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20031   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20032   LC_TELEPHONE LC_TIME
20033 do
20034   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20035     eval $as_var=C; export $as_var
20036   else
20037     $as_unset $as_var
20038   fi
20039 done
20040
20041 # Required to use basename.
20042 if expr a : '\(a\)' >/dev/null 2>&1; then
20043   as_expr=expr
20044 else
20045   as_expr=false
20046 fi
20047
20048 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20049   as_basename=basename
20050 else
20051   as_basename=false
20052 fi
20053
20054
20055 # Name of the executable.
20056 as_me=`$as_basename "$0" ||
20057 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20058          X"$0" : 'X\(//\)$' \| \
20059          X"$0" : 'X\(/\)$' \| \
20060          .     : '\(.\)' 2>/dev/null ||
20061 echo X/"$0" |
20062     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20063           /^X\/\(\/\/\)$/{ s//\1/; q; }
20064           /^X\/\(\/\).*/{ s//\1/; q; }
20065           s/.*/./; q'`
20066
20067
20068 # PATH needs CR, and LINENO needs CR and PATH.
20069 # Avoid depending upon Character Ranges.
20070 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20071 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20072 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20073 as_cr_digits='0123456789'
20074 as_cr_alnum=$as_cr_Letters$as_cr_digits
20075
20076 # The user is always right.
20077 if test "${PATH_SEPARATOR+set}" != set; then
20078   echo "#! /bin/sh" >conf$$.sh
20079   echo  "exit 0"   >>conf$$.sh
20080   chmod +x conf$$.sh
20081   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20082     PATH_SEPARATOR=';'
20083   else
20084     PATH_SEPARATOR=:
20085   fi
20086   rm -f conf$$.sh
20087 fi
20088
20089
20090   as_lineno_1=$LINENO
20091   as_lineno_2=$LINENO
20092   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20093   test "x$as_lineno_1" != "x$as_lineno_2" &&
20094   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20095   # Find who we are.  Look in the path if we contain no path at all
20096   # relative or not.
20097   case $0 in
20098     *[\\/]* ) as_myself=$0 ;;
20099     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20100 for as_dir in $PATH
20101 do
20102   IFS=$as_save_IFS
20103   test -z "$as_dir" && as_dir=.
20104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20105 done
20106
20107        ;;
20108   esac
20109   # We did not find ourselves, most probably we were run as `sh COMMAND'
20110   # in which case we are not to be found in the path.
20111   if test "x$as_myself" = x; then
20112     as_myself=$0
20113   fi
20114   if test ! -f "$as_myself"; then
20115     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20116 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20117    { (exit 1); exit 1; }; }
20118   fi
20119   case $CONFIG_SHELL in
20120   '')
20121     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20122 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20123 do
20124   IFS=$as_save_IFS
20125   test -z "$as_dir" && as_dir=.
20126   for as_base in sh bash ksh sh5; do
20127          case $as_dir in
20128          /*)
20129            if ("$as_dir/$as_base" -c '
20130   as_lineno_1=$LINENO
20131   as_lineno_2=$LINENO
20132   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20133   test "x$as_lineno_1" != "x$as_lineno_2" &&
20134   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20135              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20136              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20137              CONFIG_SHELL=$as_dir/$as_base
20138              export CONFIG_SHELL
20139              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20140            fi;;
20141          esac
20142        done
20143 done
20144 ;;
20145   esac
20146
20147   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20148   # uniformly replaced by the line number.  The first 'sed' inserts a
20149   # line-number line before each line; the second 'sed' does the real
20150   # work.  The second script uses 'N' to pair each line-number line
20151   # with the numbered line, and appends trailing '-' during
20152   # substitution so that $LINENO is not a special case at line end.
20153   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20154   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20155   sed '=' <$as_myself |
20156     sed '
20157       N
20158       s,$,-,
20159       : loop
20160       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20161       t loop
20162       s,-$,,
20163       s,^['$as_cr_digits']*\n,,
20164     ' >$as_me.lineno &&
20165   chmod +x $as_me.lineno ||
20166     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20167 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20168    { (exit 1); exit 1; }; }
20169
20170   # Don't try to exec as it changes $[0], causing all sort of problems
20171   # (the dirname of $[0] is not the place where we might find the
20172   # original and so on.  Autoconf is especially sensible to this).
20173   . ./$as_me.lineno
20174   # Exit status is that of the last command.
20175   exit
20176 }
20177
20178
20179 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20180   *c*,-n*) ECHO_N= ECHO_C='
20181 ' ECHO_T='      ' ;;
20182   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20183   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20184 esac
20185
20186 if expr a : '\(a\)' >/dev/null 2>&1; then
20187   as_expr=expr
20188 else
20189   as_expr=false
20190 fi
20191
20192 rm -f conf$$ conf$$.exe conf$$.file
20193 echo >conf$$.file
20194 if ln -s conf$$.file conf$$ 2>/dev/null; then
20195   # We could just check for DJGPP; but this test a) works b) is more generic
20196   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20197   if test -f conf$$.exe; then
20198     # Don't use ln at all; we don't have any links
20199     as_ln_s='cp -p'
20200   else
20201     as_ln_s='ln -s'
20202   fi
20203 elif ln conf$$.file conf$$ 2>/dev/null; then
20204   as_ln_s=ln
20205 else
20206   as_ln_s='cp -p'
20207 fi
20208 rm -f conf$$ conf$$.exe conf$$.file
20209
20210 if mkdir -p . 2>/dev/null; then
20211   as_mkdir_p=:
20212 else
20213   test -d ./-p && rmdir ./-p
20214   as_mkdir_p=false
20215 fi
20216
20217 as_executable_p="test -f"
20218
20219 # Sed expression to map a string onto a valid CPP name.
20220 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20221
20222 # Sed expression to map a string onto a valid variable name.
20223 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20224
20225
20226 # IFS
20227 # We need space, tab and new line, in precisely that order.
20228 as_nl='
20229 '
20230 IFS="   $as_nl"
20231
20232 # CDPATH.
20233 $as_unset CDPATH
20234
20235 exec 6>&1
20236
20237 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20238 # report actual input values of CONFIG_FILES etc. instead of their
20239 # values after options handling.  Logging --version etc. is OK.
20240 exec 5>>config.log
20241 {
20242   echo
20243   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20244 ## Running $as_me. ##
20245 _ASBOX
20246 } >&5
20247 cat >&5 <<_CSEOF
20248
20249 This file was extended by $as_me, which was
20250 generated by GNU Autoconf 2.59.  Invocation command line was
20251
20252   CONFIG_FILES    = $CONFIG_FILES
20253   CONFIG_HEADERS  = $CONFIG_HEADERS
20254   CONFIG_LINKS    = $CONFIG_LINKS
20255   CONFIG_COMMANDS = $CONFIG_COMMANDS
20256   $ $0 $@
20257
20258 _CSEOF
20259 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20260 echo >&5
20261 _ACEOF
20262
20263 # Files that config.status was made for.
20264 if test -n "$ac_config_files"; then
20265   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20266 fi
20267
20268 if test -n "$ac_config_headers"; then
20269   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20270 fi
20271
20272 if test -n "$ac_config_links"; then
20273   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20274 fi
20275
20276 if test -n "$ac_config_commands"; then
20277   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20278 fi
20279
20280 cat >>$CONFIG_STATUS <<\_ACEOF
20281
20282 ac_cs_usage="\
20283 \`$as_me' instantiates files from templates according to the
20284 current configuration.
20285
20286 Usage: $0 [OPTIONS] [FILE]...
20287
20288   -h, --help       print this help, then exit
20289   -V, --version    print version number, then exit
20290   -q, --quiet      do not print progress messages
20291   -d, --debug      don't remove temporary files
20292       --recheck    update $as_me by reconfiguring in the same conditions
20293   --file=FILE[:TEMPLATE]
20294                    instantiate the configuration file FILE
20295   --header=FILE[:TEMPLATE]
20296                    instantiate the configuration header FILE
20297
20298 Configuration files:
20299 $config_files
20300
20301 Configuration headers:
20302 $config_headers
20303
20304 Configuration commands:
20305 $config_commands
20306
20307 Report bugs to <bug-autoconf@gnu.org>."
20308 _ACEOF
20309
20310 cat >>$CONFIG_STATUS <<_ACEOF
20311 ac_cs_version="\\
20312 config.status
20313 configured by $0, generated by GNU Autoconf 2.59,
20314   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20315
20316 Copyright (C) 2003 Free Software Foundation, Inc.
20317 This config.status script is free software; the Free Software Foundation
20318 gives unlimited permission to copy, distribute and modify it."
20319 srcdir=$srcdir
20320 INSTALL="$INSTALL"
20321 _ACEOF
20322
20323 cat >>$CONFIG_STATUS <<\_ACEOF
20324 # If no file are specified by the user, then we need to provide default
20325 # value.  By we need to know if files were specified by the user.
20326 ac_need_defaults=:
20327 while test $# != 0
20328 do
20329   case $1 in
20330   --*=*)
20331     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20332     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20333     ac_shift=:
20334     ;;
20335   -*)
20336     ac_option=$1
20337     ac_optarg=$2
20338     ac_shift=shift
20339     ;;
20340   *) # This is not an option, so the user has probably given explicit
20341      # arguments.
20342      ac_option=$1
20343      ac_need_defaults=false;;
20344   esac
20345
20346   case $ac_option in
20347   # Handling of the options.
20348 _ACEOF
20349 cat >>$CONFIG_STATUS <<\_ACEOF
20350   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20351     ac_cs_recheck=: ;;
20352   --version | --vers* | -V )
20353     echo "$ac_cs_version"; exit 0 ;;
20354   --he | --h)
20355     # Conflict between --help and --header
20356     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20357 Try \`$0 --help' for more information." >&5
20358 echo "$as_me: error: ambiguous option: $1
20359 Try \`$0 --help' for more information." >&2;}
20360    { (exit 1); exit 1; }; };;
20361   --help | --hel | -h )
20362     echo "$ac_cs_usage"; exit 0 ;;
20363   --debug | --d* | -d )
20364     debug=: ;;
20365   --file | --fil | --fi | --f )
20366     $ac_shift
20367     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20368     ac_need_defaults=false;;
20369   --header | --heade | --head | --hea )
20370     $ac_shift
20371     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20372     ac_need_defaults=false;;
20373   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20374   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20375     ac_cs_silent=: ;;
20376
20377   # This is an error.
20378   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20379 Try \`$0 --help' for more information." >&5
20380 echo "$as_me: error: unrecognized option: $1
20381 Try \`$0 --help' for more information." >&2;}
20382    { (exit 1); exit 1; }; } ;;
20383
20384   *) ac_config_targets="$ac_config_targets $1" ;;
20385
20386   esac
20387   shift
20388 done
20389
20390 ac_configure_extra_args=
20391
20392 if $ac_cs_silent; then
20393   exec 6>/dev/null
20394   ac_configure_extra_args="$ac_configure_extra_args --silent"
20395 fi
20396
20397 _ACEOF
20398 cat >>$CONFIG_STATUS <<_ACEOF
20399 if \$ac_cs_recheck; then
20400   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20401   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20402 fi
20403
20404 _ACEOF
20405
20406 cat >>$CONFIG_STATUS <<_ACEOF
20407 #
20408 # INIT-COMMANDS section.
20409 #
20410
20411 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20412
20413 _ACEOF
20414
20415
20416
20417 cat >>$CONFIG_STATUS <<\_ACEOF
20418 for ac_config_target in $ac_config_targets
20419 do
20420   case "$ac_config_target" in
20421   # Handling of arguments.
20422   "parameter/Makefile" ) CONFIG_FILES="$CONFIG_FILES parameter/Makefile" ;;
20423   "logger/Makefile" ) CONFIG_FILES="$CONFIG_FILES logger/Makefile" ;;
20424   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20425   "debian/Makefile" ) CONFIG_FILES="$CONFIG_FILES debian/Makefile" ;;
20426   "module/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
20427   "module/protocol/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/protocol/Makefile" ;;
20428   "module/schedule/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/schedule/Makefile" ;;
20429   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20430   "conf/Makefile" ) CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
20431   "init.d/Makefile" ) CONFIG_FILES="$CONFIG_FILES init.d/Makefile" ;;
20432   "l7directord/Makefile" ) CONFIG_FILES="$CONFIG_FILES l7directord/Makefile" ;;
20433   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20434   "ultramonkeyl7.spec" ) CONFIG_FILES="$CONFIG_FILES ultramonkeyl7.spec" ;;
20435   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20436   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20437   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20438 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20439    { (exit 1); exit 1; }; };;
20440   esac
20441 done
20442
20443 # If the user did not use the arguments to specify the items to instantiate,
20444 # then the envvar interface is used.  Set only those that are not.
20445 # We use the long form for the default assignment because of an extremely
20446 # bizarre bug on SunOS 4.1.3.
20447 if $ac_need_defaults; then
20448   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20449   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20450   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20451 fi
20452
20453 # Have a temporary directory for convenience.  Make it in the build tree
20454 # simply because there is no reason to put it here, and in addition,
20455 # creating and moving files from /tmp can sometimes cause problems.
20456 # Create a temporary directory, and hook for its removal unless debugging.
20457 $debug ||
20458 {
20459   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20460   trap '{ (exit 1); exit 1; }' 1 2 13 15
20461 }
20462
20463 # Create a (secure) tmp directory for tmp files.
20464
20465 {
20466   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20467   test -n "$tmp" && test -d "$tmp"
20468 }  ||
20469 {
20470   tmp=./confstat$$-$RANDOM
20471   (umask 077 && mkdir $tmp)
20472 } ||
20473 {
20474    echo "$me: cannot create a temporary directory in ." >&2
20475    { (exit 1); exit 1; }
20476 }
20477
20478 _ACEOF
20479
20480 cat >>$CONFIG_STATUS <<_ACEOF
20481
20482 #
20483 # CONFIG_FILES section.
20484 #
20485
20486 # No need to generate the scripts if there are no CONFIG_FILES.
20487 # This happens for instance when ./config.status config.h
20488 if test -n "\$CONFIG_FILES"; then
20489   # Protect against being on the right side of a sed subst in config.status.
20490   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20491    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20492 s,@SHELL@,$SHELL,;t t
20493 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20494 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20495 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20496 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20497 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20498 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20499 s,@exec_prefix@,$exec_prefix,;t t
20500 s,@prefix@,$prefix,;t t
20501 s,@program_transform_name@,$program_transform_name,;t t
20502 s,@bindir@,$bindir,;t t
20503 s,@sbindir@,$sbindir,;t t
20504 s,@libexecdir@,$libexecdir,;t t
20505 s,@datadir@,$datadir,;t t
20506 s,@sysconfdir@,$sysconfdir,;t t
20507 s,@sharedstatedir@,$sharedstatedir,;t t
20508 s,@localstatedir@,$localstatedir,;t t
20509 s,@libdir@,$libdir,;t t
20510 s,@includedir@,$includedir,;t t
20511 s,@oldincludedir@,$oldincludedir,;t t
20512 s,@infodir@,$infodir,;t t
20513 s,@mandir@,$mandir,;t t
20514 s,@build_alias@,$build_alias,;t t
20515 s,@host_alias@,$host_alias,;t t
20516 s,@target_alias@,$target_alias,;t t
20517 s,@DEFS@,$DEFS,;t t
20518 s,@ECHO_C@,$ECHO_C,;t t
20519 s,@ECHO_N@,$ECHO_N,;t t
20520 s,@ECHO_T@,$ECHO_T,;t t
20521 s,@LIBS@,$LIBS,;t t
20522 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20523 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20524 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20525 s,@CYGPATH_W@,$CYGPATH_W,;t t
20526 s,@PACKAGE@,$PACKAGE,;t t
20527 s,@VERSION@,$VERSION,;t t
20528 s,@ACLOCAL@,$ACLOCAL,;t t
20529 s,@AUTOCONF@,$AUTOCONF,;t t
20530 s,@AUTOMAKE@,$AUTOMAKE,;t t
20531 s,@AUTOHEADER@,$AUTOHEADER,;t t
20532 s,@MAKEINFO@,$MAKEINFO,;t t
20533 s,@install_sh@,$install_sh,;t t
20534 s,@STRIP@,$STRIP,;t t
20535 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20536 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20537 s,@mkdir_p@,$mkdir_p,;t t
20538 s,@AWK@,$AWK,;t t
20539 s,@SET_MAKE@,$SET_MAKE,;t t
20540 s,@am__leading_dot@,$am__leading_dot,;t t
20541 s,@AMTAR@,$AMTAR,;t t
20542 s,@am__tar@,$am__tar,;t t
20543 s,@am__untar@,$am__untar,;t t
20544 s,@CXX@,$CXX,;t t
20545 s,@CXXFLAGS@,$CXXFLAGS,;t t
20546 s,@LDFLAGS@,$LDFLAGS,;t t
20547 s,@CPPFLAGS@,$CPPFLAGS,;t t
20548 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20549 s,@EXEEXT@,$EXEEXT,;t t
20550 s,@OBJEXT@,$OBJEXT,;t t
20551 s,@DEPDIR@,$DEPDIR,;t t
20552 s,@am__include@,$am__include,;t t
20553 s,@am__quote@,$am__quote,;t t
20554 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20555 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20556 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20557 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20558 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20559 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20560 s,@build@,$build,;t t
20561 s,@build_cpu@,$build_cpu,;t t
20562 s,@build_vendor@,$build_vendor,;t t
20563 s,@build_os@,$build_os,;t t
20564 s,@host@,$host,;t t
20565 s,@host_cpu@,$host_cpu,;t t
20566 s,@host_vendor@,$host_vendor,;t t
20567 s,@host_os@,$host_os,;t t
20568 s,@CC@,$CC,;t t
20569 s,@CFLAGS@,$CFLAGS,;t t
20570 s,@ac_ct_CC@,$ac_ct_CC,;t t
20571 s,@CCDEPMODE@,$CCDEPMODE,;t t
20572 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20573 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20574 s,@SED@,$SED,;t t
20575 s,@EGREP@,$EGREP,;t t
20576 s,@LN_S@,$LN_S,;t t
20577 s,@ECHO@,$ECHO,;t t
20578 s,@AR@,$AR,;t t
20579 s,@ac_ct_AR@,$ac_ct_AR,;t t
20580 s,@RANLIB@,$RANLIB,;t t
20581 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20582 s,@CPP@,$CPP,;t t
20583 s,@CXXCPP@,$CXXCPP,;t t
20584 s,@F77@,$F77,;t t
20585 s,@FFLAGS@,$FFLAGS,;t t
20586 s,@ac_ct_F77@,$ac_ct_F77,;t t
20587 s,@LIBTOOL@,$LIBTOOL,;t t
20588 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20589 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
20590 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
20591 s,@GLIB_GENMARSHAL@,$GLIB_GENMARSHAL,;t t
20592 s,@GOBJECT_QUERY@,$GOBJECT_QUERY,;t t
20593 s,@GLIB_MKENUMS@,$GLIB_MKENUMS,;t t
20594 s,@LIBOBJS@,$LIBOBJS,;t t
20595 s,@l7vsadm_sockdir@,$l7vsadm_sockdir,;t t
20596 s,@l7vs_moddir@,$l7vs_moddir,;t t
20597 s,@l7vs_maxvs@,$l7vs_maxvs,;t t
20598 s,@MANDIR@,$MANDIR,;t t
20599 s,@snmpagent_libs@,$snmpagent_libs,;t t
20600 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20601 CEOF
20602
20603 _ACEOF
20604
20605   cat >>$CONFIG_STATUS <<\_ACEOF
20606   # Split the substitutions into bite-sized pieces for seds with
20607   # small command number limits, like on Digital OSF/1 and HP-UX.
20608   ac_max_sed_lines=48
20609   ac_sed_frag=1 # Number of current file.
20610   ac_beg=1 # First line for current file.
20611   ac_end=$ac_max_sed_lines # Line after last line for current file.
20612   ac_more_lines=:
20613   ac_sed_cmds=
20614   while $ac_more_lines; do
20615     if test $ac_beg -gt 1; then
20616       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20617     else
20618       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20619     fi
20620     if test ! -s $tmp/subs.frag; then
20621       ac_more_lines=false
20622     else
20623       # The purpose of the label and of the branching condition is to
20624       # speed up the sed processing (if there are no `@' at all, there
20625       # is no need to browse any of the substitutions).
20626       # These are the two extra sed commands mentioned above.
20627       (echo ':t
20628   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20629       if test -z "$ac_sed_cmds"; then
20630         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20631       else
20632         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20633       fi
20634       ac_sed_frag=`expr $ac_sed_frag + 1`
20635       ac_beg=$ac_end
20636       ac_end=`expr $ac_end + $ac_max_sed_lines`
20637     fi
20638   done
20639   if test -z "$ac_sed_cmds"; then
20640     ac_sed_cmds=cat
20641   fi
20642 fi # test -n "$CONFIG_FILES"
20643
20644 _ACEOF
20645 cat >>$CONFIG_STATUS <<\_ACEOF
20646 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20647   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20648   case $ac_file in
20649   - | *:- | *:-:* ) # input from stdin
20650         cat >$tmp/stdin
20651         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20652         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20653   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20654         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20655   * )   ac_file_in=$ac_file.in ;;
20656   esac
20657
20658   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20659   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20660 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20661          X"$ac_file" : 'X\(//\)[^/]' \| \
20662          X"$ac_file" : 'X\(//\)$' \| \
20663          X"$ac_file" : 'X\(/\)' \| \
20664          .     : '\(.\)' 2>/dev/null ||
20665 echo X"$ac_file" |
20666     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20667           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20668           /^X\(\/\/\)$/{ s//\1/; q; }
20669           /^X\(\/\).*/{ s//\1/; q; }
20670           s/.*/./; q'`
20671   { if $as_mkdir_p; then
20672     mkdir -p "$ac_dir"
20673   else
20674     as_dir="$ac_dir"
20675     as_dirs=
20676     while test ! -d "$as_dir"; do
20677       as_dirs="$as_dir $as_dirs"
20678       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20679 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20680          X"$as_dir" : 'X\(//\)[^/]' \| \
20681          X"$as_dir" : 'X\(//\)$' \| \
20682          X"$as_dir" : 'X\(/\)' \| \
20683          .     : '\(.\)' 2>/dev/null ||
20684 echo X"$as_dir" |
20685     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20686           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20687           /^X\(\/\/\)$/{ s//\1/; q; }
20688           /^X\(\/\).*/{ s//\1/; q; }
20689           s/.*/./; q'`
20690     done
20691     test ! -n "$as_dirs" || mkdir $as_dirs
20692   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20693 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20694    { (exit 1); exit 1; }; }; }
20695
20696   ac_builddir=.
20697
20698 if test "$ac_dir" != .; then
20699   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20700   # A "../" for each directory in $ac_dir_suffix.
20701   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20702 else
20703   ac_dir_suffix= ac_top_builddir=
20704 fi
20705
20706 case $srcdir in
20707   .)  # No --srcdir option.  We are building in place.
20708     ac_srcdir=.
20709     if test -z "$ac_top_builddir"; then
20710        ac_top_srcdir=.
20711     else
20712        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20713     fi ;;
20714   [\\/]* | ?:[\\/]* )  # Absolute path.
20715     ac_srcdir=$srcdir$ac_dir_suffix;
20716     ac_top_srcdir=$srcdir ;;
20717   *) # Relative path.
20718     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20719     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20720 esac
20721
20722 # Do not use `cd foo && pwd` to compute absolute paths, because
20723 # the directories may not exist.
20724 case `pwd` in
20725 .) ac_abs_builddir="$ac_dir";;
20726 *)
20727   case "$ac_dir" in
20728   .) ac_abs_builddir=`pwd`;;
20729   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20730   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20731   esac;;
20732 esac
20733 case $ac_abs_builddir in
20734 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20735 *)
20736   case ${ac_top_builddir}. in
20737   .) ac_abs_top_builddir=$ac_abs_builddir;;
20738   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20739   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20740   esac;;
20741 esac
20742 case $ac_abs_builddir in
20743 .) ac_abs_srcdir=$ac_srcdir;;
20744 *)
20745   case $ac_srcdir in
20746   .) ac_abs_srcdir=$ac_abs_builddir;;
20747   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20748   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20749   esac;;
20750 esac
20751 case $ac_abs_builddir in
20752 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20753 *)
20754   case $ac_top_srcdir in
20755   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20756   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20757   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20758   esac;;
20759 esac
20760
20761
20762   case $INSTALL in
20763   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20764   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20765   esac
20766
20767   if test x"$ac_file" != x-; then
20768     { echo "$as_me:$LINENO: creating $ac_file" >&5
20769 echo "$as_me: creating $ac_file" >&6;}
20770     rm -f "$ac_file"
20771   fi
20772   # Let's still pretend it is `configure' which instantiates (i.e., don't
20773   # use $as_me), people would be surprised to read:
20774   #    /* config.h.  Generated by config.status.  */
20775   if test x"$ac_file" = x-; then
20776     configure_input=
20777   else
20778     configure_input="$ac_file.  "
20779   fi
20780   configure_input=$configure_input"Generated from `echo $ac_file_in |
20781                                      sed 's,.*/,,'` by configure."
20782
20783   # First look for the input files in the build tree, otherwise in the
20784   # src tree.
20785   ac_file_inputs=`IFS=:
20786     for f in $ac_file_in; do
20787       case $f in
20788       -) echo $tmp/stdin ;;
20789       [\\/$]*)
20790          # Absolute (can't be DOS-style, as IFS=:)
20791          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20792 echo "$as_me: error: cannot find input file: $f" >&2;}
20793    { (exit 1); exit 1; }; }
20794          echo "$f";;
20795       *) # Relative
20796          if test -f "$f"; then
20797            # Build tree
20798            echo "$f"
20799          elif test -f "$srcdir/$f"; then
20800            # Source tree
20801            echo "$srcdir/$f"
20802          else
20803            # /dev/null tree
20804            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20805 echo "$as_me: error: cannot find input file: $f" >&2;}
20806    { (exit 1); exit 1; }; }
20807          fi;;
20808       esac
20809     done` || { (exit 1); exit 1; }
20810 _ACEOF
20811 cat >>$CONFIG_STATUS <<_ACEOF
20812   sed "$ac_vpsub
20813 $extrasub
20814 _ACEOF
20815 cat >>$CONFIG_STATUS <<\_ACEOF
20816 :t
20817 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20818 s,@configure_input@,$configure_input,;t t
20819 s,@srcdir@,$ac_srcdir,;t t
20820 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20821 s,@top_srcdir@,$ac_top_srcdir,;t t
20822 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20823 s,@builddir@,$ac_builddir,;t t
20824 s,@abs_builddir@,$ac_abs_builddir,;t t
20825 s,@top_builddir@,$ac_top_builddir,;t t
20826 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20827 s,@INSTALL@,$ac_INSTALL,;t t
20828 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20829   rm -f $tmp/stdin
20830   if test x"$ac_file" != x-; then
20831     mv $tmp/out $ac_file
20832   else
20833     cat $tmp/out
20834     rm -f $tmp/out
20835   fi
20836
20837 done
20838 _ACEOF
20839 cat >>$CONFIG_STATUS <<\_ACEOF
20840
20841 #
20842 # CONFIG_HEADER section.
20843 #
20844
20845 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20846 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20847 #
20848 # ac_d sets the value in "#define NAME VALUE" lines.
20849 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
20850 ac_dB='[         ].*$,\1#\2'
20851 ac_dC=' '
20852 ac_dD=',;t'
20853 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20854 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20855 ac_uB='$,\1#\2define\3'
20856 ac_uC=' '
20857 ac_uD=',;t'
20858
20859 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20860   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20861   case $ac_file in
20862   - | *:- | *:-:* ) # input from stdin
20863         cat >$tmp/stdin
20864         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20865         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20866   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20867         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20868   * )   ac_file_in=$ac_file.in ;;
20869   esac
20870
20871   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20872 echo "$as_me: creating $ac_file" >&6;}
20873
20874   # First look for the input files in the build tree, otherwise in the
20875   # src tree.
20876   ac_file_inputs=`IFS=:
20877     for f in $ac_file_in; do
20878       case $f in
20879       -) echo $tmp/stdin ;;
20880       [\\/$]*)
20881          # Absolute (can't be DOS-style, as IFS=:)
20882          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20883 echo "$as_me: error: cannot find input file: $f" >&2;}
20884    { (exit 1); exit 1; }; }
20885          # Do quote $f, to prevent DOS paths from being IFS'd.
20886          echo "$f";;
20887       *) # Relative
20888          if test -f "$f"; then
20889            # Build tree
20890            echo "$f"
20891          elif test -f "$srcdir/$f"; then
20892            # Source tree
20893            echo "$srcdir/$f"
20894          else
20895            # /dev/null tree
20896            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20897 echo "$as_me: error: cannot find input file: $f" >&2;}
20898    { (exit 1); exit 1; }; }
20899          fi;;
20900       esac
20901     done` || { (exit 1); exit 1; }
20902   # Remove the trailing spaces.
20903   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
20904
20905 _ACEOF
20906
20907 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20908 # `conftest.undefs', that substitutes the proper values into
20909 # config.h.in to produce config.h.  The first handles `#define'
20910 # templates, and the second `#undef' templates.
20911 # And first: Protect against being on the right side of a sed subst in
20912 # config.status.  Protect against being in an unquoted here document
20913 # in config.status.
20914 rm -f conftest.defines conftest.undefs
20915 # Using a here document instead of a string reduces the quoting nightmare.
20916 # Putting comments in sed scripts is not portable.
20917 #
20918 # `end' is used to avoid that the second main sed command (meant for
20919 # 0-ary CPP macros) applies to n-ary macro definitions.
20920 # See the Autoconf documentation for `clear'.
20921 cat >confdef2sed.sed <<\_ACEOF
20922 s/[\\&,]/\\&/g
20923 s,[\\$`],\\&,g
20924 t clear
20925 : clear
20926 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20927 t end
20928 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20929 : end
20930 _ACEOF
20931 # If some macros were called several times there might be several times
20932 # the same #defines, which is useless.  Nevertheless, we may not want to
20933 # sort them, since we want the *last* AC-DEFINE to be honored.
20934 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20935 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20936 rm -f confdef2sed.sed
20937
20938 # This sed command replaces #undef with comments.  This is necessary, for
20939 # example, in the case of _POSIX_SOURCE, which is predefined and required
20940 # on some systems where configure will not decide to define it.
20941 cat >>conftest.undefs <<\_ACEOF
20942 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20943 _ACEOF
20944
20945 # Break up conftest.defines because some shells have a limit on the size
20946 # of here documents, and old seds have small limits too (100 cmds).
20947 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20948 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20949 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20950 echo '  :' >>$CONFIG_STATUS
20951 rm -f conftest.tail
20952 while grep . conftest.defines >/dev/null
20953 do
20954   # Write a limited-size here document to $tmp/defines.sed.
20955   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20956   # Speed up: don't consider the non `#define' lines.
20957   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
20958   # Work around the forget-to-reset-the-flag bug.
20959   echo 't clr' >>$CONFIG_STATUS
20960   echo ': clr' >>$CONFIG_STATUS
20961   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20962   echo 'CEOF
20963   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20964   rm -f $tmp/in
20965   mv $tmp/out $tmp/in
20966 ' >>$CONFIG_STATUS
20967   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20968   rm -f conftest.defines
20969   mv conftest.tail conftest.defines
20970 done
20971 rm -f conftest.defines
20972 echo '  fi # grep' >>$CONFIG_STATUS
20973 echo >>$CONFIG_STATUS
20974
20975 # Break up conftest.undefs because some shells have a limit on the size
20976 # of here documents, and old seds have small limits too (100 cmds).
20977 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20978 rm -f conftest.tail
20979 while grep . conftest.undefs >/dev/null
20980 do
20981   # Write a limited-size here document to $tmp/undefs.sed.
20982   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20983   # Speed up: don't consider the non `#undef'
20984   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20985   # Work around the forget-to-reset-the-flag bug.
20986   echo 't clr' >>$CONFIG_STATUS
20987   echo ': clr' >>$CONFIG_STATUS
20988   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20989   echo 'CEOF
20990   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20991   rm -f $tmp/in
20992   mv $tmp/out $tmp/in
20993 ' >>$CONFIG_STATUS
20994   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20995   rm -f conftest.undefs
20996   mv conftest.tail conftest.undefs
20997 done
20998 rm -f conftest.undefs
20999
21000 cat >>$CONFIG_STATUS <<\_ACEOF
21001   # Let's still pretend it is `configure' which instantiates (i.e., don't
21002   # use $as_me), people would be surprised to read:
21003   #    /* config.h.  Generated by config.status.  */
21004   if test x"$ac_file" = x-; then
21005     echo "/* Generated by configure.  */" >$tmp/config.h
21006   else
21007     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21008   fi
21009   cat $tmp/in >>$tmp/config.h
21010   rm -f $tmp/in
21011   if test x"$ac_file" != x-; then
21012     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21013       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21014 echo "$as_me: $ac_file is unchanged" >&6;}
21015     else
21016       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21017 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21018          X"$ac_file" : 'X\(//\)[^/]' \| \
21019          X"$ac_file" : 'X\(//\)$' \| \
21020          X"$ac_file" : 'X\(/\)' \| \
21021          .     : '\(.\)' 2>/dev/null ||
21022 echo X"$ac_file" |
21023     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21024           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21025           /^X\(\/\/\)$/{ s//\1/; q; }
21026           /^X\(\/\).*/{ s//\1/; q; }
21027           s/.*/./; q'`
21028       { if $as_mkdir_p; then
21029     mkdir -p "$ac_dir"
21030   else
21031     as_dir="$ac_dir"
21032     as_dirs=
21033     while test ! -d "$as_dir"; do
21034       as_dirs="$as_dir $as_dirs"
21035       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21036 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21037          X"$as_dir" : 'X\(//\)[^/]' \| \
21038          X"$as_dir" : 'X\(//\)$' \| \
21039          X"$as_dir" : 'X\(/\)' \| \
21040          .     : '\(.\)' 2>/dev/null ||
21041 echo X"$as_dir" |
21042     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21043           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21044           /^X\(\/\/\)$/{ s//\1/; q; }
21045           /^X\(\/\).*/{ s//\1/; q; }
21046           s/.*/./; q'`
21047     done
21048     test ! -n "$as_dirs" || mkdir $as_dirs
21049   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21050 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21051    { (exit 1); exit 1; }; }; }
21052
21053       rm -f $ac_file
21054       mv $tmp/config.h $ac_file
21055     fi
21056   else
21057     cat $tmp/config.h
21058     rm -f $tmp/config.h
21059   fi
21060 # Compute $ac_file's index in $config_headers.
21061 _am_stamp_count=1
21062 for _am_header in $config_headers :; do
21063   case $_am_header in
21064     $ac_file | $ac_file:* )
21065       break ;;
21066     * )
21067       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21068   esac
21069 done
21070 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21071 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21072          X$ac_file : 'X\(//\)[^/]' \| \
21073          X$ac_file : 'X\(//\)$' \| \
21074          X$ac_file : 'X\(/\)' \| \
21075          .     : '\(.\)' 2>/dev/null ||
21076 echo X$ac_file |
21077     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21078           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21079           /^X\(\/\/\)$/{ s//\1/; q; }
21080           /^X\(\/\).*/{ s//\1/; q; }
21081           s/.*/./; q'`/stamp-h$_am_stamp_count
21082 done
21083 _ACEOF
21084 cat >>$CONFIG_STATUS <<\_ACEOF
21085
21086 #
21087 # CONFIG_COMMANDS section.
21088 #
21089 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21090   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21091   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21092   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21093 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21094          X"$ac_dest" : 'X\(//\)[^/]' \| \
21095          X"$ac_dest" : 'X\(//\)$' \| \
21096          X"$ac_dest" : 'X\(/\)' \| \
21097          .     : '\(.\)' 2>/dev/null ||
21098 echo X"$ac_dest" |
21099     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21100           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21101           /^X\(\/\/\)$/{ s//\1/; q; }
21102           /^X\(\/\).*/{ s//\1/; q; }
21103           s/.*/./; q'`
21104   { if $as_mkdir_p; then
21105     mkdir -p "$ac_dir"
21106   else
21107     as_dir="$ac_dir"
21108     as_dirs=
21109     while test ! -d "$as_dir"; do
21110       as_dirs="$as_dir $as_dirs"
21111       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21112 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21113          X"$as_dir" : 'X\(//\)[^/]' \| \
21114          X"$as_dir" : 'X\(//\)$' \| \
21115          X"$as_dir" : 'X\(/\)' \| \
21116          .     : '\(.\)' 2>/dev/null ||
21117 echo X"$as_dir" |
21118     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21119           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21120           /^X\(\/\/\)$/{ s//\1/; q; }
21121           /^X\(\/\).*/{ s//\1/; q; }
21122           s/.*/./; q'`
21123     done
21124     test ! -n "$as_dirs" || mkdir $as_dirs
21125   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21126 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21127    { (exit 1); exit 1; }; }; }
21128
21129   ac_builddir=.
21130
21131 if test "$ac_dir" != .; then
21132   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21133   # A "../" for each directory in $ac_dir_suffix.
21134   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21135 else
21136   ac_dir_suffix= ac_top_builddir=
21137 fi
21138
21139 case $srcdir in
21140   .)  # No --srcdir option.  We are building in place.
21141     ac_srcdir=.
21142     if test -z "$ac_top_builddir"; then
21143        ac_top_srcdir=.
21144     else
21145        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21146     fi ;;
21147   [\\/]* | ?:[\\/]* )  # Absolute path.
21148     ac_srcdir=$srcdir$ac_dir_suffix;
21149     ac_top_srcdir=$srcdir ;;
21150   *) # Relative path.
21151     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21152     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21153 esac
21154
21155 # Do not use `cd foo && pwd` to compute absolute paths, because
21156 # the directories may not exist.
21157 case `pwd` in
21158 .) ac_abs_builddir="$ac_dir";;
21159 *)
21160   case "$ac_dir" in
21161   .) ac_abs_builddir=`pwd`;;
21162   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21163   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21164   esac;;
21165 esac
21166 case $ac_abs_builddir in
21167 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21168 *)
21169   case ${ac_top_builddir}. in
21170   .) ac_abs_top_builddir=$ac_abs_builddir;;
21171   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21172   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21173   esac;;
21174 esac
21175 case $ac_abs_builddir in
21176 .) ac_abs_srcdir=$ac_srcdir;;
21177 *)
21178   case $ac_srcdir in
21179   .) ac_abs_srcdir=$ac_abs_builddir;;
21180   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21181   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21182   esac;;
21183 esac
21184 case $ac_abs_builddir in
21185 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21186 *)
21187   case $ac_top_srcdir in
21188   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21189   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21190   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21191   esac;;
21192 esac
21193
21194
21195   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21196 echo "$as_me: executing $ac_dest commands" >&6;}
21197   case $ac_dest in
21198     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21199   # Strip MF so we end up with the name of the file.
21200   mf=`echo "$mf" | sed -e 's/:.*$//'`
21201   # Check whether this is an Automake generated Makefile or not.
21202   # We used to match only the files named `Makefile.in', but
21203   # some people rename them; so instead we look at the file content.
21204   # Grep'ing the first line is not enough: some people post-process
21205   # each Makefile.in and add a new line on top of each file to say so.
21206   # So let's grep whole file.
21207   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21208     dirpart=`(dirname "$mf") 2>/dev/null ||
21209 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21210          X"$mf" : 'X\(//\)[^/]' \| \
21211          X"$mf" : 'X\(//\)$' \| \
21212          X"$mf" : 'X\(/\)' \| \
21213          .     : '\(.\)' 2>/dev/null ||
21214 echo X"$mf" |
21215     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21216           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21217           /^X\(\/\/\)$/{ s//\1/; q; }
21218           /^X\(\/\).*/{ s//\1/; q; }
21219           s/.*/./; q'`
21220   else
21221     continue
21222   fi
21223   # Extract the definition of DEPDIR, am__include, and am__quote
21224   # from the Makefile without running `make'.
21225   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21226   test -z "$DEPDIR" && continue
21227   am__include=`sed -n 's/^am__include = //p' < "$mf"`
21228   test -z "am__include" && continue
21229   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21230   # When using ansi2knr, U may be empty or an underscore; expand it
21231   U=`sed -n 's/^U = //p' < "$mf"`
21232   # Find all dependency output files, they are included files with
21233   # $(DEPDIR) in their names.  We invoke sed twice because it is the
21234   # simplest approach to changing $(DEPDIR) to its actual value in the
21235   # expansion.
21236   for file in `sed -n "
21237     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21238        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21239     # Make sure the directory exists.
21240     test -f "$dirpart/$file" && continue
21241     fdir=`(dirname "$file") 2>/dev/null ||
21242 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21243          X"$file" : 'X\(//\)[^/]' \| \
21244          X"$file" : 'X\(//\)$' \| \
21245          X"$file" : 'X\(/\)' \| \
21246          .     : '\(.\)' 2>/dev/null ||
21247 echo X"$file" |
21248     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21249           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21250           /^X\(\/\/\)$/{ s//\1/; q; }
21251           /^X\(\/\).*/{ s//\1/; q; }
21252           s/.*/./; q'`
21253     { if $as_mkdir_p; then
21254     mkdir -p $dirpart/$fdir
21255   else
21256     as_dir=$dirpart/$fdir
21257     as_dirs=
21258     while test ! -d "$as_dir"; do
21259       as_dirs="$as_dir $as_dirs"
21260       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21261 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21262          X"$as_dir" : 'X\(//\)[^/]' \| \
21263          X"$as_dir" : 'X\(//\)$' \| \
21264          X"$as_dir" : 'X\(/\)' \| \
21265          .     : '\(.\)' 2>/dev/null ||
21266 echo X"$as_dir" |
21267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21268           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21269           /^X\(\/\/\)$/{ s//\1/; q; }
21270           /^X\(\/\).*/{ s//\1/; q; }
21271           s/.*/./; q'`
21272     done
21273     test ! -n "$as_dirs" || mkdir $as_dirs
21274   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21275 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21276    { (exit 1); exit 1; }; }; }
21277
21278     # echo "creating $dirpart/$file"
21279     echo '# dummy' > "$dirpart/$file"
21280   done
21281 done
21282  ;;
21283   esac
21284 done
21285 _ACEOF
21286
21287 cat >>$CONFIG_STATUS <<\_ACEOF
21288
21289 { (exit 0); exit 0; }
21290 _ACEOF
21291 chmod +x $CONFIG_STATUS
21292 ac_clean_files=$ac_clean_files_save
21293
21294
21295 # configure is writing to config.log, and then calls config.status.
21296 # config.status does its own redirection, appending to config.log.
21297 # Unfortunately, on DOS this fails, as config.log is still kept open
21298 # by configure, so config.status won't be able to write to it; its
21299 # output is simply discarded.  So we exec the FD to /dev/null,
21300 # effectively closing config.log, so it can be properly (re)opened and
21301 # appended to by config.status.  When coming back to configure, we
21302 # need to make the FD available again.
21303 if test "$no_create" != yes; then
21304   ac_cs_success=:
21305   ac_config_status_args=
21306   test "$silent" = yes &&
21307     ac_config_status_args="$ac_config_status_args --quiet"
21308   exec 5>/dev/null
21309   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21310   exec 5>>config.log
21311   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21312   # would make configure fail if this is the last instruction.
21313   $ac_cs_success || { (exit 1); exit 1; }
21314 fi
21315
21316